/* =========================================================
   TICORD — folha de estilo principal
   ---------------------------------------------------------
   Paleta baseada na logo: fundo verde-petróleo + acento
   verde-limão. Medidas também ficam no bloco :root abaixo.
   ========================================================= */

:root {
  /* ---- Cores Ticord — modo claro (padrão) — edite aqui para mudar o site todo ---- */
  --black: #ffffff;          /* fundo principal */
  --navy-deep: #f6f2fb;      /* fundo de seções alternadas */
  --navy: #fbf9fe;           /* superfícies / blocos */
  --navy-soft: #f1ecf9;      /* hover de superfícies */
  --white: #220a3f;          /* texto principal */
  --mute: #6c5d81;           /* texto secundário */
  --line: rgba(34, 10, 63, 0.12);
  --line-strong: rgba(34, 10, 63, 0.26);

  /* ---- Acento da marca (roxo Ticord) ---- */
  --green: #220a3f;
  --green-soft: #35135e;
  --green-dim: #170729;
  --green-glow: rgba(34, 10, 63, 0.18);
  --on-green: #ffffff;       /* texto sobre fundo do acento */

  --header-glass: rgba(255, 255, 255, 0.86);
  --ripple: rgba(255, 255, 255, 0.5);
  --card-shadow: 0 18px 40px -22px rgba(34, 10, 63, 0.32);

  /* ---- Medidas ---- */
  --max: 1180px;
  --pad: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;

  color-scheme: light;
}

/* ---- Modo escuro (ativado via botão / salvo no navegador) ---- */
html[data-theme="dark"] {
  --black: #170a2b;
  --navy-deep: #1d0f38;
  --navy: #221142;
  --navy-soft: #2c1852;
  --white: #f5f1fb;
  --mute: #b6a6cf;
  --line: rgba(245, 241, 251, 0.10);
  --line-strong: rgba(245, 241, 251, 0.22);

  --green: #ffffff;
  --green-soft: #e7defc;
  --green-dim: #d8cdf5;
  --green-glow: rgba(255, 255, 255, 0.16);
  --on-green: #220a3f;

  --header-glass: rgba(23, 10, 43, 0.82);
  --ripple: rgba(34, 10, 63, 0.4);
  --card-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);

  color-scheme: dark;
}

html, body { background: var(--black); transition: background 0.25s ease, color 0.25s ease; }

::selection { background: var(--green); color: var(--on-green); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-stretch: 112%; /* Archivo expandida nos títulos */
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   FUNDO AMBIENTE (manchas animadas) + CURSOR INTERATIVO
   ========================================================= */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.bg-fx span:nth-child(1) {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  top: -12vw; left: -8vw;
  animation: float-a 22s ease-in-out infinite;
}
.bg-fx span:nth-child(2) {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(28, 67, 76, 0.9), transparent 70%);
  bottom: -14vw; right: -10vw;
  animation: float-b 26s ease-in-out infinite;
}
.bg-fx span:nth-child(3) {
  width: 26vw; height: 26vw;
  background: radial-gradient(circle, var(--green-glow), transparent 72%);
  top: 40%; right: 8vw;
  opacity: 0.22;
  animation: float-c 30s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 6vw) scale(1.12); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -4vw) scale(1.08); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3vw, 4vw); }
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow), transparent 68%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 0.55; }

body { position: relative; }
.site-header, main, .site-footer, .mobile-nav { position: relative; z-index: 2; }

@media (max-width: 860px), (hover: none) {
  .cursor-glow { display: none; }
}

/* Revelação suave ao rolar a página */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Efeito de ondulação nos botões */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--ripple);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
.btn-ghost .ripple, .auth-btn .ripple { background: var(--green-glow); }
@keyframes ripple-anim {
  to { transform: scale(2.6); opacity: 0; }
}

/* Leve inclinação 3D em cartões ao passar o mouse */
.tilt { transition: transform 0.25s ease; transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .bg-fx span { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.lead { color: var(--mute); font-size: 1.06rem; max-width: 62ch; }

.accent { color: var(--green); }

/* =========================================================
   HEADER FIXO
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(34, 10, 63, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo fixa da Ticord no cabeçalho */
.brand img { height: 30px; width: auto; transition: transform 0.3s ease, filter 0.3s ease; }
.brand:hover img { transform: scale(1.06); filter: drop-shadow(0 0 10px var(--green-glow)); }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
  font-size: 0.97rem;
  color: var(--mute);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--green); }
.nav a.is-active::after { width: 100%; }

/* Botão do menu mobile */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: relative;
  transition: background 0.2s ease;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.28s ease;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Painel mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--black);
  padding: 30px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn { margin-top: 28px; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 10px 24px -12px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px var(--green-glow);
}

.btn-ghost { border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { background: var(--navy-soft); border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: 96px 0; }
.section-alt { background: var(--navy-deep); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { margin-top: 18px; }

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

/* linha vertical discreta de fundo do hero */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 900px) { .hero::after { display: none; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { max-width: 13ch; }
.hero .lead { margin: 26px 0 36px; }

/* Grade de marcas do hero */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--card-shadow);
}

.brand-cell {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
  transition: background 0.25s ease;
}

.brand-cell:nth-child(2n) { border-right: 0; }
.brand-cell:nth-last-child(-n + 2) { border-bottom: 0; }
.brand-cell:hover { background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

.brand-cell img { height: 44px; width: auto; object-fit: contain; }

.brand-cell strong { font-size: 1.05rem; font-weight: 600; }
.brand-cell span { display: block; font-size: 0.85rem; color: var(--mute); line-height: 1.4; }

/* Lista do "o que a Ticord faz" */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.row h3 { font-stretch: 100%; }
.row p { color: var(--mute); max-width: 70ch; }

/* =========================================================
   PÁGINA DE PROJETOS
   ========================================================= */
.page-head {
  padding-top: calc(var(--header-h) + 84px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 24px; }

.projects { display: flex; flex-direction: column; }

.project {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 44px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.project-logo {
  width: 130px;
  height: 130px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: 22px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.project:hover .project-logo { background: var(--navy-soft); border-color: var(--green-dim); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px -14px var(--green-glow); }
.project-logo img { max-height: 100%; width: auto; object-fit: contain; }

.project-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.project-body p { color: var(--mute); margin-top: 14px; max-width: 58ch; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.project-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.project-action .status { font-size: 0.88rem; color: var(--mute); }

/* Bloco de novos projetos */
.future {
  border: 1px dashed var(--green-dim);
  border-radius: var(--radius);
  padding: 44px;
  background: var(--navy-deep);
  transition: box-shadow 0.3s ease;
}
.future:hover { box-shadow: 0 0 0 1px var(--green-dim), 0 20px 40px -24px var(--green-glow); }

.future h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.future p { color: var(--mute); margin-top: 16px; max-width: 60ch; }

/* =========================================================
   PÁGINA ADMINISTRAÇÃO — perfil de liderança
   ========================================================= */
.admin-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  padding: clamp(28px, 4vw, 48px);
}

.admin-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-deep);
}

.admin-photo img { width: 100%; height: 100%; object-fit: cover; }

.admin-info .tag { margin-bottom: 16px; }
.admin-info h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.admin-role { color: var(--mute); font-size: 1.02rem; margin-top: 8px; }
.admin-desc { color: var(--mute); margin-top: 22px; max-width: 54ch; }

/* Bloco "vagas" — convite para futuras lideranças */
.join-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-deep);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.join-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 16ch; }
.join-band p { color: var(--mute); margin-top: 14px; max-width: 44ch; }

@media (max-width: 700px) {
  .admin-card { grid-template-columns: 1fr; }
  .admin-photo { max-width: 260px; }
}

/* =========================================================
   PÁGINA SOBRE — estrutura do grupo
   ========================================================= */
.structure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  background: var(--navy);
}

.structure-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.structure-top img { height: 30px; width: auto; }
.structure-top span { color: var(--mute); font-size: 0.95rem; }

.structure-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.structure-item {
  background: var(--navy);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 140px;
}

.structure-item { transition: background 0.25s ease; }
.structure-item:hover { background: var(--navy-soft); }
.structure-item img { height: 36px; width: auto; object-fit: contain; }
.structure-item strong { font-weight: 600; }
.structure-item span { font-size: 0.84rem; color: var(--mute); }

/* Texto longo institucional */
.prose p + p { margin-top: 22px; }
.prose p { color: var(--mute); max-width: 68ch; }
.prose strong { color: var(--white); font-weight: 600; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 14px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--green); }
.prose ul, .prose ol { color: var(--mute); max-width: 68ch; padding-left: 22px; display: grid; gap: 10px; margin: 16px 0; }
.prose li::marker { color: var(--green-dim); }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green); }
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.prose a.btn-primary { color: var(--on-green); }
.prose a.btn-ghost { color: var(--white); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; max-width: 68ch; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); font-size: 0.92rem; color: var(--mute); }
.prose th { color: var(--white); background: var(--navy); }

/* =========================================================
   PÁGINAS LEGAIS (Termos, Privacidade, Cookies, etc.)
   ========================================================= */
.legal-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--green); background: rgba(205, 252, 154, 0.09);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; padding: 56px 0 90px; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.legal-nav a {
  color: var(--mute); font-size: 0.88rem; padding: 8px 12px; border-radius: 8px;
  border-left: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.legal-nav a:hover { color: var(--white); background: var(--navy); }
.legal-nav a.is-active { color: var(--green); border-left-color: var(--green); background: var(--navy); }
.legal-note {
  margin-top: 40px; padding: 18px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); color: var(--mute); font-size: 0.88rem; max-width: 68ch;
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; max-width: 68ch; margin: 22px 0 30px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy);
  padding: 20px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.contact-card h3 { margin: 0 0 8px; font-size: 0.98rem; color: var(--white); }
.contact-card p { color: var(--mute); font-size: 0.9rem; margin: 0 0 14px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { border: 1px solid var(--line); border-left: 1px solid var(--line); }
  .legal-nav a.is-active { border-color: var(--green); }
}

/* =========================================================
   PÁGINA APOIO
   ========================================================= */
.support {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 90px;
}

.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  padding: clamp(32px, 6vw, 68px);
  max-width: 760px;
}

.support-card h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.support-card .lead { margin: 24px 0 36px; }

.support-meta {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.link-quiet {
  color: var(--mute);
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  font: inherit;
  font-size: 0.9rem;
  padding: 0 0 2px;
}

.link-quiet:hover { color: var(--green); border-color: var(--green); }

/* =========================================================
   FAIXA DE CHAMADA
   ========================================================= */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { max-width: 20ch; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: var(--mute); margin-top: 14px; max-width: 46ch; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr;
  gap: 48px;
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--mute); font-size: 0.95rem; max-width: 40ch; }

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--mute); font-size: 0.93rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 0.87rem;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .structure-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .section { padding: 72px 0; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .project {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 38px 0;
  }
  .project-logo { width: 104px; height: 104px; padding: 18px; }
  .project-action { align-items: flex-start; }
  .hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 72px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-cell { border-right: 0 !important; min-height: 0; }
  .brand-cell:last-child { border-bottom: 0; }
  .structure-list { grid-template-columns: 1fr; }
  .future { padding: 30px 24px; }
  .structure { padding: 26px 22px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .project-action .btn { width: auto; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   LOGIN / CONTA / DASHBOARD
   ========================================================= */
.auth-slot { position: relative; }
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--white); font: inherit; font-size: 0.93rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.auth-btn:hover { background: var(--navy); border-color: var(--white); }
.auth-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 70;
  background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px; display: grid; gap: 2px;
}
.auth-menu[hidden] { display: none; }
.auth-menu a, .auth-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; color: var(--white); font: inherit; font-size: 0.93rem; cursor: pointer;
}
.auth-menu a:hover, .auth-menu button:hover { background: var(--navy-soft); }
.auth-menu .auth-note { padding: 10px 12px; color: var(--mute); font-size: 0.85rem; }

.auth-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.auth-modal[hidden], .auth-modal [hidden], .dash [hidden] { display: none !important; }
.auth-box {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.auth-box h2 { font-size: 1.7rem; }
.auth-sub { color: var(--mute); font-size: 0.95rem; margin-top: 8px; }
.auth-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: none;
  color: var(--mute); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.auth-close:hover { color: var(--white); }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: grid; gap: 6px; font-size: 0.88rem; color: var(--mute); }
.auth-field input {
  width: 100%; padding: 12px 14px; background: var(--black); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--white); font: inherit; font-size: 1rem;
}
.auth-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.auth-field textarea {
  width: 100%; padding: 12px 14px; background: var(--black); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--white); font: inherit; font-size: 1rem; resize: vertical;
}
.auth-field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.auth-field select {
  width: 100%; padding: 12px 14px; background: var(--black); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--white); font: inherit; font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2393b0aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.auth-field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.auth-field select option { background: var(--navy); color: var(--white); }
.auth-msg { font-size: 0.9rem; min-height: 1.2em; color: #ff8a8a; }
.auth-msg.ok { color: #8be0a4; }
.auth-form .btn { width: 100%; }
.auth-switch { margin-top: 20px; font-size: 0.92rem; color: var(--mute); }

.dash { min-height: calc(100vh - var(--header-h)); padding: calc(var(--header-h) + 70px) 0 90px; }
.dash h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.dash-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); padding: 28px; transition: border-color 0.25s ease, transform 0.25s ease; }
.dash-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.dash-card h3 { margin-bottom: 18px; }
.dash-label { color: var(--mute); font-size: 0.85rem; margin-top: 14px; }
.dash-value { font-size: 1.05rem; word-break: break-word; }
.dash .btn { margin-top: 28px; }

/* =========================================================
   PÁGINA DE EQUIPE (/equipe)
   ========================================================= */
.team-form-wrap { max-width: 640px; }
.team-form textarea { min-height: 140px; }
.team-done { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); padding: 32px; }

@media (max-width: 860px) { .auth-slot { margin-left: auto; } }
@media (max-width: 560px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-box { padding: 26px 20px; }
}

/* =========================================================
   POPUP "SEJA DA EQUIPE" (página inicial)
   ========================================================= */
.promo-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.promo-modal[hidden] { display: none !important; }
.promo-box {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 8px;
}
.promo-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none;
  color: var(--mute); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 1;
}
.promo-close:hover { color: var(--white); }
.promo-img { padding: 24px 8px 24px 24px; }
.promo-img img { width: 100%; height: auto; display: block; }
.promo-content { padding: 32px 32px 32px 8px; }
.promo-content h2 { font-size: 1.6rem; max-width: 20ch; }
.promo-content .lead { margin: 16px 0 24px; font-size: 0.98rem; }

@media (max-width: 700px) {
  .promo-box { grid-template-columns: 1fr; }
  .promo-img { max-width: 220px; margin: 0 auto; padding: 36px 0 0; }
  .promo-content { padding: 20px 28px 28px; text-align: center; }
  .promo-content .lead { max-width: none; }
}

/* =========================================================
   PÁGINA ESCONDIDA DE PLANOS
   ========================================================= */
.plan-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy);
  padding: clamp(28px, 5vw, 44px); margin-top: 36px; max-width: 520px;
}
.plan-card h2 { font-size: 1.9rem; }
.plan-card .lead { margin-top: 14px; }
.plan-price { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 26px; color: var(--green); }
.plan-price span { font-size: 1rem; color: var(--mute); font-weight: 400; }

.pix-box { display: grid; grid-template-columns: 252px 1fr; gap: 28px; margin-top: 32px; align-items: start; max-width: 720px; }

.pix-qr-wrap {
  position: relative;
  width: 252px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px rgba(205, 252, 154, 0.08);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.pix-qr-wrap.is-ready {
  opacity: 1;
  transform: scale(1);
  animation: pix-pulse 2.2s ease-in-out infinite;
}
@keyframes pix-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px rgba(205, 252, 154, 0.08); }
  50% { box-shadow: 0 0 0 1px var(--green-dim), 0 0 26px 6px rgba(205, 252, 154, 0.35); }
}
.pix-qr { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: 6px; }
.pix-qr-badge {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--green);
  color: var(--on-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.pix-waiting {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green); font-size: 0.9rem; margin-top: 22px;
}
.pix-waiting .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pix-blink 1.1s ease-in-out infinite;
}
@keyframes pix-blink {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.pix-code {
  width: 100%; background: var(--black); color: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px; font: inherit; font-size: 0.82rem;
  word-break: break-all; resize: none; margin: 8px 0 16px;
  transition: border-color 0.2s ease;
}
.pix-code:focus { outline: none; border-color: var(--green); }
.dash-plan { padding: 14px 0; border-top: 1px solid var(--line); }
.dash-plan:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .pix-box { grid-template-columns: 1fr; } }

/* =========================================================
   CHAT DE SUPORTE (/chat) E PAINEL DA EQUIPE (/chatteam)
   ========================================================= */
.chat-app [hidden], .tm [hidden] { display: none !important; }

.chat-app { min-height: 100vh; padding: calc(var(--header-h) + 60px) 0 80px; }
#c-chat .chat-box { max-width: 860px; }
.chat-app h1, .tm h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.chat-lead { margin-top: 20px; }
.chat-cta { margin-top: 32px; }
.chat-app .auth-msg { margin-top: 14px; }

.chat-warn {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; max-width: 520px;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(18, 49, 56, 0.6); color: var(--mute); font-size: 0.92rem; line-height: 1.5;
}
.chat-warn svg { flex: none; margin-top: 1px; color: var(--green); }

/* ---------- Caixa do chat ---------- */
.chat-box {
  display: flex; flex-direction: column; overflow: hidden;
  height: min(680px, calc(100vh - var(--header-h) - 150px)); min-height: 440px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy);
}
.chat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.chat-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-title { font-weight: 600; font-size: 1rem; line-height: 1.25; }
.chat-status { font-size: 0.82rem; color: var(--mute); line-height: 1.3; }
.chat-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--mute); }
.chat-dot.is-on { background: var(--green); box-shadow: 0 0 0 4px rgba(205, 252, 154, 0.16); }
.chat-dot.is-wait { background: var(--green); animation: pix-blink 1.1s ease-in-out infinite; }

.btn-sm { width: auto; padding: 9px 18px; font-size: 0.88rem; } /* no celular o .btn do site vira 100%; aqui não */
/* <button> não herda a fonte nem fica transparente sozinho (o .btn-ghost do site só era usado em <a>) */
.chat-app .btn, .tm .btn { font-family: inherit; }
.chat-app .btn-ghost, .tm .btn-ghost { background: transparent; }
.chat-app .btn-ghost:hover, .tm .btn-ghost:hover { background: var(--navy-soft); }
.btn.btn-end { border-color: rgba(255, 138, 138, 0.5); color: #ff9b9b; }
.btn.btn-end:hover { background: rgba(255, 138, 138, 0.1); border-color: #ff8a8a; color: #ffb4b4; }

/* ---------- Mensagens ---------- */
.chat-log {
  flex: 1; min-height: 0; overflow-y: auto; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-note { align-self: center; max-width: 90%; padding: 4px 12px; text-align: center; font-size: 0.84rem; color: var(--mute); }

.chat-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 86%; }
.chat-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.is-cont { margin-top: -6px; }
.chat-msg.is-cont .chat-avatar { visibility: hidden; }
.chat-msg.is-cont .chat-meta { display: none; }

.chat-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover;
  background: var(--navy-soft); border: 1px solid var(--line-strong);
}
.chat-avatar-txt { display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; color: var(--green); }
.chat-msg.is-staff .chat-avatar { border-color: var(--green); box-shadow: 0 0 12px -2px var(--green-glow); }

.chat-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-msg.is-mine .chat-col { align-items: flex-end; }
.chat-meta { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.chat-name { color: var(--mute); font-weight: 600; }

/* Nome do staff brilhando */
.chat-name.is-glow {
  color: var(--green-soft);
  text-shadow: 0 0 6px var(--green-glow), 0 0 16px var(--green-glow);
  animation: name-glow 2.4s ease-in-out infinite alternate;
}
@keyframes name-glow {
  from { text-shadow: 0 0 4px var(--green-glow), 0 0 10px var(--green-glow); }
  to   { text-shadow: 0 0 8px var(--green), 0 0 22px var(--green-glow), 0 0 32px var(--green-glow); }
}
.chat-tag {
  padding: 1px 8px; border-radius: 999px; background: var(--green); color: var(--on-green);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.5;
  box-shadow: 0 0 12px -2px var(--green-glow);
}

.chat-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 0.98rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--navy-soft);
  border-bottom-left-radius: 4px;
}
.chat-msg.is-mine .chat-bubble { background: var(--green); color: var(--on-green); border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat-time { font-size: 0.74rem; color: var(--mute); }

/* ---------- Rodapé do chat ---------- */
.chat-foot-warn { padding: 8px 18px; border-top: 1px solid var(--line); background: var(--navy-deep); font-size: 0.8rem; color: var(--mute); }
.chat-compose { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input {
  flex: 1; min-width: 0; max-height: 140px; resize: none; padding: 11px 14px;
  background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--white); font: inherit; font-size: 1rem; line-height: 1.4;
}
.chat-input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.chat-input:disabled { opacity: 0.55; }
.chat-compose .btn { flex: none; padding: 12px 22px; }
.chat-over {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.92rem;
}

/* ---------- Painel da equipe ---------- */
.tm { min-height: 100vh; padding: calc(var(--header-h) + 24px) 0 24px; }
.tm-lock { max-width: 420px; padding-top: 36px; }
.tm-lock .auth-form { margin-top: 28px; }

.tm-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--header-h) - 48px); height: calc(100dvh - var(--header-h) - 48px); min-height: 480px; }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tm-state { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.tm-count { color: var(--mute); font-size: 0.92rem; }
.tm-banner { padding: 12px 16px; border: 1px solid rgba(255, 138, 138, 0.5); border-radius: var(--radius-sm); background: rgba(255, 138, 138, 0.08); color: #ffb4b4; font-size: 0.92rem; }
.tm-banner[hidden] { display: none; }
.tm-panel:has(.tm-banner[hidden]) { grid-template-rows: auto minmax(0, 1fr); }

.tm-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); }
.tm-list { min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); background: var(--navy-deep); }
.tm-group { padding: 16px 16px 8px; font-size: 0.85rem; font-weight: 600; color: var(--mute); }
.tm-item {
  display: block; width: 100%; padding: 13px 16px; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit;
  transition: background 0.2s ease;
}
.tm-item:hover { background: var(--navy); }
.tm-item.is-sel { background: var(--navy-soft); box-shadow: inset 3px 0 0 var(--green); }
.tm-item.is-ended { opacity: 0.6; }
.tm-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-item-top + .tm-item-top { margin-top: 3px; }
.tm-item-name { font-weight: 600; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-item-time { flex: none; font-size: 0.75rem; color: var(--mute); }
.tm-item-prev { font-size: 0.85rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-badge { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--green); color: var(--on-green); font-size: 0.72rem; font-weight: 700; }

.tm-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tm-empty { flex: 1; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--mute); }
.tm-empty p { max-width: 34ch; }
.tm-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tm-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tm-head-info { flex: 1; min-width: 0; }
.tm-head-info .chat-title, .tm-head-info .chat-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-back { display: none; }
.tm-body .chat-over { display: block; }

@media (max-width: 760px) {
  .chat-app { padding-top: calc(var(--header-h) + 36px); }
  .chat-box { height: calc(100dvh - var(--header-h) - 110px); min-height: 400px; }
  .chat-msg { max-width: 94%; }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-grid.has-sel .tm-list { display: none; }
  .tm-grid:not(.has-sel) .tm-thread { display: none; }
  .tm-back { display: inline-flex; }
  .tm-head { flex-wrap: wrap; gap: 10px 12px; }
  .tm-back { order: 1; }
  .tm-head .btn-end, #t-remove { order: 2; margin-left: auto; }
  .tm-head-info { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-name.is-glow, .chat-dot.is-wait { animation: none; }
}

/* =========================================================
   REALCE DE PROFUNDIDADE (sombra suave) — modo claro e escuro
   ========================================================= */
.structure, .admin-card, .dash-card, .team-done, .auth-form,
.chat-box, .tm-grid, .join-band, .brand-cell:hover {
  box-shadow: var(--card-shadow);
}

/* =========================================================
   TEMA (claro/escuro) E IDIOMA — controles no cabeçalho
   ========================================================= */
.site-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.util-btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.util-btn svg { width: 18px; height: 18px; display: block; }
.util-btn .icon-moon { display: none; }
html[data-theme="dark"] .util-btn .icon-sun { display: none; }
html[data-theme="dark"] .util-btn .icon-moon { display: block; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: var(--navy);
  gap: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-green);
}

@media (max-width: 560px) {
  .util-btn { width: 34px; height: 34px; }
  .lang-btn { padding: 5px 9px; font-size: 0.74rem; }
}

.mobile-nav .site-utils {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
  gap: 12px;
}

/* =========================================================
   PÁGINA DE AGENDAMENTOS (/agendamentos)
   ========================================================= */
.sched-wrap { max-width: 760px; }

.sched-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 40px;
}
.sched-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--mute);
}
.sched-step em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
}
.sched-step.is-active { color: var(--white); }
.sched-step.is-active em { background: var(--green); border-color: var(--green); color: var(--on-green); }
.sched-step.is-done { color: var(--mute); }
.sched-step.is-done em { border-color: var(--green-dim); color: var(--green-dim); }

.sched-panel h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 10px; }
.sched-panel .lead { margin-bottom: 24px; font-size: 0.98rem; }

.sched-back {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  color: var(--mute); font: inherit; font-size: 0.86rem; padding: 0; margin-bottom: 18px;
  transition: color 0.2s ease;
}
.sched-back:hover { color: var(--green); }

/* ---- Cidade ---- */
.sched-cities { display: grid; gap: 14px; }
.sched-city-card {
  text-align: left; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy);
  padding: 22px 24px; cursor: pointer; font: inherit; color: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sched-city-card:hover { border-color: var(--green-dim); transform: translateY(-2px); box-shadow: var(--card-shadow); }
.sched-city-card.is-sel { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.sched-city-name { font-weight: 600; font-size: 1.08rem; }
.sched-city-addr { color: var(--mute); font-size: 0.92rem; }

/* ---- Dias e horários ---- */
.sched-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; }
.sched-day {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 68px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white); cursor: pointer; font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sched-day:hover:not(:disabled) { border-color: var(--green-dim); }
.sched-day.is-sel { border-color: var(--green); background: var(--navy-soft); box-shadow: 0 0 0 1px var(--green); }
.sched-day.is-full, .sched-day:disabled { opacity: 0.35; cursor: not-allowed; }
.sched-day-wd { font-size: 0.72rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.sched-day-num { font-size: 1.2rem; font-weight: 600; }
.sched-day-mo { font-size: 0.72rem; color: var(--mute); }

.sched-slots-label { font-size: 0.9rem; color: var(--mute); margin-bottom: 12px; }
.sched-slots-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sched-slot {
  padding: 11px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--navy); color: var(--white); font: inherit; font-size: 0.95rem; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sched-slot:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.sched-slot.is-sel { background: var(--green); color: var(--on-green); border-color: var(--green); }
.sched-slot.is-taken, .sched-slot:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* ---- Departamento ---- */
.sched-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.sched-dept-card {
  padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy);
  color: var(--white); font: inherit; font-weight: 600; text-align: center; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sched-dept-card:hover { border-color: var(--green-dim); transform: translateY(-2px); box-shadow: var(--card-shadow); }
.sched-dept-card.is-sel { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 1px var(--green); }

/* ---- Resumo (etapa 4) e código de barras ---- */
.sched-summary, .sched-info {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy-deep);
  padding: 18px 22px; margin-bottom: 24px;
}
.sched-summary dl, .sched-info { display: grid; gap: 10px; }
.sched-summary dl div, .sched-info div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.sched-summary dt, .sched-info dt { color: var(--mute); }
.sched-summary dd, .sched-info dd { margin: 0; font-weight: 600; text-align: right; }

.sched-done .tag { color: var(--green); border-color: var(--green-dim); }

.barcode-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy);
  padding: clamp(24px, 5vw, 40px); margin: 24px 0; box-shadow: var(--card-shadow);
}
.barcode-wrap {
  background: #fff; padding: 18px 20px; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.barcode-wrap canvas { display: block; max-width: 100%; }
.barcode-code {
  margin-top: 16px; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em;
}
.barcode-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.barcode-hint { color: var(--mute); font-size: 0.86rem; margin-top: 16px; max-width: 40ch; }

/* ---- Meus agendamentos ---- */
.sched-mine-list { display: grid; gap: 14px; margin-top: 8px; }
.sched-mine-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy);
  padding: 18px 20px;
}
.sched-mine-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sched-mine-date { font-weight: 600; }
.sched-mine-dept { color: var(--mute); font-size: 0.92rem; margin-top: 6px; }
.sched-mine-code { font-size: 0.86rem; color: var(--mute); margin-top: 10px; letter-spacing: 0.04em; }
.tag-off { color: var(--mute); border-color: var(--line-strong); }

@media (max-width: 560px) {
  .barcode-code { font-size: 1.1rem; letter-spacing: 0.05em; }
  .sched-city-card, .sched-dept-card { padding: 18px 18px; }
}

/* =========================================================
   ADMINISTRAÇÃO DOS AGENDAMENTOS (/administracaoagendamentos, escondida)
   ========================================================= */
.ag { min-height: 100vh; padding: calc(var(--header-h) + 40px) 0 90px; }
.ag h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.ag [hidden] { display: none !important; }
.ag .btn { font-family: inherit; }
.ag .btn-ghost { background: transparent; }
.ag .btn-ghost:hover { background: var(--navy-soft); }
.ag button:focus-visible, .ag input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.ag-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 24px; }
.ag-stat { display: grid; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.ag-stat strong { font-size: 1.9rem; line-height: 1.1; }
.ag-stat span { color: var(--mute); font-size: 0.88rem; }

/* Leitor de código de barras */
.ag-scan { margin-top: 32px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--navy); }
.ag-scan label { display: block; font-weight: 600; margin-bottom: 12px; }
.ag-scan-row { display: flex; gap: 12px; }
.ag-scan-row input {
  flex: 1; min-width: 0; padding: 14px 16px; font: inherit; font-size: 1.25rem; letter-spacing: 0.06em;
  color: var(--white); background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.ag-scan-row .btn { width: auto; white-space: nowrap; }
.ag-hint { color: var(--mute); font-size: 0.88rem; margin-top: 12px; }

.ag-result { margin-top: 16px; padding: 22px 24px; border: 1px solid var(--line-strong); border-left-width: 5px; border-radius: var(--radius); background: var(--navy); }
.ag-result.is-confirmado { border-left-color: var(--green); }
.ag-result.is-compareceu { border-left-color: #2f9e57; }
.ag-result.is-cancelado, .ag-result.is-none { border-left-color: var(--mute); }
.ag-result-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ag-result-top h2 { font-size: 1.5rem; }
.ag-result-line { margin-top: 8px; font-size: 1.02rem; }
.ag-result-note { margin-top: 8px; font-weight: 600; }
.ag-result-contact { margin-top: 8px; color: var(--mute); font-size: 0.9rem; word-break: break-word; }
.ag-result .ag-actions { margin-top: 18px; justify-content: flex-start; }

/* Filtros */
.ag-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 36px; }
.ag-search { flex: 1 1 260px; }
.ag-search input { font-size: 1rem; }
.ag-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ag-seg button {
  padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mute);
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.ag-seg button:hover { color: var(--white); }
.ag-seg button.is-on { background: var(--green); color: var(--on-green); }

.ag-msg { margin-top: 16px; padding: 12px 16px; border: 1px solid rgba(255, 138, 138, 0.5); border-radius: var(--radius-sm); background: rgba(255, 138, 138, 0.08); color: #c23b3b; font-size: 0.92rem; }
html[data-theme="dark"] .ag-msg { color: #ffb4b4; }
.ag-count { margin-top: 22px; font-size: 0.95rem; }

/* Lista */
.ag-list { display: grid; gap: 12px; margin-top: 14px; }
.ag-row {
  display: grid; gap: 8px 20px; align-items: center; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--navy);
  grid-template-columns: 130px minmax(0, 1.5fr) minmax(0, 1fr) auto auto;
  grid-template-areas: "time who meta tag actions" ". toggle toggle toggle toggle" "detail detail detail detail detail";
}
.ag-row.is-cancelado .ag-time, .ag-row.is-cancelado .ag-who, .ag-row.is-cancelado .ag-meta { opacity: 0.6; }
.ag-time { grid-area: time; display: grid; }
.ag-time strong { font-size: 1.35rem; line-height: 1.1; }
.ag-time span { color: var(--mute); font-size: 0.86rem; }
.ag-who { grid-area: who; display: grid; min-width: 0; }
.ag-who strong { word-break: break-word; }
.ag-who span { color: var(--mute); font-size: 0.88rem; word-break: break-word; }
.ag-meta { grid-area: meta; display: grid; font-size: 0.92rem; }
.ag-code-txt { color: var(--mute); font-size: 0.84rem; letter-spacing: 0.04em; }
.ag-row .ag-tag { grid-area: tag; margin: 0; white-space: nowrap; }
.ag-row .ag-actions { grid-area: actions; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ag-toggle {
  grid-area: toggle; justify-self: start; padding: 0; border: 0; background: none; color: var(--mute);
  font: inherit; font-size: 0.86rem; text-decoration: underline; cursor: pointer;
}
.ag-toggle:hover { color: var(--white); }
.ag-detail { grid-area: detail; padding-top: 14px; border-top: 1px solid var(--line); }
.ag-detail-subject { white-space: pre-wrap; word-break: break-word; }
.ag-detail-info { color: var(--mute); font-size: 0.85rem; margin-top: 10px; }
.ag-empty { color: var(--mute); padding: 28px 0; }

.ag-tag-compareceu { color: #1f7a3d; border-color: rgba(31, 122, 61, 0.45); }
html[data-theme="dark"] .ag-tag-compareceu { color: #8be0a4; border-color: rgba(139, 224, 164, 0.45); }
.ag-tag-cancelado { color: var(--mute); border-color: var(--line-strong); }

@media (max-width: 900px) {
  .ag-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "time tag" "who who" "meta meta" "actions actions" "toggle toggle" "detail detail";
  }
  .ag-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ag-scan { padding: 18px; }
  .ag-scan-row { flex-direction: column; }
  .ag-scan-row .btn { width: 100%; }
  .ag-seg { width: 100%; }
  .ag-seg button { flex: 1 1 auto; }
}
