/* ===================================================
   EBPÓS RH — Identidade visual
   Tipografia: Fraunces (display) + Inter (body)
   Cores oficiais: dourado #C9A84C sobre preto #0A0A0B
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;450;500;600;700&display=swap');

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gold: #C9A84C;
  --gold-2: #E2C878;
  --gold-3: #A68A3E;
  --gold-soft: rgba(201, 168, 76, 0.12);

  --bg: #0A0A0B;
  --bg-2: #111113;
  --bg-3: #16161A;
  --bg-4: #1C1C21;
  --bg-5: #23232A;
  --line: #2A2A33;
  --line-strong: #3A3A45;
  --text: #F5F5F5;
  --text-2: #B8B8C0;
  --text-3: #8A8A94; /* 5:1 sobre os fundos escuros (WCAG AA para texto pequeno) */
  --line-input: #6B6B78; /* borda de campo: 3:1 sobre o fundo (WCAG 1.4.11) */

  --shadow-sm: 0 2px 6px rgba(0,0,0,.25);
  --shadow:    0 10px 30px rgba(0,0,0,.5);
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  color-scheme: dark;
}

html { color-scheme: dark; background: var(--bg); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}
h1 { font-weight: 800; letter-spacing: -.035em; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; letter-spacing: -.015em; }

.lucide { display: inline-block; vertical-align: middle; flex-shrink: 0; stroke: currentColor; }

/* ===== Layout ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,.45) 35%, rgba(226,200,120,.55) 50%, rgba(201,168,76,.45) 65%, transparent 95%);
  pointer-events: none;
  opacity: .7;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: opacity .2s ease;
  position: relative;
}
.brand img {
  height: 44px; width: auto; display: block;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease;
}
.brand:hover { opacity: .9; }
.brand:hover img { transform: scale(1.05); filter: drop-shadow(0 4px 14px rgba(201,168,76,.35)); }
.brand::after {
  content: '';
  position: absolute;
  inset: -8px -16px;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.18), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.brand:hover::after { opacity: 1; }

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .15px;
  border-radius: var(--radius-sm);
  transition: color .25s ease;
}
.nav a:hover { color: var(--text); background: transparent; }
.nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-2) 30%, var(--gold) 50%, var(--gold-2) 70%, transparent);
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.5,0,.3,1);
  pointer-events: none;
}
.nav a:hover::after,
.nav a.is-active::after { width: 70%; }
.nav a::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
  pointer-events: none;
}
.nav a:hover::before { opacity: .15; transform: translate(-50%, -50%) scale(8); }

.header-end {
  width: 42px; height: 1px; flex-shrink: 0;
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
  transition: all .2s ease;
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--gold); background: var(--bg-4); }
.hamburger-bars { position: relative; width: 18px; height: 14px; display: block; }
.hamburger-bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s cubic-bezier(.5,0,.5,1);
}
.hamburger-bars span:nth-child(1) { top: 0; }
.hamburger-bars span:nth-child(2) { top: 6px; }
.hamburger-bars span:nth-child(3) { top: 12px; }
.hamburger.open .hamburger-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); background: var(--gold); }
.hamburger.open .hamburger-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); background: var(--gold); }

@media (max-width: 820px) {
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 12px 0;
    min-height: 64px;
  }
  .hamburger {
    display: inline-flex;
    justify-self: start;
    position: relative; z-index: 210;
  }
  .brand { justify-self: center; }
  .brand img { height: 38px; }
  .brand::after { display: none; }
  .header-end { display: block; justify-self: end; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--bg);
    padding: 96px 28px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.5,0,.3,1);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(ellipse 700px 500px at 80% 0%, rgba(201,168,76,.18), transparent 60%),
      radial-gradient(ellipse 500px 500px at 0% 100%, rgba(201,168,76,.10), transparent 60%),
      var(--bg);
  }
  /* fechado = fora da tela E fora do Tab/leitor de tela */
  .nav:not(.open) { visibility: hidden; transition: transform .4s cubic-bezier(.5,0,.3,1), visibility 0s linear .4s; }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 20px 4px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
    font-family: var(--font-display);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    display: flex; align-items: center; justify-content: space-between;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .3s ease, transform .3s ease, color .15s ease, background .15s ease;
  }
  .nav.open a {
    opacity: 1;
    transform: translateX(0);
  }
  .nav.open a:nth-child(1) { transition-delay: .12s; }
  .nav.open a:nth-child(2) { transition-delay: .18s; }
  .nav.open a:nth-child(3) { transition-delay: .24s; }
  .nav.open a:nth-child(4) { transition-delay: .30s; }
  .nav.open a:nth-child(5) { transition-delay: .36s; }
  .nav a::after, .nav a::before { display: none; }
  .nav a::marker { content: ''; }
  .nav a:hover { background: transparent; color: var(--gold); padding-left: 8px; }
  .nav a:last-child { border-bottom: none; }
  body.nav-open { overflow: hidden; touch-action: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 80% 0%, rgba(201,168,76,.18), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(201,168,76,.08), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 700px 500px at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,.5)) drop-shadow(0 0 40px rgba(201,168,76,.18));
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  inset: 8% 8%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.32) 0%, rgba(201,168,76,.10) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes heroPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .hero-glow { animation: none; }
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  margin: 14px 0 22px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-2), var(--gold), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 720px; margin: 0 0 36px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-weight: 600; letter-spacing: 2.5px;
  font-size: 11px; text-transform: uppercase;
  font-family: var(--font-body);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ===== Botões com gradiente animado, shine e pulse ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
  text-decoration: none;
  position: relative; overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn .lucide { width: 16px; height: 16px; }

.btn-primary {
  color: #1a1407;
  background: linear-gradient(120deg, var(--gold-3) 0%, var(--gold) 35%, var(--gold-2) 50%, var(--gold) 65%, var(--gold-3) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 235, 180, .3);
  box-shadow:
    0 8px 22px rgba(201,168,76,.32),
    0 0 0 1px rgba(201,168,76,.15),
    inset 0 1px 0 rgba(255,255,255,.35);
  animation: btnGradient 9s ease-in-out infinite, btnPulse 3.6s ease-in-out infinite;
}
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 38%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.0) 70%, transparent 100%);
  transform: skewX(-22deg);
  animation: btnShine 4.2s cubic-bezier(.5,0,.5,1) infinite;
  pointer-events: none;
  z-index: 1;
}
.btn-primary > * { position: relative; z-index: 2; }
.btn-primary:hover {
  transform: translateY(-2px);
  color: #1a1407;
  box-shadow:
    0 14px 36px rgba(201,168,76,.55),
    0 0 0 1px rgba(201,168,76,.4),
    0 0 0 6px rgba(201,168,76,.10),
    inset 0 1px 0 rgba(255,255,255,.4);
  animation-duration: 4s, 1.6s;
}
.btn-primary:active { transform: translateY(0); }

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes btnPulse {
  0%, 100% {
    box-shadow:
      0 8px 22px rgba(201,168,76,.32),
      0 0 0 1px rgba(201,168,76,.15),
      inset 0 1px 0 rgba(255,255,255,.35);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(201,168,76,.5),
      0 0 0 1px rgba(201,168,76,.3),
      0 0 0 5px rgba(201,168,76,.07),
      inset 0 1px 0 rgba(255,255,255,.4);
  }
}
@keyframes btnShine {
  0%       { left: -60%; }
  55%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-primary::before { animation: none; }
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-sm .lucide { width: 14px; height: 14px; }

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 6px 18px rgba(220,38,38,.3);
}
.btn-danger:hover { box-shadow: 0 10px 24px rgba(220,38,38,.45); transform: translateY(-1px); color: #fff; }

.btn-icon { padding: 8px; min-width: 36px; }
.btn-icon .lucide { width: 16px; height: 16px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin: 12px 0 16px;
}
.section p.lead {
  color: var(--text-2);
  max-width: 760px;
  font-size: 17px;
}

/* ===== Grid + Cards ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 0 0 1px rgba(201,168,76,.2);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-family: var(--font-display);
  font-weight: 600;
}
.card p { color: var(--text-2); margin: 0; font-size: 14.5px; }

/* Square icon block — substitui o círculo dos cards */
.icon-block {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.icon-block.lg { width: 52px; height: 52px; }
.icon-block.lg .lucide { width: 24px; height: 24px; }

/* Numbered step (1,2,3,4) */
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #1a1407;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(201,168,76,.3), inset 0 1px 0 rgba(255,255,255,.4);
}

/* ===== Vaga card ===== */
.vaga-card {
  display: flex; flex-direction: column; height: 100%;
  position: relative;
}
.vaga-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.vaga-card h3 { font-size: 21px; margin-bottom: 6px; line-height: 1.2; }
.vaga-card .desc { color: var(--text-2); font-size: 14px; flex: 1; margin-bottom: 18px; }
.vaga-card .footer {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--gold); font-size: 13px; font-weight: 600;
}
.vaga-card .footer .lucide { width: 14px; height: 14px; transition: transform .2s ease; }
.vaga-card:hover .footer .lucide { transform: translateX(4px); }
.vaga-card .destaque {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #1a1407; padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

/* ===== Chips / Tags / Badges (quadrados, com radius pequeno) ===== */
.tag, .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--font-body);
}
.tag .lucide, .badge .lucide { width: 13px; height: 13px; opacity: .9; }
.tag-strong { background: var(--gold-soft); border-color: rgba(201,168,76,.4); color: var(--gold); font-weight: 600; }

.area-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  margin-bottom: 4px;
}
.area-pill .lucide { width: 14px; height: 14px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: var(--radius-sm);
}

/* ===== Vaga page ===== */
.vaga-hero {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  background-color: var(--bg-2);
  background-image: url('../img/vaga-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.vaga-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.35) 0%, rgba(10,10,11,.82) 100%),
    linear-gradient(135deg, rgba(201,168,76,.15) 0%, transparent 60%);
}
.vaga-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 600px 400px at 30% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.vaga-hero > .container { position: relative; z-index: 1; }
.vaga-hero .area-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.12); color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.vaga-hero .area-tag .lucide { width: 14px; height: 14px; }
.vaga-hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  margin: 0 0 14px;
}
.vaga-hero .tagline {
  font-size: 19px; color: var(--text-2); max-width: 720px;
  font-weight: 500; line-height: 1.5;
}
.vaga-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }

.vaga-body { padding: 70px 0; }
.vaga-body h2 { font-size: 24px; margin: 0 0 14px; }
.vaga-body .block { margin-bottom: 40px; }
.vaga-body .block-content {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  white-space: pre-line;
  color: var(--text-2);
  font-size: 15px; line-height: 1.7;
}

.cta-banner {
  background:
    radial-gradient(ellipse at top right, rgba(201,168,76,.18), transparent 60%),
    var(--bg-2);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 600px 300px at 50% 50%, #000 20%, transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h3 { font-size: 26px; margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; }
.cta-banner p { color: var(--text-2); margin: 0 0 22px; font-size: 16px; }

/* ===== Forms — agora bonitos ===== */
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .form-card { padding: 22px; } }

.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 700px) { .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: .2px;
  font-family: var(--font-body);
}
label .req { color: #ef4444; margin-left: 2px; }

input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
select, textarea {
  width: 100%;
  background-color: #16161A !important;
  color: #F5F5F5 !important;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
}

/* Mata o autofill amarelo/branco do Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #F5F5F5 !important;
  -webkit-box-shadow: 0 0 0 1000px #16161A inset !important;
  box-shadow: 0 0 0 1000px #16161A inset !important;
  caret-color: #F5F5F5;
  transition: background-color 9999s ease-in-out 0s;
}

/* Date picker indicator dourado */
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
  filter: invert(70%) sepia(45%) saturate(450%) hue-rotate(10deg) brightness(95%);
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }

input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: rgba(201,168,76,.5);
  background-color: #1C1C21 !important;
}
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: #1C1C21 !important;
  box-shadow: 0 0 0 4px rgba(201,168,76,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
/* Forca dark em todas as options nativas (Chrome/Firefox/Edge ignoram
 * a regra herdada do select se nao tiver !important). */
select option,
select optgroup {
  background-color: #16161A !important;
  color: #F5F5F5 !important;
}
select option:checked,
select option:hover {
  background-color: #1C1C21 !important;
  color: #F5F5F5 !important;
}

textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

input[type=file] {
  padding: 10px 12px;
  cursor: pointer;
}
input[type=file]::file-selector-button {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-right: 12px;
  font-family: inherit;
  font-weight: 600; font-size: 12.5px;
  cursor: pointer;
  transition: all .15s ease;
}
input[type=file]::file-selector-button:hover { background: rgba(201,168,76,.18); }

input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.help { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--text);
  margin: 36px 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title .step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #1a1407; font-size: 12px; font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 4px 10px rgba(201,168,76,.25), inset 0 1px 0 rgba(255,255,255,.4);
}

.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.checkbox-row:hover { border-color: rgba(201,168,76,.5); background: var(--bg-4); }
.checkbox-row label { margin: 0; cursor: pointer; font-weight: 500; font-size: 13.5px; color: var(--text); flex: 1; }

/* ===== Alerts ===== */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 16px;
  border: 1px solid; font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body);
}
.alert .lucide { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.4); color: #4ade80; }
.alert-error   { background: rgba(220,38,38,.1);  border-color: rgba(220,38,38,.4); color: #f87171; }
.alert-info    { background: rgba(201,168,76,.1); border-color: rgba(201,168,76,.4); color: var(--gold-2); }
/* Faltava: sem esta regra, `.alert` herda `border: 1px solid` sem cor (currentColor)
   e o aviso sai como uma caixa branca transparente. Já era usada no layout admin
   (bloco do Assistente RH) e nas validações do Pulso. */
.alert-warning { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.4); color: #fbbf24; }

.honest {
  background:
    linear-gradient(135deg, rgba(220,38,38,.04), transparent 70%),
    rgba(201,168,76,.05);
  border: 1px solid rgba(201,168,76,.3);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 32px 0;
  font-size: 15px; color: var(--text-2);
}
.honest strong { color: var(--gold); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  margin-top: 80px;
  color: var(--text-3); font-size: 13px;
}
.site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== Cultura blocks ===== */
.cultura-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 800px) { .cultura-grid { grid-template-columns: 1fr; } }
.cultura-item {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all .2s ease;
}
.cultura-item:hover { border-color: rgba(201,168,76,.4); transform: translateY(-2px); }
.cultura-item h4 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 17px;
  font-family: var(--font-display); font-weight: 600;
}
.cultura-item p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ===== Vídeo ===== */
.video-frame {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Grid de vídeos da home */
.videos-grid { display: grid; gap: 24px; }
.videos-one   { grid-template-columns: minmax(0, 880px); justify-content: center; }
.videos-two   { grid-template-columns: repeat(2, 1fr); }
.videos-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) {
  .videos-three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .videos-two, .videos-three { grid-template-columns: 1fr; }
}

.video-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.video-card:hover { border-color: rgba(201,168,76,.4); transform: translateY(-3px); }
.video-card .video-frame { box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.video-card .video-meta { padding: 16px 8px 6px; }
.video-card .video-meta h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin: 0 0 6px;
}
.video-card .video-meta p {
  color: var(--text-2); font-size: 14px; margin: 0;
}

/* ===== Form builder visual (Google Forms style) ===== */
.builder-info {
  display: flex; gap: 14px; align-items: center;
  background:
    linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,.04));
  border: 1px solid rgba(201,168,76,.3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px; color: var(--text-2);
  line-height: 1.55;
}
.builder-info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.builder-info strong { color: var(--text); }

.builder { position: relative; }

.builder-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.builder-item { position: relative; }
.builder-item.is-dragging { opacity: .35; }

.builder-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 14px 18px 8px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 6px;
  align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
}
.builder-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.builder-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

.builder-item.is-section .builder-card {
  background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,.02) 60%);
  border-color: rgba(201,168,76,.35);
  border-left: 3px solid var(--gold);
}
.builder-item.is-section .builder-label {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.builder-item.is-section .builder-tipo {
  color: var(--gold);
}

.drag-handle {
  display: flex; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center;
  width: 24px; height: 100%; min-height: 60px;
  cursor: grab;
  color: var(--text-3);
  opacity: 0; transition: opacity .15s ease;
  padding-top: 6px;
}
.builder-card:hover .drag-handle { opacity: .6; }
.drag-handle:hover { opacity: 1; color: var(--gold); }
.drag-handle:active { cursor: grabbing; }
.drag-handle .lucide { fill: currentColor; stroke-width: 0; }

.builder-card-main {
  min-width: 0;
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

.builder-card-head {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.builder-tipo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: var(--text-3);
}
.builder-tipo-select {
  width: auto !important;
  background: transparent !important;
  border: 1px dashed var(--line) !important;
  padding: 4px 26px 4px 10px !important;
  font-size: 12px !important;
  color: var(--text-2) !important;
  border-radius: var(--radius-sm) !important;
  background-position: right 8px center !important;
}
.builder-tipo-select:hover {
  border-style: solid !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.builder-label {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  padding: 6px 0 8px !important;
  letter-spacing: -.005em !important;
  font-family: var(--font-body);
  transition: border-color .15s ease, background .15s ease !important;
  box-shadow: none !important;
}
.builder-label:hover {
  border-bottom-color: var(--line-strong) !important;
}
.builder-label:focus {
  border-bottom-color: var(--gold) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.builder-preview { margin-top: 4px; }

.preview-fake {
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}
.preview-fake.textarea { min-height: 56px; }
.preview-fake.check {
  display: flex; align-items: center; gap: 10px;
  font-style: normal; color: var(--text-2);
}
.preview-fake.check .fake-cb {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg-3);
}
.preview-fake.file {
  display: flex; align-items: center; gap: 10px;
  font-style: normal;
  flex-wrap: wrap;
}
.preview-fake.file > .lucide { color: var(--gold); }
.file-hints {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3);
  margin-left: auto;
}
.file-hints input {
  background: var(--bg-3) !important;
  border: 1px solid var(--line) !important;
  padding: 3px 7px !important;
  font-size: 11px !important;
  border-radius: 4px !important;
  width: 110px !important;
  color: var(--text-2) !important;
}
.file-hints .file-max { width: 56px !important; }

.builder-options {
  display: flex; flex-direction: column; gap: 6px;
}
.opt-row {
  display: grid;
  grid-template-columns: 24px 1fr 32px;
  gap: 8px;
  align-items: center;
}
.opt-bullet {
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.opt-input {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 6px 4px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.opt-input:hover { border-bottom-color: var(--line-strong) !important; }
.opt-input:focus { border-bottom-color: var(--gold) !important; outline: none !important; box-shadow: none !important; background: transparent !important; }

.opt-remove {
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 6px;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.opt-remove:hover { background: rgba(239,68,68,.12); color: #ef4444; }
.opt-add {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  align-self: flex-start;
  transition: all .15s ease;
  font-family: inherit;
}
.opt-add:hover { border-color: var(--gold); color: var(--gold); border-style: solid; background: var(--gold-soft); }

.builder-card-toolbar {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 10px;
}
.builder-help {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--line) !important;
  border-radius: 0 !important;
  padding: 4px 0 6px !important;
  font-size: 12.5px !important;
  color: var(--text-2) !important;
  font-style: italic;
  box-shadow: none !important;
}
.builder-help:focus {
  border-bottom-color: var(--gold) !important;
  border-bottom-style: solid !important;
  outline: none !important;
  box-shadow: none !important;
}
.toolbar-controls {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}

.width-toggle {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.width-opt {
  background: transparent;
  border: 0;
  color: var(--text-3);
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s ease;
  font-family: inherit;
  min-width: 40px;
}
.width-opt:hover { color: var(--text); }
.width-opt.is-active {
  background: var(--gold);
  color: #1a1407;
  box-shadow: 0 2px 6px rgba(201,168,76,.3);
}

.req-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  user-select: none;
}
.req-toggle input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

.builder-card-actions {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
.card-action {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: all .15s ease;
  opacity: 0;
}
.builder-card:hover .card-action { opacity: .8; }
.card-action:hover { opacity: 1 !important; background: var(--bg-3); color: var(--gold); }
.card-action.danger:hover { background: rgba(239,68,68,.12); color: #ef4444; }

/* Botão "+ Adicionar item" entre cards */
.add-between-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-3);
  padding: 6px 14px;
  margin: 0;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color .2s ease;
  height: 22px;
  opacity: 0;
}
.add-between-btn::before, .add-between-btn::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transition: opacity .2s ease;
  opacity: 0;
}
.builder-item:hover > .add-between-btn,
.add-between-btn.first,
.add-between-btn:hover,
.add-between-btn:focus {
  opacity: 1;
}
.add-between-btn:hover { color: var(--gold); }
.add-between-btn:hover::before, .add-between-btn:hover::after {
  opacity: 1;
}
.add-between-btn.first {
  margin-bottom: 8px;
}
.add-between-btn span {
  background: var(--bg);
  padding: 0 10px;
}
.add-between-btn .lucide {
  width: 14px; height: 14px;
}

/* Espaçamento maior antes de uma section */
.builder-item.is-section { margin-top: 14px; }
.builder-item:first-child.is-section { margin-top: 0; }

/* ============ Type picker (popover) ============ */
.type-picker {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  min-width: 320px;
  max-width: 480px;
  transform: translate(-50%, 0) scale(.95);
  opacity: 0;
  transition: opacity .18s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.type-picker.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}
.type-picker-arrow {
  position: absolute;
  top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.type-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 480px) { .type-picker-grid { grid-template-columns: repeat(2, 1fr); } }
.type-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  font-family: inherit;
}
.type-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  transform: translateY(-1px);
}
.type-chip-icon {
  width: 28px; height: 28px;
  background: rgba(201,168,76,.12);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============ Empty state ============ */
.builder-empty {
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse 600px 300px at center, rgba(201,168,76,.08), transparent 70%),
    var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  margin-top: 18px;
}
.builder-empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  display: grid; place-items: center;
}
.builder-empty h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin: 0 0 8px;
}
.builder-empty p { color: var(--text-2); margin: 0; font-size: 14.5px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ============ Toast ============ */
.builder-toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-2);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500;
  z-index: 999;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 4px rgba(201,168,76,.12);
  pointer-events: none;
}
.builder-toast.is-error {
  border-color: #ef4444;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 4px rgba(239,68,68,.15);
}
.builder-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Responsivo ============ */
@media (max-width: 720px) {
  .builder-card {
    grid-template-columns: 22px 1fr;
    padding: 14px 10px 14px 4px;
  }
  .builder-card-actions {
    grid-column: 2 / -1;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 4px;
  }
  .builder-card-actions .card-action { opacity: .6; }
  .toolbar-controls { gap: 10px; }
  .preview-fake.file { font-size: 12px; }
  .file-hints { width: 100%; margin-left: 0; margin-top: 6px; }
}

/* Remove o estilo antigo .campo-item, .campo-handle etc — mantém compat se usarem */
.campos-list { display: none; }

/* ===== Form builder (admin) + campos dinâmicos (público) ===== */
.field-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  grid-template-columns: 1fr;
}
.field-row:has(.field-col-half + .field-col-half) { grid-template-columns: 1fr 1fr; }
.field-row:has(.field-col-third + .field-col-third + .field-col-third) { grid-template-columns: 1fr 1fr 1fr; }
.field-row:has(.field-col-half + .field-col-third),
.field-row:has(.field-col-third + .field-col-half) { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr !important; } }
/* Campo condicional (ex.: e-mail de quem indicou): o atributo `hidden` sozinho
   não esconde porque `.field-row{display:grid}` vence `[hidden]{display:none}`
   da UA. Sem isto, o campo aparece sempre — inclusive o "*" — mesmo sem o JS
   (ou antes de escolher Indicação em "Como nos conheceu?"). */
.field-row[hidden] { display: none; }

.field-col-full, .field-col-half, .field-col-third {
  display: flex; flex-direction: column;
  min-width: 0;
}

.field-section {
  margin: 32px 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.field-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.field-section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: -.015em;
  margin: 0 0 4px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.field-section-title::before {
  content: '';
  width: 4px; height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
}
.field-section-desc {
  margin: 0;
  font-size: 13.5px; color: var(--text-3);
  padding-left: 14px;
}

/* Radio cards */
.radio-group {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.radio-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex; align-items: center; gap: 10px;
}
.radio-card:hover { border-color: rgba(201,168,76,.5); background: var(--bg-4); }
.radio-card input[type=radio] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.radio-card input[type=radio]:checked ~ .radio-card-label { color: var(--gold); font-weight: 600; }
.radio-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.radio-card-label { font-size: 14px; color: var(--text); }

/* Lista de campos no admin builder */
.campos-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.campo-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: border-color .15s ease, transform .15s ease;
}
.campo-item:hover { border-color: rgba(201,168,76,.4); }
.campo-item.is-section {
  background: linear-gradient(135deg, rgba(201,168,76,.08), transparent 70%);
  border-color: rgba(201,168,76,.3);
}
.campo-item.is-editing {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.18);
}

.campo-handle {
  display: flex; flex-direction: column; gap: 2px;
  flex-shrink: 0;
}
.btn-mini {
  width: 28px; height: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  padding: 0;
  transition: all .15s ease;
}
.btn-mini:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.btn-mini:disabled { opacity: .35; cursor: not-allowed; }

.campo-info { min-width: 0; }
.campo-tipo {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
  margin-bottom: 4px;
}
.campo-label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  word-break: break-word;
}
.campo-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.campo-help {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}
.campo-actions {
  display: flex; gap: 6px;
  flex-shrink: 0;
}
.campo-actions form { display: inline; }

@media (max-width: 600px) {
  .campo-item { grid-template-columns: auto 1fr; }
  .campo-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ===== Email gate (candidatar.php) ===== */
.email-gate {
  text-align: center;
  padding: 14px 8px 22px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.email-gate-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.email-gate-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.email-gate-desc {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 auto 22px;
  max-width: 460px;
}
.email-gate-row {
  display: flex; gap: 10px;
  max-width: 520px; margin: 0 auto;
}
.email-gate-row input[type=email] {
  flex: 1;
  font-size: 16px;
  padding: 14px 16px;
}
.email-gate-row .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .email-gate-row { flex-direction: column; }
  .email-gate-row .btn { width: 100%; }
}
.email-gate-row + .help { text-align: center; margin-top: 10px; }
.email-gate-row + .help kbd {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 11px; font-family: ui-monospace, monospace;
  color: var(--text-2);
}

.email-gate-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 14px;
  text-align: left;
  max-width: 600px;
}
.email-gate-status.is-success { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.4); color: #4ade80; }
.email-gate-status.is-error   { background: rgba(220,38,38,.08);  border-color: rgba(220,38,38,.4); color: #f87171; }
.email-gate-status.is-info    { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.4); color: var(--gold-2); }
.email-gate-status.is-loading { background: var(--bg-3); border-color: var(--line); color: var(--text-2); }
.email-gate-status .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#formRest { animation: revealRest .4s ease both; }
#formRest[hidden] { display: none; }
@keyframes revealRest {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Upload drag & drop zone ===== */
.upload-zone {
  position: relative;
  border: 2px dashed var(--line-strong);
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  display: block;
}
.upload-zone:hover {
  border-color: var(--gold);
  background: var(--bg-4);
}
.upload-zone.drag-over {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(201,168,76,.08);
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(201,168,76,.15);
}
.upload-zone.has-file {
  border-color: rgba(34,197,94,.5);
  border-style: solid;
  background: rgba(34,197,94,.04);
}
.upload-zone input[type=file] {
  position: absolute !important;
  inset: 0;
  width: 100% !important; height: 100% !important;
  opacity: 0;
  cursor: pointer;
  padding: 0 !important; margin: 0;
  border: 0 !important;
  background: transparent !important;
}
.upload-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.upload-zone:hover .upload-icon,
.upload-zone.drag-over .upload-icon { transform: translateY(-3px) scale(1.04); }
.upload-zone.has-file .upload-icon {
  background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(34,197,94,.05));
  border-color: rgba(34,197,94,.45);
  color: #4ade80;
}
.upload-text {
  font-family: var(--font-body);
  font-size: 14.5px; color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
}
.upload-text .text-gold { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.upload-hint { font-size: 12.5px; color: var(--text-3); margin: 0; }
.upload-filename {
  display: none;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--text);
  font-weight: 600;
  align-items: center; justify-content: center; gap: 10px;
}
.upload-filename.has-file { display: flex; }
.upload-filename .lucide { color: #4ade80; flex-shrink: 0; }
.upload-remove {
  background: rgba(239,68,68,.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.upload-remove:hover { background: rgba(239,68,68,.2); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 24px 16px 24px;
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .35s cubic-bezier(.5,0,.3,1);
}
.admin-sidebar .brand { margin: 0 4px 28px; display: inline-flex; align-self: center; padding: 4px; }
.admin-sidebar .brand img { height: 42px; transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease; }
.admin-sidebar .brand:hover img { transform: scale(1.05); filter: drop-shadow(0 4px 14px rgba(201,168,76,.35)); }
.brand-icon-only { gap: 0 !important; }
.brand-icon-only .brand-text { display: none !important; }
.login-card .brand img { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.login-card .brand:hover img { transform: scale(1.06); }

/* ==== Topbar e hamburger admin (mobile-only) ==== */
.admin-topbar {
  display: none;
  position: sticky; top: 0; z-index: 90;
  align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  min-height: 60px;
}
.admin-topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,.4) 50%, transparent 95%);
  opacity: .6; pointer-events: none;
}
.admin-topbar .brand img { height: 36px; }
.admin-topbar-end {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.admin-topbar-end:hover { color: #ef4444; border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.08); }

.admin-hamburger {
  background: var(--bg-3);
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all .2s ease;
  flex-shrink: 0;
}
.admin-hamburger:hover { border-color: var(--gold); background: var(--bg-4); }
.admin-hamburger.is-open { border-color: var(--gold); background: var(--gold-soft); }

/* Backdrop sob a sidebar quando aberta no mobile */
.admin-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  transition: opacity .3s ease;
}
.admin-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* ==== Mobile (≤900px): sidebar off-canvas ==== */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }

  .admin-topbar { display: flex; }

  .admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 280px;
    height: 100vh; height: 100dvh;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0,0,0,.4);
    border-right: 1px solid var(--gold);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 22px;
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar.is-open::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: -1px; width: 1px;
    background: linear-gradient(180deg, transparent 5%, rgba(201,168,76,.5) 50%, transparent 95%);
    pointer-events: none;
  }
  .admin-sidebar .brand { display: flex; }

  body.admin-nav-open { overflow: hidden; touch-action: none; }

  /* Stagger nos itens do menu ao abrir */
  .admin-sidebar.is-open .menu a,
  .admin-sidebar.is-open .menu .menu-section {
    animation: adminMenuItemIn .4s cubic-bezier(.34,1.56,.64,1) both;
  }
  .admin-sidebar.is-open .menu > *:nth-child(1)  { animation-delay: .04s; }
  .admin-sidebar.is-open .menu > *:nth-child(2)  { animation-delay: .07s; }
  .admin-sidebar.is-open .menu > *:nth-child(3)  { animation-delay: .10s; }
  .admin-sidebar.is-open .menu > *:nth-child(4)  { animation-delay: .13s; }
  .admin-sidebar.is-open .menu > *:nth-child(5)  { animation-delay: .16s; }
  .admin-sidebar.is-open .menu > *:nth-child(6)  { animation-delay: .19s; }
  .admin-sidebar.is-open .menu > *:nth-child(7)  { animation-delay: .22s; }
  .admin-sidebar.is-open .menu > *:nth-child(8)  { animation-delay: .25s; }
  .admin-sidebar.is-open .menu > *:nth-child(9)  { animation-delay: .28s; }
  .admin-sidebar.is-open .menu > *:nth-child(10) { animation-delay: .31s; }
  .admin-sidebar.is-open .menu > *:nth-child(11) { animation-delay: .34s; }
  .admin-sidebar.is-open .menu > *:nth-child(12) { animation-delay: .37s; }
  .admin-sidebar.is-open .menu > *:nth-child(13) { animation-delay: .40s; }
}
@keyframes adminMenuItemIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar { transition: none; }
  .admin-sidebar.is-open .menu a,
  .admin-sidebar.is-open .menu .menu-section { animation: none; }
}
.admin-sidebar .menu {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
  /* Rola internamente quando há muitos itens (mantém o logo fixo no topo).
     min-height:0 é necessário para um flex item poder encolher e rolar. */
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* Barra fininha estilizada */
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,.45) transparent;
  margin-right: -8px;  /* aproxima a barra da borda */
  padding-right: 6px;
}
.admin-sidebar .menu::-webkit-scrollbar { width: 7px; }
.admin-sidebar .menu::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar .menu::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,.4);
  border-radius: 8px;
}
.admin-sidebar .menu:hover::-webkit-scrollbar-thumb { background: rgba(201,168,76,.65); }
.admin-sidebar .menu a {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: var(--radius);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.admin-sidebar .menu a .lucide { width: 16px; height: 16px; flex-shrink: 0; }
.admin-sidebar .menu a:hover { background: var(--bg-3); color: var(--text); }
.admin-sidebar .menu a.active {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(201,168,76,.25);
}
.admin-sidebar .menu .menu-spacer { flex: 1; }
.admin-sidebar .menu .menu-section {
  font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 700;
  color: var(--text-3);
  padding: 14px 14px 6px;
  margin-top: 8px;
}

/* Item em destaque (Como usar?) */
.admin-sidebar .menu a .menu-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239,68,68,.4);
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 2px 6px rgba(239,68,68,.4); }
  50%     { box-shadow: 0 2px 12px rgba(239,68,68,.7); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar .menu a .menu-badge { animation: none; }
}

.admin-sidebar .menu a.menu-highlight {
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.admin-sidebar .menu a.menu-highlight::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 30%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.0) 30%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.0) 70%, transparent 100%);
  transform: skewX(-22deg);
  animation: highlightShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes highlightShine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}
.admin-sidebar .menu a.menu-highlight:hover {
  background: linear-gradient(135deg, rgba(201,168,76,.28), rgba(201,168,76,.10));
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-1px);
}
.admin-sidebar .menu a.menu-highlight.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-3));
  color: #1a1407;
  border-color: var(--gold);
}
.admin-sidebar .menu a.menu-highlight.active::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar .menu a.menu-highlight::before { animation: none; }
}
.admin-sidebar .menu .menu-section:first-child { margin-top: 0; padding-top: 0; }
.admin-sidebar .menu a.danger { color: #ef4444; }
.admin-sidebar .menu a.danger:hover { background: rgba(220,38,38,.08); color: #f87171; }

.admin-sidebar-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.admin-main { padding: 32px 40px; min-width: 0; }
@media (max-width: 700px) { .admin-main { padding: 22px; } }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.admin-header h1 {
  margin: 0; font-size: 28px;
  font-family: var(--font-display);
  font-weight: 600;
}
.admin-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Tabelas — corrigidas e bonitas ===== */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-family: var(--font-body);
  table-layout: auto;
}
table.data th, table.data td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  background: var(--bg-3);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--text-3);
  white-space: nowrap;
  position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--bg-3); }
table.data td a { color: var(--gold); }
table.data td a:hover { color: var(--gold-2); }
table.data td strong { color: var(--text); font-weight: 600; }
table.data td small { color: var(--text-3); font-size: 12px; }
table.data .col-actions {
  width: 1%; white-space: nowrap;
  text-align: right;
}
table.data .actions-row {
  display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end;
}

/* ===== Stat cards ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .stats { grid-template-columns: 1fr; } }

.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative; overflow: hidden;
  transition: all .2s ease;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .6;
}
.stat:hover { border-color: rgba(201,168,76,.4); transform: translateY(-2px); }
.stat .stat-head { display: flex; justify-content: space-between; align-items: flex-start; }
.stat .label { font-size: 11px; color: var(--text-3); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
.stat .stat-icon { color: var(--gold); opacity: .8; }
.stat .value {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--gold);
  margin-top: 8px;
  line-height: 1;
}
.stat .hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* ===== Filters bar ===== */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.filters input, .filters select {
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  min-width: 140px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.filters input { flex: 1; min-width: 220px; }
.filters input:hover, .filters select:hover { border-color: rgba(201,168,76,.5); }
.filters input:focus, .filters select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}
.filters .btn { padding: 9px 14px; }

/* ===== Login ===== */
.login-shell {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 600px 400px at top, rgba(201,168,76,.14), transparent 60%),
    radial-gradient(ellipse 600px 400px at bottom, rgba(201,168,76,.08), transparent 60%),
    var(--bg);
  padding: 24px;
  position: relative;
}
.login-shell::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 600px 500px at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}
.login-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 440px; width: 100%;
  box-shadow: var(--shadow);
  position: relative;
}
.login-card .brand { justify-content: center; margin-bottom: 26px; }

/* ===== Score circle ===== */
.score-display { display: flex; align-items: center; gap: 16px; }
.score-circle {
  position: relative;
  width: 78px; height: 78px; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p,0)*1%), var(--bg-3) 0);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,168,76,.25);
}
.score-circle::before {
  content: ''; position: absolute; width: 64px; height: 64px;
  border-radius: 50%; background: var(--bg-2);
  border: 1px solid var(--line);
}
.score-circle span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--text);
}

/* ===== SelectPlus — select customizado com busca ===== */
.sp-wrapper {
  position: relative;
  width: 100%;
  display: block;
}
.sp-wrapper.is-disabled { opacity: .5; pointer-events: none; }

select.sp-original {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important; height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.sp-button {
  width: 100%;
  background-color: #16161A !important;
  color: #F5F5F5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 38px 11px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  min-height: 44px;
}
.sp-button:hover { border-color: rgba(201,168,76,.5); background-color: #1C1C21 !important; }
.sp-wrapper.is-open .sp-button {
  border-color: var(--gold);
  background-color: #1C1C21 !important;
  box-shadow: 0 0 0 4px rgba(201,168,76,.18), inset 0 1px 0 rgba(255,255,255,.04);
}

.sp-value {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
}
.sp-value.is-placeholder { color: var(--text-3); font-weight: 400; }
.sp-value .sp-dot {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.sp-chevron {
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s ease, border-color .15s ease;
  flex-shrink: 0;
}
.sp-wrapper.is-open .sp-chevron {
  transform: translateY(-25%) rotate(225deg);
  border-color: var(--gold);
}

.sp-dropdown {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.15);
  z-index: 200;
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 320px;
}
.sp-wrapper.is-open .sp-dropdown {
  display: flex;
  animation: spDropdownIn .18s cubic-bezier(.34,1.56,.64,1);
}
.sp-wrapper.flip-up .sp-dropdown {
  top: auto; bottom: calc(100% + 6px);
  animation: spDropdownInUp .18s cubic-bezier(.34,1.56,.64,1);
}
/* Dentro de um diálogo o espaço é curto: sem teto, a lista cobre o título e os
   campos do próprio modal e a pessoa perde a noção do que está preenchendo.
   Com altura limitada ela rola por dentro e o modal continua legível. */
dialog .sp-dropdown { max-height: 190px; }
dialog .sp-list { max-height: 150px; }
@keyframes spDropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spDropdownInUp {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sp-search-wrap {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  flex-shrink: 0;
}
.sp-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.sp-search {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  padding: 12px 14px 12px 38px !important;
  font-size: 13.5px !important;
  font-family: var(--font-body);
  color: var(--text) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sp-search:focus {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.sp-search::placeholder { color: var(--text-3); }

.sp-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}
.sp-list::-webkit-scrollbar { width: 6px; }
.sp-list::-webkit-scrollbar-track { background: transparent; }
.sp-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.sp-list::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.sp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  font-size: 13.5px;
  color: var(--text-2);
  position: relative;
  user-select: none;
}
.sp-item.is-disabled { opacity: .5; cursor: not-allowed; }
.sp-item:hover, .sp-item.is-highlighted {
  background: var(--bg-3);
  color: var(--text);
}
.sp-item.is-selected {
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}
.sp-item.is-selected.is-highlighted { background: rgba(201,168,76,.18); }

.sp-item .sp-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item .sp-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.sp-item .sp-dot {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.sp-item .sp-check { color: var(--gold); flex-shrink: 0; }

.sp-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  font-style: italic;
}

/* Quando o select estava dentro de um filter — mantém a aparência native pra fluxo de filtros */
.filter-pill .sp-wrapper, .filters .sp-wrapper { width: auto; display: inline-block; }

/* ===== Documentação de admissão (checklist na ficha) ===== */
.docs-progress {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
}
.docs-progress-stats { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.docs-progress-stats strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--gold); }
.docs-progress-stats span { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.docs-progress-bar { flex: 1; height: 8px; background: var(--bg-4); border-radius: 4px; overflow: hidden; }
.docs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  border-radius: 4px;
  transition: width .6s cubic-bezier(.5,0,.3,1);
}

.docs-list { display: flex; flex-direction: column; gap: 6px; }
.doc-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .15s ease;
}
.doc-item:hover { border-color: var(--line-strong); }
.doc-item.is-done { background: rgba(34,197,94,.05); border-color: rgba(34,197,94,.3); }
.doc-item.status-dispensado { background: rgba(120,120,120,.04); border-color: rgba(120,120,120,.25); opacity: .8; }
.doc-item-toggle { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; padding-top: 2px; }
.doc-toggle-btn {
  width: 26px; height: 26px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-3);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s ease;
}
.doc-toggle-btn:hover { border-color: #22c55e; color: #22c55e; }
.doc-toggle-btn.warn:hover { border-color: #f59e0b; color: #f59e0b; }
.doc-toggle-btn.is-active {
  background: #22c55e; border-color: #22c55e; color: #fff;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.doc-toggle-btn.warn.is-active { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.doc-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-item-body strong { font-size: 13.5px; color: var(--text); }
.doc-item.is-done .doc-item-body strong { color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.doc-item-body small { font-size: 12px; color: var(--text-3); }
.doc-item-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }

/* ===== Acompanhamentos: smart stats, listagem, agenda, timeline ===== */
.acomp-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .acomp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .acomp-stats { grid-template-columns: repeat(2, 1fr); } }

.smart-stat {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: all .15s ease;
}
.smart-stat:hover { border-color: var(--cor); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.smart-stat-icon {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--cor) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--cor) 40%, transparent);
  border-radius: 8px; color: var(--cor);
  display: grid; place-items: center; flex-shrink: 0;
}
.smart-stat-body { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.smart-stat-body strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--cor); }
.smart-stat-body span { font-size: 12px; color: var(--text-3); margin-top: 2px; font-weight: 500; }

/* ===== Filtros elegantes ===== */
.elegant-filters {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(201,168,76,.04), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.filter-search {
  position: relative;
  display: flex; align-items: center;
}
.filter-search-icon {
  position: absolute; left: 14px;
  color: var(--text-3);
  pointer-events: none;
  display: flex; align-items: center;
}
.filter-search input {
  flex: 1;
  padding-left: 42px !important;
  padding-right: 40px !important;
  font-size: 14.5px !important;
  background-color: var(--bg-3) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  height: 44px;
  transition: all .15s ease !important;
}
.filter-search input:focus {
  border-color: var(--gold) !important;
  background-color: var(--bg-4) !important;
  box-shadow: 0 0 0 4px rgba(201,168,76,.15) !important;
}
.filter-search input:focus + .filter-search-icon,
.filter-search:focus-within .filter-search-icon { color: var(--gold); }
.filter-clear {
  position: absolute; right: 10px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-3);
  background: transparent;
  transition: all .15s ease;
}
.filter-clear:hover { background: var(--bg-4); color: var(--text); }

.filter-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}

.filter-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.filter-pill:hover {
  border-color: var(--line-strong);
  background: var(--bg-4);
}
.filter-pill.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.filter-pill-icon {
  display: flex; align-items: center; color: var(--text-3);
  flex-shrink: 0;
}
.filter-pill.is-active .filter-pill-icon { color: var(--gold); }
.filter-pill-label {
  font-weight: 500; color: var(--text-2);
  letter-spacing: .1px;
}
.filter-pill.is-active .filter-pill-label { color: var(--gold); font-weight: 600; }
.filter-pill select {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  cursor: pointer !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.filter-pill::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .5;
  margin-left: 2px;
  flex-shrink: 0;
}

.filter-apply {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(120deg, var(--gold-3), var(--gold), var(--gold-3));
  background-size: 200% 100%;
  border: 1px solid rgba(255,235,180,.3);
  border-radius: 999px;
  color: #1a1407;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(201,168,76,.25);
}
.filter-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201,168,76,.4);
  background-position: 100% 50%;
}

.filter-reset {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 12.5px; font-weight: 500;
  transition: all .15s ease;
}
.filter-reset:hover {
  border-color: rgba(239,68,68,.5);
  color: #f87171;
  background: rgba(239,68,68,.05);
}

/* View toggle bar */
.view-toggle-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.view-results-count {
  font-size: 13px; color: var(--text-3);
}
.view-results-count strong { color: var(--gold); font-family: var(--font-display); font-size: 16px; font-weight: 700; }

.view-toggle {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3px;
}
.view-toggle a {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-2); border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s ease;
}
.view-toggle a:hover { color: var(--text); }
.view-toggle a.is-active {
  background: var(--gold); color: #1a1407; font-weight: 600;
  box-shadow: 0 2px 6px rgba(201,168,76,.3);
}

@media (max-width: 700px) {
  .elegant-filters { padding: 12px; }
  .filter-pills { gap: 6px; }
  .filter-pill { padding: 7px 12px; font-size: 12.5px; }
}

/* Listagem em grid (lista) */
.acomp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.acomp-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none; color: inherit;
  transition: all .15s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.acomp-card:hover { border-color: var(--st); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.acomp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acomp-cfg-pill {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  color: var(--cor);
  border: 1px solid color-mix(in srgb, var(--cor) 40%, transparent);
  border-radius: 4px;
  font-family: var(--font-display);
}
.acomp-status {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 4px; border: 1px solid;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.acomp-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  margin: 0; letter-spacing: -.01em;
  color: var(--text);
}
.acomp-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-3); }
.acomp-foot { padding-top: 8px; border-top: 1px dashed var(--line); }
.acomp-foot small { color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }

/* Agenda */
.acomp-agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-day {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  align-items: flex-start;
}
.agenda-day.is-past { opacity: .85; border-left: 3px solid #ef4444; }
.agenda-day.is-today { border-left: 3px solid var(--gold); box-shadow: 0 6px 22px rgba(201,168,76,.18); }
.agenda-date {
  text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.agenda-date .day { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--gold-2); }
.agenda-date .month { font-size: 10px; letter-spacing: 1.5px; color: var(--gold); font-weight: 700; margin-top: 4px; }
.agenda-date small { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.agenda-date em {
  margin-top: 8px; padding: 3px 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; font-size: 10px; color: var(--text-2);
  font-style: normal; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase;
}
.is-today .agenda-date em { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.is-past .agenda-date em { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.4); }

.agenda-items { display: flex; flex-direction: column; gap: 6px; }
.agenda-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all .15s ease;
}
.agenda-item:hover { border-color: var(--cor); background: var(--bg-4); }
.agenda-cfg-pill {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; flex-shrink: 0;
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  color: var(--cor);
  border: 1px solid color-mix(in srgb, var(--cor) 40%, transparent);
  border-radius: 4px;
  font-family: var(--font-display);
}
.agenda-item strong { display: block; font-size: 14px; color: var(--text); }
.agenda-item small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* Por colaborador */
.acomp-by-colab { display: flex; flex-direction: column; gap: 14px; }
.colab-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.colab-block-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.colab-block-head .avatar { width: 40px; height: 40px; font-size: 13px; }
.colab-block-head strong { font-size: 14.5px; color: var(--text); }
.colab-checkpoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px; margin-top: 12px;
}
.colab-checkpoint {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all .15s ease;
}
.colab-checkpoint:hover { border-color: var(--cor); transform: translateY(-1px); }
.colab-checkpoint > strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--cor); line-height: 1; }
.colab-checkpoint > small { font-size: 11.5px; color: var(--text-3); }

/* Timeline na ficha do colaborador */
.timeline-progress {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.timeline-progress-header { display: flex; justify-content: space-between; margin-bottom: 14px; align-items: center; flex-wrap: wrap; gap: 8px; }
.timeline-progress-header small { color: var(--text-2); font-size: 12.5px; }
.timeline-bar {
  position: relative; height: 6px;
  background: var(--bg-4); border-radius: 3px;
  margin: 12px 12px;
}
.timeline-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  border-radius: 3px;
  transition: width .6s cubic-bezier(.5,0,.3,1);
}
.timeline-mark {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.timeline-mark-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-4); border: 2px solid var(--cor);
  transition: all .2s ease;
  position: relative;
}
.timeline-mark.is-done .timeline-mark-dot {
  background: var(--cor); box-shadow: 0 0 12px var(--cor);
}
.timeline-mark.is-done .timeline-mark-dot::after {
  content: '✓'; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 9px; font-weight: 800;
}
.timeline-mark-label {
  font-family: var(--font-display); font-size: 10px;
  font-weight: 700; color: var(--cor);
  position: absolute; top: 14px;
  white-space: nowrap;
}

.timeline-list { display: flex; flex-direction: column; gap: 8px; }
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all .15s ease;
  position: relative;
}
.timeline-item:hover { border-color: var(--st); background: var(--bg-4); }
.timeline-item.is-done { opacity: .82; }
.timeline-item-pill {
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cor) 40%, transparent);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 0; flex-shrink: 0;
}
.timeline-item-pill strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--cor); line-height: 1; }
.timeline-item-pill small { font-size: 9px; letter-spacing: 1.4px; color: var(--cor); margin-top: 2px; opacity: .85; }
.timeline-item-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline-item-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline-item-row strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--text); }
.timeline-item-feedback {
  font-size: 12.5px; color: var(--text-2);
  padding: 6px 10px; margin-top: 4px;
  background: var(--bg-2); border-left: 2px solid var(--gold);
  border-radius: 4px;
  display: inline-flex; align-items: flex-start; gap: 6px;
}
.timeline-item-feedback .lucide { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.timeline-item-arrow { color: var(--text-3); transition: transform .15s ease; }
.timeline-item:hover .timeline-item-arrow { transform: translateX(4px); color: var(--gold); }

/* ===== Pipeline visual + action tiles (admin candidato.php) ===== */
.pipeline-steps {
  display: flex; gap: 4px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px;
  overflow-x: auto;
}
.pipeline-step {
  flex: 1; min-width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; position: relative;
  font-size: 10px;
}
.pipeline-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 5px; left: 50%; right: -50%;
  height: 2px; background: var(--line); z-index: 0;
}
.pipeline-step.is-done::after { background: var(--gold); }
.pipeline-step-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-4); border: 2px solid var(--line);
  position: relative; z-index: 1;
  transition: all .2s ease;
}
.pipeline-step.is-done .pipeline-step-dot { background: var(--gold); border-color: var(--gold); }
.pipeline-step.is-current .pipeline-step-dot {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.25);
  animation: pipePulse 2s ease-in-out infinite;
}
@keyframes pipePulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(201,168,76,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(201,168,76,.10); }
}
.pipeline-step small {
  color: var(--text-3); line-height: 1.2; font-weight: 500;
  font-size: 10px; letter-spacing: .2px;
}
.pipeline-step.is-done small,
.pipeline-step.is-current small { color: var(--text); font-weight: 600; }
.pipeline-step.is-current small { color: var(--gold); }

.pipeline-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px;
}
.action-tile {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; transition: all .15s ease;
  text-align: left; font-family: inherit;
  width: 100%;
}
.action-tile:hover {
  border-color: var(--gold); background: var(--bg-4);
  transform: translateY(-1px);
}
.action-tile-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.04);
}
.action-tile-label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.action-tile-label strong { font-size: 13.5px; color: var(--text); font-weight: 600; line-height: 1.2; }
.action-tile-label small { font-size: 11.5px; color: var(--text-3); line-height: 1.3; }
.action-tile.action-tile-primary {
  border-color: rgba(34,197,94,.4);
  background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(34,197,94,.02));
}
.action-tile.action-tile-primary:hover { border-color: #22c55e; }

.card-inline {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}

/* Dialog */
dialog.dialog-card {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; max-width: 480px; width: 92%;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }

/* Caixa de confirmação do sistema (substitui o confirm() do navegador).
   Montada por assets/js/app.js a partir de [data-confirm]. */
dialog.confirm-dlg { max-width: 430px; padding: 24px 26px; }
.confirm-dlg-titulo {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 17px;
  font-weight: 700; color: var(--text);
}
.confirm-dlg-texto {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2);
  overflow-wrap: anywhere;
}
.confirm-dlg-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@media (max-width: 480px) {
  .confirm-dlg-acoes { flex-direction: column-reverse; }
  .confirm-dlg-acoes .btn { width: 100%; justify-content: center; min-height: 42px; }
}

/* Birthday card no dashboard */
.bday-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.bday-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
  transition: border-color .15s ease;
}
.bday-item:hover { border-color: rgba(201,168,76,.4); }
.bday-day {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.04));
  border: 1px solid rgba(201,168,76,.3);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--gold); flex-shrink: 0;
}
.bday-info { flex: 1; min-width: 0; }
.bday-info strong { font-size: 13.5px; color: var(--text); font-weight: 600; display: block; }
.bday-info small { font-size: 11.5px; color: var(--text-3); }

/* ===== QA blocks (admin candidato.php) ===== */
.qa-section { margin-top: 22px; }
.qa-section + .qa-section { padding-top: 18px; border-top: 1px solid var(--line); }
.qa-section-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.8px; font-weight: 700;
  margin-bottom: 4px;
  padding: 4px 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-sm);
}
.qa-block { margin-top: 14px; }
.qa-block .qa-q {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14.5px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.005em;
  display: flex; align-items: flex-start; gap: 8px;
}
.qa-block .qa-q .lucide { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.qa-block .qa-a {
  color: var(--text-2);
  white-space: pre-line;
  font-size: 14.5px; line-height: 1.65;
  padding-left: 21px;
  border-left: 2px solid var(--line);
  margin-left: 4px;
}

/* ===== Utilitários ===== */
.text-muted { color: var(--text-3); }
.text-gold  { color: var(--gold); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: inline-flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; }
.hidden { display: none; }
.nowrap { white-space: nowrap; }

/* ===== Responsivo extra ===== */
@media (max-width: 700px) {
  .nav { gap: 4px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .vaga-hero { padding: 50px 0 40px; }
  .form-card { padding: 22px; }
  .admin-header h1 { font-size: 22px; }
  .container, .container-narrow { padding: 0 18px; }
}

/* ===== Paginação das listas grandes (paginacao_html) ===== */
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; }
.paginacao-info { font-size: 13px; color: var(--text-3); }
.paginacao-nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.paginacao-nums .btn { min-width: 36px; justify-content: center; }
.paginacao-gap { padding: 0 4px; color: var(--text-3); }

/* ===== Esqueleto de carregamento (listas que chegam depois) ===== */
.sk-linha { display: block; height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-4) 50%, var(--bg-3) 100%);
  background-size: 200% 100%; animation: skBrilho 1.2s ease-in-out infinite; }
.sk-linha:nth-child(2) { width: 82%; } .sk-linha:nth-child(3) { width: 64%; }
@keyframes skBrilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-linha { animation: none; } }

/* ===== Transição entre telas (navegador faz sozinho; sem JS, sem custo de carga) =====
   Chrome/Edge recentes: a troca de página vira um fade curto em vez do "pisca-branco".
   Navegadores sem suporte simplesmente ignoram. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }

/* ===== Botão "enviando…" (app.js): evita clique duplo e mostra que está gravando ===== */
.btn.enviando { pointer-events: none; opacity: .78; cursor: progress; }
.btn.enviando::after {
  content: ''; width: 12px; height: 12px; flex-shrink: 0;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn.enviando::after { animation: none; }
}


/* ===== Acessibilidade (WCAG 2.2) ===== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: #0A0A0B; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
/* o input de arquivo é invisível: o foco aparece na caixa */
.upload-zone:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.35); }
.upload-zone.has-error { border-color: #ef4444; }
.upload-erro { color: #f87171; font-size: 13px; margin: 6px 0 0; }

/* Título da página como h1, com o mesmo visual do antigo h2 */
h1.titulo-pagina { font-size: 1.5em; font-weight: 700; letter-spacing: -.025em; }
.section h1.titulo-pagina { font-size: clamp(28px, 3.8vw, 42px); margin: 12px 0 16px; }

/* Texto longo (privacidade) */
.texto-legal { max-width: 760px; }
.texto-legal h2 { font-size: 21px; margin: 32px 0 10px; }
.texto-legal p, .texto-legal li { color: var(--text-2); line-height: 1.7; }
.texto-legal a, .site-footer a { color: var(--gold); }

@media (max-width: 480px) {
  .cta-banner { padding: 24px; }
  .cta-banner .btn { white-space: normal; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .polo-aviso.pede { animation: none !important; }
}

/* Aceite dos termos (includes/termos_aceite.php) */
.termos-aceite { margin: 14px 0 12px; }
.termos-aceite label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: left; }
.termos-aceite input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: var(--gold); }
.termos-aceite a { color: var(--gold); }
.termos-aceite.tem-erro label { color: var(--text); }
.termos-erro { color: #f87171; font-size: 13px; margin: 6px 0 0; }

/* Foto de perfil (includes/fotos.php → foto_avatar): a foto entra por cima das
   iniciais só depois de carregar (sem "pulo"); se falhar, as iniciais continuam.
   .avatar ganhou a base que antes só existia em admin/colaboradores.php. */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.avatar, .rk-av, .fer-avatar, .eh-pessoa-avatar { position: relative; overflow: hidden; }
.avatar > img, .rk-av > img, .fer-avatar > img, .eh-pessoa-avatar > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  opacity: 0; transform: scale(1.04);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.avatar > img.is-ok, .rk-av > img.is-ok, .fer-avatar > img.is-ok, .eh-pessoa-avatar > img.is-ok { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .avatar > img, .rk-av > img, .fer-avatar > img, .eh-pessoa-avatar > img { transition: none; transform: none; }
}

/* Celular: campo com fonte menor que 16px faz o iOS/Android dar zoom ao focar.
   Garante 16px em todo campo de texto/seleção em telas pequenas (sem travar o zoom da página). */
@media (max-width: 820px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
  select, textarea { font-size: 16px !important; }
}
