/* ============================================================
   TalentBridge — Design System
   Estética moderna inspirada em 21st.dev / shadcn
   ============================================================ */

:root {
  /* Cores base */
  --bg: #0a0b14;
  --bg-soft: #10121f;
  --surface: #151827;
  --surface-2: #1c2033;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f5f6fb;
  --text-muted: #a3a8bd;
  --text-dim: #6b7089;

  /* Marca */
  --brand: #6d5efc;
  --brand-2: #a78bfa;
  --brand-glow: rgba(109, 94, 252, 0.45);
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #6d5efc 0%, #a78bfa 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(109,94,252,0.15), rgba(34,211,238,0.08));

  /* Layout */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 12px 45px -12px var(--brand-glow);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* Fundo com brilho decorativo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% -5%, rgba(109, 94, 252, 0.18), transparent 45%),
    radial-gradient(700px circle at 90% 5%, rgba(34, 211, 238, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand-2);
  padding: 7px 14px; border-radius: 100px;
  background: rgba(109, 94, 252, 0.1); border: 1px solid rgba(109, 94, 252, 0.25);
}
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand); color: #0a0b14; border: none;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--brand); }
.btn-danger { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; font-weight: 900; color: #0a0b14; font-size: 17px;
  box-shadow: var(--shadow-brand);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; color: var(--text-muted);
  font-weight: 500; font-size: 15px; transition: all 0.18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: rgba(109, 94, 252, 0.14); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- Dropdown do menu ---------- */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-links .dropdown-toggle .caret { transition: transform 0.25s ease; opacity: 0.65; }
/* ponte invisível para o hover não "cair" ao descer o mouse */
.nav-links .has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-links .dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 248px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 24px 54px -14px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-links .has-dropdown:hover .dropdown-toggle .caret,
.nav-links .has-dropdown:focus-within .dropdown-toggle .caret { transform: rotate(180deg); }
/* Itens do dropdown */
.nav-links .dropdown a {
  display: flex; align-items: center; gap: 12px; width: 100%; white-space: nowrap;
  padding: 10px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500;
  color: var(--text-muted); transition: background 0.16s, color 0.16s;
}
.nav-links .dropdown a:hover,
.nav-links .dropdown a.active { background: rgba(109, 94, 252, 0.14); color: var(--text); }
.nav-links .dropdown a .di {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--border); transition: all 0.16s;
}
.nav-links .dropdown a:hover .di,
.nav-links .dropdown a.active .di { background: rgba(109, 94, 252, 0.18); border-color: rgba(109, 94, 252, 0.4); }
.nav-links .dropdown a .dt { display: flex; flex-direction: column; line-height: 1.25; }
.nav-links .dropdown a .dt small { color: var(--text-dim); font-weight: 400; font-size: 12px; }

/* ---------- Animações globais ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(-2deg); } }
@keyframes orbPulse { 0%, 100% { transform: translate(0,0) scale(1); opacity: 0.7; } 50% { transform: translate(30px,-20px) scale(1.15); opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shine { to { background-position: 200% center; } }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; text-align: center; position: relative; }
/* Orbs animados de fundo */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb.o1 { width: 380px; height: 380px; background: var(--brand); top: -80px; left: 8%; animation: orbPulse 11s ease-in-out infinite; }
.orb.o2 { width: 320px; height: 320px; background: var(--accent); top: 20px; right: 6%; animation: orbPulse 13s ease-in-out infinite reverse; }
.orb.o3 { width: 300px; height: 300px; background: #ec4899; bottom: -120px; left: 40%; opacity: 0.3; animation: orbPulse 15s ease-in-out infinite; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow, .hero h1, .hero p.lead, .hero-actions, .hero-search, .hero-trust { animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.hero h1 { font-size: clamp(38px, 6.2vw, 70px); font-weight: 800; margin: 22px 0 20px; animation-delay: 0.05s; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-muted); max-width: 640px; margin: 0 auto 34px; animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.18s; }
.hero-search { animation-delay: 0.24s; }
.hero-trust { animation-delay: 0.3s; }

/* Linha de confiança (avatares + estrelas) */
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #0a0b14;
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(1) { background: linear-gradient(135deg,#6d5efc,#a78bfa); }
.avatar-stack span:nth-child(2) { background: linear-gradient(135deg,#22d3ee,#38bdf8); }
.avatar-stack span:nth-child(3) { background: linear-gradient(135deg,#34d399,#10b981); }
.avatar-stack span:nth-child(4) { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.avatar-stack span:nth-child(5) { background: linear-gradient(135deg,#ec4899,#d946ef); }
.hero-trust .trust-text { text-align: left; font-size: 13.5px; color: var(--text-muted); }
.hero-trust .stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }

/* Cards flutuantes decorativos (só desktop) */
.float-card {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 13px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.float-card .fc-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; }
.float-card small { display: block; color: var(--text-dim); font-weight: 400; font-size: 12px; }
.float-card.fc1 { top: 130px; left: 3%; animation: float 6s ease-in-out infinite; }
.float-card.fc2 { top: 250px; right: 2%; animation: floatSlow 7s ease-in-out infinite; }
.float-card.fc3 { bottom: 60px; left: 6%; animation: float 8s ease-in-out infinite 1s; }
@media (max-width: 1080px) { .float-card { display: none; } }

/* ---------- Faixa de empresas (marquee) ---------- */
.marquee-wrap { padding: 34px 0; border-block: 1px solid var(--border); background: var(--bg-soft); overflow: hidden; }
.marquee-label { text-align: center; color: var(--text-dim); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee span { font-size: 22px; font-weight: 800; color: var(--text-dim); letter-spacing: -0.02em; white-space: nowrap; transition: color 0.2s; opacity: 0.7; }
.marquee span:hover { color: var(--brand-2); opacity: 1; }

/* ---------- Áreas de atuação ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.cat-card::after { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.25s; }
.cat-card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-brand); }
.cat-card:hover::after { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }
.cat-icon { font-size: 28px; }
.cat-card h4 { font-size: 16px; font-weight: 700; }
.cat-card .cat-count { color: var(--text-muted); font-size: 13px; }
.cat-card .cat-go { margin-top: 6px; color: var(--brand-2); font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: all 0.25s; }
.cat-card:hover .cat-go { opacity: 1; transform: none; }

/* Brilho no título gradiente animado */
.gradient-text.animated {
  background: linear-gradient(90deg, #6d5efc, #a78bfa, #22d3ee, #a78bfa, #6d5efc);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shine 6s linear infinite;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; margin: 22px 0 20px; }
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--text-muted);
  max-width: 620px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Barra de busca do hero */
.hero-search {
  margin: 46px auto 0; max-width: 720px;
  display: flex; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1; background: transparent; border: none; color: var(--text);
  padding: 12px 16px; outline: none; font-size: 15px;
}
.hero-search input::placeholder { color: var(--text-dim); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-size: 38px; font-weight: 800; }
.stat .label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Cards genéricos ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(109, 94, 252, 0.25);
  margin-bottom: 18px; color: var(--brand-2);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Passos (Como funciona) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  width: 40px; height: 40px; border-radius: 11px; background: var(--grad-brand);
  color: #0a0b14; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------- Vagas (grid de cards verticais) ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.job-card-v {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; cursor: pointer;
  transition: all 0.22s ease; height: 100%;
}
.job-card-v:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-brand); }
.jcv-top { display: flex; align-items: flex-start; justify-content: space-between; }
.jcv-date { color: var(--text-dim); font-size: 12.5px; }
.jcv-company { color: var(--text-muted); font-size: 13.5px; margin-bottom: 2px; }
.jcv-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.jcv-local { color: var(--text-dim); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.jcv-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.jcv-benef { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.jcv-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jcv-salary { font-weight: 700; font-size: 14.5px; color: var(--brand-2); }

/* ---------- Vagas (lista horizontal - legado) ---------- */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; transition: all 0.22s ease;
}
.job-card:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow); }
.job-logo {
  width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--brand-2);
}
.job-body { flex: 1; min-width: 0; }
.job-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.job-company { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.tag.remote { color: var(--success); background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }
.tag.salary { color: var(--brand-2); background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.25); }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.job-date { color: var(--text-dim); font-size: 13px; }

/* Filtros */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
  padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters .field { flex: 1; min-width: 180px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Inputs ---------- */
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); outline: none; transition: border-color 0.18s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,94,252,0.15); }
.input::placeholder { color: var(--text-dim); }
textarea.input { resize: vertical; min-height: 110px; }
select.input { cursor: pointer; }

/* ---------- Upload de arquivo ---------- */
.file-drop {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 20px 16px; text-align: center; cursor: pointer;
  background: var(--bg-soft); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14.5px;
  transition: all 0.18s;
}
.file-drop:hover { border-color: var(--brand); color: var(--text); background: rgba(109,94,252,0.06); }
.file-drop.has-file { border-style: solid; border-color: var(--success); color: var(--success); background: rgba(52,211,153,0.08); }

/* ---------- CTA ---------- */
.cta-band {
  text-align: center; padding: 64px 40px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid rgba(109, 94, 252, 0.25);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 500px; margin: 0 auto 28px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; color: var(--text); }
.footer-links a { display: block; color: var(--text-muted); font-size: 14px; padding: 5px 0; transition: color 0.15s; }
.footer-links a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ---------- Badges / testimonials ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial p { font-size: 16px; color: var(--text); margin-bottom: 20px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-weight: 700; color: #0a0b14; }
.who .name { font-weight: 600; font-size: 15px; }
.who .role { color: var(--text-dim); font-size: 13px; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-soft); border-right: 1px solid var(--border);
  padding: 24px 18px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { margin-bottom: 34px; padding: 0 8px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 9px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; cursor: pointer;
}
.side-nav a:hover, .side-nav a.active { background: rgba(109, 94, 252, 0.14); color: var(--text); }
.admin-main { padding: 32px 40px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.admin-header h1 { font-size: 28px; }
.admin-header p { color: var(--text-muted); font-size: 15px; }
.admin-header > .btn { flex-shrink: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.kpi .label { color: var(--text-muted); font-size: 13px; }
.kpi .value { font-size: 32px; font-weight: 800; margin-top: 6px; }
.kpi .trend { font-size: 12.5px; color: var(--success); margin-top: 4px; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.table-head h3 { font-size: 18px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 14px 24px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--border); }
td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
.status-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.status-pill.active { color: var(--success); background: rgba(52,211,153,0.12); }
.status-pill.paused { color: var(--warning); background: rgba(251,191,36,0.12); }
.row-actions { display: flex; gap: 8px; }
.icon-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(6px); z-index: 100; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); width: 100%; max-width: 620px; box-shadow: var(--shadow);
  animation: pop 0.2s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 26px; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; padding: 20px 26px; border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 8px; }
.login-card h2 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.hint { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--success);
  padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow);
  transform: translateY(120%); transition: transform 0.3s ease; font-size: 14.5px; font-weight: 500;
}
.toast.show { transform: translateY(0); }

/* ---------- Utilidades ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.mt-2 { margin-top: 24px; } .mt-4 { margin-top: 48px; }
.hidden { display: none !important; }
.page-head { padding: 60px 0 30px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 14px 0 12px; }
.page-head p { color: var(--text-muted); font-size: 18px; max-width: 560px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .steps, .stats, .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px;
  }
  .nav-links.mobile-open a { padding: 12px 14px; }
  .nav-links.mobile-open .has-dropdown::after { display: none; }
  .nav-links.mobile-open .dropdown {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 2px 0 6px 0;
    min-width: 0; margin: 2px 0 4px 16px; border-left: 2px solid var(--border);
  }
  .nav-links.mobile-open .dropdown a { padding: 9px 12px; }
  .nav-links.mobile-open .dropdown-toggle .caret { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-main { padding: 24px 20px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .steps, .stats, .form-grid, .jobs-grid { grid-template-columns: 1fr; }
  .job-card { flex-wrap: wrap; }
  .job-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 640px; }
  /* Admin: cabeçalho e ações ocupam a largura toda no celular */
  .admin-header { flex-direction: column; align-items: stretch; }
  .admin-header > .btn { width: 100%; }
  .admin-header > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }
  .admin-header > div:last-child .btn { flex: 1 1 auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .table-head { align-items: stretch; }
  .table-head > div { display: flex; flex-direction: column; width: 100%; }
  .table-head .input, .table-head select { width: 100% !important; }
}
