/* ==========================================================================
   Pearson — identidade visual: preto + dourado
   ========================================================================== */
:root {
  --bg: #0f0f10;
  --bg-2: #151517;
  --bg-3: #1c1c1f;
  --line: #2a2a2e;
  --line-2: #3a3a3f;
  --text: #ece8df;
  --muted: #9a968d;
  --gold: #c9a24a;
  --gold-2: #e6c97a;
  --gold-3: #8a6a26;
  --accent-rgb: 201, 162, 74;
  --gold-grad: linear-gradient(135deg, #f1d98f 0%, #c9a24a 45%, #9b7a2f 100%);
  --ok: #5fbf8a; --warn: #e2b04a; --bad: #e0675f; --info: #6aa7e0;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 1.6em 0 .7em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold-2); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 32px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { margin-bottom: 40px; }
.section-title.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title.center p { color: var(--muted); }
.section-title.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.link-arrow { font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--gold-2); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 6px; border: 1px solid transparent; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: .2s; white-space: nowrap; color: var(--text); background: none; }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad); color: #141005; box-shadow: 0 6px 20px rgba(var(--accent-rgb), .25); }
.btn-gold:hover { color: #000; filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { border-color: var(--gold); color: var(--gold-2); }
.btn-outline:hover { background: rgba(var(--accent-rgb), .1); color: #fff; }
.btn-ghost { color: var(--muted); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-danger { border-color: rgba(224, 103, 95, .5); color: var(--bad); }
.btn-danger:hover { background: rgba(224, 103, 95, .1); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }
.icon-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; margin-right: 4px; }
.icon-btn:hover:not(:disabled) { color: var(--gold-2); border-color: var(--gold); }
.icon-btn:disabled { opacity: .3; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.actions.center { justify-content: center; }

/* ---------- Cabeçalho ---------- */
.topbar { background: #0a0a0b; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-social { display: flex; gap: 18px; }
.topbar a { color: var(--muted); } .topbar a:hover { color: var(--gold-2); }
.nav-wrap { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
/* O desfoque fica numa camada à parte: backdrop-filter direto no cabeçalho prenderia o menu do celular (position: fixed) dentro dele */
.nav-wrap::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
#site-header { display: contents; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand-shield { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; letter-spacing: .32em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) { color: var(--text); font-size: 13px; font-weight: 500; padding: 8px 9px; border-radius: 6px; position: relative; white-space: nowrap; }
.nav-links > a:not(.btn):hover { color: var(--gold-2); }
.nav-links > a.active { color: var(--gold-2); }
.nav-links > a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--gold-grad); }
.nav-links .btn { margin-left: 10px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--gold-2); margin: 5px 0; }
.user-menu { position: relative; margin-left: 10px; }
.user-btn { position: relative; }
.user-btn .dot { background: var(--bad); color: #fff; border-radius: 10px; font-size: 10px; padding: 2px 6px; letter-spacing: 0; }
.user-drop { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; min-width: 220px; padding: 6px; box-shadow: var(--shadow); }
.user-menu.open .user-drop { display: block; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--text); background: none; border: 0; font: 500 13px var(--sans); border-radius: 6px; cursor: pointer; }
.user-drop a:hover, .user-drop button:hover { background: var(--bg-2); color: var(--gold-2); }

/* ---------- Barra do site administrativo ---------- */
.admin-bar { border-bottom-color: var(--gold-3); }
.admin-bar-actions { display: flex; align-items: center; gap: 12px; }
.admin-user { color: var(--muted); font-size: 13px; }
.admin-user .dot { background: var(--bad); color: #fff; border-radius: 10px; font-size: 10px; padding: 2px 6px; }
.portal-switch a { color: var(--muted); padding: 8px 14px; font: 500 13px var(--sans); }
.portal-switch a.active { background: var(--gold); color: #000; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .portal-switch { display: none; } }
body.admin-site .brand-text small { color: var(--gold); }
@media (max-width: 600px) { .admin-user { display: none; } body.admin-site .brand-text small { display: block; } }

/* ---------- Roleta de anúncios ---------- */
.hero-carousel { position: relative; height: min(78vh, 640px); min-height: 460px; overflow: hidden; background: #000; border-bottom: 1px solid var(--line); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 6s ease; }
.slide.active .slide-bg { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .7) 45%, rgba(8, 8, 8, .15) 100%); }
.slide-content { position: relative; max-width: 1200px; padding-left: 84px; padding-right: 84px; }
@media (min-width: 1400px) { .slide-content { padding-left: 24px; padding-right: 24px; } }
.slide-content > * { max-width: 620px; opacity: 0; transform: translateY(18px); transition: .7s ease; }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > :nth-child(2) { transition-delay: .1s; }
.slide.active .slide-content > :nth-child(3) { transition-delay: .2s; }
.slide.active .slide-content > :nth-child(4) { transition-delay: .3s; }
.slide-content h2 { font-family: var(--serif); font-size: clamp(36px, 5.5vw, 64px); font-weight: 600; line-height: 1.05; margin-bottom: 18px; }
.slide-content p { font-size: 17px; color: #cfcac0; margin-bottom: 30px; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(0, 0, 0, .4); color: var(--gold-2); font-size: 28px; line-height: 1; cursor: pointer; z-index: 3; }
.car-arrow:hover { background: var(--gold); color: #000; }
.car-arrow.prev { left: 20px; } .car-arrow.next { right: 20px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.car-dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.car-dots button.active { background: var(--gold); }
.car-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); z-index: 3; }
.car-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); }

/* ---------- Áreas ---------- */
.areas-grid, .choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.choice-grid { grid-template-columns: repeat(2, 1fr); }
.area-card, .choice-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; color: var(--text); transition: .25s; position: relative; overflow: hidden; }
.area-card::before, .choice-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: .35s; }
.area-card:hover, .choice-card:hover { border-color: var(--line-2); transform: translateY(-4px); color: var(--text); box-shadow: var(--shadow); }
.area-card:hover::before, .choice-card:hover::before { transform: scaleX(1); }
.area-card p, .choice-card p { color: var(--muted); flex: 1; }
.area-ico { width: 56px; height: 56px; color: var(--gold); margin-bottom: 20px; }
.choice-card h2 { font-size: 24px; }
.choice-card .btn { align-self: flex-start; }

/* ---------- Sobre ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-logo { background: #121212; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; justify-content: center; }
.about-logo img { max-height: 380px; }
.about-teaser p { color: #cfcac0; }
.mvv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; }
.mvv-mini div { border-left: 2px solid var(--gold); padding-left: 14px; }
.mvv-mini strong { display: block; color: var(--gold-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.mvv-mini span { font-size: 14px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 36px; padding-bottom: 32px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 65px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg-2); }
.tl-year { font-family: var(--serif); font-size: 24px; color: var(--gold-2); font-weight: 600; }
.timeline p { color: var(--muted); margin: 0; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; }
.mvv-num { font-family: var(--serif); font-size: 42px; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.mvv-card p { color: var(--muted); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.team-card { display: flex; gap: 16px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.team-card div { display: flex; flex-direction: column; }
.team-card span { color: var(--gold-2); font-size: 13px; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gold-3); }
.avatar-ini { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a2418, #15140f); color: var(--gold-2); font-weight: 600; letter-spacing: .05em; }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: .25s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16/9; background: var(--bg-3) center/cover; }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: 12px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: 14px; flex: 1; }
.news-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; aspect-ratio: 16/7; object-fit: cover; }
.prose { font-size: 16px; color: #d6d1c6; }
.prose p { margin-bottom: 1.2em; }
.meta { color: var(--gold); font-size: 13px; letter-spacing: .08em; margin-top: 10px; }

/* ---------- Parceiros ---------- */
.partners-strip { padding-bottom: 60px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex-shrink: 0; height: 64px; display: flex; align-items: center; opacity: .75; filter: grayscale(.3); transition: .3s; }
.marquee-item:hover { opacity: 1; filter: none; }
.marquee-item img { height: 100%; width: auto; max-width: 240px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-33.333%); } }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.partner-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.partner-logo { display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; margin-bottom: 18px; overflow: hidden; min-height: 110px; }
/* A imagem ocupa a largura do quadro na proporção original dela (sem cortar e sem esticar) */
.partner-logo img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; image-rendering: auto; }
.partner-card p { color: var(--muted); font-size: 14px; }

/* ---------- Sede ---------- */
.sede-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.sede-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; max-height: 460px; }
.sede-info { justify-content: center; }
.contact-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }
.sede-photo img { width: 100%; height: 100%; object-fit: cover; }
.sede-info { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.info-row { display: flex; gap: 14px; }
.info-row svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.info-row span { color: #cfcac0; font-size: 14px; }
.sede-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 240px; background: var(--bg-3); }
.sede-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- Canais ---------- */
.channels { background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .08), transparent 70%); }
.channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.channel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .25s; }
.channel svg { width: 38px; height: 38px; color: var(--gold); margin-bottom: 8px; }
.channel span { color: var(--muted); font-size: 14px; word-break: break-all; }
.channel:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }

/* ---------- Cabeçalho de páginas ---------- */
.page-head { padding: 70px 0 50px; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, black), var(--bg)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(var(--accent-rgb), .12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(var(--accent-rgb), .03), 0 0 0 120px rgba(var(--accent-rgb), .02); }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); }
.page-head p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0; }
.crumb { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 14px; text-transform: uppercase; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--gold-2); }
.ad-hero { padding: 110px 0 90px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.ad-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.5vw, 60px); max-width: 760px; }
.lead { font-size: 18px; color: #cfcac0; max-width: 640px; }

/* ---------- Serviços ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg-2); padding: 30px; }
.service h3 { color: var(--gold-2); }
.service p { color: var(--muted); font-size: 14px; margin: 0; }
.services-grid.compact .service { padding: 22px; } .services-grid.compact h3 { margin: 0; font-size: 15px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(135deg, #1c1810, #121212); border: 1px solid var(--gold-3); border-radius: var(--radius); padding: 32px 36px; margin-top: 40px; }
.cta-band h3 { font-size: 20px; } .cta-band p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 50px 0; counter-reset: s; }
.steps div { border-top: 1px solid var(--line-2); padding-top: 18px; }
.steps span { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); align-items: center; justify-content: center; font-weight: 600; margin-bottom: 10px; }
.steps strong { display: block; } .steps p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Formulários ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label, .label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #cfcac0; }
.label { margin: 4px 0 -4px; }
.form-section { font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 14px 0 0; }
.form-section:first-child, .notice + .form-section { margin-top: 0; }
.input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 11px 14px; font: 400 14px var(--sans); transition: border-color .2s; }
.input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.input-sm { width: auto; padding: 8px 12px; }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
input[type=file].input { padding: 9px; font-size: 13px; cursor: pointer; }
input[type=file]::file-selector-button { background: var(--bg-3); color: var(--gold-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 12px; margin-right: 10px; cursor: pointer; font: 500 12px var(--sans); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.form label.check, .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { accent-color: var(--gold); width: 17px; height: 17px; flex-shrink: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
.consent { color: var(--muted) !important; font-size: 13px !important; }
.form-error { color: var(--bad); font-size: 13px; margin: 0; }
.notice { background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); color: #e2d6b5; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.notice.bad { background: rgba(224, 103, 95, .08); border-color: rgba(224, 103, 95, .35); color: #f0c3bf; margin-top: 14px; }
.row-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.row-form label { flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tabs.small { margin-bottom: 18px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 14px 20px; font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; margin-bottom: -1px; }
.tab.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.tabs + .card { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
fieldset[hidden], [hidden] { display: none !important; }
.success-box { text-align: center; background: var(--bg-2); border: 1px solid var(--gold-3); border-radius: var(--radius); padding: 50px 30px; }
.success-ico { width: 70px; height: 70px; border-radius: 50%; background: var(--gold-grad); color: #000; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.protocol { display: inline-block; border: 1px dashed var(--gold); padding: 12px 22px; border-radius: 8px; margin: 10px 0 16px; letter-spacing: .08em; }
.protocol strong { color: var(--gold-2); font-size: 18px; }
.img-field-row { display: flex; gap: 16px; align-items: flex-start; }
.img-field-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.img-preview { width: 140px; height: 90px; object-fit: cover; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; flex-shrink: 0; }
.tl-edit { display: grid; grid-template-columns: 90px 1fr 2fr 34px; gap: 8px; margin-bottom: 8px; align-items: center; }

/* ---------- Acompanhamento / detalhes ---------- */
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.track-head h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: .04em; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; word-break: break-word; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-grid h4 { margin-top: 6px; }
.quote { background: var(--bg); border-left: 2px solid var(--gold); padding: 14px 18px; border-radius: 0 6px 6px 0; margin-top: 14px; font-size: 14px; color: #d6d1c6; }
.quote p:last-child { margin: 0; }
.session-box { display: flex; flex-direction: column; gap: 2px; background: rgba(95, 191, 138, .08); border: 1px solid rgba(95, 191, 138, .35); border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.session-box strong { color: var(--ok); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.session-box p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.mini-tl { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.mini-tl li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mini-tl time { color: var(--muted); }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px 7px 7px; color: var(--text); cursor: pointer; font: 500 13px var(--sans); max-width: 100%; }
.file-chip:hover { border-color: var(--gold); }
.file-ico { background: var(--gold-grad); color: #000; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 4px 6px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.file-size { color: var(--muted); font-size: 11px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; }
.msg.them { align-self: flex-start; border-color: var(--gold-3); }
.msg.me { align-self: flex-end; }
.msg small { color: var(--muted); font-size: 11px; }
.msg p { margin: 4px 0; font-size: 14px; }
.reply { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px; white-space: nowrap; vertical-align: middle; }
.badge-ok { background: rgba(95, 191, 138, .14); color: var(--ok); }
.badge-warn { background: rgba(226, 176, 74, .14); color: var(--warn); }
.badge-bad { background: rgba(224, 103, 95, .14); color: var(--bad); }
.badge-info { background: rgba(106, 167, 224, .14); color: var(--info); }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge-gold { background: rgba(var(--accent-rgb), .15); color: var(--gold-2); font-size: 10px; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 50px 16px; background: radial-gradient(ellipse at top, rgba(var(--accent-rgb), .1), transparent 60%); }
.login-card { width: 100%; max-width: 420px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 40px 36px; box-shadow: var(--shadow); text-align: center; }
.login-card .form { text-align: left; margin-top: 24px; }
.login-logo { width: 200px; margin: 0 auto 10px; }
.login-card h1 { font-size: 24px; margin-top: 10px; }

/* ---------- Painéis ---------- */
body.is-panel #site-footer { display: none; }
.panel { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 110px); }
.panel-side { background: #0b0b0c; border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; display: flex; flex-direction: column; }
.panel-user { display: flex; gap: 12px; align-items: center; padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.panel-user div { display: flex; flex-direction: column; min-width: 0; }
.panel-user strong { font-size: 14px; } .panel-user small { color: var(--gold); font-size: 12px; }
.panel-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.panel-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 6px; color: #cfcac0; font-size: 14px; font-weight: 500; }
.panel-side nav a:hover { background: var(--bg-2); color: var(--gold-2); }
.panel-side nav a.active { background: linear-gradient(90deg, rgba(var(--accent-rgb), .16), transparent); color: var(--gold-2); box-shadow: inset 2px 0 0 var(--gold); }
.count { background: var(--gold); color: #000; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.panel-back { font-size: 13px; color: var(--muted); padding: 14px; }
.panel-main { padding: 36px 40px 60px; min-width: 0; }
.panel-title { margin-bottom: 26px; }
/* Menu lateral agrupado + ícones + subtítulo da página */
.panel-side .nav-group { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: .7; padding: 16px 14px 6px; }
.panel-side .nav-group:first-child { padding-top: 4px; }
.panel-side nav a { padding: 9px 14px; }
.nav-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nav-ico { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.panel-side nav a.active .nav-ico { opacity: 1; }
.panel-crumb { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); opacity: .8; margin-bottom: 4px; }
.panel-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 720px; }
@media (max-width: 1080px) { .panel-side .nav-group { display: none; } }
.panel-title h1 { font-family: var(--serif); font-size: 36px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; color: var(--text); }
a.stat[href]:hover { border-color: var(--gold-3); color: var(--text); }
.stat strong { font-size: 32px; font-weight: 600; line-height: 1; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 13px; margin-top: 6px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .input[type=search] { max-width: 340px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.seg button { background: none; border: 0; color: var(--muted); padding: 9px 14px; font: 500 13px var(--sans); cursor: pointer; }
.seg button.active { background: var(--gold); color: #000; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.center, .table td.center { text-align: center; }
.clickable { cursor: pointer; transition: background .15s; }
tr.clickable:hover td { background: rgba(var(--accent-rgb), .05); }
.thumb { width: 96px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); }
.thumb-logo { object-fit: contain; background: var(--bg); padding: 4px; width: 140px; }
.user-cell { display: flex; gap: 12px; align-items: center; }
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda-day { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px; }
.agenda-day.past { color: var(--warn); }
.agenda-item, .list-item { display: flex; gap: 16px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.agenda-item:hover, .list-item:hover { border-color: var(--gold-3); }
.agenda-item > div:last-child, .list-item > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.agenda-item span { color: #cfcac0; font-size: 13px; }
.agenda-date { width: 54px; text-align: center; border-right: 1px solid var(--line-2); padding-right: 14px; flex-shrink: 0; }
.agenda-date strong { display: block; font-size: 24px; font-weight: 600; line-height: 1; color: var(--gold-2); }
.agenda-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted) !important; }
.profile-card { display: grid; grid-template-columns: auto 1fr 260px; gap: 28px; align-items: center; margin-bottom: 24px; }
.profile-info h2 { margin: 0; } .profile-info .gold { margin-bottom: 14px; }
.oab-card { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.oab-card small { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.oab-card img { border-radius: 4px; max-height: 160px; object-fit: contain; }
.oab-card-row { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 18px; align-items: start; margin-top: 10px; }
@media (max-width: 600px) { .oab-card-row { grid-template-columns: 1fr; } }
.oab-empty { color: var(--muted); font-size: 13px; padding: 30px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; }
.profile-photo-row { display: flex; gap: 20px; align-items: center; }
.profile-photo-row label { flex: 1; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.notif.unread { border-color: var(--gold-3); box-shadow: inset 3px 0 0 var(--gold); }
.notif p { margin: 4px 0; color: #cfcac0; font-size: 14px; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shortcut { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 16px; color: var(--text); font-weight: 500; font-size: 14px; }
.shortcut:hover { border-color: var(--gold); color: var(--gold-2); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.perm-table input { accent-color: var(--gold); width: 18px; height: 18px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-ico { font-size: 28px; color: var(--gold-3); margin-bottom: 6px; }
.empty p { margin: 0; }

.loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.loading span { width: 38px; height: 38px; border: 3px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal e toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .2s; }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; width: 100%; max-width: 600px; box-shadow: var(--shadow); animation: pop .25s ease; }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-head .icon-btn { margin: 0; }
.modal-body { padding: 24px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-3); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); color: var(--text); padding: 14px 18px; border-radius: 8px; box-shadow: var(--shadow); font-size: 14px; max-width: 360px; animation: pop .25s; transition: .4s; }
.toast-bad { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateX(20px); }

/* ---------- Rodapé ---------- */
#site-footer { background: #0a0a0b; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.footer-grid h4 { margin-top: 0; }
.footer-grid a { display: block; color: #cfcac0; font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-logo { width: 190px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1500px) and (min-width: 1241px) {
  .brand-text small { display: none; }
  .nav-links > a:not(.btn) { padding: 8px 7px; font-size: 12.5px; }
  .g-first { display: none; }
  .g-avatar { padding: 3px; }
}
/* menu ☰ abaixo de 1240px (o site dos clientes tem muitos itens no menu) */
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 20px; gap: 2px; overflow-y: auto; display: none; }
  .nav-links.open { display: flex; animation: fade .2s; }
  .nav-links > a:not(.btn) { padding: 14px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links > a.active::after { display: none; }
  .nav-links .btn, .user-menu { margin: 14px 0 0; }
  .user-drop { position: static; display: block; box-shadow: none; margin-top: 8px; }
  .user-btn { width: 100%; }
  .nav-links .g-user { margin: 14px 0 0; }
  .nav-links .g-menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-side { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .panel-side nav a { white-space: nowrap; gap: 8px; }
  .panel-user { padding-bottom: 14px; }
  .panel-back { display: none; }
  .profile-card { grid-template-columns: auto 1fr; }
  .oab-card { grid-column: span 2; }
}
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .areas-grid, .news-grid, .mvv, .channels-grid, .services-grid, .choice-grid { grid-template-columns: 1fr; }
  .split, .sede-grid, .detail-grid { grid-template-columns: 1fr; }
  .sede-photo { grid-row: auto; min-height: 220px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .car-arrow { display: none; }
  .panel-main { padding: 24px 16px 50px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-2, .checks.cols-2, .mvv-mini, .shortcut-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .brand-text small { display: none; }
  .brand-shield { height: 42px; }
  .hero-carousel { min-height: 520px; }
  .slide-shade { background: linear-gradient(0deg, rgba(8, 8, 8, .95) 20%, rgba(8, 8, 8, .55) 100%); }
  .slide { align-items: flex-end; padding-bottom: 80px; }
  .slide-bg { background-position: 78% 30%; }
  .card { padding: 20px; }
  .dl { grid-template-columns: 100px 1fr; }
  .mini-tl li { grid-template-columns: 1fr; gap: 2px; }
  .profile-card { grid-template-columns: 1fr; text-align: left; }
  .oab-card { grid-column: auto; }
  .tl-edit { grid-template-columns: 70px 1fr 34px; }
  .tl-edit input:nth-child(3) { grid-column: 1 / 3; }
  .timeline::before { left: 8px; } .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; } .timeline li::before { left: 3px; }
  .img-field-row { flex-direction: column; }
  .tab { padding: 12px 12px; font-size: 12px; }
  .modal-body { padding: 18px; }
  .topbar-social { gap: 12px; font-size: 11px; }
}
/* ---------- Login com Google (site dos clientes) ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px;
  background: radial-gradient(ellipse at top, rgba(var(--accent-rgb), .12), transparent 60%), var(--bg); }
.gate.gate-inline { min-height: calc(100vh - 76px); padding: 60px 16px; }
.gate-card { max-width: 440px; width: 100%; text-align: center; padding: 40px 32px; }
.gate-logo { max-width: 220px; margin: 0 auto 18px; display: block; }
.gate-card h1 { font-size: 28px; margin: 0 0 6px; }
.g-btn { display: flex; justify-content: center; margin: 24px 0 8px; min-height: 44px; }
/* O botão do Google é um iframe claro; com o site em modo escuro o navegador pinta um fundo branco atrás dele */
.g-btn, .g-btn iframe { color-scheme: light; background: transparent; }
.gate-foot { margin-top: 22px; line-height: 1.7; }
.gate-foot a { color: var(--gold); }
.g-user { position: relative; margin-left: 10px; flex-shrink: 0; }
.g-avatar { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: 30px; padding: 3px 10px 3px 3px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.g-avatar:hover, .g-avatar[aria-expanded="true"] { border-color: var(--line); color: var(--gold-2); }
.g-avatar img, .g-avatar > span:first-child { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }
.g-avatar > span:first-child { display: grid; place-items: center; background: var(--gold-grad); color: #111; font-weight: 700; }
.g-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; display: grid; gap: 8px; padding: 14px; z-index: 60;
  background: var(--bg-2, #141416); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.g-menu small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* cabeçalho do site dos clientes: mais largo, porque o menu tem muitos itens */
.nav-wrap:not(.admin-bar) > .container.nav { max-width: 1480px; }
.gate-form { text-align: left; margin-top: 18px; }
/* ---------- Registro de clientes, OAB e tickets ---------- */
.link-pdf { color: var(--gold); font-weight: 600; white-space: nowrap; }
.link-pdf:hover { text-decoration: underline; }
.msg-sys { align-self: center; font-size: 12px; color: var(--muted); padding: 2px 10px; border: 1px dashed var(--line); border-radius: 20px; }
.perm-highlight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 6px 0 4px;
  border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(var(--accent-rgb), .07); }
.toolbar .seg { flex-wrap: wrap; }
/* ---------- Login (acessar / solicitar acesso), registro de funcionários e bot ---------- */
.login-choice { display: grid; gap: 12px; margin-top: 18px; }
.login-card form h3.mt-0, .mt-0 { margin-top: 0; }
.verify-box { max-width: 720px; }
.verify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-row .input { flex: 1 1 240px; }
.verify-ok, .verify-bad { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); }
.verify-ok { border: 1px solid #3f8f5a; background: rgba(63, 143, 90, .12); }
.verify-bad { border: 1px solid #a04545; background: rgba(160, 69, 69, .12); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 8px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  /* Sem animações de movimento; a roleta e os parceiros continuam trocando por etapas (via JS) */
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Documentos Pearson (editor com papel timbrado) ---------- */
.pd-back { padding: 0; align-items: stretch; justify-content: stretch; }
.pd-editor { display: flex; flex-direction: column; width: 100%; height: 100vh; background: var(--bg); }
.pd-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.pd-top .pd-title { flex: 1 1 280px; min-width: 200px; }
.pd-top .pd-model { flex: 0 1 280px; width: auto; }
.pd-num { white-space: nowrap; }
.pd-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pd-tools button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-3); color: var(--text); cursor: pointer; font: 13px var(--sans); }
.pd-tools button:hover { border-color: var(--gold); color: var(--gold-2); }
.pd-sep { width: 1px; margin: 4px 4px; background: var(--line-2); }
.pd-scroll { flex: 1; overflow: auto; padding: 24px 16px 40px; background: #3b3b40; }
.pd-paper { width: 794px; min-height: 1123px; margin: 0 auto; background-color: #fff; background-repeat: repeat-y; background-size: 794px 1123px; box-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.pd-body { min-height: 1123px; padding: 159px 83px 136px 113px; color: #111; font: 11pt/1.5 Arial, Helvetica, sans-serif; outline: none; caret-color: #111; }
.pd-body h1 { font: 700 13pt/1.4 Arial, Helvetica, sans-serif; margin: 0 0 10pt; color: #111; }
.pd-body h2 { font: 700 11.5pt/1.4 Arial, Helvetica, sans-serif; margin: 12pt 0 6pt; color: #111; }
.pd-body h3 { font: 700 11pt/1.4 Arial, Helvetica, sans-serif; margin: 10pt 0 4pt; color: #111; }
.pd-body p { margin: 0 0 7pt; color: #111; }
.pd-body ul, .pd-body ol { margin: 0 0 7pt; padding-left: 22pt; }
.pd-body blockquote { margin: 0 0 7pt 24pt; font-style: italic; }
.pd-body table { border-collapse: collapse; width: 100%; }
.pd-body td, .pd-body th { border: 1px solid #999; padding: 3pt 5pt; }
.pd-foot { padding: 6px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.nowrap { white-space: nowrap; }

/* ---------- Vídeo da página inicial ---------- */
.home-video { padding-bottom: 0; }
.video-frame { max-width: 960px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.video-frame video { display: block; width: 100%; max-height: 75vh; background: #000; }

/* ---------- Equipe: busca de funcionário e carteira digital ---------- */
.sc-results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-pick { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-3); color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.sc-pick:hover, .sc-pick.active { border-color: var(--gold); color: var(--gold-2); }
.sc { max-width: 520px; margin: 22px auto 0; padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; background: #12151c; }
.sc-top { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sc-avatar { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #262a33; color: var(--text); }
.sc-avatar svg { width: 24px; height: 24px; }
.sc-name { font-size: 16px; }
.sc-mono { font: 700 14px/1.6 ui-monospace, Consolas, 'Courier New', monospace; letter-spacing: .04em; }
.sc-tags { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; }
.sc-st { font-weight: 700; padding: 1px 10px; border-radius: 4px; }
.sc-ok { color: #3ddc84; background: rgba(61, 220, 132, .1); }
.sc-warn { color: var(--warn); background: rgba(226, 176, 74, .1); }
.sc-bad { color: var(--bad); background: rgba(224, 103, 95, .12); }
.sc-card { position: relative; margin-top: 18px; padding: 20px 18px; border-radius: 10px; background: linear-gradient(135deg, #1a2540 0%, #121a2e 100%); overflow: hidden; }
.sc-ico { position: absolute; top: 14px; right: 18px; width: 52px; height: 52px; color: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.sc-ico svg, .sc-ico img { width: 100%; height: 100%; opacity: .9; }
.sc-psi { font: 700 48px/1 Georgia, serif; }
.sc-head { display: block; color: #8d96ab; letter-spacing: .08em; font-size: 11px; font-weight: 600; padding-right: 60px; }
.sc-cname { margin-top: 12px; font: 700 21px var(--serif); color: var(--gold-2); }
.sc-card .sc-mono { color: var(--gold-2); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: #c9cdd6; font-size: 13px; }
.sc-valid { margin-top: 10px; color: var(--gold-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.sc-valid.bad { color: var(--bad); }

/* ---------- Carteira CRP-SP ---------- */
.crp-wrap { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: start; }
.crp-cards { display: grid; gap: 14px; }
.crp-cv { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
@media (max-width: 900px) { .crp-wrap { grid-template-columns: 1fr; } }
.video-frame { position: relative; }
.video-sound { position: absolute; top: 14px; right: 14px; padding: 8px 14px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(10, 10, 10, .75); color: var(--gold-2); font: 600 13px var(--sans); cursor: pointer; }
.video-sound:hover { background: rgba(10, 10, 10, .9); }
/* Carteira digital nas cores da Pearson (preto e dourado) */
.sc { background: #111112; border-color: var(--gold-3); }
.sc-avatar { background: #1c1a15; color: var(--gold-2); border: 1px solid var(--gold-3); }
.sc-card { background: linear-gradient(135deg, #1d1b16 0%, #0d0d0e 60%, #17140d 100%); border: 1px solid var(--gold-3); box-shadow: inset 0 0 0 1px rgba(230, 201, 122, .06); }
.sc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
.sc-head { color: var(--gold); }
.sc-ico { color: rgba(230, 201, 122, .35); width: 60px; height: 60px; }
.sc-ico img { opacity: .55; object-fit: contain; }
.sc-meta { color: #d6cfbf; }

/* ---------- Assinaturas ---------- */
.sig-preview { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 10px 0; padding: 10px; border: 1px dashed var(--line-2); border-radius: 8px; background: #fff; }
.sig-preview img { max-width: 100%; max-height: 110px; }
.sig-preview .muted { color: #777; }
.sig-preview.sm { min-height: 60px; margin: 6px 0; }
.sig-preview.sm img { max-height: 54px; }
.sig-pad { width: 100%; height: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; touch-action: none; cursor: crosshair; }
.sig-ask .seg { margin-bottom: 12px; }
.sig-box { margin-top: 18px; }
.pd-body img.sig { display: inline-block; max-height: 76px; max-width: 265px; vertical-align: bottom; }
.crp-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .crp-sigs { grid-template-columns: 1fr; } }

/* ---------- Carteira de clientes ---------- */
.case-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.case-steps span { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; color: var(--muted); }
.case-steps span.ok { border-color: var(--gold-3); color: var(--gold-2); background: rgba(var(--accent-rgb), .08); }
.case-admin { padding: 12px; border: 1px solid var(--gold-3); border-radius: 10px; background: rgba(var(--accent-rgb), .05); }
.fs { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fs legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.msg-kind { display: inline-block; margin: 4px 0 2px; }
.mt-sm { margin-top: 10px; }
/* assinaturas da carteira CRP: uma embaixo da outra (a coluna do formulário é estreita) */
.crp-sigs { grid-template-columns: 1fr; }
.crp-sigs > div { min-width: 0; }
.crp-sigs .btn { max-width: 100%; white-space: normal; }
.crp-form { min-width: 0; overflow: hidden; }
/* Campos de assinatura dos modelos: aparecem como uma caixa clicável acima da linha */
.pd-body .sig-slot { margin: 0 auto 2px; padding: 10px 8px; max-width: 320px; border: 1.5px dashed #b48a2c; border-radius: 6px; background: #fdf6e3; color: #8a6a26 !important; font-size: 9pt; font-weight: 700; text-align: center !important; cursor: pointer; user-select: none; }
.pd-body .sig-slot:hover { background: #f8ebc4; }
.pd-body p:has(> img.sig:only-child) { margin: 0 0 -2px; line-height: 0; }
.sig-choose { display: grid; gap: 8px; }

/* =====================================================================
   Efeitos e transições
   ===================================================================== */
/* Entrada de cada página */
.page-enter > * { animation: fx-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.page-enter > :nth-child(2) { animation-delay: .06s; }
.page-enter > :nth-child(3) { animation-delay: .12s; }
@keyframes fx-up { from { opacity: 0; transform: translateY(16px); } }
.page-enter .page-head h1, .page-enter .page-head p, .page-enter .page-head .crumb { animation: fx-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.page-enter .page-head p { animation-delay: .12s; }
.page-enter .page-head .crumb { animation-delay: .04s; }

/* Brilho dourado que atravessa o topo das páginas internas */
.page-head::after { content: ''; position: absolute; left: -40%; bottom: -1px; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); animation: fx-sweep 5s ease-in-out infinite; }
@keyframes fx-sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }

/* Elementos que aparecem ao rolar */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.areas-grid > .rv.in:hover, .news-grid > .rv.in:hover, .channels-grid > .rv.in:hover { transform: translateY(-4px); transition-delay: 0ms; }
.about-logo.rv { transform: scale(.94); }
.about-logo.rv.in { transform: none; }
.section-title.rv h2::after { content: ''; display: block; width: 0; height: 2px; margin-top: 14px; background: var(--gold-grad); transition: width 1s .3s cubic-bezier(.2, .7, .2, 1); }
.section-title.center.rv h2::after { margin-left: auto; margin-right: auto; }
.section-title.rv.in h2::after { width: 64px; }
.timeline li.rv { transform: translateX(-18px); }
.timeline li.rv.in { transform: none; }

/* Cabeçalho que encolhe ao rolar */
.nav { transition: height .35s ease; }
.nav-wrap { transition: background .35s, box-shadow .35s; }
.brand-shield { transition: transform .35s ease, height .35s ease, width .35s ease; }
body.scrolled .nav-wrap { background: color-mix(in srgb, var(--bg) 96%, black); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
body.scrolled:not(.is-panel) .nav { height: 62px; }
body.scrolled:not(.is-panel) .brand-shield { transform: scale(.86); }
.brand:hover .brand-shield { transform: rotate(-6deg) scale(1.05); }

/* Links do menu com sublinhado dourado deslizante */
.nav-links > a:not(.btn) { position: relative; }
.nav-links > a:not(.btn)::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -6px; height: 2px; background: var(--gold-grad); transition: left .3s ease, right .3s ease; }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { left: 0; right: 0; }

/* Barra dourada de progresso de leitura */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; pointer-events: none; transition: transform .1s linear; }

/* Botões: brilho que passa e onda ao clicar */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::before { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s ease; }
.btn-gold:hover::before { left: 130%; }
.btn-outline:hover { box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(var(--accent-rgb), .25); }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: fx-ripple .65s ease-out forwards; pointer-events: none; z-index: -1; }
.btn-outline .fx-ripple, .btn-ghost .fx-ripple { background: rgba(var(--accent-rgb), .3); }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }

/* Setinhas dos links andam no hover */
.link-arrow { display: inline-block; transition: letter-spacing .3s ease, color .3s; }
a:hover .link-arrow, .link-arrow:hover { letter-spacing: .12em; }

/* Cartões: brilho suave que acompanha o hover */
.area-card::after, .news-card::after, .channel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at 50% 0%, rgba(var(--accent-rgb), .10), transparent 45%); opacity: 0; transition: opacity .4s; }
.news-card, .channel { position: relative; }
.area-card:hover::after, .news-card:hover::after, .channel:hover::after { opacity: 1; }
.area-ico { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.area-card:hover .area-ico { transform: translateY(-3px) scale(1.08); }
.news-img { transition: transform .8s ease; }
.news-card { overflow: hidden; }
.news-card:hover .news-img { transform: scale(1.05); }

/* Logo da seção "Sobre" flutuando */
.about-logo img { animation: fx-float 6s ease-in-out infinite; }
@keyframes fx-float { 50% { transform: translateY(-10px); } }

/* Pontos da linha do tempo pulsando */
.timeline li.in::before { animation: fx-pulse 2.4s ease-out 1; }
@keyframes fx-pulse { 0% { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 4px rgba(var(--accent-rgb), .6); } 100% { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 18px rgba(var(--accent-rgb), 0); } }

/* Abas do painel e linhas das tabelas */
.panel-side nav a { transition: background .2s, color .2s, padding-left .25s; }
.panel-side nav a:hover { padding-left: 18px; }
.table tbody tr { transition: background .2s; }

/* Quem prefere menos movimento: nada se mexe e tudo já aparece */
@media (prefers-reduced-motion: reduce) {
  /* Com "reduzir movimento" (comum no Windows com animações desligadas): nada se desloca,
     mas as páginas e os blocos ainda aparecem com um esmaecer suave */
  .page-enter > * { animation: fx-fade .5s ease both !important; }
  .rv { transform: none !important; transition: opacity .7s ease !important; transition-delay: var(--d, 0ms) !important; }
  .rv.in { opacity: 1; }
  .section-title.rv h2::after { transition: width .8s ease .2s !important; }
  .btn, .area-card, .news-card, .channel, .nav-links > a::after { transition: color .2s, background .2s, border-color .2s, box-shadow .2s, left .25s, right .25s !important; }
  .page-head::after { display: none; }
}
@keyframes fx-fade { from { opacity: 0; } }

/* ===== Meus processos ===== */
.proc-tools { display: grid; grid-template-columns: 1fr 200px 230px; gap: 10px; margin-bottom: 12px; }
.proc-search { position: relative; display: block; }
.proc-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.proc-search .input { padding-left: 36px; width: 100%; }
.proc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); color: #cfcac0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; cursor: pointer; transition: .2s; }
.pchip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.pchip:hover { border-color: var(--gold); color: var(--gold-2); }
.pchip.active { background: rgba(var(--accent-rgb), .15); border-color: var(--gold); color: var(--gold-2); }
.pchip-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.proc-actions { margin-left: auto; display: flex; gap: 8px; }
.proc-counts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.proc-count { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; font: inherit; cursor: pointer; transition: .2s; }
.proc-count strong { font-size: 20px; }
.proc-count span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.proc-count:hover, .proc-count.active { border-color: var(--gold); }
.proc-count.active strong { color: var(--gold-2); }
.proc-list { display: flex; flex-direction: column; gap: 10px; }
.proc-item { display: flex; justify-content: space-between; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .2s, transform .2s; }
.proc-item:hover, .proc-item:focus-visible { border-color: var(--gold); transform: translateY(-1px); outline: none; }
.proc-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.proc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proc-num { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 13px; }
.proc-num svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.proc-subj { text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.proc-parts { color: var(--gold); font-size: 12px; }
.proc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; color: var(--muted); }
.proc-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pbadge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; }
.pst-novo { background: rgba(96, 165, 250, .14); color: #93c5fd; border-color: rgba(96, 165, 250, .35); }
.pst-andamento { background: rgba(var(--accent-rgb), .14); color: var(--gold-2); border-color: rgba(var(--accent-rgb), .4); }
.pst-concluso { background: rgba(167, 139, 250, .14); color: #c4b5fd; border-color: rgba(167, 139, 250, .35); }
.pst-sentenciado { background: rgba(52, 211, 153, .14); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
.pst-arquivado { background: rgba(255, 255, 255, .06); color: #a8a29e; border-color: rgba(255, 255, 255, .15); }
.pst-suspenso { background: rgba(248, 113, 113, .12); color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.pdl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pdl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.pdl-bad { background: #7f1d1d; color: #fecaca; }
.pdl-warn { background: #fbbf24; color: #3a2600; }
.pdl-soon { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.pdl-ok { background: rgba(255, 255, 255, .06); color: #cfcac0; }
.pdl-prio { background: rgba(var(--accent-rgb), .18); color: var(--gold-2); }
.pdl-prio svg { fill: currentColor; }
.pdl-shared { background: rgba(96, 165, 250, .1); color: #93c5fd; }
.proc-sheet h4 { margin: 18px 0 8px; }
.proc-head h3 { margin: 8px 0 2px; text-transform: uppercase; font-size: 18px; }
.proc-head em { color: var(--muted); font-style: normal; }
.proc-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 16px 0 0; }
.proc-dl dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proc-dl dd { margin: 2px 0 0; }
.proc-tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.proc-tl li { position: relative; }
.proc-tl li::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.proc-tl li.ev-sistema::before { background: #57534e; }
.proc-tl li.ev-status::before { background: #6ee7b7; }
.proc-tl p { margin: 4px 0 0; }
.ev-meta { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.ev-meta small { color: var(--muted); }
.proc-bar { margin-bottom: 4px; }
.proc-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
.proc-owner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 14px; margin: 10px 0; }
.proc-shares { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.proc-shares li, .proc-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.proc-shares span, .proc-person span { display: flex; flex-direction: column; min-width: 0; }
.proc-people { display: flex; flex-direction: column; gap: 8px; }
.proc-person { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.proc-add { margin: 8px 0 4px; }
.pr-prio { align-self: end; padding-bottom: 10px; }
.pw-code { font-size: 22px; letter-spacing: .12em; color: var(--gold-2); }
@media (max-width: 900px) {
  .proc-tools { grid-template-columns: 1fr; }
  .proc-counts { grid-template-columns: repeat(3, 1fr); }
  .proc-owner { grid-template-columns: 1fr; }
  .proc-actions { margin-left: 0; width: 100%; }
}
.proc-add { margin: 0 0 16px; gap: 8px; }
.proc-add-row { display: flex; gap: 10px; align-items: center; }
.proc-add-row .input { flex: 1; }
.proc-owner h4 { margin: 12px 0 8px; }
.ev-meta .ev-dm { color: #93c5fd; }

/* ===== Celular: barra do topo da Equipe / Admin ===== */
@media (max-width: 860px) {
  .admin-bar .container.nav { height: auto !important; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; gap: 10px; }
  .admin-bar .admin-bar-actions { display: contents; }
  .admin-bar .brand { margin-right: auto; }
  .admin-bar .portal-switch { display: flex; order: 10; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .admin-bar .portal-switch::-webkit-scrollbar { display: none; }
  .admin-bar .portal-switch a { flex: 1 0 auto; text-align: center; white-space: nowrap; padding: 9px 12px; }
  .admin-bar a.btn[href="/"] { display: none; }
}

/* ===== Celular: ajustes gerais (painéis, tabelas, janelas, formulários) ===== */
@media (max-width: 860px) {
  .panel-user { padding: 0 4px 12px; margin-bottom: 10px; }
  .panel-title { margin-bottom: 18px; }
  .panel-title h1 { font-size: 30px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  /* campos com 16px: o iPhone não dá zoom ao tocar */
  .input, select.input, textarea.input, input.input { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 12px; }
  /* tabelas viram cartões: cada linha um bloco, com o nome da coluna ao lado do valor */
  .table-wrap { border: 0; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
  .table td { border: 0 !important; padding: 6px 0 !important; text-align: right; overflow-wrap: anywhere; }
  .table td::after { content: ''; display: table; clear: both; }
  .table td[data-label]::before { content: attr(data-label); float: left; margin-right: 14px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-align: left; max-width: 42%; padding-top: 3px; }
  .table td:first-child { font-size: 15px; }
  .table td .btn { margin: 2px 0 2px 6px; }
  .table .thumb { margin-left: auto; display: inline-block; }
  /* janelas ocupam a tela inteira */
  .modal-back { padding: 0; align-items: stretch; }
  .modal, .modal-wide { max-width: none; min-height: 100%; border-radius: 0; border: 0; }
  .modal-head { position: sticky; top: 0; z-index: 2; background: var(--bg-2); padding: 14px 16px; }
  .modal-head h3 { font-size: 17px; }
  .modal-body { padding: 16px; }
  /* processos */
  .proc-item { flex-direction: column; gap: 6px; }
  .proc-side { flex-direction: row; align-items: center; }
  .proc-counts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .proc-count { padding: 10px 4px; }
  .proc-count strong { font-size: 18px; }
  .proc-count span { font-size: 9.5px; letter-spacing: .04em; }
  .proc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .proc-add-row { flex-direction: column; align-items: stretch; }
  .pchip-sep { display: none; }
  /* botões e chips mais fáceis de tocar */
  .btn-sm { padding-top: 9px; padding-bottom: 9px; }
  .seg button { padding: 10px 12px; }
  .chat { max-height: 55vh; }
}
@media (max-width: 640px) { .table.perm-table td { text-align: right !important; } .table.perm-table td:first-child { text-align: right !important; } }
@media (max-width: 640px) {
  .pd-scroll { padding: 12px 12px 30px; }
  .pd-top { padding: 8px 10px; }
  .pd-top .pd-title, .pd-top .pd-model { flex: 1 1 100%; min-width: 0; }
  .pd-tools { padding: 6px 10px; overflow-x: auto; flex-wrap: nowrap; }
  .pd-tools button { flex-shrink: 0; }
}
@media (max-width: 640px) { .pd-foot { display: none; } }

/* ===== Celular: anúncio com a imagem inteira em cima e o texto embaixo ===== */
@media (max-width: 600px) {
  .hero-carousel { height: auto; min-height: 0; aspect-ratio: auto; }
  .hero-carousel .slides { position: relative; min-height: 560px; }
  .slide-bg { inset: 0 0 auto 0; height: 46%; background-size: contain; background-repeat: no-repeat; background-position: center 55%; transform: none !important; }
  .slide-shade { background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0) 38%, rgba(8, 8, 8, .92) 50%, #080808 100%); }
  .slide { align-items: flex-end; padding-bottom: 64px; }
  .slide-content h2 { font-size: 30px; margin-bottom: 12px; }
  .slide-content p { font-size: 15px; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .hero-carousel .slides { min-height: calc(56vw + 290px); }
  .slide-bg { height: 56vw; top: 8px; background-position: center; }
  .slide-shade { background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0, rgba(8, 8, 8, 0) calc(56vw - 20px), rgba(8, 8, 8, .95) calc(56vw + 20px), #080808 100%); }
}
/* Áreas desativadas: os cartões que sobram ocupam a linha inteira */
@media (min-width: 861px) { .areas-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.area-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.area-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.area-toggle.off { opacity: .6; }
.area-toggle small { display: block; color: var(--muted); font-size: 12px; }
.area-toggle .switch { flex-shrink: 0; } .area-toggle > span:first-child { min-width: 0; }
/* Gerar documento (escolha do modelo) */
.pd-pick { display: grid; gap: 8px; }

/* ===== Contabilidade: funções, etapas, aprovação, simulador ===== */
.acc-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 40px; }
.acc-service { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.acc-service:hover { border-color: var(--gold); transform: translateY(-2px); }
.acc-service-head { display: flex; align-items: center; gap: 10px; }
.acc-service-head h3 { margin: 0; font-size: 17px; }
.acc-ico { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), .12); flex-shrink: 0; }
.acc-service p { margin: 0; font-size: 14px; }
.acc-service ul { margin: 2px 0 6px; padding-left: 18px; font-size: 13.5px; color: #cfcac0; flex: 1; }
.acc-service ul li { margin-bottom: 3px; }
.acc-service .btn { align-self: flex-start; }
.acc-progress { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.acc-progress span { display: block; height: 100%; background: var(--gold-grad, var(--gold)); transition: width .4s ease; }
.acc-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.acc-steps .ok { color: var(--gold-2); }
.acc-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.acc-tools { margin: 10px 0; }
.acc-track { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.acc-track li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.acc-track li > span { flex: 1; }
.acc-track li:not(.ok) { opacity: .75; }
.acc-track li.ok { color: var(--text); }
.acc-approval { border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 10px; padding: 14px 16px; margin: 14px 0; background: rgba(var(--accent-rgb), .06); }
.acc-approval.aprovado { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .06); }
.sim-best td { background: rgba(52, 211, 153, .08); }
.acc-service-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.acc-service-btn.active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.acc-svc-count { font-size: 13px; color: var(--muted); margin-top: auto; }
.acc-svc-count strong { color: var(--gold-2); font-size: 16px; }
/* Ícones de traço (no lugar de emojis) */
.acc-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-sound svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 6px; }
.st-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6b6760; margin-right: 7px; vertical-align: 0; }
.st-dot.ok { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.st-dot.warn { background: #fbbf24; }
.st-dot.bad { background: #f87171; }
.acc-detail { margin-top: 6px; border-color: rgba(var(--accent-rgb), .45); }
.acc-detail-head { display: flex; gap: 14px; align-items: flex-start; }
.acc-detail-head .acc-ico { width: 48px; height: 48px; }
.acc-detail-head p { margin: 4px 0 0; }
.acc-detail ul, .acc-detail ol { padding-left: 20px; margin: 0; }
.acc-detail li { margin-bottom: 4px; }

/* Processos na Justiça (Secretaria da Justiça) */
.jus-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.jus-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.jus-tools .proc-search { flex: 1; min-width: 220px; }
.jus-last { color: var(--muted); border-left: 2px solid var(--gold); padding-left: 8px; margin-top: 2px; }
.jus-mov { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.jus-mov p { margin: 6px 0 0; white-space: pre-wrap; }
.jus-oabs { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; white-space: pre-wrap; font-size: 13px; max-height: 220px; overflow: auto; }
.jus .proc-counts { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.text-bad { color: var(--bad); }
.pre-wrap { white-space: pre-wrap; }

/* Contabilidade: cadastro empresarial e portal da empresa */
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.co-ico { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.7; vertical-align: -3px; margin-right: 4px; }
.co-sec { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.co-sec h4 { margin: 0 0 6px; font-weight: 500; }
.co-files, .co-pend { list-style: none; margin: 0 0 6px; padding: 0 0 0 26px; display: flex; flex-direction: column; gap: 6px; }
.co-pend { padding-left: 0; }
.co-pend li.done { opacity: .6; }
.co-folder-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.co-partner { margin-bottom: 8px; align-items: center; }
.co-partner .row-actions { flex-wrap: nowrap; margin: 0; }
.narrow-card { max-width: 440px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.tab .dot { background: var(--bad); color: #fff; border-radius: 10px; font-size: 10px; padding: 1px 6px; }

.modal-wide.modal-xl { max-width: 1100px; }
.co-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.co-tabs .tab { white-space: nowrap; padding: 12px 11px; letter-spacing: .05em; flex-shrink: 0; }

/* Declaração de IRPJ */
.irpj-alert { border: 1px solid rgba(224,103,95,.45); background: rgba(224,103,95,.08); border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 12px; }
.irpj-alert-h { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .03em; }
.irpj-alert-h svg { width: 18px; height: 18px; fill: none; stroke: var(--bad); stroke-width: 2; }
.irpj-alert-v { display: block; color: var(--bad); font-size: 24px; margin: 6px 0 4px; }
.irpj-alert p { margin: 0 0 4px; } .irpj-alert ul { margin: 0 0 6px; } .irpj-alert small { color: var(--muted); }
.irpj-sum { display: flex; flex-direction: column; gap: 6px; }
.irpj-row { display: flex; justify-content: space-between; gap: 10px; } .irpj-row.bad b { color: var(--bad); }
.irpj-row.total { border-top: 1px solid var(--line); padding-top: 6px; font-size: 1.05em; } .irpj-row.total b { color: var(--gold-2); }

/* Declaração de IRRF: listas editáveis */
.rf-list { margin-bottom: 6px; }
.rf-head, .rf-row { display: grid; gap: 8px; align-items: center; }
.rf-head small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.rf-row { margin-bottom: 6px; }
.span-3 { grid-column: 1 / -1; }
@media (max-width: 760px) { .rf-head { display: none; } .rf-row { grid-template-columns: 1fr 1fr !important; } .rf-row [data-rm] { justify-self: end; } }
.rf-list:has([data-rows]:empty) .rf-head { display: none; }
.co-cnpj { flex-wrap: nowrap; margin: 0; } .co-cnpj .input { flex: 1; min-width: 0; }

/* Aparência e tema */
.th-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.th-top .th-fx { max-width: 380px; margin: 0; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.th-opt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color .2s, transform .2s; }
.th-opt:hover { transform: translateY(-2px); }
.th-opt.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.th-mini { height: 140px; border-bottom: 1px solid; display: flex; flex-direction: column; }
.th-bar { height: 22px; border-bottom: 1px solid; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.th-bar span { width: 14px; height: 14px; border-radius: 3px; } .th-bar i { width: 28px; height: 4px; border-radius: 2px; opacity: .6; } .th-bar i:first-of-type { margin-left: auto; }
.th-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.th-body b { font-family: var(--serif); font-size: 18px; line-height: 1; } .th-body small { font-size: 9px; }
.th-card { border: 1px solid; border-radius: 6px; padding: 7px; display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.th-card em { display: block; height: 5px; border-radius: 3px; } .th-card em:first-child { width: 55%; } .th-card em:last-child { width: 80%; }
.th-btn { display: block; width: 70px; height: 14px; border-radius: 4px; margin-top: 4px; }
.th-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
/* Efeitos de época (neve / confete) */
.theme-fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.theme-fx i { position: absolute; top: -20px; display: block; animation: th-fall linear infinite; }
.theme-fx-neve i { background: #fff; border-radius: 50%; filter: blur(.4px); }
.theme-fx-confete i { border-radius: 1px; animation-name: th-fall-spin; }
@keyframes th-fall { to { transform: translate3d(30px, 110vh, 0); } }
@keyframes th-fall-spin { to { transform: translate3d(-40px, 110vh, 0) rotate(720deg); } }
.theme-fx.still i { animation: none; }

/* ===== Clima das datas: faixa de mensagem, pisca-pisca, brilho e fogos ===== */
.th-switches { display: grid; gap: 10px; }
.th-msg { margin-top: 14px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .th-msg label { flex: 1; min-width: 260px; margin: 0; }
.theme-banner { position: relative; z-index: 49; color: #fff; overflow: hidden; }
.theme-banner .tb-in { max-width: 1480px; margin: 0 auto; padding: 10px 52px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.tb-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }
.tb-title { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.tb-msg { font-size: 13.5px; opacity: .92; }
.tb-count { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; border: 1px solid currentColor; }
.tb-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; opacity: .7; } .tb-x:hover { opacity: 1; }
.tb-slim .tb-in { padding: 6px 44px; gap: 8px; } .tb-slim .tb-title { font-size: 17px; } .tb-slim .tb-ico svg { width: 18px; height: 18px; } .tb-slim .tb-count { display: none; }
/* Natal: faixa vermelha com flocos e letras douradas */
.tb-natal { background: radial-gradient(circle at 12% 30%, rgba(255,255,255,.18) 0 1.5px, transparent 2.5px) 0 0/46px 46px, radial-gradient(circle at 70% 70%, rgba(255,255,255,.14) 0 1px, transparent 2px) 0 0/34px 34px, linear-gradient(90deg, #7a1418, #b3242a 50%, #7a1418); border-bottom: 2px solid #e8c56a; }
.tb-natal .tb-ico, .tb-natal .tb-title, .tb-natal .tb-count { color: #f6dc92; }
/* Ano Novo: faixa escura com brilho dourado passando */
.tb-anonovo { background: linear-gradient(90deg, #0b0a08, #1d1a12 50%, #0b0a08); border-bottom: 2px solid #e0c068; }
.tb-anonovo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(247,227,160,.18) 50%, transparent 70%); animation: tb-shine 5s linear infinite; pointer-events: none; }
.tb-anonovo .tb-title { background: linear-gradient(90deg, #fff1bd, #e0c068, #fff1bd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-anonovo .tb-ico, .tb-anonovo .tb-count { color: #f7e3a0; }
@keyframes tb-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Pisca-pisca de Natal embaixo do cabeçalho (site e painéis) */
html[data-theme^="natal"] .nav-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 10px 6px, #ff4d4d 0 3.5px, transparent 4.5px) 0 0/80px 12px, radial-gradient(circle at 30px 6px, #ffd34d 0 3.5px, transparent 4.5px) 0 0/80px 12px,
    radial-gradient(circle at 50px 6px, #4dd17a 0 3.5px, transparent 4.5px) 0 0/80px 12px, radial-gradient(circle at 70px 6px, #5aa9ff 0 3.5px, transparent 4.5px) 0 0/80px 12px;
  filter: drop-shadow(0 0 4px rgba(255,220,120,.7)); animation: th-blink 1.6s steps(2) infinite; }
@keyframes th-blink { 50% { filter: drop-shadow(0 0 1px rgba(255,220,120,.3)) brightness(.55); } }
/* Ano Novo: fio de brilho dourado embaixo do cabeçalho */
html[data-theme^="anonovo"] .nav-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #f7e3a0, #e0c068, #ffffff, #e0c068, #f7e3a0, transparent) 0 0/200% 100%; animation: th-sequin 4s linear infinite; }
@keyframes th-sequin { to { background-position: -200% 0; } }
/* Fogos de artifício */
.theme-fx .fw { position: absolute; width: 0; height: 0; animation: fw-cycle 6.5s ease-out infinite; opacity: 0; }
.theme-fx .fw u { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor;
  transform: rotate(var(--a)) translateY(0); animation: fw-ray 6.5s ease-out infinite; animation-delay: inherit; }
@keyframes fw-cycle { 0%, 4% { opacity: 0; } 6% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fw-ray { 0%, 5% { transform: rotate(var(--a)) translateY(0) scale(1); } 30% { transform: rotate(var(--a)) translateY(-70px) scale(.4); } 100% { transform: rotate(var(--a)) translateY(-70px) scale(.4); } }
@media (prefers-reduced-motion: reduce) { html[data-theme^="natal"] .nav-wrap::after, html[data-theme^="anonovo"] .nav-wrap::after, .tb-anonovo::before { animation: none; } }
@media (max-width: 700px) { .theme-banner .tb-in { padding: 8px 40px; gap: 6px; } .tb-title { font-size: 19px; } .tb-msg { font-size: 12px; } }

/* ===== Enfeites das datas (site e painéis) ===== */
html[data-theme^="natal"] .brand, html[data-theme^="anonovo"] .brand { position: relative; }
/* gorro do Papai Noel / chapéu de festa no escudo do cabeçalho */
html[data-theme^="natal"] .brand::before { content: ''; position: absolute; left: -10px; top: -14px; width: 40px; height: 31px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'><path d='M8 36C11 19 22 6 37 5c9-.5 15 5 17 14l-7 3c-2-6-6-9-11-9-9 0-16 8-18 23z' fill='%23d6282d'/><path d='M37 5c9-.5 15 5 17 14l-7 3c-1-4-3-7-6-8z' fill='%23a51d22'/><rect x='3' y='32' width='36' height='11' rx='5.5' fill='%23fff'/><circle cx='52' cy='22' r='6.5' fill='%23fff'/></svg>") no-repeat center/contain; transform: rotate(-22deg); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
html[data-theme^="anonovo"] .brand::before { content: ''; position: absolute; left: 1px; top: -22px; width: 22px; height: 28px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'><path d='M20 6L6 46h28z' fill='%237b3fc4'/><path d='M14.5 22h11M11 32h18M8.5 40h23' stroke='%23f2cf6b' stroke-width='3'/><path d='M4 46h32' stroke='%23f2cf6b' stroke-width='4' stroke-linecap='round'/><circle cx='20' cy='6' r='5' fill='%23f2cf6b'/></svg>") no-repeat center/contain; transform: rotate(-16deg); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
/* ramo de azevinho / brilhos antes do nome das seções */
html[data-theme^="natal"] .eyebrow::before, html[data-theme^="anonovo"] .eyebrow::before { content: ''; display: inline-block; width: 28px; height: 17px; margin-right: 8px; vertical-align: -3px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'><path d='M20 12C14 4 6 4 2 8c3 1 3 4 6 4-3 1-3 4-6 4 4 4 12 4 18-4z' fill='%232f8f4e'/><path d='M20 12c6-8 14-8 18-4-3 1-3 4-6 4 3 1 3 4 6 4-4 4-12 4-18-4z' fill='%23267a42'/><circle cx='17' cy='14' r='3' fill='%23d62b2b'/><circle cx='23' cy='14' r='3' fill='%23d62b2b'/><circle cx='20' cy='9.5' r='3' fill='%23e33a3a'/></svg>") no-repeat center/contain; }
html[data-theme^="anonovo"] .eyebrow::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'><path d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%23f2cf6b'/><path d='M30 4l1.3 4.7L36 10l-4.7 1.3L30 16l-1.3-4.7L24 10l4.7-1.3z' fill='%23fff1bd'/><circle cx='33' cy='19' r='1.6' fill='%23f2cf6b'/></svg>"); }
/* laço de presente / estrelas no canto dos cards e dos números dos painéis */
html[data-theme^="natal"] .area-card, html[data-theme^="natal"] .news-card, html[data-theme^="natal"] .channel { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><path d='M24 14C16 2 4 4 6 12s12 6 18 2zM24 14c8-12 20-10 18-2s-12 6-18 2z' fill='%23d6282d'/><path d='M24 14l-8 22 6-4 2 6zM24 14l8 22-6-4-2 6z' fill='%23b51f24'/><circle cx='24' cy='14' r='4' fill='%23f2cf6b'/></svg>"); background-repeat: no-repeat; background-position: right 12px top 10px; background-size: 40px auto; }
html[data-theme^="anonovo"] .area-card, html[data-theme^="anonovo"] .news-card, html[data-theme^="anonovo"] .channel { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><path d='M30 2l2.6 9.4L42 14l-9.4 2.6L30 26l-2.6-9.4L18 14l9.4-2.6z' fill='%23f2cf6b'/><path d='M12 18l1.5 5.5L19 25l-5.5 1.5L12 32l-1.5-5.5L5 25l5.5-1.5z' fill='%23fff1bd'/><circle cx='42' cy='32' r='2' fill='%23d4a7ff'/><circle cx='22' cy='36' r='1.6' fill='%23f2cf6b'/></svg>"); background-repeat: no-repeat; background-position: right 12px top 10px; background-size: 40px auto; }
html[data-theme^="natal"] .stat { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'><path d='M20 12C14 4 6 4 2 8c3 1 3 4 6 4-3 1-3 4-6 4 4 4 12 4 18-4z' fill='%232f8f4e'/><path d='M20 12c6-8 14-8 18-4-3 1-3 4-6 4 3 1 3 4 6 4-4 4-12 4-18-4z' fill='%23267a42'/><circle cx='17' cy='14' r='3' fill='%23d62b2b'/><circle cx='23' cy='14' r='3' fill='%23d62b2b'/><circle cx='20' cy='9.5' r='3' fill='%23e33a3a'/></svg>"); background-repeat: no-repeat; background-position: right 10px top 10px; background-size: 30px auto; }
html[data-theme^="anonovo"] .stat { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'><path d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%23f2cf6b'/><path d='M30 4l1.3 4.7L36 10l-4.7 1.3L30 16l-1.3-4.7L24 10l4.7-1.3z' fill='%23fff1bd'/><circle cx='33' cy='19' r='1.6' fill='%23f2cf6b'/></svg>"); background-repeat: no-repeat; background-position: right 10px top 10px; background-size: 30px auto; }
/* rodapé: gorro no escudo + presente e boneco de neve / chapéu + taças e relógio da virada */
html[data-theme^="natal"] .footer-grid > div:first-child, html[data-theme^="anonovo"] .footer-grid > div:first-child { position: relative; }
html[data-theme^="natal"] .footer-grid > div:first-child::before { content: ''; position: absolute; left: 44px; top: -14px; width: 54px; height: 42px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'><path d='M8 36C11 19 22 6 37 5c9-.5 15 5 17 14l-7 3c-2-6-6-9-11-9-9 0-16 8-18 23z' fill='%23d6282d'/><path d='M37 5c9-.5 15 5 17 14l-7 3c-1-4-3-7-6-8z' fill='%23a51d22'/><rect x='3' y='32' width='36' height='11' rx='5.5' fill='%23fff'/><circle cx='52' cy='22' r='6.5' fill='%23fff'/></svg>") no-repeat center/contain; transform: rotate(-22deg); pointer-events: none; }
html[data-theme^="natal"] .footer-grid > div:first-child::after { content: ''; position: absolute; left: 196px; top: 34px; width: 96px; height: 52px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><rect x='6' y='20' width='36' height='25' rx='2' fill='%23c4232a'/><rect x='4' y='14' width='40' height='8' rx='2' fill='%23d6282d'/><rect x='21' y='14' width='6' height='31' fill='%23f2cf6b'/><path d='M24 14c-6-10-16-8-13-2 2 3 8 3 13 2zM24 14c6-10 16-8 13-2-2 3-8 3-13 2z' fill='%23f2cf6b'/></svg>") no-repeat left bottom/46px auto, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'><circle cx='20' cy='36' r='13' fill='%23f4f7fb'/><circle cx='20' cy='15' r='9' fill='%23f4f7fb'/><path d='M11 9h18l-3-8H14z' fill='%23222'/><path d='M9 9h22' stroke='%23222' stroke-width='3'/><circle cx='17' cy='14' r='1.3' fill='%23222'/><circle cx='23' cy='14' r='1.3' fill='%23222'/><path d='M20 17l6 1.5-6 1z' fill='%23f08a24'/><path d='M12 23c5 3 11 3 16 0' stroke='%23d6282d' stroke-width='3' fill='none'/><circle cx='20' cy='32' r='1.4' fill='%23222'/><circle cx='20' cy='38' r='1.4' fill='%23222'/></svg>") no-repeat right bottom/40px auto; pointer-events: none; }
html[data-theme^="anonovo"] .footer-grid > div:first-child::before { content: ''; position: absolute; left: 62px; top: -24px; width: 30px; height: 38px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'><path d='M20 6L6 46h28z' fill='%237b3fc4'/><path d='M14.5 22h11M11 32h18M8.5 40h23' stroke='%23f2cf6b' stroke-width='3'/><path d='M4 46h32' stroke='%23f2cf6b' stroke-width='4' stroke-linecap='round'/><circle cx='20' cy='6' r='5' fill='%23f2cf6b'/></svg>") no-repeat center/contain; transform: rotate(-16deg); pointer-events: none; }
html[data-theme^="anonovo"] .footer-grid > div:first-child::after { content: ''; position: absolute; left: 196px; top: 34px; width: 96px; height: 48px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><g stroke='%23f2cf6b' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M9 8l9-2 1 12c0 3-6 4-7 1z' fill='%23f2cf6b33'/><path d='M15 19l3 13M13 33l9-2'/><path d='M39 8l-9-2-1 12c0 3 6 4 7 1z' fill='%23f2cf6b33'/><path d='M33 19l-3 13M35 33l-9-2'/><path d='M24 1v4M19 3l2 3M29 3l-2 3'/></g></svg>") no-repeat left bottom/50px auto, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='16' fill='none' stroke='%23f2cf6b' stroke-width='2.5'/><path d='M20 20V9M20 20l-1 0' stroke='%23f2cf6b' stroke-width='2.5' stroke-linecap='round'/><path d='M20 6v2M20 32v2M6 20h2M32 20h2' stroke='%23f2cf6b' stroke-width='2'/><circle cx='20' cy='20' r='2' fill='%23f2cf6b'/></svg>") no-repeat right bottom/38px auto; pointer-events: none; }
/* tela de login: gorro / chapéu no escudo do logo */
html[data-theme^="natal"] .login-card, html[data-theme^="anonovo"] .login-card { position: relative; }
html[data-theme^="natal"] .login-card::before { content: ''; position: absolute; left: calc(50% - 62px); top: 22px; width: 58px; height: 44px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'><path d='M8 36C11 19 22 6 37 5c9-.5 15 5 17 14l-7 3c-2-6-6-9-11-9-9 0-16 8-18 23z' fill='%23d6282d'/><path d='M37 5c9-.5 15 5 17 14l-7 3c-1-4-3-7-6-8z' fill='%23a51d22'/><rect x='3' y='32' width='36' height='11' rx='5.5' fill='%23fff'/><circle cx='52' cy='22' r='6.5' fill='%23fff'/></svg>") no-repeat center/contain; transform: rotate(-22deg); pointer-events: none; z-index: 2; }
html[data-theme^="anonovo"] .login-card::before { content: ''; position: absolute; left: calc(50% - 36px); top: 12px; width: 30px; height: 38px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'><path d='M20 6L6 46h28z' fill='%237b3fc4'/><path d='M14.5 22h11M11 32h18M8.5 40h23' stroke='%23f2cf6b' stroke-width='3'/><path d='M4 46h32' stroke='%23f2cf6b' stroke-width='4' stroke-linecap='round'/><circle cx='20' cy='6' r='5' fill='%23f2cf6b'/></svg>") no-repeat center/contain; transform: rotate(-16deg); pointer-events: none; z-index: 2; }
/* títulos das páginas internas: enfeite ao lado do título */
html[data-theme^="natal"] .page-head h1::after, html[data-theme^="anonovo"] .page-head h1::after { content: ''; display: inline-block; width: 46px; height: 36px; margin-left: 12px; vertical-align: middle; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><rect x='6' y='20' width='36' height='25' rx='2' fill='%23c4232a'/><rect x='4' y='14' width='40' height='8' rx='2' fill='%23d6282d'/><rect x='21' y='14' width='6' height='31' fill='%23f2cf6b'/><path d='M24 14c-6-10-16-8-13-2 2 3 8 3 13 2zM24 14c6-10 16-8 13-2-2 3-8 3-13 2z' fill='%23f2cf6b'/></svg>") no-repeat center/contain; }
html[data-theme^="anonovo"] .page-head h1::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><g stroke='%23f2cf6b' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M9 8l9-2 1 12c0 3-6 4-7 1z' fill='%23f2cf6b33'/><path d='M15 19l3 13M13 33l9-2'/><path d='M39 8l-9-2-1 12c0 3 6 4 7 1z' fill='%23f2cf6b33'/><path d='M33 19l-3 13M35 33l-9-2'/><path d='M24 1v4M19 3l2 3M29 3l-2 3'/></g></svg>"); }
@media (max-width: 760px) { html[data-theme^="natal"] .footer-grid > div:first-child::after, html[data-theme^="anonovo"] .footer-grid > div:first-child::after { left: auto; right: 0; top: 0; } }
body.scrolled .brand::before { top: -4px !important; }
html[data-theme^="anonovo"] body.scrolled .brand::before { top: -12px !important; }
html[data-theme^="anonovo"] .brand::before { width: 28px; height: 36px; left: -1px; top: -27px; }
html[data-theme^="anonovo"] body.scrolled .brand::before { top: -14px !important; }

/* =====================================================================
   Temas comemorativos (Natal e Ano Novo) — versão produzida
   ===================================================================== */
:root { --fest-sky1: #0b0b0c; --fest-sky2: #1a1a1d; --fest-o1: #c9a24a; --fest-o2: #e6c97a; --fest-o3: #ffffff; --fest-tree: #0b0b0c; }
/* textura de fundo */
html[data-theme^="natal"] body { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g stroke='white' stroke-opacity='.05' stroke-width='1.4' fill='none' stroke-linecap='round'><path d='M40 22v36M24.4 31l31.2 18M24.4 49l31.2-18M40 28l-4-4M40 28l4-4M40 52l-4 4M40 52l4 4'/><path d='M160 110v24M149.6 116l20.8 12M149.6 128l20.8-12'/><path d='M90 160v30M77 167.5l26 15M77 182.5l26-15M90 165l-3-3M90 165l3-3'/></g><circle cx='120' cy='40' r='1.6' fill='white' fill-opacity='.06'/><circle cx='200' cy='190' r='1.4' fill='white' fill-opacity='.05'/></svg>"); }
html[data-theme^="anonovo"] body { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='%23f2cf6b' fill-opacity='.07'><path d='M30 20l2.4 7.6L40 30l-7.6 2.4L30 40l-2.4-7.6L20 30l7.6-2.4z'/><path d='M140 90l1.6 5.4L147 97l-5.4 1.6L140 104l-1.6-5.4L133 97l5.4-1.6z'/><path d='M80 150l2 6.5L88.5 158.5l-6.5 2L80 167l-2-6.5-6.5-2 6.5-2z'/></g><circle cx='170' cy='30' r='1.5' fill='white' fill-opacity='.08'/><circle cx='60' cy='90' r='1.2' fill='white' fill-opacity='.07'/><circle cx='185' cy='170' r='1.3' fill='%23f2cf6b' fill-opacity='.08'/></svg>"); }
/* guirlanda de pinheiro com luzes (Natal) e serpentinas (Ano Novo) embaixo do cabeçalho */
html[data-theme^="natal"] .nav-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -20px; height: 30px; pointer-events: none; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'><path d='M0 5 Q30 23 60 5 T120 5' stroke='%23163f25' stroke-width='11' fill='none' stroke-linecap='round'/><path d='M0 5 Q30 23 60 5 T120 5' stroke='%23296b3f' stroke-width='7' fill='none' stroke-dasharray='1.5 2.5' stroke-linecap='round'/><path d='M0 4 Q30 21 60 4 T120 4' stroke='%23e6bd62' stroke-width='1' fill='none' stroke-opacity='.55'/><circle cx='30' cy='21' r='4.2' fill='%23e8323f'/><circle cx='28.6' cy='19.6' r='1.2' fill='white' fill-opacity='.7'/><circle cx='90' cy='21' r='4.2' fill='%23f2c14e'/><circle cx='88.6' cy='19.6' r='1.2' fill='white' fill-opacity='.7'/><circle cx='12' cy='13' r='2.4' fill='%235aa9ff'/><circle cx='48' cy='13' r='2.4' fill='%23ff6b6b'/><circle cx='72' cy='13' r='2.4' fill='%2366e08a'/><circle cx='108' cy='13' r='2.4' fill='%23ffd34d'/><path d='M60 6 l-6 -4 v8z M60 6 l6 -4 v8z' fill='%23d6282d'/><circle cx='60' cy='6' r='2' fill='%23f2c14e'/></svg>") repeat-x 0 0/120px 30px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); animation: th-glow 2.4s ease-in-out infinite; }
@keyframes th-glow { 50% { filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgba(255,210,110,.55)) brightness(1.12); } }
html[data-theme^="anonovo"] .nav-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 26px; pointer-events: none; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='26' viewBox='0 0 160 26'><path d='M0 6 C20 18 40 -2 60 10 S100 20 120 8 S150 0 160 6' stroke='%23f2cf6b' stroke-width='3' fill='none'/><path d='M0 14 C25 2 45 24 70 12 S110 2 130 16 S152 20 160 14' stroke='%239b4fe0' stroke-width='2.4' fill='none' stroke-opacity='.85'/><path d='M0 20 C30 12 50 26 80 18 S120 10 160 20' stroke='%23d5deef' stroke-width='1.8' fill='none' stroke-opacity='.8'/><circle cx='25' cy='22' r='1.6' fill='%23ff5fa2'/><circle cx='95' cy='4' r='1.6' fill='%235ee0ff'/><rect x='140' y='20' width='3' height='2' fill='%23f2cf6b' transform='rotate(30 141 21)'/></svg>") repeat-x 0 0/160px 26px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); animation: th-stream 14s linear infinite; }
@keyframes th-stream { to { background-position: 160px 0; } }
/* faixa de mensagem mais elegante */
.theme-banner .tb-sep { width: 1px; height: 18px; background: currentColor; opacity: .35; }
.tb-natal { background: radial-gradient(circle at 12% 30%, rgba(255,255,255,.16) 0 1.5px, transparent 2.5px) 0 0/46px 46px, linear-gradient(90deg, color-mix(in srgb, var(--fest-o1) 55%, black), var(--fest-o1) 50%, color-mix(in srgb, var(--fest-o1) 55%, black));
  box-shadow: inset 0 -1px 0 var(--gold), inset 0 -4px 0 rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15); border-bottom: 0; }
html[data-theme="natal-3"] .tb-natal { background: radial-gradient(circle at 12% 30%, rgba(255,255,255,.2) 0 1.5px, transparent 2.5px) 0 0/46px 46px, linear-gradient(90deg, #13284a, #24497e 50%, #13284a); }
.tb-anonovo { background: linear-gradient(90deg, var(--fest-sky1), var(--fest-sky2) 50%, var(--fest-sky1)); box-shadow: inset 0 -1px 0 var(--gold); border-bottom: 0; }
.tb-anonovo .tb-title { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.tb-natal .tb-title, .tb-anonovo .tb-title { font-family: 'Great Vibes', var(--serif); font-size: 30px; font-weight: 400; letter-spacing: 0; }
.tb-slim.tb-natal .tb-title, .tb-slim.tb-anonovo .tb-title { font-size: 22px; }
.tb-anonovo .tb-ico, .tb-anonovo .tb-count, .tb-natal .tb-ico, .tb-natal .tb-count { color: var(--gold-2); }

/* ---------- Abertura comemorativa ---------- */
.fest-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 470px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 90px 20px 110px; background: radial-gradient(ellipse 80% 90% at 50% 110%, var(--fest-sky2), var(--fest-sky1) 72%); border-bottom: 1px solid var(--line); }
.fest-stars { position: absolute; inset: 0; z-index: -2; opacity: .75; animation: fest-twinkle 5s ease-in-out infinite alternate;
  background-image: radial-gradient(1.3px 1.3px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,.8), transparent), radial-gradient(1.6px 1.6px at 160px 60px, #fff, transparent), radial-gradient(1px 1px at 210px 170px, rgba(255,255,255,.7), transparent), radial-gradient(1.2px 1.2px at 260px 20px, rgba(255,255,255,.9), transparent);
  background-size: 300px 210px; }
@keyframes fest-twinkle { to { opacity: .4; } }
.fest-glow { position: absolute; left: 50%; top: 50%; width: 760px; height: 420px; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(ellipse, rgba(var(--accent-rgb), .16), transparent 65%); pointer-events: none; }
.fest-content { position: relative; z-index: 3; max-width: 760px; }
.fest-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-2); }
.fest-kicker svg { width: 12px; height: 12px; fill: var(--gold); }
.fest-title { font-family: 'Great Vibes', var(--serif); font-weight: 400; font-size: clamp(66px, 11vw, 138px); line-height: 1.05; margin: 8px 0 4px; letter-spacing: 0;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(var(--accent-rgb), .35)); padding: 0 .12em; }
.fest-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px auto 16px; }
.fest-divider span { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); } .fest-divider span:last-child { transform: scaleX(-1); }
.fest-divider svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; }
.fest-sub { color: color-mix(in srgb, var(--text) 88%, transparent); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }
.fest-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Natal: enfeites pendurados balançando */
.fest-orns { position: absolute; inset: 0 0 auto; height: 0; z-index: 2; }
.orn { position: absolute; top: 0; width: 1.5px; height: var(--len); background: linear-gradient(var(--gold-3), var(--gold)); transform-origin: top center; animation: orn-swing 3.8s ease-in-out infinite alternate; }
.orn i { position: absolute; top: 100%; left: 50%; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9) 0 7%, rgba(255,255,255,.25) 12%, transparent 26%), radial-gradient(circle at 50% 55%, var(--c), color-mix(in srgb, var(--c) 45%, black) 78%);
  box-shadow: 0 8px 18px rgba(0,0,0,.45), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.orn i::before { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 8px; margin-left: -5px; background: var(--gold-grad); border-radius: 2px 2px 1px 1px; }
.orn i::after { content: ''; position: absolute; left: 12%; right: 12%; top: 46%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.orn-s i { width: 30px; height: 30px; margin-left: -15px; border-radius: 0; background: var(--gold-grad); box-shadow: none; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .7));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.orn-s i::before, .orn-s i::after { display: none; }
@keyframes orn-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.fest-trees { position: absolute; bottom: 18px; width: min(34vw, 360px); height: auto; z-index: 1; fill: var(--fest-tree); filter: drop-shadow(0 0 1px rgba(255,255,255,.18)); }
.fest-trees-l { left: -10px; } .fest-trees-r { right: -10px; }
.fest-treestar { fill: var(--gold-2); filter: drop-shadow(0 0 6px var(--gold)); }
.fest-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; z-index: 2; }
/* Ano Novo: cidade, fogos grandes, "2027" e contagem */
.fest-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: 1; }
.fest-bld { fill: var(--fest-tree); } .fest-win { fill: var(--gold-2); opacity: .55; }
.fest-fireworks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fest-fireworks .fw-big u { width: 3px; height: 12px; border-radius: 3px; }
.fest-title-sm { font-size: clamp(46px, 7vw, 84px); margin-bottom: -10px; }
.fest-year { font-family: var(--serif); font-weight: 600; font-size: clamp(90px, 17vw, 200px); line-height: .95; margin: 0 0 10px; letter-spacing: .02em;
  background: linear-gradient(110deg, var(--gold-3) 0%, var(--gold) 25%, #fff 40%, var(--gold-2) 50%, var(--gold) 70%, var(--gold-3) 100%) 0 0/250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 34px rgba(var(--accent-rgb), .4)); animation: fest-shine 6s linear infinite; }
@keyframes fest-shine { to { background-position: -250% 0; } }
.fest-count { display: flex; gap: 12px; justify-content: center; margin: 4px 0 18px; }
.fest-count div { min-width: 82px; padding: 12px 10px 8px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb), .35); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fest-count b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.fest-count small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* fogos: raio configurável */
.theme-fx .fw u, .fest-fireworks .fw u { animation-name: fw-ray2; }
.fest-fireworks .fw { position: absolute; width: 0; height: 0; animation: fw-cycle 6.5s ease-out infinite; opacity: 0; }
.fest-fireworks .fw u { position: absolute; left: 0; top: 0; background: currentColor; box-shadow: 0 0 8px currentColor; transform: rotate(var(--a)) translateY(0); animation: fw-ray2 6.5s ease-out infinite; animation-delay: inherit; }
@keyframes fw-ray2 { 0%, 5% { transform: rotate(var(--a)) translateY(0) scale(1); } 30%, 100% { transform: rotate(var(--a)) translateY(var(--r, -70px)) scale(.35); } }
/* prévia na aba Aparência */
.th-grid { grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); }
.th-prev { position: relative; height: 152px; overflow: hidden; border-bottom: 1px solid var(--line); }
.th-prev-in { position: absolute; left: 0; top: 0; width: 800px; transform: scale(.32); transform-origin: 0 0; pointer-events: none; }
.th-prev-in .fest-hero { min-height: 475px; padding-top: 70px; }
.fest-preview .fest-fireworks .fw { opacity: 1; animation: none; } .fest-preview .fest-fireworks .fw u { animation: none; transform: rotate(var(--a)) translateY(var(--r)) scale(.6); }
.th-foot span { display: flex; flex-direction: column; gap: 2px; } .th-foot small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 700px) { .fest-hero { min-height: 420px; padding: 70px 16px 100px; } .fest-trees { width: 44vw; opacity: .8; } .fest-count div { min-width: 64px; } .fest-count b { font-size: 30px; } .orn:nth-child(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .orn, .fest-stars, .fest-year, html[data-theme^="natal"] .nav-wrap::after, html[data-theme^="anonovo"] .nav-wrap::after { animation: none; }
  .fest-fireworks .fw { opacity: .9; animation: none; } .fest-fireworks .fw u { animation: none; transform: rotate(var(--a)) translateY(var(--r)) scale(.5); } }
@media (prefers-reduced-motion: reduce) { .fest-fireworks .fw u { height: 18px; width: 3px; transform: rotate(var(--a)) translateY(var(--r)) scale(1); opacity: .85; } }
.fest-preview .fest-fireworks .fw u { height: 18px; transform: rotate(var(--a)) translateY(var(--r)) scale(1); }
.th-prev { height: 160px; }
.th-prev-in { left: 50%; transform: translateX(-50%) scale(.32); transform-origin: top center; }
.th-prev-in .fest-hero { padding-top: 40px; padding-bottom: 120px; }

/* ===== Gorro de Papai Noel (desenho realista) no escudo; sem os enfeites em estilo emoji ===== */
html[data-theme^="natal"] .brand::before { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 106'><defs><linearGradient id='r' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23ff3b30'/><stop offset='.5' stop-color='%23d0101c'/><stop offset='1' stop-color='%23640510'/></linearGradient><linearGradient id='w' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffffff'/><stop offset='.7' stop-color='%23eef0f3'/><stop offset='1' stop-color='%23c9ced5'/></linearGradient><filter id='f' x='-25%' y='-25%' width='150%' height='150%'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/><feDisplacementMap in='SourceGraphic' scale='7' xChannelSelector='R' yChannelSelector='G'/></filter></defs><path d='M16 62 C19 33 43 11 72 9 C99 7 115 26 114 51 C113 68 109 82 104 94 L94 92 C96 77 94 63 88 55 C80 65 62 71 38 73 Z' fill='url(%23r)'/><path d='M88 55 C94 63 96 77 94 92 L104 94 C109 82 113 68 114 51 C110 61 100 62 88 55 Z' fill='%23500309' fill-opacity='.6'/><path d='M72 9 C90 8 104 18 110 34 C100 24 86 20 74 24 Z' fill='%23ffffff' fill-opacity='.14'/><path d='M34 34 C48 20 66 16 82 19' stroke='%23ffffff' stroke-opacity='.28' stroke-width='3.5' fill='none' stroke-linecap='round'/><g filter='url(%23f)'><path d='M7 58 C31 66 58 64 83 52 L90 67 C63 81 32 82 5 75 Z' fill='url(%23w)'/><circle cx='101' cy='96' r='9.5' fill='url(%23w)'/></g></svg>") no-repeat center/contain; width: 50px; height: 44px; left: -14px; top: -19px; transform: rotate(-14deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
html[data-theme^="natal"] body.scrolled .brand::before { top: -9px !important; }
html[data-theme^="natal"] .footer-grid > div:first-child::before { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 106'><defs><linearGradient id='r' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23ff3b30'/><stop offset='.5' stop-color='%23d0101c'/><stop offset='1' stop-color='%23640510'/></linearGradient><linearGradient id='w' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffffff'/><stop offset='.7' stop-color='%23eef0f3'/><stop offset='1' stop-color='%23c9ced5'/></linearGradient><filter id='f' x='-25%' y='-25%' width='150%' height='150%'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/><feDisplacementMap in='SourceGraphic' scale='7' xChannelSelector='R' yChannelSelector='G'/></filter></defs><path d='M16 62 C19 33 43 11 72 9 C99 7 115 26 114 51 C113 68 109 82 104 94 L94 92 C96 77 94 63 88 55 C80 65 62 71 38 73 Z' fill='url(%23r)'/><path d='M88 55 C94 63 96 77 94 92 L104 94 C109 82 113 68 114 51 C110 61 100 62 88 55 Z' fill='%23500309' fill-opacity='.6'/><path d='M72 9 C90 8 104 18 110 34 C100 24 86 20 74 24 Z' fill='%23ffffff' fill-opacity='.14'/><path d='M34 34 C48 20 66 16 82 19' stroke='%23ffffff' stroke-opacity='.28' stroke-width='3.5' fill='none' stroke-linecap='round'/><g filter='url(%23f)'><path d='M7 58 C31 66 58 64 83 52 L90 67 C63 81 32 82 5 75 Z' fill='url(%23w)'/><circle cx='101' cy='96' r='9.5' fill='url(%23w)'/></g></svg>") no-repeat center/contain; width: 80px; height: 70px; left: 40px; top: -26px; transform: rotate(-14deg); filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
html[data-theme^="natal"] .login-card::before { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 106'><defs><linearGradient id='r' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23ff3b30'/><stop offset='.5' stop-color='%23d0101c'/><stop offset='1' stop-color='%23640510'/></linearGradient><linearGradient id='w' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffffff'/><stop offset='.7' stop-color='%23eef0f3'/><stop offset='1' stop-color='%23c9ced5'/></linearGradient><filter id='f' x='-25%' y='-25%' width='150%' height='150%'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/><feDisplacementMap in='SourceGraphic' scale='7' xChannelSelector='R' yChannelSelector='G'/></filter></defs><path d='M16 62 C19 33 43 11 72 9 C99 7 115 26 114 51 C113 68 109 82 104 94 L94 92 C96 77 94 63 88 55 C80 65 62 71 38 73 Z' fill='url(%23r)'/><path d='M88 55 C94 63 96 77 94 92 L104 94 C109 82 113 68 114 51 C110 61 100 62 88 55 Z' fill='%23500309' fill-opacity='.6'/><path d='M72 9 C90 8 104 18 110 34 C100 24 86 20 74 24 Z' fill='%23ffffff' fill-opacity='.14'/><path d='M34 34 C48 20 66 16 82 19' stroke='%23ffffff' stroke-opacity='.28' stroke-width='3.5' fill='none' stroke-linecap='round'/><g filter='url(%23f)'><path d='M7 58 C31 66 58 64 83 52 L90 67 C63 81 32 82 5 75 Z' fill='url(%23w)'/><circle cx='101' cy='96' r='9.5' fill='url(%23w)'/></g></svg>") no-repeat center/contain; width: 82px; height: 72px; left: calc(50% - 74px); top: 10px; transform: rotate(-14deg); filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
/* tira os desenhos (presente, boneco de neve, laços, azevinho, taças, relógio, estrelinhas) */
html[data-theme^="natal"] .eyebrow::before, html[data-theme^="anonovo"] .eyebrow::before,
html[data-theme^="natal"] .page-head h1::after, html[data-theme^="anonovo"] .page-head h1::after,
html[data-theme^="natal"] .footer-grid > div:first-child::after, html[data-theme^="anonovo"] .footer-grid > div:first-child::after { content: none; }
html[data-theme^="natal"] .area-card, html[data-theme^="natal"] .news-card, html[data-theme^="natal"] .channel, html[data-theme^="anonovo"] .area-card, html[data-theme^="anonovo"] .news-card, html[data-theme^="anonovo"] .channel, html[data-theme^="natal"] .stat, html[data-theme^="anonovo"] .stat { background-image: none; }

/* Neve e confete caem ATRÁS do conteúdo do site (textos, cards e botões ficam por cima) */
.theme-fx { z-index: -1; }
.fest-fall { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fest-fall i { position: absolute; display: block; animation: fest-fall linear infinite; }
.fest-fall-neve i { background: #fff; border-radius: 50%; filter: blur(.4px); }
.fest-fall-confete i { border-radius: 1px; animation-name: fest-fall-spin; }
@keyframes fest-fall { from { transform: translate3d(0, -480px, 0); } to { transform: translate3d(24px, 480px, 0); } }
@keyframes fest-fall-spin { from { transform: translate3d(0, -480px, 0) rotate(0); } to { transform: translate3d(-30px, 480px, 0) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .fest-fall i { animation: none; } }
/* Gorro maior, encaixado no topo do escudo, com a ponta e o pompom caindo para a direita */
html[data-theme^="natal"] .brand::before { width: 64px; height: 56px; left: -9px; top: -27px; transform: rotate(-7deg); }
html[data-theme^="natal"] body.scrolled .brand::before { top: -16px !important; }
html[data-theme^="natal"] .footer-grid > div:first-child::before { width: 104px; height: 91px; left: 46px; top: -44px; transform: rotate(-7deg); }
html[data-theme^="natal"] .login-card::before { width: 104px; height: 91px; left: calc(50% - 64px); top: -6px; transform: rotate(-7deg); }
html[data-theme^="natal"] .brand::before { width: 56px; height: 49px; left: -12px; top: -24px; }
html[data-theme^="natal"] body.scrolled .brand::before { top: -14px !important; }

/* ===== Gorro de Papai Noel (foto recortada, virado para a esquerda) em cima do escudo original do site ===== */
html[data-theme^="natal"] .brand::before { background: url(/assets/gorro.png) no-repeat center/contain; width: 62px; height: 51px; left: -19px; top: -12px; transform: rotate(-4deg); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
html[data-theme^="natal"] body.scrolled .brand::before { top: -9px !important; }
html[data-theme^="natal"] .footer-grid > div:first-child::before { background: url(/assets/gorro.png) no-repeat center/contain; width: 107px; height: 88px; left: 27px; top: -20px; transform: rotate(-4deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
html[data-theme^="natal"] .login-card::before { background: url(/assets/gorro.png) no-repeat center/contain; width: 112px; height: 92px; left: calc(50% - 71px); top: 19px; transform: rotate(-4deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
@media (max-width: 760px) { html[data-theme^="natal"] .brand::before { width: 52px; height: 43px; left: -17px; top: -10px; } }
html[data-theme^="natal"] body.scrolled .brand::before { top: -3px !important; }

/* ===== Orientação da Receita Federal (IRPJ / IRRF) ===== */
.ir-guide { border: 1px solid rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .06); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0 12px; }
.ir-guide summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.ir-guide summary::-webkit-details-marker { display: none; }
.ir-guide summary svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; flex: none; }
.ir-guide ul { margin: 8px 0 2px; padding-left: 20px; display: grid; gap: 4px; font-size: .92em; }
.irpj-row.darf { border-top: 1px dashed var(--line); padding-top: 6px; } .irpj-row.darf b { color: var(--text); }

/* ===== Calculadora de IR ===== */
.ic-tipo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ic-opt { position: relative; cursor: pointer; }
.ic-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ic-opt span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; transition: border-color .15s, background .15s; }
.ic-opt span small { font-weight: 400; color: var(--muted); }
.ic-opt input:checked + span { border-color: var(--gold); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.ic-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ic-result { position: sticky; top: 0; }
@media (max-width: 860px) { .ic-grid { grid-template-columns: 1fr; } .ic-result { position: static; } }
.ic-sig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ic-sig .sig-preview { min-width: 220px; min-height: 64px; flex: 1 1 220px; }
.ic-sig .sig-preview img { max-height: 70px; }

/* ===== Entrar no Discord (site dos clientes) ===== */
.dc-steps { list-style: none; counter-reset: dc; padding: 0; margin: 16px 0 8px; display: grid; gap: 10px; }
.dc-steps li { counter-increment: dc; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; }
.dc-steps li::before { content: counter(dc); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 13px; }
.btn-discord { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #5865f2; color: #fff; border-color: #5865f2; }
.btn-discord:hover, .btn-discord:focus-visible { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-discord svg { width: 20px; height: 20px; flex: none; }
.dc-help { text-align: left; margin: 8px 0; }
.dc-help summary { cursor: pointer; }

/* Tela de entrada: os 2 passos (Google + Discord) */
.gate-steps { text-align: left; margin: 18px 0 6px; gap: 16px; }
.gate-steps li { align-items: start; }
.gate-steps li > div { min-width: 0; }
.gate-steps .g-btn { justify-content: flex-start; margin: 10px 0 4px; }
.gate-steps .btn-discord { margin-top: 10px; }
.gate-steps p { margin: 6px 0 0; }
/* Botão Entrar sempre visível no topo para quem não entrou (no celular o menu ☰ escondia) */
.nav-login { display: none; }
@media (max-width: 1240px) {
  .nav-login { display: inline-flex; margin-left: auto; margin-right: 6px; padding: 8px 16px; }
  .nav-links .nav-login-full { display: none; }
}
.gate-new { margin: 10px 0 0; color: var(--text); }