/* ============================================
   WORKVILLE — ESTILOS COMPARTILHADOS
   Inclua este arquivo em todas as páginas
   ============================================ */

/* ============================================
   INTER — SELF-HOSTED (latin-ext + latin)
   ============================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   VARIÁVEIS GLOBAIS
   ============================================ */

:root {
  /* App desenhado só para o tema CLARO: opta o site OUT do "modo escuro" forçado
     do navegador/sistema (Samsung Internet/Chrome) e do WebView Android. Sem isto,
     esses navegadores escurecem tudo à força. Ver: não temos prefers-color-scheme. */
  color-scheme: light;
  --primary-color: #1675b8;
  --primary-hover: #135f95;
  --primary-light: rgba(22, 117, 184, 0.12);
  --btn-blue-gradient-start: #1675b8;
  --btn-blue-gradient-end: #1d8dd9;
  --btn-blue-gradient-hover-start: #125f95;
  --btn-blue-gradient-hover-end: #1675b8;
  --btn-blue-border: #1675b8;
  --btn-blue-border-hover: #125f95;
  --btn-blue-shadow: 0 8px 18px rgba(22, 117, 184, 0.26);
  --btn-blue-shadow-hover: 0 10px 20px rgba(18, 95, 149, 0.3);
  --btn-blue-shadow-active: 0 6px 14px rgba(18, 95, 149, 0.24);
  /* Terceira cor da marca: VERDE (sucesso / PIX / "no mural"). Gradiente, no mesmo
     molde de azul e laranja. Sólido p/ acento pontual: #0f9d6e. */
  --btn-green-gradient-start: #10b981;
  --btn-green-gradient-end: #059669;
  --btn-green-gradient-hover-start: #059669;
  --btn-green-gradient-hover-end: #047857;
  --btn-green-border: #0e8a5f;
  --btn-green-border-hover: #047857;
  --btn-green-solid: #0f9d6e;

  --secondary-color: #e2e8f0;
  --secondary-hover: #cbd5e0;

  --success-color: #38a169;
  --warning-color: #ed8936;
  --danger-color: #e53e3e;

  --text-primary: #1a202c;
  --text-secondary: #718096;
  --text-light: #a0aec0;

  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;

  --border-color: #e2e8f0;
  --border-radius: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.12s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.24s cubic-bezier(0.22, 1, 0.36, 1);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Design tokens — componentes */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.05);

  --wv-mobile-header-height: 56px;
  --wv-mobile-bottom-nav-height: 72px;
  --wv-mobile-sidebar-width: min(75vw, 320px);
}

/* ============================================
   RESET E BASE
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Logo Workville (só símbolo SVG amber) sobreposto no canto superior direito
   da capa do perfil. Usado em perfil_profissional_publico, perfil_contratante_publico
   (e por reflexo dentro dos painéis dashboard que carregam essas páginas via iframe). */
/* Toggle switch (iOS-style) reutilizável */
.wv-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.wv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.wv-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}
.wv-switch-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}
.wv-switch input:checked + .wv-switch-track {
  background: var(--primary-color, #1675b8);
}
.wv-switch input:checked + .wv-switch-track::before {
  transform: translateX(18px);
}
.wv-switch input:focus-visible + .wv-switch-track {
  outline: 2px solid var(--primary-color, #1675b8);
  outline-offset: 2px;
}

.cover-wv-logo {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: url('/img/logo-workville.svg') center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.22));
  pointer-events: none;
  z-index: 2;
}

/* ============================================
   NAVBAR
   ============================================ */

/* Elementos mobile-only injetados via JS pelo nav-header.js.
   Hide por padrão pra não vazarem no desktop — a media query mobile
   reativa com position:fixed. */
.hero-brand-mobile,
.hero-avatar-mobile,
.hero-avatar-dropdown,
.hero-bell-mobile,
.hero-bell-panel {
  display: none !important;
}

/* Páginas com body.wv-min-header-back (FAQ, termos, LGPD, privacidade,
   política de cancelamento): quando o usuário está logado, nav-header.js
   marca os filhos do .nav-buttons (exceto #navVoltarPainel) com este
   data attr, fazendo o header exibir apenas o botão "Voltar para o Painel". */
.nav-buttons > [data-min-header-hidden="1"] {
  display: none !important;
}

/* No header minimal-back, .navbar.has-auth-layout aplica padding-right:240px
   pra reservar espaço de widget de usuário que aqui não existe. Zerar. */
body.wv-min-header-back .navbar.has-auth-layout .nav-buttons {
  padding-right: 0;
}


body > header {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--primary-color);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.02em;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

/* Símbolo SVG amber à esquerda (substitui as setas antigas).
   Em-based pra escalar proporcionalmente ao texto (mesma estética do hero). */
.logo-text::before {
  content: '';
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  background: url('/img/logo-workville.svg') center / contain no-repeat;
  flex-shrink: 0;
  transform: translateY(0.08em);
}

.logo-text::after {
  content: none;
}

/* Header tem leve respiro entre símbolo e nome (no hero, encostadinho fica melhor). */
body > header .logo-text {
  gap: 0.1em;
}

.logo-i {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

/* Round dot at the top of the ascender */
.logo-i::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.06em;
  width: 0.17em;
  height: 0.17em;
  background: currentColor;
  border-radius: 50%;
}

/* Single flex item wrapping the full word so flex-direction:column doesn't split text nodes */
.logo-word {
  display: inline-block;
  line-height: inherit;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

html.wv-nav-preload .nav-buttons {
  visibility: hidden;
}

/* Anti-flicker: esconde nav-buttons por padrão até o nav-header.js
   sincronizar a sessão (adicionando wv-nav-ready no html). Assim o
   botão Entrar (e demais) não pisca no topo antes da resolução. */
.nav-buttons {
  visibility: hidden;
}
html.wv-nav-ready .nav-buttons {
  visibility: visible;
}

.navbar.has-auth-layout .nav-buttons {
  flex: 1;
  justify-content: flex-end;
  position: static;
  min-height: 42px;
  padding-right: 240px;
}

.navbar.has-auth-layout {
  position: relative;
}

.navbar.has-guest-layout .nav-buttons {
  flex: 1;
  justify-content: flex-end;
  gap: 18px;
}


body.wv-mobile-scroll-lock,
html:has(body.wv-mobile-scroll-lock) {
  overflow: hidden !important;
  /* trava com !important pra ganhar de overrides locais (ex.: cadastro_usuario libera html/body) */
}

.wv-app-wrapper,
.wv-main-content {
  width: 100%;
}



/* Pill-shaped user area in navbar */
.nav-user {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f8fbff;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #dceefe;
  color: #0b4b76;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-user-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-user-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
}

.nav-auth-cluster {
  display: none;
  align-items: center;
  gap: 10px;
}

.navbar.has-auth-layout .nav-auth-cluster {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-center-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-buttons.is-authenticated .nav-text-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto;
  border-radius: 0;
  font-size: 0.98rem;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  color: #145f96 !important;
}

.nav-buttons.is-guest .nav-text-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto;
  border-radius: 0;
  font-size: 0.98rem;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  color: #145f96 !important;
}

.nav-buttons.is-guest .nav-text-link .nav-text-link-label {
  display: inline-block;
  color: #145f96;
}

.nav-buttons.is-authenticated .nav-text-link .nav-text-link-label {
  display: inline-block;
  color: #145f96;
}

.nav-buttons.is-authenticated .nav-text-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nav-buttons.is-guest .nav-text-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nav-buttons.is-guest .nav-text-link:focus-visible {
  outline: 2px solid rgba(22, 117, 184, 0.22);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav-buttons.is-guest #navCadastrar,
.nav-buttons.is-guest .nav-signup-highlight {
  color: #0f4f7e !important;
  background: rgba(22, 117, 184, 0.12) !important;
  border: 1px solid rgba(22, 117, 184, 0.28) !important;
  border-radius: 8px;
  padding: 6px 12px !important;
  box-shadow: 0 2px 8px rgba(22, 117, 184, 0.12);
}

.nav-buttons.is-guest #navCadastrar:hover,
.nav-buttons.is-guest .nav-signup-highlight:hover {
  background: rgba(22, 117, 184, 0.2) !important;
  border-color: rgba(22, 117, 184, 0.34) !important;
}

.nav-buttons.is-authenticated .nav-text-link:focus-visible {
  outline: 2px solid rgba(22, 117, 184, 0.22);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav-user-info.is-authenticated {
  background: transparent;
  border: none;
}

.nav-user-info.is-authenticated .nav-user-meta {
  gap: 0;
}

.nav-user-info.is-authenticated .nav-user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
}

.nav-user-info.is-authenticated .nav-user-role {
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 1px;
}

.navbar.has-auth-layout .nav-user-info.is-authenticated {
  margin-left: 0;
}

.nav-dropdown-trigger {
  cursor: pointer;
  position: relative;
}

.nav-dropdown-trigger::after {
  content: '▾';
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-left: 4px;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.16s ease, color 0.16s ease;
}

.nav-dropdown-trigger.is-open::after {
  transform: rotate(180deg);
  color: #1d6fb0;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 236px;
  display: none;
  background: linear-gradient(165deg, rgba(247, 251, 255, 0.96) 0%, rgba(235, 244, 255, 0.9) 100%);
  border: 1px solid rgba(29, 111, 176, 0.22);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18), 0 6px 16px rgba(22, 117, 184, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 9px;
  z-index: 1400;
}

.nav-user-dropdown.open {
  display: grid;
  gap: 6px;
}

.nav-user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  border: none;
  background: transparent;
  color: #145f96;
  border-radius: 8px;
  padding: 9px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease, color 0.14s ease;
}

.nav-user-dropdown-item:hover {
  background: rgba(225, 239, 255, 0.45);
  color: #0f4f7e;
}

.nav-user-dropdown-item.is-danger {
  color: #b42318;
}

.nav-profile-btn {
  position: relative;
}

.nav-profile-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.35);
  pointer-events: none;
}

/* Legacy aliases — keep for backward compat */
.nav-user-info { display: none; align-items: center; gap: 8px; padding: 4px 6px 4px 2px; border-radius: 8px; border: none; background: transparent; cursor: pointer; transition: background 0.2s ease; }
.nav-user-info:hover { background: rgba(22, 117, 184, 0.06); }
.nav-avatar-pequeno { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #dceefe; color: #0b4b76; overflow: visible; flex-shrink: 0; position: relative; font-size: 0.82rem; }
.nav-avatar-pequeno img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.nav-avatar-pequeno[data-badge]:not([data-badge=""]):not([data-badge="0"])::after {
  content: attr(data-badge);
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: #d62939;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 2;
}

/* Card avatar + nome no modal de avaliação */
.avaliacao-alvo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #d0e2f2;
  margin-bottom: 14px;
}
.avaliacao-alvo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: #dceefe;
  color: #0b4b76;
  flex-shrink: 0;
}
.avaliacao-alvo-nome {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a3d5c;
}

/* ============================================
   LOGO (páginas de formulário)
   ============================================ */

.logo-wrapper {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.logo-text-main {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d5a8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

/* Regra global para manter todos os botoes da plataforma com peso médio e caixa baixa. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn,
.btn {
  font-weight: 500 !important;
  text-transform: none !important;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-blue-gradient-start) 0%, var(--btn-blue-gradient-end) 100%);
  border: 1px solid var(--btn-blue-border);
  color: #fff;
  box-shadow: var(--btn-blue-shadow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--btn-blue-gradient-hover-start) 0%, var(--btn-blue-gradient-hover-end) 100%);
  border-color: var(--btn-blue-border-hover);
  box-shadow: var(--btn-blue-shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  box-shadow: var(--btn-blue-shadow-active);
  transform: translateY(0);
}

/* Verde da marca — terceira cor do trio (azul/laranja/verde). Flat como o .btn-laranja:
   gradiente + borda + troca de gradiente no hover, sem lift nem sombra. */
.btn-verde {
  background: linear-gradient(135deg, var(--btn-green-gradient-start) 0%, var(--btn-green-gradient-end) 100%);
  color: #fff;
  border: 1px solid var(--btn-green-border);
}

.btn-verde:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--btn-green-gradient-hover-start) 0%, var(--btn-green-gradient-hover-end) 100%);
  border-color: var(--btn-green-border-hover);
}

.btn-secondary {
  background: #eef2f7;
  color: #334155;
  border: 1px solid #dde5f0;
}

.btn-secondary:hover:not(:disabled) {
  background: #e4ebf3;
}

.btn-opportunities {
  background: linear-gradient(135deg, rgba(22, 117, 184, 0.14) 0%, rgba(22, 117, 184, 0.24) 100%);
  border: 1px solid rgba(22, 117, 184, 0.28);
  color: #0f4f7e;
  box-shadow: 0 4px 12px rgba(22, 117, 184, 0.15);
}

.btn-opportunities:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(22, 117, 184, 0.2) 0%, rgba(22, 117, 184, 0.32) 100%);
  box-shadow: 0 6px 16px rgba(22, 117, 184, 0.2);
}

.btn-opportunities.btn-primary {
  background: linear-gradient(135deg, var(--btn-blue-gradient-start) 0%, var(--btn-blue-gradient-end) 100%);
  color: #fff;
  border-color: var(--btn-blue-border);
  box-shadow: 0 6px 16px rgba(22, 117, 184, 0.26);
}

.btn-opportunities.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--btn-blue-gradient-hover-start) 0%, var(--btn-blue-gradient-hover-end) 100%);
  border-color: var(--btn-blue-border-hover);
}

.btn-danger {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.btn-danger:hover:not(:disabled) {
  background: #fee4e2;
}

/* Botão de arquivar: usa o amber/ouro do tema (mesmo gradient dos CTAs
   "Criar anúncio" / "Compartilhar perfil"), porque arquivar não é
   destrutivo — só esconde o registro. */
.btn-arquivar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}
.btn-arquivar:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea8a02 0%, #c0670a 100%);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.34);
}
.btn-arquivar:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.28);
}
.btn-arquivar:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-loader {
  animation: spin 1s linear infinite;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  text-transform: none;
  letter-spacing: 0.3px;
}

.input-field {
  width: 100%;
  padding: var(--spacing-md);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  appearance: none;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231675b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: var(--spacing-xl);
}

/* ============================================
   SELECT-FIELD — componente reutilizável
   ============================================ */

.select-field {
  appearance: none;
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  background-color: var(--bg-primary, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%234a739a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  min-width: 0;
  width: 100%;
  box-shadow: var(--shadow-soft, 0 2px 6px rgba(15,23,42,0.05));
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.select-field:hover {
  border-color: #b7cee6;
}

.select-field:focus {
  outline: none;
  border-color: var(--primary-color, #1675b8);
  box-shadow: 0 0 0 3px var(--primary-light, rgba(22,117,184,0.12));
}

.select-field:disabled {
  color: var(--text-secondary, #718096);
  background-color: var(--bg-secondary, #f7fafc);
  cursor: not-allowed;
  opacity: 0.7;
}

textarea.input-field {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group--half {
  margin-bottom: 0;
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.32);
  /* NÍVEL 1 — SEMPRE no topo, nunca atrás de nada. z-index máximo (2^31-1) pra vencer
     bottom-nav (100001), modais (100002), sino/heroBell (máximo) e qualquer overlay.
     Toast é mensagem do sistema sobre a ação que o usuário acabou de tentar → tem que
     ser visível mesmo com overlay aberto. Centralizado na viewport pra ser inequívoco
     em mobile. O #toast é filho direto do <body> (sem trap de containing-block).
     !important pra blindar contra overrides legados. */
  z-index: 2147483647 !important;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  max-width: min(400px, calc(100vw - 32px));
  font-weight: 500;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.toast.error { background: #e53e3e; }
.toast.success { background: #38a169; }
.toast.warning { background: #ed8936; }
.toast.profile-access { background: #e53e3e; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

footer p {
  margin: 0;
}

footer nav.footer-links {
  margin-top: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  background: transparent;
  box-shadow: none;
  position: static;
  top: auto;
  z-index: auto;
}

footer nav.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

footer nav.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   WV SPINNER GLOBAL — BOTÕES E INLINE
   ============================================ */

/* Spinner dentro de botões (usa a cor atual do texto via currentColor) */
.wv-btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 2px;
}

/* Container do loading inline (ex: confirmação de contrato) */
.wv-aviso-aguarde {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #eaf4ff;
  border: 1px solid #b3d4f5;
  border-radius: 8px;
  color: #1a5f9e;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

.wv-aviso-aguarde.visible {
  display: flex;
}

.wv-aviso-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(22, 117, 184, 0.25);
  border-top-color: #1675b8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* Loading state para listas/cards aguardando dados */
.wv-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: #64748b;
  font-size: 0.9rem;
}

.wv-loading-state-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(22, 117, 184, 0.2);
  border-top-color: #1675b8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
  html,
  body {
    overscroll-behavior-y: none;
  }

  body {
    overflow-x: hidden;
  }

  body > header {
    position: static;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--wv-mobile-header-height);
    z-index: 1100;
  }

  body {
    padding-top: var(--wv-mobile-header-height);
    padding-bottom: calc(var(--wv-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .navbar {
    max-width: none;
    height: var(--wv-mobile-header-height);
    padding: 6px 10px 6px 6px;
    position: relative;
    justify-content: flex-start;
  }

  .logo-text {
    position: absolute;
    left: auto;
    right: 10px;
    transform: none;
    font-size: 1.32rem;
    text-align: right;
    z-index: 1;
  }

  /* Símbolo SVG mobile — herda em-based do desktop (escala com o texto). */


  .nav-buttons {
    display: none;
  }


  .wv-main-content {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }


  .wv-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: calc(var(--wv-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border-top: 1px solid #dddfe2;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(0);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100001;
  }

  .wv-bottom-nav.is-hidden {
    transform: translateY(105%);
  }

  body.wv-mobile-keyboard-open .wv-bottom-nav {
    transform: translateY(105%);
  }

  .wv-bottom-nav-item {
    position: relative;
    min-height: 44px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 0;
    background: transparent;
    color: #1c1e21;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.15s ease;
  }

  /* Barra azul no topo do item (estilo Facebook) — invisível por padrão. */
  .wv-bottom-nav-item::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 0 0 3px 3px;
    transition: background 0.15s ease;
  }

  .wv-bottom-nav-item:active {
    transform: scale(0.98);
  }

  .wv-bottom-nav-item {
    -webkit-tap-highlight-color: transparent;
  }
  .wv-bottom-nav-item:focus,
  .wv-bottom-nav-item:focus-visible {
    outline: none;
  }
  .wv-bottom-nav-item.is-active {
    color: #f59e0b;
  }

  .wv-bottom-nav-item.is-active::before {
    background: #f59e0b;
  }

  /* FAB ativo (modo criar anúncio): muda gradiente pra laranja */
  .wv-bottom-nav-item-fab.is-active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.42) !important;
  }
  .wv-bottom-nav-item-fab.is-active::before {
    display: none !important;
  }

  .wv-bottom-nav-item-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto 2px;
  }

  .wv-bottom-nav-item-label {
    display: block;
    text-align: center;
  }

  /* Sino de notificações no header (mobile-only, fixed top-right) */
  .hero-bell-mobile {
    display: none;
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--primary-color, #1675b8);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  body.wv-mobile-header-hidden .hero-bell-mobile {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 20px));
    opacity: 0;
    pointer-events: none;
  }
  .hero-bell-mobile {
    display: inline-flex !important;
  }
  .hero-bell-panel.open {
    display: block !important;
  }
  .hero-bell-mobile:active {
    background: rgba(22, 117, 184, 0.08);
    transform: scale(0.94);
  }
  .hero-bell-mobile svg {
    width: 22px;
    height: 22px;
  }
  .hero-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
  }
  .hero-bell-panel {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 60px);
    right: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    padding: 8px;
    min-width: 280px;
    max-width: calc(100vw - 28px);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1300;
  }
  .hero-bell-panel.open {
    display: block;
  }
  .hero-bell-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
  }
  .hero-bell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.12s ease;
  }
  .hero-bell-item:hover,
  .hero-bell-item:focus {
    background: #f1f5f9;
  }
  .hero-bell-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  .hero-bell-item-conteudo {
    flex: 1;
    min-width: 0;
  }
  .hero-bell-item-titulo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin: 0 0 2px;
    line-height: 1.25;
  }
  .hero-bell-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    margin: 0;
    line-height: 1.3;
  }
  .hero-bell-item-chevron {
    color: var(--text-secondary, #64748b);
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  /* Avatar no bottom-nav (substitui Mensagens quando logado) */
  .wv-bottom-nav-item-avatar .wv-bottom-nav-avatar-slot {
    display: inline-flex;
    /* Casa com o FAB central (56px, sobe -22px pra fora da barra) — avatar e botão
       do meio ficam simétricos, "pulando" acima do rodapé. */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dceefe;
    color: #0b4b76;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
    margin-top: -22px;
    margin-bottom: 0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  }
  .wv-bottom-nav-item-avatar .wv-bottom-nav-avatar-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  .wv-bottom-nav-item-avatar .wv-bottom-nav-avatar-slot span {
    display: inline-block;
    line-height: 1;
  }

  /* Indicador de disponibilidade (anel verde/vermelho com glow) ao redor
     do avatar — header mobile e bottom-nav. data-disponibilidade é setado
     pelo nav-header.js (lido do localStorage) ou pelo perfil do prestador. */
  #heroAvatarMobile[data-disponibilidade="disponivel"] {
    box-shadow:
      0 0 0 3px #16a34a,
      0 0 14px rgba(22, 163, 74, 0.55),
      0 2px 8px rgba(15, 23, 42, 0.12);
  }
  #heroAvatarMobile[data-disponibilidade="ocupado"] {
    box-shadow:
      0 0 0 3px #dc2626,
      0 0 14px rgba(220, 38, 38, 0.55),
      0 2px 8px rgba(15, 23, 42, 0.12);
  }
  #wvBottomNav .wv-bottom-nav-item-avatar[data-disponibilidade="disponivel"] .wv-bottom-nav-avatar-slot {
    box-shadow:
      0 0 0 3px #16a34a,
      0 0 12px rgba(22, 163, 74, 0.55);
  }
  #wvBottomNav .wv-bottom-nav-item-avatar[data-disponibilidade="ocupado"] .wv-bottom-nav-avatar-slot {
    box-shadow:
      0 0 0 3px #dc2626,
      0 0 12px rgba(220, 38, 38, 0.55);
  }

  /* Dropdown do avatar abre acima do bottom-nav (não no header) */
  .hero-avatar-dropdown {
    top: auto !important;
    bottom: calc(var(--wv-mobile-bottom-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 8px);
    right: 14px !important;
    z-index: 99999;
    min-width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 8px rgba(15, 23, 42, 0.04);
  }
  /* Trava o scroll do dashboard enquanto o menu do avatar está aberto (mobile). */
  body.wv-avatar-menu-open {
    overflow: hidden;
  }
  .hero-avatar-dropdown-perfil {
    padding: 12px 14px 10px;
  }
  .hero-avatar-dropdown-nome {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #1a202c);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-avatar-dropdown-tipo {
    margin: 2px 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--primary-color, #1675b8);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .hero-avatar-dropdown-nick {
    margin: 3px 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-avatar-dropdown-header {
    margin-top: 4px;
    padding: 13px 14px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
  }
  .hero-avatar-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 4px 0;
    border: 0;
  }
  .hero-avatar-dropdown a,
  .hero-avatar-dropdown button {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .hero-avatar-dropdown a:hover,
  .hero-avatar-dropdown button:hover,
  .hero-avatar-dropdown a:focus-visible,
  .hero-avatar-dropdown button:focus-visible,
  .hero-avatar-dropdown a:active,
  .hero-avatar-dropdown button:active {
    background: rgba(22, 117, 184, 0.10);
    color: var(--primary-color, #1675b8);
    box-shadow: inset 3px 0 0 var(--primary-color, #1675b8);
  }
  /* Item destrutivo (Sair) usa tom de alerta no estado pressionado */
  .hero-avatar-dropdown button.is-danger:hover,
  .hero-avatar-dropdown button.is-danger:focus-visible,
  .hero-avatar-dropdown button.is-danger:active {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    box-shadow: inset 3px 0 0 #dc2626;
  }

  /* FAB central — botão circular destacado pra ação primária (Novo anúncio).
     Pula visualmente acima da bottom-nav. */
  .wv-bottom-nav-item-fab {
    position: relative;
    width: 56px;
    height: 56px;
    margin: -22px 6px 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #1675b8) 0%, #0d5a8f 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(22, 117, 184, 0.42);
    flex: 0 0 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
  }
  .wv-bottom-nav-item-fab .wv-bottom-nav-item-icon {
    width: 26px;
    height: 26px;
  }
  .wv-bottom-nav-item-fab .wv-bottom-nav-item-label {
    display: none;
  }
  .wv-bottom-nav-item-fab:active {
    transform: scale(0.94);
  }
  .wv-bottom-nav-item-fab::before {
    display: none !important;
  }

  .btn {
    font-size: 0.88rem;
    padding: 10px 13px;
    min-height: 42px;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .logo-text {
    font-size: 1.65rem;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body {
    background-image: linear-gradient(180deg, #f7fafc 0%, #eef4fb 100%);
  }

  .content-card,
  .filters-section,
  .profile-sidebar,
  .balance-container,
  .history-item,
  .tracking-item,
  .card,
  .solicitacoes-header-pack,
  .support-alert-card,
  .workville-message-item,
  .workville-thread-item {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #d9e3ef;
    background-clip: padding-box;
  }

  .input-field,
  .form-field,
  select,
  textarea {
    border-radius: var(--radius-md);
  }

  .modal-content,
  .card-tipo-conta,
  .cancel-modal-box,
  .contract-modal-box {
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  }


  /* Footer escondido em TODAS as páginas mobile (links principais agora no menu sanduíche) */
  body > footer,
  footer.footer-links,
  body footer:not(.wv-app-footer) {
    display: none !important;
  }

  /* ============================================
     HEADER MOBILE PADRÃO (sandwich preto + logo direita)
     Aplica em páginas SEM .wv-app-shell e SEM .wv-header-minimal
     (perfil_usuario / perfil_profissional / login têm tratamento próprio)
     ============================================ */
  body:not(.wv-header-minimal) > header {
    background: transparent !important;
    border-bottom: none !important;
  }
  body:not(.wv-header-minimal) > header .navbar,
  body:not(.wv-header-minimal) > header > nav > .navbar {
    position: relative !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 6px 14px !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  /* Esconde botões originais e logo do header — substituídos por sandwich + heroBrandMobile */
  body:not(.wv-header-minimal) > header .nav-buttons,
  body:not(.wv-header-minimal) > header .logo-text {
    display: none !important;
  }


  /* Páginas legais (faq, termos, lgpd, privacidade, política de cancelamento)
     com body.wv-min-header-back: header igual ao dashboard (mesma altura,
     fundo branco, logo na esquerda). Bottom-nav já cuida da navegação. */
  /* Só o nav (que é position:fixed) tem altura visível.
     O <header> em flow fica height:0 pra não criar "tira" duplicada. */
  body.wv-min-header-back > header {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.wv-min-header-back > header > nav {
    height: calc(env(safe-area-inset-top, 0px) + 64px) !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1100 !important;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* Auto-hide on scroll (sincroniza com bottom-nav, sino e logo do dashboard) */
  body.wv-min-header-back.wv-mobile-header-hidden > header,
  body.wv-min-header-back.wv-mobile-header-hidden > header > nav {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
  }
  body.wv-min-header-back.wv-mobile-header-hidden > header .logo-text {
    transform: translateY(calc(-50% - 100% - env(safe-area-inset-top, 0px) - 20px));
    opacity: 0;
    pointer-events: none;
  }
  body.wv-min-header-back > header .navbar {
    height: 64px !important;
    min-height: 64px !important;
    margin-top: env(safe-area-inset-top, 0px);
    justify-content: flex-start !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  /* Logo posicionada fixed igual ao .hero-brand-mobile do dashboard
     (top: env+30 com transform translateY(-50%) — alinhamento idêntico) */
  body.wv-min-header-back > header .logo-text {
    display: inline-flex !important;
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 30px) !important;
    left: 14px !important;
    right: auto !important;
    transform: translateY(-50%);
    text-align: left !important;
    font-size: 1.85rem !important;
    z-index: 1200;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }
  body.wv-min-header-back #navVoltarPainel {
    display: none !important;
  }
  /* Body padding-top do shared.css é 56px; precisa ser 64px+safe-area pra
     compensar o header novo, igual ao dashboard. */
  body.wv-min-header-back {
    padding-top: calc(env(safe-area-inset-top, 0px) + 64px) !important;
    background: #ffffff;
  }
  /* Páginas legais: mesma estrutura do desktop (hero + content) com escala
     reduzida no mobile. Mantém título, subtítulo e "última atualização",
     mas remove o gradient near-white que criava "tira" visível com o body. */
  body.wv-min-header-back .policy-hero {
    padding: var(--spacing-lg) var(--spacing-md) !important;
    background: #ffffff !important;
    border-bottom: none !important;
  }
  body.wv-min-header-back .policy-hero h1 {
    font-size: 1.4rem !important;
  }
  body.wv-min-header-back .policy-hero p {
    font-size: 0.9rem !important;
  }
  body.wv-min-header-back .policy-content {
    padding: var(--spacing-lg) var(--spacing-md) !important;
  }

  /* Logo Workville pequena no canto esquerdo do header (injetada via JS) */
  .hero-brand-mobile {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.1em;
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 30px);
    left: 14px;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    /* z-index alinhado com .hero-bell-mobile (1300) pra ficar acima de
       modais grandes (Solicitar Serviço/Pré-Contrato usam 1100). */
    z-index: 1300;
    white-space: nowrap;
    text-decoration: none;
    text-transform: lowercase;
  }

  /* Avatar do usuário no canto direito do header mobile (injetado via JS quando logado) */
  .hero-avatar-mobile {
    display: none; /* visível só quando JS marca data-logged="true" */
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 30px);
    right: 14px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dceefe;
    color: #0b4b76;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 110;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }
  /* Avatar do header DESATIVADO — agora vive no bottom-nav.
     Mantém data-logged pra syncHeroAvatarMobile continuar populando o conteúdo
     (fonte do clone pro slot do bottom-nav), mas não exibe visualmente. */
  .hero-avatar-mobile[data-logged="true"] {
    display: none !important;
  }
  .hero-avatar-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  body.wv-mobile-header-hidden .hero-avatar-mobile {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 20px));
    opacity: 0;
    pointer-events: none;
  }

  .hero-avatar-dropdown {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    right: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    padding: 6px;
    min-width: 160px;
    z-index: 99999;
  }
  .hero-avatar-dropdown.open {
    display: block !important;
  }
  .hero-avatar-dropdown a,
  .hero-avatar-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    color: #1a202c;
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
  }
  .hero-avatar-dropdown a:hover,
  .hero-avatar-dropdown a:focus,
  .hero-avatar-dropdown button:hover,
  .hero-avatar-dropdown button:focus {
    background: #f1f5f9;
  }
  .hero-avatar-dropdown button.is-danger {
    color: #c53030;
  }
  .hero-brand-mobile::before {
    content: '';
    display: inline-block;
    width: 0.92em;
    height: 0.92em;
    background: url('/img/logo-workville.svg') center / contain no-repeat;
    flex-shrink: 0;
    transform: translateY(0.08em);
  }
  .hero-brand-mobile::after {
    content: none;
  }

  /* Auto-hide on scroll do header mobile (sincroniza com bottom-nav).
     body.wv-mobile-header-hidden é toggleado pelo nav-header.js em handleBottomNavScroll. */
  .hero-brand-mobile {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  }
  body.wv-mobile-header-hidden .hero-brand-mobile {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 20px));
    opacity: 0;
    pointer-events: none;
  }

}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group--half {
    margin-bottom: var(--spacing-lg);
  }
}

/* ============================================
   OVERLAY TIPO DE CONTA / LOGIN
   ============================================ */
.overlay-tipo-conta {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.overlay-tipo-conta.active {
  display: flex;
}
.card-tipo-conta {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 40px 32px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.card-tipo-conta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.card-tipo-conta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.6;
}
.card-tipo-opcoes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-tipo-opcao {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

/* ============================================
   TOUR GUIADO WORKVILLE
   ============================================ */
.btn.btn-tour-start {
  border: 1px solid #e28519;
  background: linear-gradient(135deg, #f59e0b 0%, #ea7a11 100%);
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(234, 122, 17, 0.28);
}

.btn.btn-tour-start:hover:not(:disabled) {
  border-color: #c86b0f;
  background: linear-gradient(135deg, #e68d04 0%, #cf6909 100%);
  box-shadow: 0 10px 20px rgba(207, 105, 9, 0.32);
}

.btn.btn-tour-start:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 7px 14px rgba(207, 105, 9, 0.28);
}

.btn.btn-tour-start:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.26);
  outline-offset: 2px;
}

.wv-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 14000;
  background: rgba(10, 30, 52, 0.3);
}

.wv-tour-highlight {
  position: fixed;
  z-index: 14001;
  border-radius: 10px;
  border: 2px solid rgba(166, 222, 255, 1);
  box-shadow: 0 0 0 9999px rgba(10, 30, 52, 0.21), 0 0 0 8px rgba(229, 246, 255, 0.96), 0 14px 30px rgba(42, 140, 207, 0.22);
  pointer-events: none;
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.wv-tour-tooltip {
  position: fixed;
  z-index: 14002;
  width: min(420px, calc(100vw - 20px));
  border-radius: 10px;
  border: 1px solid #d7e1ee;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  padding: 14px 14px 12px;
  display: grid;
  gap: 10px;
}

.wv-tour-head {
  display: grid;
  gap: 4px;
}

.wv-tour-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wv-tour-counter {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.wv-tour-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dbe4f0;
  background: #f8fbff;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wv-tour-close:hover {
  background: #eef5ff;
  border-color: #c8d9ec;
  color: #1f2937;
}

.wv-tour-close:focus-visible {
  outline: 2px solid rgba(22, 117, 184, 0.3);
  outline-offset: 1px;
}

.wv-tour-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  color: #1f2937;
}

.wv-tour-text {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wv-tour-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wv-tour-actions .btn {
  min-width: 90px;
}

.wv-tour-btn-skip {
  margin-right: auto;
}
.card-tipo-opcao:hover {
  border-color: var(--primary-color);
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-tipo-opcao .opcao-icone {
  font-size: 2rem;
  flex-shrink: 0;
}
.card-tipo-opcao .opcao-info {
  text-align: left;
}
.card-tipo-opcao .opcao-info strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.card-tipo-opcao .opcao-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.card-tipo-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.card-tipo-fechar:hover {
  background: #f1f5f9;
  color: #111827;
  box-shadow: none;
}

body.support-assistant-open {
  overflow: hidden;
}

.support-assistant-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  /* Acima da bottom-nav (100001) e do header fixo (1300) do mobile — senão o modal
     abre ATRÁS da cromo e "não aparece" no celular (no desktop, sem nav, 1200 bastava). */
  z-index: 100002;
  overflow-y: auto;
}

.support-assistant-overlay.active {
  display: flex;
}

.support-assistant-dialog {
  width: min(100%, 520px);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  /* Sem cap de altura: o diálogo cresce na altura natural do conteúdo e quem rola
     é o OVERLAY (uma rolagem só, sem scroll interno no card). */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.support-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6fd 100%);
  border-bottom: 1px solid var(--border-color);
}

.support-assistant-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.support-assistant-head h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text-primary);
}

.support-assistant-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.support-assistant-body {
  display: grid;
  /* todas as linhas em altura natural (sem a linha 1fr que criava o scroll interno) */
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  padding: 16px 20px 20px;
  min-height: 0;
}

.support-assistant-intro {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.support-assistant-chat {
  display: grid;
  gap: 10px;
  min-height: 0;
  /* sem scroll interno — o conteúdo expande e o overlay rola tudo */
  padding-right: 2px;
}

.support-assistant-response {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid #b7d4f1;
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(180deg, #f5faff 0%, #eef6ff 100%);
  box-shadow: 0 6px 18px rgba(22, 117, 184, 0.12);
}

.support-assistant-response::before {
  content: 'Sugestao gerada';
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f4f7d;
}

.support-assistant-bubble-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.support-assistant-options {
  display: grid;
  gap: 10px;
}

.support-assistant-freeform {
  display: grid;
  gap: 6px;
}

.support-assistant-freeform label {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
}

.support-assistant-freeform textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: #ffffff;
}

.support-assistant-freeform textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 117, 184, 0.12);
}

.support-assistant-counter {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.support-assistant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.support-assistant-option:hover {
  border-color: var(--primary-color);
  background: #f0f7ff;
}

.support-assistant-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.support-assistant-option span {
  font-size: 0.93rem;
  color: var(--text-primary);
}

.support-assistant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.support-assistant-escalation {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #bfd3ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f8fe 100%);
}

.support-assistant-escalation p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .support-assistant-overlay {
    padding: 14px;
  }

  .support-assistant-head,
  .support-assistant-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .support-assistant-head h2 {
    font-size: 1.1rem;
  }

  .support-assistant-actions {
    justify-content: stretch;
  }

  .support-assistant-actions .btn,
  .support-assistant-escalation .btn {
    width: 100%;
  }
}

/* =====================================================
   Composição de contrato (diárias originais + aditivos)
   Usado nos cards de solicitação do contratante e prestador.
   ===================================================== */
.diarias-breakdown {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  font-size: 0.85rem;
  color: #475569;
  max-width: 560px;
}

.diarias-breakdown-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7ea0;
  margin-bottom: 8px;
}

.diarias-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed #eef2f7;
}

.diarias-breakdown-row:last-child {
  border-bottom: none;
}

.diarias-breakdown-row .diarias-breakdown-label {
  color: #475569;
  font-weight: 500;
}

.diarias-breakdown-row .diarias-breakdown-value {
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.diarias-breakdown-status {
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
  font-size: 0.78rem;
}

.diarias-breakdown-row.is-aceito .diarias-breakdown-status {
  color: #15803d;
}

.diarias-breakdown-row.is-pendente .diarias-breakdown-status {
  color: #b45309;
}

.diarias-breakdown-row.is-recusado .diarias-breakdown-status {
  color: #b91c1c;
}

.diarias-breakdown-totais {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
}

.diarias-breakdown-totais .diarias-breakdown-row {
  border-bottom: none;
  padding: 3px 0;
}

.diarias-breakdown-totais .diarias-breakdown-total .diarias-breakdown-value {
  font-size: 0.92rem;
  color: #0f172a;
}

.diarias-breakdown-row.diarias-breakdown-liberado .diarias-breakdown-value {
  color: #15803d;
}

.diarias-breakdown-row.diarias-breakdown-pendente-valor .diarias-breakdown-value {
  color: #b45309;
}

.diarias-breakdown-pendente-extra {
  margin-top: 8px;
  padding: 6px 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #92400e;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 480px) {
  .diarias-breakdown-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .diarias-breakdown-row .diarias-breakdown-value {
    text-align: left;
  }
}

/* ============================================
   CHIP VITALÍCIO (👑 ouro) — ao lado do nome
   em cards de busca, perfil público e sidebar do prestador
   ============================================ */
.chip-vitalicio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  cursor: help;
}

.chip-vitalicio--label {
  width: auto;
  height: auto;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.chip-vitalicio--label::before {
  content: 'Vitalício';
  margin-left: 2px;
}

/* ============================================
   COROA NO AVATAR (desktop) / AO LADO DO NOME (mobile)
   - chip-vitalicio--no-avatar: absoluto no canto inf-direito do avatar
   - chip-vitalicio--ao-lado-nome: inline ao lado do nome (mobile)
   ============================================ */
.chip-vitalicio--no-avatar {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 28px;
  height: 28px;
  margin-left: 0;
  font-size: 0.85rem;
  border: 2px solid #fff;
  cursor: default;
  z-index: 2;
}
@media (max-width: 768px) {
  .chip-vitalicio--no-avatar { display: none !important; }
}
@media (min-width: 769px) {
  .chip-vitalicio--ao-lado-nome { display: none !important; }
  /* Esconde o badge 📷 sobreposto no avatar — desktop usa botão dedicado abaixo. */
  .layout .sidebar .avatar-foto-menu,
  .wv-sidebar .avatar-foto-menu { display: none !important; }
}

/* (Removido) Botão "📷 Editar fotos" e dropdown — substituído por links no
   menu lateral da sidebar (sem dropdown extra, melhor consistência com o
   tema dark). Ver section "Foto e capa" em perfil_profissional.html /
   perfil_usuario.html. */

/* ============================================
   Esconder bottom-nav fixo (mobile) quando há modal aberto.
   Evita que os botões do final do modal fiquem cobertos pelo nav.
   Adicionada via JS quando modal abre, removida ao fechar.
   ============================================ */
body.wv-mobile-bottom-nav-hidden #wvBottomNav,
body.wv-mobile-bottom-nav-hidden .wv-bottom-nav {
  display: none !important;
}

/* ============================================
   Modal aberto (mobile) → esconde header e bottom-nav fixos.
   Solução global via :has() — não precisa de JS em cada modal.
   Cobre todos os padrões de overlay usados na plataforma.
   ============================================ */
@media (max-width: 768px) {
  :is(
    body:has(.modal.active),
    body:has(.recusa-modal-overlay.active),
    body:has(.contract-modal-overlay.active),
    body:has(.cancel-modal-overlay.active),
    body:has(.feedback-ia-overlay.active),
    body:has(.support-assistant-overlay.active)
  ) :is(
    #wvBottomNav,
    .wv-bottom-nav,
    .wv-top-header,
    #mobileHeaderShell,
    .hero-brand-mobile,
    .hero-bell-mobile,
    .hero-avatar-mobile,
    .hero-bell-panel
  ) {
    display: none !important;
  }
}

/* ============================================================
   EMBED dos documentos legais (Termos de Uso / Política de
   Privacidade / LGPD / Política de Cancelamento) dentro do
   dashboard. Abertos como painel-iframe com ?embed=1 → o
   wv-doc-embed.js marca <html class="is-embed">. Aqui some o
   header/footer/hero próprios (o painel do dashboard já tem
   cabeçalho) e o conteúdo flui (auto-resize, sem scroll interno).
   Escopado por body.wv-min-header-back → NÃO afeta os outros
   embeds (mural/suporte não têm essa classe).
   ============================================================ */
/* Esconde TODA a chrome própria da página + a injetada pelo nav-header (header,
   footer, bottom-nav, menu mobile, avatar, backdrop) — qualquer filho direto do body
   que NÃO seja o conteúdo (main). Mata o "header/logo antigo rolando dentro do card". */
html.is-embed body.wv-min-header-back > :not(main) { display: none !important; }
html.is-embed body.wv-min-header-back .policy-hero { display: none !important; }
html.is-embed body.wv-min-header-back,
html.is-embed body.wv-min-header-back main {
  /* height auto: não inflar a altura reportada (senão sobra espaço no fim do card) */
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}
html.is-embed body.wv-min-header-back .policy-content {
  max-width: none;
  padding: 2px 10px 18px;
}

/* Doc legal / Sobre renderizado NATIVO no dashboard (sem iframe → scroll nativo
   no Capacitor, que não encadeia o scroll de iframe). Replica os ajustes do modo
   is-embed: esconde a hero própria do doc (o card-header do painel já traz o
   título) e deixa o padding enxuto. */
.wv-doc-nativo .policy-hero { display: none !important; }
.wv-doc-nativo main { padding: 0 !important; background: transparent !important; margin: 0 !important; }
.wv-doc-nativo .policy-content { max-width: none; padding: 2px 10px 18px; }

/* ============================================================================
   TRAVA DE ORIENTAÇÃO NA WEB (portrait-only)
   O app nativo (Capacitor) já trava em retrato pelo manifest/plist, e a PWA
   INSTALADA no Android respeita o "orientation":"portrait" do manifest.json.
   Mas o NAVEGADOR comum e o iOS/Safari IGNORAM isso — não dá pra travar a
   rotação de uma aba de verdade. Então, quando um CELULAR está DEITADO, cobrimos
   a tela pedindo pra girar, em vez de deixar cair no layout desktop.

   Disparo: landscape + altura baixa (só celular; tablet/desktop têm altura
   maior) + ponteiro grosso (touch). Ao voltar pra vertical, some sozinho. */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  html, body { overflow: hidden !important; }
  body::after {
    content: "🔄\A\AVire para a vertical para melhor visualização do aplicativo.";
    white-space: pre-wrap;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: linear-gradient(160deg, #0f4c75 0%, #1675b8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
  }
}
