:root {
  /* Oficiais do escudo EsmacPowerfut */
  --brand-blue: #0237a1;
  --brand-yellow: #fefc01;
  --brand-red: #fa0402;
  --brand-white: #ffffff;
  /* Nome da marca no wordmark: Esmac + Powerfut */
  --brand-word-esmac: #fffe04;
  --brand-word-powerfut: #da1223;

  /* Azul: tons derivados para UI (links, hover, foco) */
  --blue-900: #0237a1;
  --blue-800: #011d52;
  --blue-700: #0456c4;
  --blue-500: #0a6ee0;
  /* Amarelo do escudo + leve clareamento para texto sobre fundo azul */
  --yellow-400: #fefc01;
  --yellow-300: #fffe04;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-800: #1f2937;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 6px -1px rgba(2, 55, 161, 0.1), 0 2px 4px -2px rgba(2, 55, 161, 0.07);
  --shadow-elevated: 0 20px 50px -12px rgba(2, 55, 161, 0.22);
  /* Botões: mesma família principal (Figtree) */
  --font-button: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.brand-word-esmac {
  color: var(--brand-word-esmac);
}

/* No header (ao lado do ícone azul); o hero mantém amarelo em .brand-word-esmac */
.brand-word-esmac--header {
  color: var(--blue-900);
}

.brand-word-powerfut {
  color: var(--brand-word-powerfut);
}

.brand-logo-img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo-img--guest {
  width: min(220px, 70vw);
  max-height: 220px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.brand-logo-img--header {
  height: 2.75rem;
  width: auto;
  max-width: 160px;
}

.brand-logo-img--landing-header {
  display: block;
  height: 2.625rem;
  max-height: 2.75rem;
  width: auto;
  max-width: 9.25rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-img--landing-hero {
  width: min(21rem, 80vw);
  height: auto;
  max-height: 15rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}

.brand-logo-img--sidebar,
.brand-logo-img--sidebar-athlete {
  height: 2.5rem;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
}

.brand-logo-img--hero {
  width: min(200px, 45vw);
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.25));
}

.landing-hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 500;
}

/* NProgress (barra de carregamento na navegação) — cores da marca */
#nprogress .bar {
  background: var(--blue-900);
  height: 3px;
}
#nprogress .peg {
  box-shadow:
    0 0 10px var(--blue-900),
    0 0 5px var(--blue-900);
}

/* ——— Guest: split (modelo login moderno) ——— */
.layout-guest {
  min-height: 100vh;
}

.guest-split {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 900px) {
  .guest-split {
    flex-direction: row;
  }
}

.guest-brand {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.75rem;
  background: radial-gradient(ellipse 120% 100% at 30% 20%, rgba(10, 110, 224, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 80% 60%, rgba(254, 252, 1, 0.14) 0%, transparent 45%),
    linear-gradient(165deg, var(--blue-900) 0%, var(--blue-800) 55%, #012456 100%);
  color: #fff;
  overflow: hidden;
}

.guest-brand-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
  pointer-events: none;
}

.guest-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
  text-align: center;
}

.guest-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow-300);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.guest-brand-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.guest-brand-title span {
  color: var(--yellow-300);
}

.guest-brand-tagline {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.55;
  font-weight: 400;
}

.guest-brand-deco {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.guest-brand-deco span {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.guest-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  background: var(--gray-100);
}

.guest-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Cadastro público: mesma linguagem visual, mais largura útil */
.guest-card--wide {
  max-width: min(56rem, 100%);
}

.auth-header {
  margin-bottom: 1.5rem;
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: 400;
}

.auth-form {
  margin-top: 0.25rem;
}

/* Login / cadastro: campos e botão mais compactos (referência visual do print) */
.layout-guest .auth-header {
  margin-bottom: 1rem;
}

.layout-guest form.auth-form.form-grid,
.layout-guest form.auth-form .form-grid {
  gap: 0.65rem;
}

.layout-guest form.auth-form label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.layout-guest form.auth-form input[type='text'],
.layout-guest form.auth-form input[type='email'],
.layout-guest form.auth-form input[type='password'],
.layout-guest form.auth-form input[type='number'],
.layout-guest form.auth-form input[type='date'],
.layout-guest form.auth-form select,
.layout-guest form.auth-form textarea {
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.35;
  min-height: 0;
}

.layout-guest form.auth-form input:focus,
.layout-guest form.auth-form select:focus,
.layout-guest form.auth-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(2, 55, 161, 0.2);
}

.layout-guest form.auth-form .btn.btn-primary {
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  line-height: 1.35;
  border-radius: 9999px;
}

/* Cadastro: célula vazia só para manter 2 colunas na linha do endereço (desktop) */
.layout-guest form.auth-form .auth-form-grid-placeholder {
  min-height: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 639px) {
  .layout-guest form.auth-form .auth-form-grid-placeholder {
    display: none;
  }
}

.layout-guest form.auth-form .auth-form-submit-row {
  margin-top: 0.15rem;
}

.layout-guest form.auth-form button.auth-form-submit-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  border-radius: 9999px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-footer {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--gray-500);
}

.auth-footer.muted {
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

.auth-footer a {
  font-weight: 600;
}

.auth-forgot-wrap {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 0.875rem;
}

.auth-forgot-wrap a {
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
}

.auth-forgot-wrap a:hover {
  text-decoration: underline;
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Formulários no painel: card em largura total (padrão listas/tabelas) */
.card.form-page {
  width: 100%;
  max-width: none;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(2, 55, 161, 0.22);
  background: #fff;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-button);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.15s, transform 0.05s;
}
.btn:active {
  transform: scale(0.99);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: var(--brand-white);
  box-shadow: 0 2px 8px rgba(2, 55, 161, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-700) 100%);
  text-decoration: none;
}

.btn-accent {
  background: linear-gradient(180deg, var(--brand-yellow) 0%, #e8e600 100%);
  color: var(--blue-900);
  box-shadow: 0 2px 8px rgba(254, 252, 1, 0.45);
  border: 1px solid rgba(2, 55, 161, 0.12);
}
.btn-accent:hover {
  background: var(--yellow-300);
  color: var(--blue-900);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1px solid var(--gray-200);
}

/* Painéis admin/atleta: shell com Tailwind nos layouts (sidebar + header). */

/* ——— Cards & stats ——— */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem 1.15rem 1.15rem;
  padding-left: 4.25rem;
  box-shadow: var(--shadow-card);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent, rgba(2, 55, 161, 0.15));
}

.stats .stat-card:nth-child(1) {
  --accent: rgba(2, 55, 161, 0.2);
}
.stats .stat-card:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(10, 110, 224, 0.45), rgba(2, 55, 161, 0.35));
}

.stats .stat-card:nth-child(2) {
  --accent: rgba(254, 252, 1, 0.35);
}
.stats .stat-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(254, 252, 1, 0.95), rgba(232, 230, 0, 0.65));
}

.stats .stat-card:nth-child(3) {
  --accent: rgba(250, 4, 2, 0.15);
}
.stats .stat-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(250, 4, 2, 0.55), rgba(200, 3, 2, 0.4));
}

.stats .stat-card:nth-child(4) {
  --accent: rgba(2, 55, 161, 0.12);
}
.stats .stat-card:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(254, 252, 1, 0.5), rgba(2, 55, 161, 0.35));
}

.stat-card .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-card .value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-top: 0.2rem;
  line-height: 1.2;
}

.stat-positive {
  color: #047857;
}

.stat-negative {
  color: #b10302;
}

/* Painel: mais cartões — variação cíclica do accent */
.stats--dense .stat-card:nth-child(5)::before,
.stats--dense .stat-card:nth-child(9)::before {
  background: linear-gradient(135deg, rgba(10, 110, 224, 0.45), rgba(2, 55, 161, 0.35));
}
.stats--dense .stat-card:nth-child(6)::before,
.stats--dense .stat-card:nth-child(10)::before {
  background: linear-gradient(135deg, rgba(254, 252, 1, 0.95), rgba(232, 230, 0, 0.65));
}
.stats--dense .stat-card:nth-child(7)::before,
.stats--dense .stat-card:nth-child(11)::before {
  background: linear-gradient(135deg, rgba(250, 4, 2, 0.55), rgba(200, 3, 2, 0.4));
}
.stats--dense .stat-card:nth-child(8)::before,
.stats--dense .stat-card:nth-child(12)::before {
  background: linear-gradient(135deg, rgba(254, 252, 1, 0.5), rgba(2, 55, 161, 0.35));
}

/* Configurações — sub-abas */
.config-subtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.15rem 0.25rem;
  margin-bottom: 1.35rem;
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Abas tipo “segmented control” / underline — sem aparência de botão nativo */
.config-subtab {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: var(--font-button);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 0.65rem 0.85rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  box-shadow: none;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.config-subtab:focus {
  outline: none;
}

.config-subtab:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.config-subtab:hover {
  color: var(--blue-700);
  background: rgba(2, 55, 161, 0.04);
}

.config-subtab.is-active {
  color: var(--blue-900);
  background: rgba(2, 55, 161, 0.06);
  font-weight: 700;
}

.config-subtab.is-active::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-900));
}

.config-panel[hidden] {
  display: none !important;
}

.config-panel:not([hidden]) {
  display: block;
}

.config-panel-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.config-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.config-page .input-textarea {
  min-height: 100px;
}

.config-page code {
  font-size: 0.85em;
  background: var(--gray-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Relatório — lucro líquido */
.report-cash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.report-cash-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.report-cash-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-top: 0.25rem;
}

.report-cash-highlight {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(2, 55, 161, 0.06), rgba(254, 252, 1, 0.12));
  border: 1px solid var(--gray-200);
}

.report-cash-highlight .report-cash-value {
  font-size: 1.5rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.flash.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.flash.error {
  background: rgba(250, 4, 2, 0.08);
  color: #b10302;
  border: 1px solid rgba(250, 4, 2, 0.28);
}
.flash.info {
  background: rgba(2, 55, 161, 0.06);
  color: var(--blue-900);
  border: 1px solid rgba(2, 55, 161, 0.22);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
}
table.data th,
table.data td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
table.data th {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--gray-50);
}
table.data tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-pago {
  background: #d1fae5;
  color: #065f46;
}
.badge-pendente {
  background: #fef3c7;
  color: #92400e;
}
.badge-vencido {
  background: #fee2e2;
  color: #991b1b;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.filters .field {
  min-width: 140px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-line input {
  width: auto;
}

.minimal {
  padding: 2rem;
  text-align: center;
}

/* ——— Landing EsmacPowerfut ——— */
.layout-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Tipografia da landing: leve aumento global (afeta utilitários em rem do Tailwind) */
html.landing-doc {
  font-size: 106.25%;
}

@media (min-width: 768px) {
  html.landing-doc {
    font-size: 108%;
  }
}

/* Cabeçalho fixo: transparente no topo do hero, branco ao rolar */
.landing-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .landing-header {
    transition: none;
  }
}

.landing-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-header .lh-nav a {
  color: rgba(255, 255, 255, 0.95);
  transition:
    color 0.22s ease,
    background-color 0.15s ease;
}

.landing-header .lh-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.landing-header.is-scrolled .lh-nav a {
  color: #334155;
}

.landing-header.is-scrolled .lh-nav a:hover {
  background: #f1f5f9;
}

.landing-header .lh-btn-entrar {
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  transition:
    color 0.22s ease,
    background-color 0.15s ease,
    border-color 0.22s ease;
}

.landing-header .lh-btn-entrar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.landing-header.is-scrolled .lh-btn-entrar {
  border-color: #cbd5e1;
  color: #0237a1;
}

.landing-header.is-scrolled .lh-btn-entrar:hover {
  background: #f8fafc;
  color: #0237a1;
}

.landing-header .lh-btn-matricula {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 0.3s ease,
    filter 0.25s ease;
}

.landing-header .lh-btn-matricula:hover {
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.1),
    0 14px 38px rgba(250, 204, 21, 0.5),
    0 0 32px rgba(254, 252, 1, 0.45);
  filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .landing-header .lh-btn-matricula {
    transition: none;
  }
}

.landing-header .lh-menu-summary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.landing-header.is-scrolled .lh-menu-summary {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
}

/* Galeria: iframe de widget Instagram (SnapWidget, Elfsight, etc.) */
.landing-instagram-embed iframe {
  display: block;
  width: 100% !important;
  min-height: 420px;
  border: 0;
}

.landing-instagram-posts .instagram-media {
  width: 100%;
  max-width: 540px;
}

.landing-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%);
  box-shadow: 0 4px 12px rgba(2, 55, 161, 0.35);
  position: relative;
  flex-shrink: 0;
}

.landing-logo-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(254, 252, 1, 0.9);
  border-top-color: transparent;
  transform: rotate(-35deg);
}

.landing-logo-mark--sm {
  width: 28px;
  height: 28px;
}
.landing-logo-mark--sm::after {
  inset: 6px;
  border-width: 1.5px;
}

.landing-main {
  flex: 1;
}

/* Pilares, cards de categorias e calendário: borda #FEFC01 no hover (gradiente para contraste no branco). */
.landing-pillar,
.landing-card-hover {
  border: 2px solid transparent;
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.landing-pillar:hover,
.landing-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.18);
  background-image: linear-gradient(#ffffff, #ffffff),
    linear-gradient(180deg, #d4c200 0%, #fefc01 42%, #fefc01 58%, #d4c200 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 8vw, 5rem);
  color: #fff;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 20% 0%, rgba(254, 252, 1, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 80%, rgba(250, 4, 2, 0.12) 0%, transparent 45%),
    linear-gradient(155deg, var(--blue-900) 0%, var(--blue-800) 42%, #011d52 100%);
}

.landing-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 28 L43 43 L30 35 L17 43 L22 28 L10 20 L25 20 Z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-word-esmac);
}

.landing-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.landing-hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.94;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Landing: botões mais baixos (padding vertical menor) */
.landing-main .btn-lg {
  padding: 0.38rem 1rem;
  line-height: 1.22;
}

.landing-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.landing-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
}

.landing-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.landing-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.landing-section-alt {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.landing-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.landing-section-text {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 720px;
  line-height: 1.65;
}

.landing-features {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-feature {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.landing-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.landing-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.landing-feature-icon--blue {
  background: linear-gradient(135deg, rgba(10, 110, 224, 0.4), rgba(2, 55, 161, 0.3));
  border: 1px solid rgba(2, 55, 161, 0.35);
}

.landing-feature-icon--yellow {
  background: linear-gradient(135deg, rgba(254, 252, 1, 0.95), rgba(232, 230, 0, 0.55));
  border: 1px solid rgba(2, 55, 161, 0.2);
}

.landing-feature-icon--mix {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 50%, var(--brand-yellow) 100%);
  opacity: 0.95;
}

.landing-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Mesmo padrão visual: borda cinza clara, cantos ~10px, mais compacto (cores atuais preservadas) */
.landing-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-button);
  font-weight: 600;
  border-radius: 10px;
  line-height: 1.15;
}

.landing-header-btn--outline {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--blue-900);
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .landing-header-btn--outline {
    font-size: 0.875rem;
    padding: 0.32rem 0.72rem;
  }
}

.landing-header-btn--outline:hover {
  background: #f9fafb;
  color: var(--blue-900);
  text-decoration: none;
}

.landing-header-btn--solid {
  border: 1px solid var(--blue-900);
  background: var(--blue-900);
  color: #fff;
  padding: 0.28rem 0.62rem;
  font-size: 0.75rem;
  box-shadow: none;
}

@media (min-width: 640px) {
  .landing-header-btn--solid {
    font-size: 0.875rem;
    padding: 0.32rem 0.82rem;
  }
}

.landing-header-btn--solid:hover {
  opacity: 0.94;
  color: #fff;
  text-decoration: none;
}

.landing-inline-cta .btn-lg {
  padding: 0.34rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.22;
}

.landing-inline-cta .btn-ghost.btn-lg {
  background: #fff;
  border: 1px solid #d1d5db;
  color: var(--blue-900);
}

.landing-inline-cta .btn-ghost.btn-lg:hover {
  background: #f9fafb;
  color: var(--blue-900);
  text-decoration: none;
}

.landing-inline-cta .btn-accent.btn-lg {
  border-radius: 10px;
}

.landing-footer {
  margin-top: auto;
  padding: 1.75rem 0;
  background: var(--gray-800);
  color: #e5e7eb;
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .landing-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.landing-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .landing-footer-legal {
    align-items: flex-end;
    text-align: right;
  }
}

.landing-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.landing-footer-credit {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.landing-footer-credit a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.landing-footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Botão flutuante WhatsApp (configurável em Admin → Configurações) */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--blue-900);
  outline-offset: 3px;
}

/* ——— Bola quicando ao clicar (landing + login/cadastro) ——— */
.layout-landing a.landing-header-btn,
.layout-landing header a.landing-cta-kick,
.layout-landing .landing-main a.btn,
.layout-landing .landing-main button.landing-cta-kick,
.layout-landing header nav[aria-label='Seções'] a,
.layout-guest form.auth-form button[type='submit'].btn.btn-primary {
  position: relative;
  overflow: hidden;
}

/* Menu do header: sem overflow hidden (evita linha/anel azul recortado ao lado de "Sobre") */
.layout-landing header nav[aria-label='Seções'].lh-nav a {
  overflow: visible;
  border: 0;
}

.landing-header .lh-nav a:focus:not(:focus-visible) {
  outline: none;
}

.landing-header .lh-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.landing-header.is-scrolled .lh-nav a:focus-visible {
  outline-color: #0237a1;
}

/* Seções com âncora (#sobre → Quem somos): remove contorno azul de :target */
.layout-landing .landing-main section[id]:target {
  outline: none;
}

.layout-landing header a.landing-cta-kick,
.layout-landing .landing-main a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout-landing .landing-main button.landing-cta-kick {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.layout-guest form.auth-form button[type='submit'].btn.btn-primary.btn-block {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.btn-kick-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: opacity 0.1s ease, visibility 0.1s ease;
}

.btn-kick--play .btn-kick-label {
  opacity: 0;
  visibility: hidden;
}

.btn-kick-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease, visibility 0.1s ease;
}

.btn-kick--play .btn-kick-fx {
  opacity: 1;
  visibility: visible;
}

.btn-kick-svg {
  display: block;
  width: 2rem;
  height: auto;
  max-height: 2rem;
}

.btn-kick-ball-wrap {
  transform-origin: 50% 100%;
  transform-box: fill-box;
}

.btn-kick--play .btn-kick-ball-wrap {
  animation: landingBallBounce 0.85s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

/* Login / cadastro: quique mais lento; estado mantido até enviar (JS não remove em envio válido) */
.btn-kick--guest.btn-kick--play .btn-kick-ball-wrap {
  animation: landingBallBounceGuest 1.85s cubic-bezier(0.33, 1, 0.55, 1) forwards;
}

@keyframes landingBallBounce {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  8% {
    transform: translateY(-7px) scaleY(1.02);
  }
  16% {
    transform: translateY(0) scaleY(0.96);
  }
  24% {
    transform: translateY(-5px) scaleY(1.01);
  }
  32% {
    transform: translateY(0) scaleY(0.98);
  }
  40% {
    transform: translateY(-3px) scaleY(1);
  }
  48%,
  100% {
    transform: translateY(0) scaleY(1);
  }
}

@keyframes landingBallBounceGuest {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  10% {
    transform: translateY(-6px) scaleY(1.02);
  }
  22% {
    transform: translateY(0) scaleY(0.97);
  }
  34% {
    transform: translateY(-4px) scaleY(1.01);
  }
  46% {
    transform: translateY(0) scaleY(0.98);
  }
  58% {
    transform: translateY(-2px) scaleY(1);
  }
  70%,
  100% {
    transform: translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-kick-fx {
    display: none !important;
  }

  .btn-kick--play .btn-kick-label {
    opacity: 1;
    visibility: visible;
  }
}

