/* app.css — luzdaserra-terapias. MESMO layout do sistema Luz da Serra atual, em versao
   BLACK & WHITE / monocromatica. Mesma estrutura de componentes (sysnav, sv-head, basecard,
   info-note, feat-list, acct, auth-card) e mesma tipografia (Bricolage + Inter + JetBrains Mono),
   so que a paleta vira preto/branco/cinza: acento PRETO (era coral), teal/esmeralda vira cinza-escuro,
   dourado vira cinza medio. Preto no branco, high-end, minimalista. Zero travessao. */

:root {
  color-scheme: light;
  /* paleta monocromatica (chroma 0 = puro cinza) — TEMA CLARO (default) */
  --bg:          oklch(1.00 0 0);     /* branco */
  --surface:     oklch(0.985 0 0);
  --surface-2:   oklch(0.955 0 0);
  --line:        oklch(0.88 0 0);
  --line-soft:   oklch(0.93 0 0);
  --ink:         oklch(0.18 0 0);     /* quase preto */
  --ink-soft:    oklch(0.42 0 0);
  --ink-faint:   oklch(0.60 0 0);
  /* acento (era coral) -> PRETO */
  --coral:       oklch(0.18 0 0);
  --coral-press: oklch(0.30 0 0);
  --coral-ink:   oklch(0.99 0 0);     /* texto sobre o acento -> branco */
  /* estados (eram teal/dourado) -> tons de cinza-escuro */
  --esmeralda:     oklch(0.32 0 0);
  --esmeralda-dim: oklch(0.32 0 0 / 0.08);
  --dourado:       oklch(0.46 0 0);
  /* tokens de alpha/sombra (extraidos de cores soltas, pro tema funcionar) */
  --accent-glow:   oklch(0.18 0 0 / 0.14);  /* halo do dot da marca */
  --accent-soft:   oklch(0.18 0 0 / 0.08);  /* fundo do num ativo na sysnav */
  --accent-line:   oklch(0.18 0 0 / 0.45);  /* borda do num ativo */
  --sel-ring:      oklch(0.18 0 0 / 0.18);  /* anel da role-tile selecionada */
  --shadow-1:      oklch(0.18 0 0 / 0.40);  /* sombra do card no hover */
  --overlay:       oklch(0.18 0 0 / 0.42);  /* fundo do modal */
  --shadow-modal:  oklch(0.18 0 0 / 0.60);  /* sombra do modal */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============ TEMA ESCURO (B&W invertido, monocromatico) ============ */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:          oklch(0.16 0 0);     /* quase preto */
  --surface:     oklch(0.195 0 0);
  --surface-2:   oklch(0.245 0 0);
  --line:        oklch(0.32 0 0);
  --line-soft:   oklch(0.26 0 0);
  --ink:         oklch(0.96 0 0);     /* quase branco */
  --ink-soft:    oklch(0.74 0 0);
  --ink-faint:   oklch(0.56 0 0);
  /* acento inverte: vira quase branco, texto do acento vira quase preto */
  --coral:       oklch(0.96 0 0);
  --coral-press: oklch(0.82 0 0);
  --coral-ink:   oklch(0.16 0 0);
  --esmeralda:     oklch(0.70 0 0);
  --esmeralda-dim: oklch(0.96 0 0 / 0.10);
  --dourado:       oklch(0.60 0 0);
  --accent-glow:   oklch(0.96 0 0 / 0.16);
  --accent-soft:   oklch(0.96 0 0 / 0.12);
  --accent-line:   oklch(0.96 0 0 / 0.40);
  --sel-ring:      oklch(0.96 0 0 / 0.30);
  --shadow-1:      oklch(0 0 0 / 0.55);
  --overlay:       oklch(0 0 0 / 0.62);
  --shadow-modal:  oklch(0 0 0 / 0.72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--ink);
  line-height: 1.55; min-height: 100vh; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
::selection { background: var(--coral); color: var(--coral-ink); }
a { color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; border: 2px solid transparent; background-clip: content-box; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ============ SHELL ============ */
.shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); align-items: start; width: 100%; min-height: 100vh; }

/* ============ ASIDE (sidebar) ============ */
.aside {
  position: sticky; top: 0; align-self: start; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
}
.aside-brand { display: flex; flex-direction: column; gap: 7px; }
.aside-brand .mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; line-height: 1; }
.aside-brand .mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--accent-glow); flex-shrink: 0; }
.aside-brand .kicker { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); padding-left: 18px; }

/* ============ SYSNAV (navegacao por papel) ============ */
.sysnav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sysnav-head { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); padding: 2px 11px 7px; }
.sysnav-head.k2 { margin-top: 8px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.sysnav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: none; color: var(--ink-soft); font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; line-height: 1.25; padding: 10px 11px; border-radius: var(--radius-sm); cursor: pointer; min-height: 44px; transition: background 0.16s var(--ease), color 0.16s var(--ease); }
.sysnav-item:hover { background: var(--surface-2); color: var(--ink); }
.sysnav-item.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.sysnav-item::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--coral); transition: transform 0.2s var(--ease); }
.sysnav-item.active::before { transform: translateY(-50%) scaleY(1); }
.sysnav-num { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; color: var(--ink-faint); min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; flex-shrink: 0; transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease); }
.sysnav-item.active .sysnav-num { color: var(--coral); border-color: var(--accent-line); background: var(--accent-soft); }
.sysnav-item .sysnav-label { min-width: 0; flex: 1; }
.sysnav-flag { margin-left: auto; font-family: var(--font-mono); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px 7px; flex-shrink: 0; white-space: nowrap; }
.sysnav-flag.preview { color: var(--esmeralda); border-color: oklch(0.32 0 0 / 0.32); }
.sysnav-flag.novo { color: var(--ink); border-color: var(--accent-line); }

/* ============ RODAPE DA SIDEBAR (conta) ============ */
.aside-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.acct { display: flex; align-items: center; gap: 11px; padding: 4px 2px; }
.acct .av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.acct .info { min-width: 0; flex: 1; }
.acct .info .nm { font-size: 0.86rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .info .rl { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1px; }
.acct .info .rl.admin { color: var(--ink); }
.acct .logout { background: transparent; border: 1px solid var(--line); color: var(--ink-faint); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s, background 0.15s; font-size: 1rem; }
.acct .logout:hover { border-color: var(--coral); color: var(--coral); background: var(--surface-2); }

/* ============ MAIN ============ */
.main { min-width: 0; padding: 0 clamp(20px, 3.4vw, 48px) 96px; }
.main > .sv-head, .main > .content { max-width: 1350px; margin-left: auto; margin-right: auto; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 18px 0 16px; margin-bottom: 8px; background: linear-gradient(180deg, var(--bg) 72%, transparent); flex-wrap: wrap; }
.topbar .last-update { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .last-update .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.topbar .last-update strong { color: var(--ink-soft); font-weight: 500; }
.drawer-trigger { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; padding: 0 14px; height: 42px; border-radius: var(--radius-sm); cursor: pointer; align-items: center; gap: 9px; }
.drawer-trigger .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.drawer-trigger .bars i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

/* ============ SV-HEAD (cabecalho da secao) ============ */
.sv-head { padding: 8px 0 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px; }
.sv-head .eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 9px; }
.sv-head .eyebrow .nm { color: var(--ink-faint); }
.sv-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.sv-head .sub { color: var(--ink-soft); font-size: 1rem; margin-top: 14px; max-width: 66ch; line-height: 1.6; }
.sv-head .sub b { color: var(--ink); font-weight: 600; }

/* ============ CARDS ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.basecard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); position: relative; overflow: hidden; }
.basecard .blabel { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.basecard .blabel::before { content: ""; width: 18px; height: 1px; background: var(--coral); }
.basecard h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.02em; line-height: 1.14; color: var(--ink); margin-bottom: 12px; }
.basecard .bp { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; max-width: 72ch; }

/* lista de features (era marcador esmeralda) */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.feat-list li { position: relative; padding-left: 18px; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.feat-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }

/* nota informativa (passo de proxima fase) */
.info-note { margin-top: 22px; display: flex; align-items: flex-start; gap: 13px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; }
.info-note .ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.info-note .in-t { font-weight: 600; color: var(--ink); margin-bottom: 3px; font-size: 0.92rem; }
.info-note .in-d { font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); }

/* faixa de status / banner */
.banner { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); margin-bottom: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.banner .tag { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--ink); flex-shrink: 0; }
.banner.warn { border-style: dashed; }

/* ============ AUTH (login / signup) ============ */
.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.auth-aside { position: relative; padding: clamp(40px, 6vw, 88px) clamp(34px, 5vw, 76px); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.auth-aside .brand-row { display: inline-flex; align-items: center; gap: 11px; }
.auth-aside .brand-row .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--accent-glow); flex-shrink: 0; }
.auth-aside .brand-row .nm { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.auth-aside .pitch { position: relative; max-width: 34ch; }
.auth-aside .pitch .eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; }
.auth-aside .pitch h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.04; margin-bottom: 18px; }
.auth-aside .pitch p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.auth-aside .auth-points { position: relative; display: flex; flex-direction: column; gap: 14px; }
.auth-aside .auth-points .pt { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); font-size: 0.92rem; }
.auth-aside .auth-points .pt .mk { color: var(--ink); font-family: var(--font-mono); font-size: 0.8rem; margin-top: 1px; flex-shrink: 0; }
.auth-aside .auth-sign { position: relative; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.auth-aside .auth-sign b { color: var(--ink-soft); font-weight: 500; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 56px); background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-card .auth-mobile-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--accent-glow); }
.auth-card .auth-mobile-brand .nm { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.auth-card .lede { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 26px; }
.auth-card .field { margin-bottom: 15px; }
.auth-card .field label { display: block; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.auth-card .field input, .auth-card .field select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; color: var(--ink); font-family: var(--font-body); font-size: 0.94rem; outline: none; min-height: 46px; transition: border-color 0.16s var(--ease), background 0.16s var(--ease); }
.auth-card .field input::placeholder { color: var(--ink-faint); }
.auth-card .field input:focus, .auth-card .field select:focus { border-color: var(--ink); background: var(--surface-2); }
/* selecao de papel (terapeuta/consultante) no signup */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.role-tile { position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px; background: var(--surface); transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.role-tile:hover { border-color: var(--ink-faint); }
.role-tile.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--sel-ring); background: var(--surface-2); }
.role-tile .rt-t { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--ink); margin-bottom: 3px; }
.role-tile .rt-d { font-size: 0.76rem; color: var(--ink-faint); line-height: 1.45; }
.auth-card .submit { width: 100%; background: var(--coral); color: var(--coral-ink); border: none; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: 0.94rem; min-height: 50px; cursor: pointer; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background 0.18s var(--ease), transform 0.12s var(--ease); }
.auth-card .submit:hover { background: var(--coral-press); }
.auth-card .submit:active { transform: scale(0.99); }
.auth-card .submit:disabled { opacity: 0.6; cursor: wait; }
.auth-card .switch-line { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
.auth-card .switch-line a { color: var(--coral); font-weight: 700; text-decoration: none; }
.auth-card .switch-line a:hover { text-decoration: underline; }
.auth-msg { font-size: 0.85rem; padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 18px; display: none; border: 1px solid transparent; line-height: 1.5; }
.auth-msg.show { display: block; }
.auth-msg.error { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.auth-msg.ok { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

/* ============================================================
   F2 — MARKETPLACE (cards, filtros, form de perfil, pagina publica)
   Mesmo tema B&W, mesmos tokens. Acento PRETO, superficies cinza claro.
   ============================================================ */

/* grade de cards do terapeuta */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.t-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: inherit; transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
a.t-card:hover { border-color: var(--ink-faint); transform: translateY(-2px); box-shadow: 0 10px 30px -18px var(--shadow-1); }
.t-card.preview { border-style: dashed; }
.t-top { display: flex; align-items: center; gap: 13px; }
.t-av { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.t-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-av.noimg { font-size: 1.05rem; }
.t-id { min-width: 0; flex: 1; }
.t-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-tag { font-family: var(--font-mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--ink); color: var(--coral-ink); }
.t-tag.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.t-bio { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { font-size: 0.74rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; background: var(--bg); }
.t-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-preco { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.t-preco small { font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.06em; margin-left: 3px; }
.t-cta { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* barra de filtros / busca */
.t-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; }
.t-filters .ff { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; }
.t-filters .ff.grow { flex: 2.4; min-width: 200px; }
.t-filters .ff label { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.t-filters input, .t-filters select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; color: var(--ink); font-family: var(--font-body); font-size: 0.9rem; outline: none; min-height: 44px; transition: border-color 0.16s var(--ease); }
.t-filters input:focus, .t-filters select:focus { border-color: var(--ink); }
.t-filters .ff-actions { display: flex; gap: 8px; }
.btn { font-family: var(--font-body); font-weight: 700; font-size: 0.86rem; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.12s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.99); }
.btn.primary { background: var(--coral); color: var(--coral-ink); border-color: var(--coral); }
.btn.primary:hover { background: var(--coral-press); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* estado vazio / contador */
.t-count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); margin-bottom: 14px; }
.t-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-soft); }
.t-empty .big { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.t-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.t-pager .pg-info { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); }

/* ----- FORM de perfil do terapeuta (painel) ----- */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 26px; align-items: start; }
.pf-form { display: flex; flex-direction: column; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.pf-field { display: flex; flex-direction: column; gap: 7px; }
.pf-field label { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.pf-field .hint { font-size: 0.74rem; color: var(--ink-faint); }
.pf-field input, .pf-field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; color: var(--ink); font-family: var(--font-body); font-size: 0.92rem; outline: none; transition: border-color 0.16s var(--ease), background 0.16s var(--ease); }
.pf-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.pf-field input:focus, .pf-field textarea:focus { border-color: var(--ink); background: var(--surface-2); }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* toggle online */
.pf-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; user-select: none; }
.pf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pf-toggle .sw { width: 42px; height: 24px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background 0.18s var(--ease), border-color 0.18s; }
.pf-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-faint); transition: transform 0.18s var(--ease), background 0.18s; }
.pf-toggle input:checked + .sw { background: var(--ink); border-color: var(--ink); }
.pf-toggle input:checked + .sw::after { transform: translateX(18px); background: var(--coral-ink); }
.pf-toggle .tg-txt { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.pf-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pf-msg { font-size: 0.84rem; padding: 10px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); display: none; }
.pf-msg.show { display: block; }
/* coluna do preview */
.pf-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
.pf-side .pf-side-h { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pf-status { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.pf-status .st-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--ink-faint); }
.pf-status.ok .st-dot { background: var(--ink); }
.pf-status .st-t { font-weight: 600; color: var(--ink); display: block; margin-bottom: 2px; }

/* ----- pagina publica do terapeuta (/t/:slug) ----- */
.pub-wrap { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 40px) 80px; }
.pub-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 5vw, 40px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: linear-gradient(180deg, var(--bg) 80%, transparent); z-index: 20; }
.pub-nav .mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.pub-nav .mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--accent-glow); }
.pub-head { display: flex; align-items: center; gap: 20px; padding: 18px 0 26px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; flex-wrap: wrap; }
.pub-head .t-av { width: 92px; height: 92px; font-size: 1.8rem; }
.pub-head .ph-id { min-width: 0; flex: 1; }
.pub-head .ph-id h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.05; }
.pub-head .ph-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pub-sec { margin-bottom: 28px; }
.pub-sec h2 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.pub-sec .bio-txt { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; white-space: pre-wrap; }
.pub-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--surface); position: sticky; bottom: 16px; }
.pub-cta .cta-price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.pub-cta .cta-price small { font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.pub-cta .cta-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }
.pub-loading, .pub-404 { padding: 80px 20px; text-align: center; color: var(--ink-soft); }
.pub-404 .big { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }

/* modal (detalhe do consultante no admin) */
.modal-ov { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: clamp(20px, 6vh, 70px) 18px; background: var(--overlay); backdrop-filter: blur(2px); overflow-y: auto; }
.modal-ov.show { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 540px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); box-shadow: 0 30px 70px -30px var(--shadow-modal); }
.modal-box .modal-x { position: absolute; top: 14px; right: 16px; background: transparent; border: 1px solid var(--line); color: var(--ink-soft); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 1.2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s; }
.modal-box .modal-x:hover { border-color: var(--coral); color: var(--coral); }
.modal-box .modal-h { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.modal-box .modal-body { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .t-filters .ff { min-width: 100%; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .aside { position: static; height: auto; }
}
@media (max-width: 860px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; padding: 40px 22px; }
  .auth-card .auth-mobile-brand { display: flex; }
}

/* ============ CONTROLES i18n + TEMA (idioma + claro/escuro) ============ */
.lst-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lst-lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: var(--bg); }
.lst-lang button { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; padding: 5px 9px; min-height: 28px; background: transparent; border: none; color: var(--ink-faint); cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.lst-lang button + button { border-left: 1px solid var(--line); }
.lst-lang button:hover { color: var(--ink); }
.lst-lang button.on { background: var(--coral); color: var(--coral-ink); }
.lst-theme { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease); }
.lst-theme:hover { border-color: var(--coral); color: var(--coral); background: var(--surface-2); }
.lst-theme svg { width: 15px; height: 15px; display: block; }
/* dentro da nav publica: agrupa botao existente + controles no lado direito */
.pub-nav-right { display: inline-flex; align-items: center; gap: 14px; }
.pub-nav-right .lst-controls { margin-bottom: 0; }
/* flutuante (login/signup, sem sidebar e sem nav) */
.lst-controls.floating { position: fixed; top: 14px; right: 16px; z-index: 50; margin: 0; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: 0 8px 24px -16px var(--shadow-1); }
@media (max-width: 860px) {
  .lst-controls.floating { top: 10px; right: 10px; }
}
