/* =====================================================================
   CAIAQUEIROS — style.css
   ---------------------------------------------------------------------
   Sistema de design completo: paleta navy/azul/branco, Manrope única,
   hierarquia visual por contraste de pesos (200 vs 800).

   Estrutura:
     01. Tokens (CSS variables)
     02. Reset + base
     03. Tipografia + utilitários
     04. Layout (container, grid, stacks)
     05. Componentes: Botões
     06. Componentes: Forms
     07. Componentes: Cards
     08. Componentes: Alerts / Flash
     09. Componentes: Badges + status
     10. Componentes: Tables
     11. Componentes: Empty state
     12. Componentes: Stats (dashboard)
     13. Brand mark
     14. Auth shell
     15. Admin shell
     16. Public shell
     17. Hero + features (home pública)
     18. Tournament cards (lista)
     19. Tournament page (hero, ranking, info side)
     20. Capture form (mobile fiscal)
     21. Settings groups
     22. Error pages
     23. Helpers / utilities
     24. Animações
     25. Responsivo (tablet ≥768, desktop ≥1024)
   ===================================================================== */

/* =====================================================================
   01. TOKENS
   ===================================================================== */
:root {
  /* Backgrounds + surfaces */
  --c-bg:           #F7F9FC;
  --c-surface:      #FFFFFF;
  --c-surface-2:    #F1F5FA;
  --c-surface-3:    #E4ECF5;

  /* Paleta — escala navy → sky */
  --c-ink:          #0A1929;
  --c-deep:         #0B2545;     /* navy da marca */
  --c-navy:         #1E3A5F;
  --c-blue:         #2563EB;     /* azul vibrante (live, accent) */
  --c-azure:        #3B82F6;
  --c-sky:          #60A5FA;
  --c-mist:         #BFDBFE;
  --c-cloud:        #DBEAFE;
  --c-frost:        #EFF6FF;

  /* Texto */
  --c-text:         #0A1929;
  --c-text-soft:    #1E293B;
  --c-muted:        #475569;
  --c-muted-lt:     #94A3B8;

  /* Bordas */
  --c-border:       #E2E8F0;
  --c-border-soft:  #F1F5F9;

  /* Estados (paleta restrita: tudo em azul/cinza, só danger usa vermelho discreto) */
  --c-success:      #1E40AF;
  --c-success-bg:   #DBEAFE;
  --c-warning:      #1E293B;
  --c-warning-bg:   #E2E8F0;
  --c-danger:       #B91C1C;
  --c-danger-bg:    #FEE2E2;
  --c-info:         #2563EB;
  --c-info-bg:      #DBEAFE;

  /* Gradientes */
  --g-water:        linear-gradient(135deg, #0B2545 0%, #1E3A5F 30%, #2563EB 65%, #60A5FA 100%);
  --g-water-soft:   linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 50%, #FFFFFF 100%);
  --g-mesh:         radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(11, 37, 69, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 60% 80%, rgba(96, 165, 250, 0.35) 0%, transparent 60%),
                    radial-gradient(circle at 30% 90%, rgba(30, 58, 95, 0.2) 0%, transparent 50%);
  --g-button:       linear-gradient(180deg, #2563EB 0%, #1E3A5F 100%);
  --g-button-hov:   linear-gradient(180deg, #1E3A5F 0%, #0B2545 100%);
  --g-ink:          linear-gradient(135deg, #0B2545 0%, #1E3A5F 100%);
  --g-deep:         linear-gradient(135deg, #0A1929 0%, #1E3A5F 50%, #2563EB 100%);

  /* Sombras (tonais navy) */
  --shd-xs:         0 1px 2px rgba(11, 37, 69, 0.06);
  --shd-sm:         0 2px 8px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shd-md:         0 4px 14px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.04);
  --shd-lg:         0 20px 40px -12px rgba(11, 37, 69, 0.18), 0 8px 16px -8px rgba(11, 37, 69, 0.1);
  --shd-glow:       0 0 0 4px rgba(37, 99, 235, 0.15);
  --shd-glow-danger:0 0 0 3px rgba(185, 28, 28, 0.15);
  --shd-inner:      inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* Raios */
  --r-sm:           6px;
  --r-md:           10px;
  --r-lg:           16px;
  --r-xl:           24px;
  --r-pill:         999px;

  /* Espaçamento (escala 4px) */
  --sp-1:           4px;
  --sp-2:           8px;
  --sp-3:           12px;
  --sp-4:           16px;
  --sp-5:           20px;
  --sp-6:           24px;
  --sp-8:           32px;
  --sp-10:          40px;
  --sp-12:          48px;
  --sp-16:          64px;
  --sp-20:          80px;

  /* Tipografia — Manrope única (200..800) */
  --f-sans:         'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:         'Manrope', monospace; /* mesma fonte; tabular-nums alinha colunas */

  --fs-xs:          12px;
  --fs-sm:          13px;
  --fs-md:          14px;
  --fs-base:        16px;
  --fs-lg:          18px;
  --fs-xl:          22px;
  --fs-2xl:         28px;
  --fs-3xl:         36px;
  --fs-4xl:         44px;
  --fs-5xl:         56px;
  --fs-6xl:         72px;

  /* Touch (mobile) */
  --touch-min:      44px;

  /* Transições */
  --t-fast:         150ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-base:         280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-drawer:       100;
  --z-modal:        200;
  --z-toast:        300;

  /* Sidebar (desktop) */
  --sidebar-w:      240px;
}

/* =====================================================================
   02. RESET + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, form, input, select, textarea, button {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

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

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-deep); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-6) 0;
}

/* =====================================================================
   03. TIPOGRAFIA + UTILITÁRIOS
   ===================================================================== */
h1, h2, h3, h4 {
  line-height: 1.1;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

/* Display: peso 200 (extralight) com letter-spacing tight cria editorial sem serif */
.display-1 { font-weight: 200; font-size: var(--fs-5xl); letter-spacing: -0.04em; line-height: 0.95; }
.display-2 { font-weight: 200; font-size: var(--fs-4xl); letter-spacing: -0.04em; line-height: 0.98; }
.display-1 strong, .display-2 strong { font-weight: 800; }

h1 { font-weight: 700; font-size: var(--fs-2xl); }
h2 { font-weight: 700; font-size: var(--fs-xl); }
h3 { font-weight: 700; font-size: var(--fs-lg); }
h4 { font-weight: 600; font-size: var(--fs-md); }

p { line-height: 1.6; }

.text-muted    { color: var(--c-muted); }
.text-soft     { color: var(--c-text-soft); }
.text-deep     { color: var(--c-deep); }
.text-blue     { color: var(--c-blue); }
.text-success  { color: var(--c-success); }
.text-danger   { color: var(--c-danger); }
.text-warning  { color: var(--c-warning); }
.text-sm       { font-size: var(--fs-sm); }
.text-xs       { font-size: var(--fs-xs); }
.text-md       { font-size: var(--fs-md); }
.text-lg       { font-size: var(--fs-lg); }
.text-xl       { font-size: var(--fs-xl); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }

.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-upper {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: var(--fs-xs);
}

/* Números com tabular-nums (alinha colunas sem fonte mono) */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}

/* Espaçamento */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* =====================================================================
   04. LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.col { flex: 1; min-width: 0; }

.grid       { display: grid; gap: var(--sp-4); }
.grid-2     { grid-template-columns: 1fr; gap: var(--sp-4); }
.grid-3     { grid-template-columns: 1fr; gap: var(--sp-4); }
.grid-4     { grid-template-columns: 1fr; gap: var(--sp-3); }

.stack > * + *    { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.items-baseline{ align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.w-full { width: 100%; }

/* =====================================================================
   05. BOTÕES
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); min-height: var(--touch-min);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill);
  background: var(--g-button);
  color: #fff; font-weight: 600; font-size: var(--fs-base);
  box-shadow: var(--shd-md), var(--shd-inner);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shd-lg), var(--shd-inner);
  background: var(--g-button-hov);
  color: #fff;
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--shd-glow), var(--shd-md); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn-ghost {
  background: transparent;
  color: var(--c-deep);
  box-shadow: none;
  padding: var(--sp-3) var(--sp-4);
}
.btn-ghost:hover {
  background: var(--c-surface-2);
  transform: none;
  box-shadow: none;
  color: var(--c-deep);
}

.btn-outline {
  background: var(--c-surface);
  color: var(--c-deep);
  border: 1px solid var(--c-border);
  box-shadow: var(--shd-xs);
}
.btn-outline:hover {
  background: var(--c-surface-2);
  color: var(--c-deep);
  border-color: var(--c-blue);
  box-shadow: var(--shd-xs);
}

.btn-ink {
  background: var(--g-ink);
  color: #fff;
  box-shadow: var(--shd-md), var(--shd-inner);
}
.btn-ink:hover { color: #fff; }

.btn-danger {
  background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
  color: #fff;
}
.btn-danger:hover { background: linear-gradient(180deg, #B91C1C 0%, #7F1D1D 100%); color: #fff; }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { min-height: 36px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.btn-lg {
  min-height: 56px;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* =====================================================================
   06. FORMS
   ===================================================================== */
.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}
.form-label .required { color: var(--c-danger); margin-left: 2px; }

.form-help {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  font-weight: 500;
  line-height: 1.5;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: var(--shd-glow);
}
.form-control::placeholder { color: var(--c-muted-lt); font-weight: 400; }
.form-control:disabled { background: var(--c-surface-2); cursor: not-allowed; opacity: 0.7; }

textarea.form-control { min-height: 120px; line-height: 1.6; resize: vertical; }
select.form-control { cursor: pointer; padding-right: var(--sp-8); }

.form-control.is-invalid { border-color: var(--c-danger); }
.form-control.is-invalid:focus { box-shadow: var(--shd-glow-danger); }

.form-error {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-danger);
  font-weight: 600;
}
.form-error + .form-error { margin-top: var(--sp-1); }

.form-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  font-weight: 500;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--c-blue);
  cursor: pointer;
}

/* Switch */
.form-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}
.form-switch input { display: none; }
.form-switch .switch-track {
  width: 44px;
  height: 24px;
  background: var(--c-border);
  border-radius: var(--r-pill);
  position: relative;
  transition: background var(--t-base);
  flex-shrink: 0;
}
.form-switch .switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-base);
  box-shadow: var(--shd-sm);
}
.form-switch input:checked + .switch-track { background: var(--c-blue); }
.form-switch input:checked + .switch-track::after { transform: translateX(20px); }

/* Input com action lateral (ex: toggle senha) */
.input-with-action { position: relative; }
.input-with-action .form-control { padding-right: 52px; }
.input-with-action .input-action {
  position: absolute;
  top: 50%;
  right: var(--sp-2);
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.input-with-action .input-action:hover { background: var(--c-surface-2); color: var(--c-deep); }

/* Measure input (peso/medida grandes — usado em captura) */
.measure-input {
  display: flex; align-items: stretch;
  background: var(--c-surface);
  border: 2px solid var(--c-blue);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shd-glow);
}
.measure-input input {
  flex: 1; min-width: 0;
  border: none;
  padding: var(--sp-5) var(--sp-4);
  font-weight: 200;
  font-size: var(--fs-3xl);
  color: var(--c-deep);
  letter-spacing: -0.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: transparent;
}
.measure-input input:focus { outline: none; }
.measure-input .unit {
  display: flex; align-items: center;
  padding: 0 var(--sp-5);
  background: var(--c-surface-2);
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--c-text-soft);
  border-left: 1px solid var(--c-border);
}

/* =====================================================================
   07. CARDS
   ===================================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shd-sm);
}
.card-tight { padding: var(--sp-4) var(--sp-5); }
.card-header {
  margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) var(--sp-5);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2, .card-header h3 { margin: 0; color: var(--c-deep); }

/* =====================================================================
   08. ALERTS (flash messages)
   ===================================================================== */
.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid;
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: flex-start;
  font-weight: 500;
  font-size: var(--fs-md);
  /* Contém qualquer filho que tente extrapolar (URLs longas, emails, tokens) */
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.alert > * {
  /* Flex items defaultam pra min-width: auto, que pode extrapolar com conteúdo
     indivisível. Forçar 0 + max-width: 100% garante que respeitem o pai. */
  min-width: 0;
  max-width: 100%;
}
.alert > p { margin: 0; }
.alert code,
.alert a {
  word-break: break-all;
  overflow-wrap: anywhere;
  /* inline-block respeita largura do pai melhor que inline puro em alguns engines */
  max-width: 100%;
}
.alert-success { background: var(--c-success-bg); border-color: var(--c-blue); color: var(--c-deep); }
.alert-error,
.alert-danger  { background: var(--c-danger-bg);  border-color: var(--c-danger); color: #7F1D1D; }
.alert-warning { background: var(--c-warning-bg); border-color: var(--c-text-soft); color: var(--c-deep); }
.alert-info    { background: var(--c-info-bg);    border-color: var(--c-blue); color: var(--c-deep); }

/* =====================================================================
   09. BADGES + STATUS
   ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  line-height: 1.4;
}
.badge-primary { background: var(--c-cloud); color: var(--c-deep); }
.badge-deep    { background: var(--c-deep); color: var(--c-frost); }
.badge-soft    { background: var(--c-frost); color: var(--c-navy); }
.badge-success { background: var(--c-success-bg); color: var(--c-deep); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-deep); }
.badge-danger  { background: var(--c-danger-bg); color: #7F1D1D; }
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.badge .dot-live {
  background: var(--c-blue);
  animation: pulse 2s ease-in-out infinite;
}

/* =====================================================================
   10. TABLES
   ===================================================================== */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  font-size: var(--fs-md);
}
.table th, .table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.table th {
  background: var(--c-surface-2);
  font-weight: 800;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table tbody tr:hover { background: var(--c-frost); }

/* Stack em mobile */
@media (max-width: 767px) {
  .table-stack { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tbody { display: block; width: 100%; }
  .table-stack tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    margin-bottom: var(--sp-3);
  }
  .table-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--c-border-soft);
    padding: var(--sp-2) 0;
  }
  .table-stack td:last-child { border-bottom: none; }
  .table-stack td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--c-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

/* =====================================================================
   11. EMPTY STATE
   ===================================================================== */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
  color: var(--c-muted);
}
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-pill);
  background: var(--g-water-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  color: var(--c-blue);
}
.empty-state h3 { color: var(--c-deep); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.empty-state p { max-width: 420px; margin: 0 auto var(--sp-4); }

/* =====================================================================
   12. STATS (dashboard)
   ===================================================================== */
.stat-card,
.stat {
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-label,
.stat .stat-label {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.stat-card .stat-value,
.stat .stat-value {
  font-weight: 200;
  font-size: var(--fs-4xl);
  line-height: 1;
  color: var(--c-deep);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-value strong,
.stat .stat-value strong { font-weight: 800; }
.stat-card .stat-meta,
.stat .stat-delta,
.stat-card .stat-delta {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-blue);
  font-weight: 700;
}

.stat.featured {
  background: var(--g-deep);
  color: white;
  border: none;
}
.stat.featured::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.stat.featured .stat-label { color: rgba(255,255,255,0.8); position: relative; z-index: 1; }
.stat.featured .stat-value { color: white; position: relative; z-index: 1; }
.stat.featured .stat-delta { color: var(--c-sky); position: relative; z-index: 1; }

/* =====================================================================
   13. BRAND MARK
   ===================================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--c-deep); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--g-water);
  box-shadow: var(--shd-md), var(--shd-inner);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%);
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: var(--r-lg); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .b-name {
  font-weight: 800;
  font-size: var(--fs-base);
}
.brand-text .b-loc {
  font-weight: 300;
  font-size: var(--fs-xs);
  color: var(--c-blue);
  letter-spacing: 0.02em;
}

/* =====================================================================
   14. AUTH SHELL
   ===================================================================== */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-8) var(--sp-4);
  background: linear-gradient(160deg, var(--c-bg) 0%, var(--c-cloud) 100%);
  position: relative;
  overflow-x: hidden;
}
/* Centraliza vertical em telas altas onde o card cabe folgado.
   Mobile sempre flex-start pra evitar bug de scroll travado. */
@media (min-height: 760px) {
  .auth-layout { align-items: center; }
}
.auth-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-mesh);
  opacity: 0.4;
  pointer-events: none;
}
.auth-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shd-lg);
  border: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
}
.auth-card .auth-brand {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.auth-card .auth-brand .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  margin: 0 auto var(--sp-4);
}
.auth-card h1 {
  font-weight: 200;
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: var(--sp-2);
  color: var(--c-deep);
}
.auth-card h1 strong { font-weight: 800; }
.auth-card .auth-subtitle {
  text-align: center;
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
  font-weight: 500;
}
.auth-card .auth-footer {
  text-align: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* =====================================================================
   15. ADMIN SHELL
   ===================================================================== */
.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header .header-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.admin-header .user-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.admin-header .user-chip strong { color: var(--c-deep); font-weight: 700; }

.admin-toggle {
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: transparent;
  border: none;
  color: var(--c-deep);
  cursor: pointer;
  transition: background var(--t-fast);
}
.admin-toggle:hover { background: var(--c-surface-2); }

.admin-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.admin-sidebar {
  background: var(--c-surface-2);
  border-right: 1px solid var(--c-border);
  width: 100%;
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--t-base);
  overflow-y: auto;
}
.admin-sidebar.is-open { transform: translateX(0); }
.admin-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.admin-sidebar nav { padding: var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: var(--fs-md);
  min-height: var(--touch-min);
  transition: background var(--t-fast), color var(--t-fast);
}
.admin-sidebar nav a:hover {
  background: var(--c-surface);
  color: var(--c-deep);
}
.admin-sidebar nav a.is-active {
  background: var(--c-surface);
  color: var(--c-deep);
  box-shadow: var(--shd-xs);
}
.admin-sidebar nav a.is-active svg { color: var(--c-blue); }
.admin-sidebar nav .nav-divider {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted-lt);
  padding: var(--sp-5) var(--sp-4) var(--sp-2);
  font-weight: 800;
}
.admin-sidebar nav form button {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--c-danger);
  font-weight: 600;
  font-size: var(--fs-md);
  min-height: var(--touch-min);
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
  text-align: left;
}
.admin-sidebar nav form button:hover { background: var(--c-danger-bg); }

.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.4);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-drawer) - 1);
}
.admin-backdrop.is-open { display: block; }

.admin-main {
  flex: 1;
  padding: var(--sp-5) var(--sp-4);
  min-width: 0;
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.page-header h1 {
  font-weight: 200;
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-deep);
}
.page-header h1 strong { font-weight: 800; }
.page-subtitle {
  color: var(--c-muted);
  margin-top: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: 500;
}
.page-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* =====================================================================
   16. PUBLIC SHELL
   ===================================================================== */
.public-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-4) 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.public-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Nota: regras antigas `.public-header nav` foram removidas. O nav agora é
   controlado pela classe `.header-nav` (mobile: escondido, desktop≥1024: flex). */

.public-main {
  padding: var(--sp-10) 0;
  min-height: 60vh;
}

.public-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) 0;
  text-align: center;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-16);
  font-weight: 500;
}

/* =====================================================================
   17. HERO + FEATURES (home pública)
   ===================================================================== */
.hero {
  position: relative;
  padding: var(--sp-10) var(--sp-4);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shd-md);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--g-mesh);
  opacity: 0.9;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shd-xs);
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue);
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-weight: 200;
  font-size: clamp(26px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.hero h1 strong { font-weight: 800; color: var(--c-deep); }
.hero p {
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text-soft);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
}
.hero-cta {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin: var(--sp-12) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shd-lg);
  border: 1px solid var(--c-border);
  max-width: 880px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: var(--sp-6) var(--sp-8);
  text-align: left;
}
.hero-stat .val {
  font-weight: 200;
  font-size: var(--fs-4xl);
  line-height: 1;
  color: var(--c-deep);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.hero-stat .val small {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--c-muted);
  margin-left: 2px;
}
.hero-stat .label {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.features {
  margin-top: var(--sp-12);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.feature-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shd-lg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-water);
  color: white;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shd-sm);
}
.feature-card h3 {
  font-weight: 700;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
  color: var(--c-deep);
}
.feature-card p {
  color: var(--c-text-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-weight: 400;
}

/* =====================================================================
   18. TOURNAMENT CARDS (lista pública)
   ===================================================================== */
.tournaments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.tournament-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
  color: inherit;
  display: block;
}
.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shd-lg);
  border-color: var(--c-blue);
  color: inherit;
}
.tournament-cover {
  height: 160px;
  position: relative;
  background: var(--g-water);
  overflow: hidden;
}
.tournament-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 25, 41, 0.55) 100%);
}
.tournament-cover .cover-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.tournament-cover-2 { background: linear-gradient(135deg, #0A1929 0%, #1E3A5F 50%, #2563EB 100%); }
.tournament-cover-3 { background: linear-gradient(135deg, #1E3A5F 0%, #3B82F6 50%, #60A5FA 100%); }
.tournament-cover-4 { background: linear-gradient(135deg, #0B2545 0%, #1E293B 50%, #475569 100%); }
.tournament-cover .badge-pos {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.tournament-cover .meta-pos {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.tournament-cover .label-meta {
  font-weight: 200;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.tournament-cover .date {
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
}
.tournament-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.tournament-body h3 {
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
  color: var(--c-deep);
}
.tournament-body .loc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}
.tournament-body .t-stats {
  display: flex;
  gap: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.tournament-body .t-stats > div { display: flex; flex-direction: column; }
.tournament-body .t-stats .v {
  font-weight: 200;
  font-size: var(--fs-2xl);
  color: var(--c-deep);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tournament-body .t-stats .v strong { font-weight: 800; }
.tournament-body .t-stats .l {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: var(--sp-1);
}

.list-filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-6);
}
.filter-chip {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}
.filter-chip:hover { background: var(--c-cloud); color: var(--c-deep); }
.filter-chip.is-active { background: var(--c-deep); color: #fff; }

/* =====================================================================
   19. TOURNAMENT PAGE (hero + ranking + side info)
   ===================================================================== */
.t-page {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shd-md);
  border: 1px solid var(--c-border);
}
.t-hero {
  position: relative;
  min-height: 240px;
  background: linear-gradient(135deg, #0A1929 0%, #0B2545 30%, #1E3A5F 60%, #2563EB 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  color: white;
}
.t-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 15% 90%, rgba(11, 37, 69, 0.7) 0%, transparent 60%);
}
.t-hero::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.t-hero-content { position: relative; z-index: 2; max-width: 800px; }
.t-hero .badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-blue);
  margin-bottom: var(--sp-4);
}
.t-hero h1 {
  font-weight: 200;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: var(--sp-3);
}
.t-hero h1 strong { font-weight: 800; }
.t-hero .t-meta {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  font-weight: 500;
}
.t-hero .t-meta .sep { opacity: 0.4; }

.t-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6);
}

.ranking-section h2 {
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  color: var(--c-deep);
  margin-bottom: var(--sp-1);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.ranking-section h2 .live-tag {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-cloud);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.ranking-section .subtitle {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.rank-row:hover { transform: translateX(2px); border-color: var(--c-blue); }
.rank-pos {
  font-weight: 200;
  font-size: var(--fs-2xl);
  color: var(--c-muted-lt);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rank-row.is-top1 {
  background: var(--g-ink);
  border-color: var(--c-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
.rank-row.is-top1::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.3) 0%, transparent 50%);
  pointer-events: none;
}
.rank-row.is-top1 > * { position: relative; z-index: 1; }
.rank-row.is-top1 .rank-pos { color: white; font-size: var(--fs-3xl); }
.rank-row.is-top1 .rank-info .name { color: white; font-weight: 700; }
.rank-row.is-top1 .rank-info .meta { color: rgba(255, 255, 255, 0.7); }
.rank-row.is-top1 .rank-value { color: white; }
.rank-row.is-top1 .rank-value .unit { color: rgba(255, 255, 255, 0.7); }
.rank-row.is-top1 .rank-trend { background: rgba(255, 255, 255, 0.2); color: white; }
.rank-row.is-top2 .rank-pos,
.rank-row.is-top3 .rank-pos { color: var(--c-deep); }

.rank-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-info .name { font-weight: 700; font-size: var(--fs-md); color: var(--c-text); }
.rank-info .meta {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rank-value {
  font-weight: 200;
  font-size: var(--fs-2xl);
  color: var(--c-deep);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-value strong { font-weight: 800; }
.rank-value .unit { font-size: var(--fs-md); color: var(--c-muted); font-weight: 400; margin-left: 4px; }

.rank-trend {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--c-cloud);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.rank-trend.down,
.rank-trend.same { background: var(--c-surface-2); color: var(--c-muted); }

.t-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.t-info-card {
  padding: var(--sp-5);
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.t-info-card h3 {
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
  color: var(--c-deep);
}
.t-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-md);
}
.t-info-row:last-child { border-bottom: none; }
.t-info-row .l { color: var(--c-muted); font-weight: 500; }
.t-info-row .v { font-weight: 700; color: var(--c-text); }

.t-window {
  background: var(--g-deep);
  color: white;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.t-window::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.4) 0%, transparent 50%);
}
.t-window h3 {
  font-weight: 300;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.t-window .time {
  font-weight: 200;
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  line-height: 1;
}
.t-window .label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--sp-2);
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* =====================================================================
   20. CAPTURE FORM (mobile fiscal)
   ===================================================================== */
.capture-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shd-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.capture-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--c-cloud) 0%, var(--c-surface-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-deep);
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.capture-photo:hover { background: linear-gradient(135deg, var(--c-cloud) 0%, var(--c-mist) 100%); }
.capture-photo .photo-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
  box-shadow: var(--shd-sm);
}
.capture-photo .label { font-size: var(--fs-md); font-weight: 700; }
.capture-photo .hint { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 500; }

.species-pick {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--c-surface);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.species-pick:hover { border-color: var(--c-blue); background: var(--c-surface-2); }
.species-pick .sp-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--g-water);
  margin-right: var(--sp-3);
  flex-shrink: 0;
}
.species-pick .sp-info { flex: 1; min-width: 0; }
.species-pick .sp-info strong {
  display: block;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--c-text);
}
.species-pick .sp-info span {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 500;
}
.species-pick .arrow {
  color: var(--c-muted);
  font-size: var(--fs-xl);
  font-weight: 300;
}

/* =====================================================================
   21. SETTINGS GROUPS
   ===================================================================== */
.settings-group {
  margin-bottom: var(--sp-8);
}
.settings-group .group-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted-lt);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

/* =====================================================================
   22. ERROR PAGES
   ===================================================================== */
.error-page {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
}
.error-page .error-code {
  font-size: clamp(80px, 16vw, 140px);
  font-weight: 200;
  background: var(--g-water);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
}
.error-page h1 {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-deep);
}
.error-page p {
  color: var(--c-muted);
  max-width: 480px;
  margin: var(--sp-4) auto var(--sp-6);
  font-weight: 500;
}

/* =====================================================================
   23. HELPERS / UTILITIES
   ===================================================================== */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   24. ANIMAÇÕES
   ===================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert {
  animation: fadeInUp var(--t-base) ease-out;
}

/* =====================================================================
   25. RESPONSIVO
   ===================================================================== */
/* ----- Tablet (≥ 768px) ----- */
@media (min-width: 768px) {
  body { font-size: var(--fs-base); }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: var(--sp-20) var(--sp-8) var(--sp-20); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tournaments-grid { grid-template-columns: repeat(2, 1fr); }

  .admin-main { padding: var(--sp-6) var(--sp-6); }
  .page-header h1 { font-size: var(--fs-4xl); }
}

/* ----- Desktop (≥ 1024px) ----- */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .features-grid { grid-template-columns: repeat(3, 1fr); }

  /* Sidebar fixa */
  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-w);
    transform: none;
    flex-shrink: 0;
    border-right: 1px solid var(--c-border);
  }
  .admin-sidebar.is-open { transform: none; }
  .admin-sidebar .sidebar-header .admin-toggle,
  .admin-sidebar .sidebar-header .sidebar-close { display: none; }

  .admin-toggle.mobile-only { display: none; }
  .admin-backdrop { display: none !important; }

  .admin-main { padding: var(--sp-8); }
  .admin-header { display: none; }
  .admin-body { padding-top: 0; }

  .container { padding-left: var(--sp-6); padding-right: var(--sp-6); }

  .hero { padding: var(--sp-16) var(--sp-8) var(--sp-20); }
  .hero h1 { font-size: clamp(48px, 6vw, 76px); }

  /* Página de torneio: 2 colunas desktop */
  .t-body {
    grid-template-columns: 1fr 340px;
    padding: var(--sp-8);
  }
  .t-hero {
    min-height: 300px;
    padding: var(--sp-10) var(--sp-8) var(--sp-8);
  }
  .t-hero h1 { font-size: 60px; }
}

/* =====================================================================
   26. TOURNAMENT FORM (single-page com TOC lateral)
   ===================================================================== */
.t-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.t-form-toc {
  display: none; /* hidden mobile, shown desktop */
}

.t-form-toc .toc-inner {
  position: sticky;
  top: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.t-form-toc h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted-lt);
  margin-bottom: var(--sp-3);
  font-weight: 800;
}
.t-form-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-form-toc nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.t-form-toc nav a:hover {
  background: var(--c-surface-2);
  color: var(--c-deep);
}
.t-form-toc nav a .step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.t-form-toc nav a:hover .step,
.t-form-toc nav a.is-active .step {
  background: var(--c-blue);
  color: white;
  border-color: var(--c-blue);
}

.t-form-body {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.t-form-section {
  padding: var(--sp-8) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: var(--sp-6);
}
.t-form-section:last-of-type {
  border-bottom: none;
}
.t-form-section header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.t-form-section header .step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--c-cloud);
  color: var(--c-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-md);
  flex-shrink: 0;
}
.t-form-section header h2 {
  font-weight: 200;
  font-size: var(--fs-2xl);
  letter-spacing: -0.04em;
  color: var(--c-deep);
  line-height: 1.1;
}
.t-form-section header h2 strong { font-weight: 800; }
.t-form-section header p {
  color: var(--c-muted);
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.t-form-actions {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  position: sticky;
  bottom: 0;
  flex-wrap: wrap;
  z-index: 5;
}

/* Form rows (2 cols grid em desktop) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

/* Repeater (janelas, equipes) */
.repeater {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.repeater-row {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  position: relative;
}
.repeater-row .row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.repeater-row .row-remove {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: transparent;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.repeater-row .row-remove:hover {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}
.repeater-add {
  background: transparent;
  border: 2px dashed var(--c-border);
  color: var(--c-muted);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all var(--t-fast);
}
.repeater-add:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: var(--c-frost);
}

/* Species checkbox row (uma linha por espécie com configs) */
.species-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}
/* Em desktop limita altura pra não ocupar tela inteira; em mobile flui livre */
@media (min-width: 768px) {
  .species-list { max-height: 600px; overflow-y: auto; }
}
.species-row {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--t-fast);
}
.species-row:has(input[type="checkbox"]:checked) {
  border-color: var(--c-blue);
}
.species-row .sp-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.species-row .sp-head .sp-info {
  flex: 1;
  min-width: 0;
}
.species-row .sp-head .sp-info strong {
  display: block;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--c-text);
}
.species-row .sp-head .sp-info em {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 500;
}
.species-row .sp-head .sp-cat {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.species-row .sp-extra {
  display: none;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.species-row:has(input[type="checkbox"]:checked) .sp-extra {
  display: grid;
  grid-template-columns: 1fr;       /* mobile: 1 col */
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .species-row:has(input[type="checkbox"]:checked) .sp-extra {
    grid-template-columns: 1fr 1fr;  /* desktop: 2 cols */
  }
}

/* Conditional fields (mostra/esconde baseado em select) */
.conditional-field {
  display: none;
}
.conditional-field.is-visible {
  display: block;
}

/* =====================================================================
   27. STATUS BADGES (torneio)
   ===================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  border: 1px solid transparent;
  /* Sombrinha leve pra destacar do cover-image atrás */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.status-draft {
  background: #FFFFFF;
  color: #1E293B;
  border-color: #CBD5E1;
}
.status-published {
  background: #DBEAFE;
  color: #0B2545;
  border-color: #93C5FD;
}
.status-live {
  /* Vermelho vibrante = AO VIVO. Universal e contrasta com fundos azuis */
  background: #DC2626;
  color: #FFFFFF;
  border-color: #B91C1C;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.status-closed {
  background: #1E293B;
  color: #F1F5F9;
  border-color: #334155;
}
.status-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

/* =====================================================================
   28. RESPONSIVO — TOURNAMENT FORM
   ===================================================================== */
@media (min-width: 768px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .repeater-row .row-grid { grid-template-columns: 1fr 1fr 1fr; }
  .repeater-row .row-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .t-form-section { padding: var(--sp-10) var(--sp-8); }
  .t-form-actions { padding: var(--sp-5) var(--sp-8); }
}

@media (min-width: 1024px) {
  .t-form-layout {
    grid-template-columns: 240px 1fr;
    align-items: flex-start;
  }
  .t-form-toc { display: block; }
}

/* =====================================================================
   29. MODAL DE CONFIRMAÇÃO
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: modalFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.is-closing {
  animation: modalFadeOut 180ms ease-out forwards;
}

.modal-dialog {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shd-lg);
  max-width: 460px;
  width: 100%;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border: 1px solid var(--c-border);
  animation: modalSlideUp 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.is-closing .modal-dialog {
  animation: modalSlideDown 180ms ease-out forwards;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}
.modal-icon-info {
  background: var(--c-cloud);
  color: var(--c-blue);
}
.modal-icon-warning {
  background: var(--c-surface-3);
  color: var(--c-deep);
}
.modal-icon-danger {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.modal-title {
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--c-deep);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.modal-message {
  color: var(--c-text-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  font-weight: 500;
}
.modal-message strong { color: var(--c-deep); font-weight: 700; }

.modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.modal-actions .btn { min-width: 120px; }

@keyframes modalFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes modalSlideDown {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* Reduz animação se o usuário preferir */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; }
}

/* =====================================================================
   30. FISCAL LAYOUT
   ===================================================================== */
.fiscal-body { background: var(--c-surface-2); min-height: 100vh; }

.fiscal-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fiscal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.fiscal-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

@media (max-width: 768px) {
  .fiscal-main { padding: var(--sp-4) var(--sp-3); }
  .fiscal-header { padding: var(--sp-3) var(--sp-3); }
}

/* =====================================================================
   31. CAPTURE FORM (mobile-first)
   ===================================================================== */
.capture-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shd-sm);
}

@media (max-width: 768px) {
  .capture-card { padding: var(--sp-4); }
}

.form-label-lg {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: var(--sp-3);
}

.form-control-lg {
  font-size: var(--fs-lg);
  padding: var(--sp-4) var(--sp-4);
  min-height: 56px;
}

.form-control-xl {
  font-size: var(--fs-2xl);
  padding: var(--sp-4) var(--sp-5);
  min-height: 72px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* =====================================================================
   32. PROOF PREVIEW
   ===================================================================== */
.proof-preview {
  margin-top: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface-2);
}
.proof-preview-image img,
.proof-preview-video video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  background: #000;
}
.proof-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  background: var(--c-surface);
}
.proof-preview-meta strong { color: var(--c-deep); }
.proof-preview-meta span { color: var(--c-text-soft); }

/* =====================================================================
   33. CATCHES LIST (dashboard fiscal)
   ===================================================================== */
.catches-list {
  display: flex;
  flex-direction: column;
}

.catch-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.catch-row:last-child { border-bottom: 0; }

.catch-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
}
.catch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catch-thumb-video {
  width: 100%;
  height: 100%;
  background: var(--c-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-surface);
}
.catch-thumb-empty { color: var(--c-text-muted); font-weight: 700; }

.catch-info { min-width: 0; }
.catch-status { text-align: right; min-width: 100px; }

@media (max-width: 540px) {
  .catch-row { grid-template-columns: 48px 1fr auto; gap: var(--sp-2); }
  .catch-thumb { width: 48px; height: 48px; }
  .catch-status { min-width: 80px; }
  .catch-status .badge { font-size: 10px; padding: 2px 6px; }
}

/* =====================================================================
   34. STAT CARDS
   ===================================================================== */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
}
.stat-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--c-deep);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================================
   35. BADGES POR STATUS — variantes (.badge base está na seção 09)
   ===================================================================== */
.badge-approved      { background: #DCFCE7; color: #166534; }
.badge-pending       { background: #FEF3C7; color: #92400E; }
.badge-rejected      { background: #FEE2E2; color: #991B1B; }
.badge-removed       { background: var(--c-surface-3); color: var(--c-text-muted); }
.badge-waitlist      { background: var(--c-cloud); color: var(--c-deep); }
.badge-info          { background: var(--c-cloud); color: var(--c-blue); }
.badge-cancelled     { background: var(--c-surface-3); color: var(--c-text-muted); }
.badge-out_of_window { background: #FED7AA; color: #9A3412; }
.badge-flagged       { background: #FCE7F3; color: #9D174D; }

/* =====================================================================
   36. TABS (filtros)
   ===================================================================== */
.tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-1);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  transition: all 160ms;
}
.tab:hover { color: var(--c-deep); }
.tab.is-active {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-deep);
}
.tab-count {
  background: var(--c-surface-3);
  color: var(--c-text-soft);
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.tab.is-active .tab-count { background: var(--c-deep); color: var(--c-surface); }

/* =====================================================================
   37. SPINNER
   ===================================================================== */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  display: inline-block;
  vertical-align: -3px;
  margin-right: var(--sp-2);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================================================================
   38. TORNEIOS ARQUIVADOS
   ===================================================================== */
.filter-chip-muted {
  color: var(--c-text-muted);
}
.filter-chip-muted.is-active {
  background: var(--c-surface-3);
  color: var(--c-deep);
}

.status-archived {
  background: var(--c-surface-3) !important;
  color: var(--c-text-muted) !important;
}

.tournament-card.is-archived {
  opacity: 0.65;
  filter: saturate(0.5);
  transition: opacity 200ms, filter 200ms;
}
.tournament-card.is-archived:hover {
  opacity: 1;
  filter: saturate(1);
}

/* =====================================================================
   39. PURGE PILLS (countdown de exclusão automática)
   ===================================================================== */
.archived-meta {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border-soft);
}
.archived-meta-line {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2);
}
.archived-meta-line .dot-sep {
  margin: 0 var(--sp-1);
  opacity: 0.5;
}

.purge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.purge-pill.purge-far    { background: var(--c-cloud);   color: var(--c-deep); }
.purge-pill.purge-soon   { background: #FEF3C7;          color: #92400E; }
.purge-pill.purge-urgent { background: #FED7AA;          color: #9A3412; }
.purge-pill.purge-now    { background: #FEE2E2;          color: #991B1B; }
.purge-pill.purge-off    { background: var(--c-surface-3); color: var(--c-text-muted); }

/* No card body */
.tournament-card .archived-meta {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
}

/* =====================================================================
   40. MINHAS INSCRIÇÕES (cards)
   ===================================================================== */
.inscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
}

.inscription-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.inscription-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shd-md);
  border-color: var(--c-blue);
}

.inscription-cover {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-surface);
}

.inscription-body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inscription-meta {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.inscription-meta .dot-sep {
  margin: 0 var(--sp-1);
  opacity: 0.5;
}

/* =====================================================================
   41. CATCHES ADMIN
   ===================================================================== */
.catch-row-admin {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.catch-row-admin:last-child { border-bottom: 0; }
.catch-row-admin .catch-thumb-link { display: block; }
.catch-row-admin .catch-thumb { width: 80px; height: 80px; }

.catch-row-admin .catch-status { min-width: 90px; text-align: right; }
.catch-row-admin .catch-actions {
  display: flex; gap: var(--sp-2);
  align-items: center;
}

@media (max-width: 640px) {
  .catch-row-admin {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb info"
      "status status"
      "actions actions";
    gap: var(--sp-2);
  }
  .catch-row-admin .catch-thumb-link { grid-area: thumb; }
  .catch-row-admin .catch-info       { grid-area: info; }
  .catch-row-admin .catch-status     { grid-area: status; text-align: left; }
  .catch-row-admin .catch-actions    { grid-area: actions; }
  .catch-row-admin .catch-thumb { width: 64px; height: 64px; }
}

/* =====================================================================
   42. RANKING (placar ao vivo)
   ===================================================================== */
.ranking-card {
  position: relative;
}

.ranking-tabs {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}
.ranking-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: var(--sp-2) var(--sp-3);
  font-weight: 600;
  color: var(--c-text-soft);
  cursor: pointer;
  font-size: var(--fs-sm);
}
.ranking-tab.is-active {
  color: var(--c-deep);
  border-bottom-color: var(--c-blue);
}

.ranking-panel {
  display: none;
}
.ranking-panel.is-active {
  display: block;
}
/* Sem mixed mode: o único painel não precisa de classe — usa default */
.ranking-panel[data-default] {
  display: block;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
.ranking-table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.ranking-table .text-right  { text-align: right; }
.ranking-table .text-center { text-align: center; }

.rk-rank {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-text-soft);
  width: 50px;
}

/* Pódio */
.rk-podium-1 .rk-rank { color: #B45309; font-size: var(--fs-xl); }
.rk-podium-2 .rk-rank { color: #475569; font-size: var(--fs-xl); }
.rk-podium-3 .rk-rank { color: #92400E; font-size: var(--fs-xl); }

.rk-podium-1 { background: linear-gradient(90deg, rgba(254,243,199,0.4) 0%, transparent 70%); }
.rk-podium-2 { background: linear-gradient(90deg, rgba(226,232,240,0.4) 0%, transparent 70%); }
.rk-podium-3 { background: linear-gradient(90deg, rgba(254,215,170,0.3) 0%, transparent 70%); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* =====================================================================
   43. RANKING — Maior captura (cards)
   ===================================================================== */
.biggest-list {
  display: flex;
  flex-direction: column;
}
.biggest-row {
  display: grid;
  grid-template-columns: 40px 64px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border-soft);
}
.biggest-row:last-child { border-bottom: 0; }

.biggest-rank {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-text-soft);
  text-align: center;
}
.biggest-row.rk-podium-1 .biggest-rank { color: #B45309; font-size: var(--fs-xl); }
.biggest-row.rk-podium-2 .biggest-rank { color: #475569; font-size: var(--fs-xl); }
.biggest-row.rk-podium-3 .biggest-rank { color: #92400E; font-size: var(--fs-xl); }

.biggest-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
}
.biggest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biggest-thumb-video,
.biggest-thumb-empty {
  font-size: var(--fs-xs);
}

.biggest-info strong {
  display: block;
  color: var(--c-deep);
}

.biggest-value {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-deep);
  text-align: right;
}

@media (max-width: 520px) {
  .biggest-row {
    grid-template-columns: 32px 56px 1fr;
    grid-template-areas:
      "rank thumb info"
      "rank thumb value";
  }
  .biggest-row .biggest-rank  { grid-area: rank; }
  .biggest-row .biggest-thumb { grid-area: thumb; }
  .biggest-row .biggest-info  { grid-area: info; }
  .biggest-row .biggest-value { grid-area: value; text-align: left; font-size: var(--fs-md); }
  .biggest-thumb { width: 56px; height: 56px; }
}

/* =====================================================================
   44. DROPDOWN (export menu, etc.)
   ===================================================================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shd-md);
  padding: var(--sp-1);
  z-index: 100;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 150ms;
}

.dropdown-item:hover {
  background: var(--c-surface-2);
}

.dropdown-item svg {
  color: var(--c-blue);
  flex-shrink: 0;
}

.dropdown-item strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-deep);
}

.dropdown-item small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* =====================================================================
   45. RANKING CONFIG (toggles)
   ===================================================================== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  cursor: pointer;
  margin-bottom: var(--sp-2);
  transition: border-color 150ms, background 150ms;
}
.toggle-row:hover {
  border-color: var(--c-blue);
}
.toggle-row:has(input:checked) {
  background: var(--c-cloud);
  border-color: var(--c-blue);
}

.toggle-info strong {
  display: block;
  color: var(--c-deep);
  font-size: var(--fs-md);
  margin-bottom: 2px;
}
.toggle-info span {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.5;
}

.toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--c-blue);
}

.toggle-row-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.toggle-row-disabled:hover { border-color: var(--c-border); }

/* =====================================================================
   45.b GRID — Catch show (mídia + detalhes lado a lado em desktop)
   ===================================================================== */
.grid-catch-show {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: 1 col */
  gap: var(--sp-4);
}
@media (min-width: 960px) {
  .grid-catch-show { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-6); }
}

/* =====================================================================
   46. TYPEAHEAD (busca AJAX de usuários)
   ===================================================================== */
.typeahead {
  position: relative;
}

.typeahead-input {
  width: 100%;
}

.typeahead-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shd-md);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}

.typeahead-item {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--c-border-soft);
  padding: var(--sp-3);
  text-align: left;
  cursor: pointer;
  color: var(--c-text);
}

.typeahead-item:last-child { border-bottom: 0; }

.typeahead-item.is-active,
.typeahead-item:focus {
  background: var(--c-cloud);
  outline: none;
}

.typeahead-item-name {
  display: inline-block;
  color: var(--c-deep);
  font-size: var(--fs-md);
  font-weight: 600;
}

.typeahead-item-email {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin-top: 2px;
}

.typeahead-item-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  background: var(--c-blue);
  color: white;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  margin-left: var(--sp-2);
  vertical-align: middle;
  font-weight: 600;
}

.typeahead-empty,
.typeahead-error {
  padding: var(--sp-3);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  text-align: center;
}

.typeahead-error { color: var(--c-danger); }

.typeahead-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-cloud);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-md);
}

/* IMPORTANTE: `display: flex` acima sobrescreve o atributo `hidden` do HTML.
   Esta regra restaura `display: none` quando `hidden` está presente. */
.typeahead-selected[hidden],
.typeahead-results[hidden] {
  display: none;
}

.typeahead-selected-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.typeahead-selected-name {
  color: var(--c-deep);
}

/* =====================================================================
   47. NAVEGAÇÃO ADAPTATIVA — Header + Hamburger + Drawer + Bottom Nav
   ===================================================================== */

/* ───── Header right (chip + hamburger) ───── */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Header user chip (já existia, garante consistência) */
.header-user-chip {
  display: none;            /* mobile: escondido — info vai pro drawer */
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-deep);
}

.header-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--g-water);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 800;
  flex-shrink: 0;
}

.header-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ───── Hamburger button ───── */
.hamburger-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover { background: white; }
.hamburger-btn:active { transform: scale(0.96); }

.hamburger-lines {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}

.hamburger-lines span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-deep);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 200ms ease, top 240ms ease;
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 6px; }
.hamburger-lines span:nth-child(3) { top: 12px; }

/* Quando aberto, vira X */
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ───── Drawer overlay ───── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(11, 37, 69, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.drawer-overlay[hidden] { display: none; }
.drawer-overlay.is-open { opacity: 1; }

/* ───── Drawer (panel) ───── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88%;
  max-width: 340px;
  z-index: 999;
  background: var(--c-surface);
  box-shadow: -16px 0 48px rgba(11, 37, 69, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.drawer[hidden] { display: none; }
.drawer.is-open { transform: translateX(0); }

/* Body trava scroll quando drawer aberto */
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.drawer-header strong {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-deep);
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border: 0;
  border-radius: var(--r-pill);
  color: var(--c-text);
  cursor: pointer;
  transition: background 150ms;
}

.drawer-close:hover { background: var(--c-surface-3); }

/* Card do usuário logado no topo do drawer */
.drawer-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-cloud);
  border-bottom: 1px solid var(--c-border);
}

.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g-water);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: 800;
  flex-shrink: 0;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.drawer-user-name {
  color: var(--c-deep);
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-email {
  color: var(--c-text-soft);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: var(--sp-3);
  overflow-y: auto;
  flex: 1;
}

.drawer-nav form { margin: 0; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  color: var(--c-deep);
  font-weight: 600;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 150ms;
}

.drawer-item:hover { background: var(--c-cloud); }
.drawer-item svg { flex-shrink: 0; color: var(--c-blue); }

.drawer-item-danger {
  color: var(--c-danger);
}
.drawer-item-danger svg { color: var(--c-danger); }
.drawer-item-danger:hover { background: var(--c-danger-bg); }

.drawer-sep {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-3) var(--sp-2);
}

/* ───── Bottom Nav — base + estados ───── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 -1px 0 rgba(11, 37, 69, 0.06),
    0 -8px 32px rgba(11, 37, 69, 0.08);

  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Estados controlados via data-state */
.bottom-nav[data-state="hidden"]    { transform: translateY(100%); }
.bottom-nav[data-state="visible"]   { transform: translateY(0); }
.bottom-nav[data-state="minimized"] {
  /* Mostra só a handle (28px) — esconde o resto */
  transform: translateY(calc(100% - 28px));
}

/* ───── Handle (aba pra minimizar/restaurar) ───── */
.bottom-nav-handle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.handle-bar {
  display: block;
  width: 44px;
  height: 4px;
  background: rgba(11, 37, 69, 0.25);
  border-radius: 2px;
  transition: background 150ms, width 150ms;
}

.bottom-nav-handle:hover .handle-bar {
  background: rgba(11, 37, 69, 0.45);
  width: 56px;
}

/* Quando minimizado, deixa um indicador discreto */
.bottom-nav[data-state="minimized"] .handle-bar {
  background: var(--c-blue);
}

/* ───── Items ───── */
.bottom-nav-items {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 var(--sp-2) var(--sp-2);
}

.bottom-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-2) var(--sp-1);
  text-decoration: none;
  color: var(--c-text-soft);
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: color 150ms, background 150ms, transform 150ms;
  letter-spacing: 0.01em;
  line-height: 1;
  font-family: inherit;
}

.bottom-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 150ms;
}

.bottom-nav-item:hover {
  color: var(--c-deep);
  background: rgba(255, 255, 255, 0.5);
}

.bottom-nav-item:hover svg { transform: translateY(-1px); }

.bottom-nav-item.is-active {
  color: var(--c-blue);
}

.bottom-nav-item.is-active svg { stroke-width: 2.5; }

/* ───── Padding-bottom no main pra não cobrir conteúdo ───── */
body.has-bottom-nav .public-main {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
body.has-bottom-nav .public-footer {
  padding-bottom: calc(var(--sp-6) + 96px + env(safe-area-inset-bottom));
}

/* ───── Desktop (≥ 768px): bottom nav vira pílula flutuante ───── */
@media (min-width: 1024px) {
  /* No desktop real, header tem nav completo — bottom-nav fica oculto */
  .bottom-nav { display: none !important; }
  body.has-bottom-nav .public-main { padding-bottom: var(--sp-10); }
  body.has-bottom-nav .public-footer { padding-bottom: var(--sp-6); }
}

/* ───── Mobile pequeno (≤ 360px) ───── */
@media (max-width: 360px) {
  .bottom-nav-item { font-size: 10px; padding: var(--sp-2) 2px; }
  .bottom-nav-item svg { width: 20px; height: 20px; }
  .header-user-name { max-width: 60px; }
}

/* ───── Header nav (DESKTOP ONLY ≥1024px) ───── */
/* Mobile/tablet: SEMPRE escondido. Não deve ser tocado por outras regras. */
.header-nav {
  display: none !important;
}
.header-nav a {
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: var(--fs-md);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color 150ms, background 150ms;
}
.header-nav a:hover {
  color: var(--c-deep);
  background: var(--c-surface-2);
}
.header-nav a.is-active {
  color: var(--c-blue);
  background: var(--c-cloud);
}

.header-admin-btn,
.header-login-btn,
.header-logout-form { display: none; }

.header-logout-form { margin: 0; }
.header-logout-btn { padding: 6px 10px; }

/* Desktop (≥1024px): mostra nav + botões header, esconde hamburger */
@media (min-width: 1024px) {
  .header-nav {
    display: flex !important;
    align-items: center;
    gap: var(--sp-1);
    flex: 1;
    justify-content: center;
  }
  .hamburger-btn { display: none !important; }
  .header-user-chip { display: inline-flex; }
  .header-admin-btn,
  .header-login-btn,
  .header-logout-form { display: inline-flex; }
}

/* =====================================================================
   48. PAYMENT BOX (tela de inscrição — Pix + WhatsApp)
   ===================================================================== */
.payment-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: 0 2px 4px rgba(11, 37, 69, 0.04);
}

.payment-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.payment-box-label {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.payment-box-amount {
  font-size: var(--fs-3xl);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--c-deep);
  line-height: 1;
}

.payment-box-pill {
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--c-blue);
  color: white;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.payment-pix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: white;
  border: 1px dashed var(--c-blue);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.payment-pix-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.payment-pix-type {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.payment-pix-key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-deep);
  word-break: break-all;
  background: none;
  padding: 0;
}

.payment-copy-btn {
  flex-shrink: 0;
}

.payment-copy-btn.is-copied {
  background: var(--c-blue);
  color: white;
  border-color: var(--c-blue);
}

.payment-instructions {
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-top: var(--sp-3);
  margin-bottom: 0;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: 0;
}
.btn-whatsapp:hover { background: #1FBE57; color: white; }
.btn-whatsapp svg { flex-shrink: 0; }

/* =====================================================================
   49. WIZARD (passo-a-passo de inscrição)
   ===================================================================== */

/* ───── Stepper (indicador de passos) — mobile-first ───── */
.wizard-stepper {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);     /* mais respiro antes do card */
  gap: var(--sp-1);
  position: relative;
}

.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
  cursor: default;
  min-width: 0;
  padding-top: 2px;            /* respiro pro box-shadow do is-active */
}

/* Linha conectora entre passos — calculada via translate pra ficar
   sempre centralizada vertical com a bolinha, independente do tamanho */
.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;                   /* metade da bolinha mobile (24/2) + padding-top 2px */
  left: calc(50% + 14px);      /* metade da bolinha + 2px de gap */
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--c-border);
  z-index: 0;
  transition: background 200ms;
}

.wizard-step.is-done:not(:last-child)::after {
  background: var(--c-blue);
}

.wizard-step-num {
  position: relative;
  z-index: 1;
  width: 24px;                 /* mobile: menor */
  height: 24px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms, box-shadow 200ms;
  flex-shrink: 0;
  line-height: 1;
}

.wizard-step.is-active .wizard-step-num {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}

.wizard-step.is-done .wizard-step-num {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: transparent;          /* esconde o número original */
  cursor: pointer;
  font-size: 0;
}
.wizard-step.is-done .wizard-step-num::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% 60%;
}

.wizard-step.is-done:hover .wizard-step-num {
  transform: scale(1.05);
}

.wizard-step-label {
  font-size: 10px;             /* mobile: pequeno */
  font-weight: 700;
  color: var(--c-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.wizard-step.is-active .wizard-step-label,
.wizard-step.is-done .wizard-step-label {
  color: var(--c-deep);
}

/* Tablet (≥ 600px): aumenta bolinhas */
@media (min-width: 600px) {
  .wizard-stepper { gap: var(--sp-2); }
  .wizard-step-num { width: 28px; height: 28px; font-size: var(--fs-sm); }
  .wizard-step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
  }
  .wizard-step-label { font-size: var(--fs-xs); }
}

/* Desktop (≥ 1024px): bolinhas ainda maiores */
@media (min-width: 1024px) {
  .wizard-step-num { width: 32px; height: 32px; font-size: var(--fs-md); }
  .wizard-step:not(:last-child)::after {
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }
}

/* ───── Panels (passos) ───── */
.wizard-panel {
  animation: wizardFadeIn 240ms ease-out;
}

.wizard-panel[hidden] { display: none; }

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sacode painel inválido (feedback visual) */
.wizard-panel.shake {
  animation: wizardShake 360ms cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes wizardShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* ───── Checkbox confirmação ───── */
.wizard-checkbox-row {
  display: flex;
  justify-content: center;
}

.wizard-check {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  color: var(--c-text);
  transition: border-color 150ms, background 150ms;
}

.wizard-check:hover {
  border-color: var(--c-blue);
}

.wizard-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-check-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--c-border);
  background: white;
  flex-shrink: 0;
  position: relative;
  transition: all 150ms;
}

.wizard-check input:checked + .wizard-check-box {
  background: var(--c-blue);
  border-color: var(--c-blue);
}

.wizard-check input:checked + .wizard-check-box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wizard-check input.is-invalid + .wizard-check-box {
  border-color: var(--c-danger);
  animation: wizardShake 360ms;
}

.wizard-check:has(input:checked) {
  border-color: var(--c-blue);
  background: var(--c-cloud);
}

/* ───── Tela final ───── */
.wizard-finish-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.15);
}

.wizard-summary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.wizard-summary li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-text);
}

.wizard-summary li svg {
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.wizard-summary li strong { color: var(--c-deep); }
.wizard-summary li a { color: var(--c-blue); font-weight: 600; }

/* ───── Botões de navegação ───── */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.wizard-nav [hidden] { display: none !important; }

@media (max-width: 640px) {
  .wizard-nav { gap: var(--sp-2); }
  .wizard-nav .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 16px;
    font-size: var(--fs-md);
    /* impede que o "espaçador" div fique flexível e empurre tudo */
  }
  /* O div spacer (flex:1) só faz sentido no desktop pra empurrar Próximo pra direita */
  .wizard-nav > div[style*="flex: 1"] {
    display: none;
  }
}

/* Telefones auto-linkificados dentro de textos do organizador */
.linkified-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #128C7E;
  font-weight: 700;
  text-decoration: none;
  background: rgba(37, 211, 102, 0.08);
  padding: 1px 8px;
  border-radius: var(--r-sm);
  transition: background 150ms, color 150ms;
}
.linkified-phone:hover {
  background: #25D366;
  color: white;
}

/* =====================================================================
   50. PAYMENT TRACKING (admin de inscrições)
   ===================================================================== */

/* ───── Resumo de pagamentos no topo da lista ───── */
.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;     /* mobile: 2x */
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shd-sm);
}

.payment-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-summary-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.payment-summary-value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-deep);
}

.payment-summary-total {
  grid-column: 1 / -1;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.payment-summary-total .payment-summary-value {
  color: var(--c-blue);
  font-size: var(--fs-2xl);
}

@media (min-width: 768px) {
  .payment-summary {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .payment-summary-total {
    grid-column: auto;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--c-border);
    padding-left: var(--sp-3);
  }
}

/* ───── Badge de pagamento (botão clicável na lista) ───── */
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: transform 150ms, box-shadow 150ms;
}

.payment-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shd-sm);
}

.payment-badge-amount {
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

/* Reuso das cores das badges (badge-approved etc — definidas na seção 35) */

/* ───── Modal de edição de pagamento ───── */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 37, 69, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;            /* mobile: bottom sheet */
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 200ms ease;
}

.payment-modal-overlay[hidden] { display: none; }
.payment-modal-overlay.is-open { opacity: 1; }

.payment-modal {
  background: var(--c-surface);
  width: 100%;
  max-width: 560px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-modal-overlay.is-open .payment-modal {
  transform: translateY(0);
}

body.modal-open { overflow: hidden; }

@media (min-width: 768px) {
  .payment-modal-overlay {
    align-items: center;
    padding: var(--sp-4);
  }
  .payment-modal {
    border-radius: var(--r-xl);
    transform: scale(0.95);
  }
  .payment-modal-overlay.is-open .payment-modal { transform: scale(1); }
}

.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.payment-modal-header h3 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-deep);
  letter-spacing: -0.01em;
  margin: 0;
}

.payment-modal-body {
  padding: var(--sp-4) var(--sp-5);
  overflow-y: auto;
  flex: 1;
}

.payment-modal-footer {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

.payment-modal-footer .btn { flex: 1; }

/* ───── Grid de radios de status ───── */
.payment-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.payment-radio { cursor: pointer; }

.payment-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-radio-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color 150ms, background 150ms;
  height: 100%;
}

.payment-radio-box strong {
  font-size: var(--fs-sm);
  color: var(--c-deep);
}

.payment-radio-box small {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

.payment-radio input[type="radio"]:checked + .payment-radio-pending  { border-color: #92400E; background: #FEF3C7; }
.payment-radio input[type="radio"]:checked + .payment-radio-confirmed{ border-color: #166534; background: #DCFCE7; }
.payment-radio input[type="radio"]:checked + .payment-radio-exempt   { border-color: var(--c-blue); background: var(--c-cloud); }
.payment-radio input[type="radio"]:checked + .payment-radio-refunded { border-color: var(--c-text-muted); background: var(--c-surface-3); }

/* =====================================================================
   51. ADMIN: USUÁRIOS (painel global)
   ===================================================================== */

/* ───── Filtros da lista ───── */
.users-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

.users-filters-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 240px;
}

.users-filters-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-soft);
  pointer-events: none;
}

.users-filters-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-family: inherit;
  transition: border-color 150ms;
}

.users-filters-search input:focus {
  outline: none;
  border-color: var(--c-blue);
}

.users-filters select {
  padding: 10px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-family: inherit;
  min-height: 42px;
}

/* ───── Linha da tabela ───── */
.user-row-name {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-deep);
  text-decoration: none;
}

.user-row-name:hover { color: var(--c-blue); }

.user-row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g-water);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 800;
  flex-shrink: 0;
}

/* ───── Show: linhas de info ───── */
.user-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}
.user-info-row:last-child { border-bottom: 0; }

.user-info-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-info-value {
  font-size: var(--fs-md);
  color: var(--c-deep);
  font-weight: 600;
}

/* ───── Card de ações administrativas ───── */
.user-actions hr {
  border: 0;
  border-top: 1px solid var(--c-border);
}

/* ───── Paginação ───── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.pagination-info {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  font-weight: 600;
}

/* ───── Mobile: filtros empilham ───── */
@media (max-width: 640px) {
  .users-filters { flex-direction: column; align-items: stretch; }
  .users-filters-search,
  .users-filters select,
  .users-filters .btn { width: 100%; }
}

/* =====================================================================
   52. TIEBREAK SORT (drag&drop de critérios de desempate)
   ===================================================================== */
.tiebreak-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.tiebreak-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: move;
  user-select: none;
  transition: background 150ms, border-color 150ms, opacity 150ms, transform 150ms;
}

.tiebreak-item:hover {
  border-color: var(--c-blue);
  background: var(--c-surface-2);
}

.tiebreak-item.is-dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.tiebreak-item.is-drop-target {
  border-color: var(--c-blue);
  background: var(--c-cloud);
  border-style: dashed;
}

.tiebreak-handle {
  color: var(--c-text-muted);
  cursor: grab;
  touch-action: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.tiebreak-handle:active { cursor: grabbing; }

.tiebreak-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-cloud);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.tiebreak-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tiebreak-info strong {
  color: var(--c-deep);
  font-size: var(--fs-md);
}

/* =====================================================================
   53. SPECIES PICKER (form de torneio — busca + filtros no topo)
   ===================================================================== */

/* ───── Toolbar (compacta, no topo) ───── */
.species-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.species-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.species-toolbar-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}

/* Busca */
.species-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 200px;
}

.species-search > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-soft);
  pointer-events: none;
}

.species-search input[type="search"] {
  width: 100%;
  padding: 10px 36px 10px 36px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-family: inherit;
}
.species-search input[type="search"]::-webkit-search-decoration,
.species-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.species-search input[type="search"]:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.species-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-surface-3);
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-text-soft);
}
.species-search-clear[hidden] { display: none; }
.species-search-clear:hover { background: var(--c-border); color: var(--c-deep); }

/* Counter */
.species-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  white-space: nowrap;
}
.species-counter strong {
  color: var(--c-blue);
  font-weight: 800;
  font-size: var(--fs-md);
}

/* Chips de filtro por categoria */
.species-cat-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.species-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}

.species-cat-chip:hover {
  border-color: var(--c-blue);
  color: var(--c-deep);
}

.species-cat-chip.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: white;
}

.species-cat-chip-count {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  line-height: 1.4;
}

.species-cat-chip.is-active .species-cat-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Bulk inline */
.species-bulk {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ───── Linhas ───── */
.species-row[hidden] { display: none !important; }

/* ───── Empty state ───── */
.species-empty {
  padding: var(--sp-6);
  text-align: center;
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-md);
}

.species-empty[hidden] { display: none; }

/* ───── Mobile: empilha tudo, mantém compacto ───── */
@media (max-width: 640px) {
  .species-toolbar { padding: var(--sp-3); }
  .species-toolbar-top,
  .species-toolbar-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .species-search {
    flex: 0 0 auto;          /* não estica vertical */
    width: 100%;
    min-width: 0;
  }
  .species-counter {
    align-self: flex-start;
    flex: 0 0 auto;
  }
  .species-cat-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;       /* scroll horizontal em vez de quebrar */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;     /* respiro pra scrollbar */
  }
  .species-cat-chip { flex: 0 0 auto; white-space: nowrap; }
  .species-bulk { width: 100%; justify-content: flex-start; }
  .species-bulk .btn { flex: 1; }
}

/* =====================================================================
   54. SPECIES IMAGE (thumb na lista + upload no form)
   ===================================================================== */

/* ───── Thumb na lista ───── */
.species-row-name {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.species-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}

.species-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
}

/* ───── Form: container do upload ───── */
.species-image-upload {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Imagem atual (já cadastrada) */
.species-image-current {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.species-image-current[hidden] { display: none; }

.species-image-preview {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  display: block;
}

/* Dropzone (sem foto) */
.species-image-dropzone {
  display: block;
  position: relative;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
  padding: var(--sp-6);
}

.species-image-dropzone[hidden] { display: none; }

.species-image-dropzone:hover,
.species-image-dropzone.is-drag {
  border-color: var(--c-blue);
  background: var(--c-cloud);
}

.species-image-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.species-image-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-soft);
  pointer-events: none;
}

.species-image-dropzone-inner svg {
  color: var(--c-blue);
  opacity: 0.7;
}

.species-image-dropzone-inner strong {
  color: var(--c-deep);
  font-size: var(--fs-md);
  font-weight: 700;
}

.species-image-dropzone-inner span {
  font-size: var(--fs-sm);
}

/* Preview da nova imagem (antes de submeter) */
.species-image-new {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  background: var(--c-cloud);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-md);
}

.species-image-new[hidden] { display: none; }

.species-image-new img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
}

/* =====================================================================
   55. BULK ACTIONS BAR (seleção em massa)
   ===================================================================== */
.bulk-bar {
  position: sticky;
  top: var(--sp-3);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  background: var(--c-deep);
  color: white;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.25);
  animation: bulkBarSlide 200ms ease-out;
}

.bulk-bar[hidden] { display: none; }

@keyframes bulkBarSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bulk-count {
  font-size: var(--fs-md);
  font-weight: 600;
}
.bulk-count strong {
  color: var(--c-blue-light, #93C5FD);
  font-weight: 800;
  font-size: var(--fs-lg);
  margin-right: 4px;
}

.bulk-actions {
  display: inline-flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Checkbox cells na tabela */
.bulk-cell {
  text-align: center;
  vertical-align: middle;
  padding-left: var(--sp-3) !important;
  padding-right: var(--sp-2) !important;
}

.bulk-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bulk-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--c-blue);
}

/* Mobile: bulk-bar empilha */
@media (max-width: 640px) {
  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .bulk-actions { justify-content: center; }
}

/* Em stack mode da tabela, esconde a célula do checkbox no mobile */
@media (max-width: 640px) {
  .table-stack .bulk-cell[data-label=""] {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    padding: 0 !important;
  }
}

/* =====================================================================
   56. HIERARQUIA DE MÍNIMOS (badge + input overridden)
   ===================================================================== */
.sp-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(220, 38, 38, 0.08);
  color: var(--c-danger, #dc2626);
  border-radius: var(--r-pill);
  border: 1px solid rgba(220, 38, 38, 0.25);
  vertical-align: middle;
}

.form-control.is-overridden {
  background: var(--c-surface-2);
  color: var(--c-text-soft);
  border-style: dashed;
  cursor: not-allowed;
}
.form-control.is-overridden:focus {
  outline: none;
  box-shadow: none;
}

/* =====================================================================
   57. MAINTENANCE MODE (banner admin + página pública 503)
   ===================================================================== */

/* ───── Banner persistente no admin ───── */
.maintenance-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: var(--r-md);
  color: #78350f;
  font-size: var(--fs-sm);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
  animation: maintenancePulse 2.5s ease-in-out infinite;
}

@keyframes maintenancePulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12); }
  50%      { box-shadow: 0 6px 20px rgba(217, 119, 6, 0.25); }
}

.maintenance-banner > svg {
  flex-shrink: 0;
  color: #d97706;
}

.maintenance-banner > div {
  flex: 1;
  line-height: 1.5;
}

.maintenance-banner strong {
  display: block;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 2px;
}

.maintenance-banner .btn {
  flex-shrink: 0;
  background: #d97706;
  border-color: #d97706;
  color: white;
}
.maintenance-banner .btn:hover {
  background: #b45309;
  border-color: #b45309;
}

@media (max-width: 640px) {
  .maintenance-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .maintenance-banner .btn {
    align-self: stretch;
    text-align: center;
  }
}

/* ───── Página pública 503 ───── */
.maintenance-page {
  max-width: 480px;
  margin: 60px auto;
  padding: var(--sp-6);
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.08);
}

.maintenance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-4);
  background: rgba(217, 119, 6, 0.08);
  color: #d97706;
  border-radius: 50%;
}

.maintenance-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-deep);
  margin-bottom: var(--sp-3);
}

.maintenance-lead {
  font-size: var(--fs-md);
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}

.maintenance-sub {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin-bottom: var(--sp-5);
}

.maintenance-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .maintenance-page {
    margin: var(--sp-4);
    padding: var(--sp-5) var(--sp-4);
  }
  .maintenance-icon { width: 72px; height: 72px; }
  .maintenance-icon svg { width: 56px; height: 56px; }
}

/* =====================================================================
   58. SPECIES CHIP (identidade visual reutilizável)
   ---------------------------------------------------------------------
   Componente pra mostrar peixe com thumbnail cropado na cabeça/meio.
   Usa object-position 25% center pra focar onde tem identidade visual
   máxima (cabeça + começo do corpo).
   ===================================================================== */

.species-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3);
}

.species-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 150ms, transform 150ms;
}

.species-chip:hover {
  border-color: var(--c-blue);
  transform: translateY(-1px);
}

/* ───── Thumb cropado ───── */
.species-chip-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--c-text-soft);
}

.species-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Foca os primeiros ~50% (cabeça + começo do corpo) */
  object-position: 22% center;
  display: block;
}

.species-chip-thumb svg {
  width: 50%;
  height: 50%;
  opacity: 0.6;
}

/* ───── Info ───── */
.species-chip-info {
  min-width: 0;             /* permite text-overflow funcionar */
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.species-chip-name {
  color: var(--c-deep);
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.species-chip-scientific {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.species-chip-extras {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  font-weight: 600;
  margin-top: 4px;
}

/* ───── Tamanhos ───── */
.species-chip--sm .species-chip-thumb {
  width: 40px;
  height: 40px;
}
.species-chip--sm .species-chip-name { font-size: var(--fs-sm); }
.species-chip--sm { padding: var(--sp-2); gap: var(--sp-2); }

.species-chip--md .species-chip-thumb {
  width: 60px;
  height: 60px;
}
.species-chip--md .species-chip-name { font-size: var(--fs-md); }

.species-chip--lg .species-chip-thumb {
  width: 88px;
  height: 88px;
}
.species-chip--lg .species-chip-name { font-size: var(--fs-lg); }

/* ───── Mobile: chip empilha menos, fica em 1 coluna ───── */
@media (max-width: 480px) {
  .species-chip-grid {
    grid-template-columns: 1fr;
  }
  .species-chip--lg .species-chip-thumb {
    width: 64px;
    height: 64px;
  }
}

/* =====================================================================
   59. SLUG FEEDBACK (verificação AJAX de duplicidade)
   ===================================================================== */
.slug-feedback {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background 200ms, color 200ms;
}

.slug-feedback[hidden] { display: none; }

.slug-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.slug-feedback-text {
  flex: 1;
  min-width: 0;
}

.slug-feedback-suggest {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 150ms;
}
.slug-feedback-suggest:hover {
  background: rgba(0, 0, 0, 0.08);
}
.slug-feedback-suggest[hidden] { display: none; }

/* Checking */
.slug-feedback.is-checking {
  background: var(--c-surface-2);
  color: var(--c-text-soft);
}
.slug-feedback.is-checking .slug-feedback-icon::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: slugSpin 700ms linear infinite;
}
@keyframes slugSpin {
  to { transform: rotate(360deg); }
}

/* Disponível */
.slug-feedback.is-available {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.slug-feedback.is-available .slug-feedback-icon::before {
  content: '✓';
  font-weight: 800;
  font-size: 14px;
}

/* Em uso */
.slug-feedback.is-taken {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  flex-wrap: wrap;
}
.slug-feedback.is-taken .slug-feedback-icon::before {
  content: '✕';
  font-weight: 800;
  font-size: 14px;
}

/* Border do input enquanto checking/available/taken */
.form-control.is-valid {
  border-color: #10b981;
}
.form-control.is-invalid-ajax {
  border-color: #ef4444;
}

@media (max-width: 480px) {
  .slug-feedback { flex-wrap: wrap; }
  .slug-feedback-suggest { width: 100%; text-align: center; }
}

/* =====================================================================
   60. SPECIES GRID SCROLL (limita altura quando >10 espécies)
   ===================================================================== */
.species-chip-grid--scroll {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
  /* Sombra interna sutil pra indicar que há scroll */
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent);
          mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent);
  scroll-behavior: smooth;
}

.species-chip-grid--scroll::-webkit-scrollbar {
  width: 8px;
}
.species-chip-grid--scroll::-webkit-scrollbar-track {
  background: var(--c-surface-2);
  border-radius: 4px;
}
.species-chip-grid--scroll::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 4px;
}
.species-chip-grid--scroll::-webkit-scrollbar-thumb:hover {
  background: var(--c-text-soft);
}

@media (max-width: 640px) {
  .species-chip-grid--scroll {
    max-height: 360px;
  }
}

/* =====================================================================
   61. INFO ROW COM TOOLTIP (Detalhes do torneio)
   ===================================================================== */

/* Botão clicável (mantém visual do .t-info-row mas vira button) */
.t-info-row-btn {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: help;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  position: relative;
  transition: background 150ms;
  border-radius: var(--r-sm);
  margin: 0 calc(var(--sp-2) * -1);
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}

.t-info-row-btn:hover,
.t-info-row-btn:focus {
  background: var(--c-cloud);
  outline: none;
}

/* Bolinha "?" discreta após o label */
.t-info-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: var(--c-surface-3);
  color: var(--c-text-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
  transition: background 150ms, color 150ms;
}

.t-info-row-btn:hover .t-info-help,
.t-info-row-btn:focus .t-info-help {
  background: var(--c-blue);
  color: white;
}

/* Tooltip aparece on hover/focus/tap */
.t-info-row-btn[data-tooltip] {
  --tooltip-bg: var(--c-deep);
}

.t-info-row-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--tooltip-bg);
  color: white;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  line-height: 1.5;
  font-weight: 500;
  width: max-content;
  max-width: 260px;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms, transform 180ms, visibility 180ms;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.18);
}

.t-info-row-btn[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--tooltip-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms, visibility 180ms;
  z-index: 10;
}

.t-info-row-btn:hover[data-tooltip]::after,
.t-info-row-btn:focus[data-tooltip]::after,
.t-info-row-btn:active[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.t-info-row-btn:hover[data-tooltip]::before,
.t-info-row-btn:focus[data-tooltip]::before,
.t-info-row-btn:active[data-tooltip]::before {
  opacity: 1;
  visibility: visible;
}

/* Mobile: tooltip ajusta posicionamento pra não sair da tela */
@media (max-width: 640px) {
  .t-info-row-btn[data-tooltip]::after {
    left: 0;
    transform: translateY(4px);
    max-width: calc(100vw - 64px);
  }
  .t-info-row-btn[data-tooltip]::before {
    left: 24px;
    transform: none;
  }
  .t-info-row-btn:hover[data-tooltip]::after,
  .t-info-row-btn:focus[data-tooltip]::after,
  .t-info-row-btn:active[data-tooltip]::after {
    transform: translateY(0);
  }
}

/* =====================================================================
   62. PAGAMENTO HUMANIZADO (passo 2 + 3 da inscrição)
   ===================================================================== */

/* ───── Intro do passo de pagamento ───── */
.payment-intro {
  margin-bottom: var(--sp-4);
}

/* ───── Label "Chave Pix (CPF)" mais claro ───── */
.payment-pix-type-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-soft);
  margin-bottom: 4px;
}
.payment-pix-type-kind {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--c-muted);
}

/* ───── Steps "1." "2." dentro do payment-box ───── */
.payment-pix-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-deep);
  margin: var(--sp-3) 0 var(--sp-2);
}

.payment-pix-label strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ───── Lead do "como pagar" (texto curto) ───── */
.payment-howto-lead {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 var(--sp-2) 30px;  /* alinha com o conteúdo dos passos numerados */
}

.payment-howto-lead strong {
  color: var(--c-deep);
}

/* ───── Próximo passo (linha indicadora) ───── */
.payment-next-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--sp-4) 0 0;
  padding: 10px var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  text-align: center;
  line-height: 1.4;
}

.payment-next-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-cloud);
  color: var(--c-blue);
  flex-shrink: 0;
}

/* ───── Botão copiar maior, mais visível ───── */
.payment-copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Botão de copiar quando confirmado (estado .is-copied via JS existente) */
.payment-copy-btn.is-copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

/* ───── Recado do organizador (instructions) ───── */
.payment-extra-note {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: #78350f;
}

.payment-extra-note > svg {
  flex-shrink: 0;
  color: #d97706;
  margin-top: 2px;
}

.payment-extra-note strong {
  color: #78350f;
  display: block;
  margin-bottom: 2px;
}

/* Mobile: tudo empilha confortavelmente */
@media (max-width: 640px) {
  .payment-pix-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }
  .payment-copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================================
   63. DASHBOARD ADMIN (KPIs + atalhos + timeline)
   ===================================================================== */

/* ───── KPI grid ───── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.dash-kpi {
  display: block;
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms, border-color 150ms, box-shadow 150ms;
  position: relative;
  overflow: hidden;
}

.dash-kpi:not(div):hover {
  transform: translateY(-2px);
  border-color: var(--c-blue);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.08);
}

.dash-kpi--featured {
  background: linear-gradient(135deg, var(--c-deep) 0%, #1e3a5f 100%);
  color: white;
  border-color: var(--c-deep);
}
.dash-kpi--featured .dash-kpi-label,
.dash-kpi--featured .dash-kpi-meta { color: rgba(255,255,255,0.75); }
.dash-kpi--featured .dash-kpi-value { color: white; }

.dash-kpi--alert {
  background: #fef2f2;
  border-color: #fecaca;
}
.dash-kpi--alert .dash-kpi-value { color: #b91c1c; }
.dash-kpi--alert .dash-kpi-meta { color: #b91c1c; font-weight: 600; }

.dash-kpi-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-2);
}

.dash-kpi-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--c-deep);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.dash-kpi-meta {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

.dash-trend--up   { color: #047857; font-weight: 600; }
.dash-trend--down { color: #b91c1c; font-weight: 600; }

/* ───── Atalhos rápidos ───── */
.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.dash-shortcut {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms, transform 150ms;
  position: relative;
}

.dash-shortcut:hover {
  border-color: var(--c-blue);
  transform: translateY(-1px);
}

.dash-shortcut-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-cloud);
  color: var(--c-blue);
}

.dash-shortcut--red .dash-shortcut-icon  { background: #fee2e2; color: #b91c1c; }
.dash-shortcut--gray .dash-shortcut-icon { background: var(--c-surface-2); color: var(--c-text-soft); }

.dash-shortcut-body { flex: 1; min-width: 0; }

.dash-shortcut-label {
  font-weight: 700;
  color: var(--c-deep);
  font-size: var(--fs-md);
}

.dash-shortcut-desc {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 2px;
}

.dash-shortcut-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #b91c1c;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* ───── Timeline ───── */
.dash-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.dash-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--c-border);
}

.dash-timeline-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  position: relative;
}

.dash-timeline-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cloud);
  color: var(--c-blue);
  border-radius: 50%;
  border: 2px solid var(--c-surface);
  z-index: 1;
}

.dash-timeline-item--catch .dash-timeline-dot {
  background: #ecfdf5;
  color: #047857;
}

.dash-timeline-body {
  flex: 1;
  min-width: 0;
}

.dash-timeline-text {
  margin: 0 0 2px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--c-text);
}

.dash-timeline-text strong { color: var(--c-deep); }

.dash-timeline-meta {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-timeline-meta a { color: inherit; text-decoration: none; }
.dash-timeline-meta a:hover { color: var(--c-blue); text-decoration: underline; }

/* ───── Resumo rápido ───── */
.dash-summary {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.dash-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.dash-summary > div:last-child { border-bottom: none; }

.dash-summary dt {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin: 0;
}

.dash-summary dd {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-deep);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ───── Responsivo ───── */
@media (max-width: 1024px) {
  .dash-kpi-grid    { grid-template-columns: repeat(2, 1fr); }
  .dash-shortcuts   { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dash-kpi-value   { font-size: 28px; }
  .dash-shortcuts   { grid-template-columns: 1fr; }
}

/* =====================================================================
   64. INSCRIÇÕES PENDENTES — chip de filtro + badge no card
   ===================================================================== */

/* Chip "Com pendências (N)" vermelho */
.filter-chip-alert {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
  font-weight: 700;
}

.filter-chip-alert:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

.filter-chip-alert.is-active {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: white !important;
}

.filter-chip-alert .filter-chip-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: pendingPulse 1.6s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Badge "N pendentes" sobre a capa do card */
.pending-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #b91c1c;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.4);
  z-index: 2;
}

.pending-badge svg {
  width: 12px;
  height: 12px;
}

/* Card com pendência ganha borda sutil vermelha */
.tournament-card.has-pending {
  box-shadow: 0 0 0 2px #fecaca, var(--shd-sm);
}

.tournament-card.has-pending:hover {
  box-shadow: 0 0 0 2px #fca5a5, var(--shd-md);
}

/* =====================================================================
   65. T-HERO HEADER do torneio público (ícones + botões)
   ===================================================================== */

/* Meta agora é flex com ícones, gap maior, item bem distinto */
.t-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-3);
}

.t-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-md);
  font-weight: 500;
}

.t-meta-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Ações do hero (botões Maps + Share) */
.t-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.t-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-deep);
  border: 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  white-space: nowrap;
}

.t-hero-btn:hover {
  background: white;
  transform: translateY(-1px);
}

/* Quando o botão de share confirma cópia */
.t-hero-btn.is-copied {
  background: #dcfce7;
  color: #047857;
}

/* Mobile: botões 100% e empilham */
@media (max-width: 540px) {
  .t-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .t-hero-btn {
    justify-content: center;
  }
}

/* =====================================================================
   66. LANDING PAGE — Festival de Pesca de Pontes e Lacerda (19ª ed)
   ===================================================================== */

/* ───── HERO ───── */
.lp-hero {
  position: relative;
  padding: var(--sp-12) var(--sp-4) var(--sp-10);
  overflow: hidden;
  isolation: isolate;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 40%, #FFFFFF 100%);
}
.lp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
}
.lp-hero-orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 70%);
  top: -100px; left: -100px;
}
.lp-hero-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.45), transparent 70%);
  top: 50px; right: -120px;
}
.lp-hero-orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  bottom: -80px; left: 30%;
}

.lp-hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-deep);
  margin-bottom: var(--sp-5);
  box-shadow: 0 4px 24px rgba(11, 37, 69, 0.08);
}
.lp-eyebrow .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
  animation: pulse 2s ease-in-out infinite;
}

.lp-hero h1 {
  font-weight: 200;
  font-size: clamp(30px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-deep);
  margin-bottom: var(--sp-6);
}
.lp-hero h1 strong {
  font-weight: 800;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.lp-hero-sub {
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 400;
  color: var(--c-text-soft);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

/* ───── Event meta (data + local) ───── */
.lp-event-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  max-width: 720px;
  margin: 0 auto var(--sp-8);
}
.lp-event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(11, 37, 69, 0.08);
  text-align: left;
}
.lp-event-meta-item svg {
  flex-shrink: 0;
  color: var(--c-blue);
}
.lp-event-meta-item strong {
  display: block;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-deep);
  line-height: 1.15;
}
.lp-event-meta-item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: 2px;
}

/* ───── Countdown ───── */
.lp-countdown {
  display: inline-flex;
  align-items: stretch;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(11, 37, 69, 0.08);
  margin: 0 auto var(--sp-8);
}
/* O hero-content já é text-align:center, então inline-flex centraliza naturalmente */
.lp-cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.lp-cd-item .val {
  font-weight: 200;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  color: var(--c-deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-cd-item .lbl {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.lp-cd-sep {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 200;
  color: var(--c-muted-lt);
  align-self: center;
  padding-bottom: 18px;
}

/* ───── Hero CTAs ───── */
.lp-hero-cta {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-12);
}

.lp-btn-primary {
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  color: white;
  border: 0;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 180ms, box-shadow 180ms;
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
  color: white;
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--c-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 180ms, transform 180ms;
}
.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  color: var(--c-deep);
}

/* Pill "Inscrições em breve" */
.lp-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue);
}
.lp-soon-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  animation: pulse 2s ease-in-out infinite;
}

/* ───── SECTION HEAD genérico ───── */
.lp-section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-8);
  text-align: center;
  padding: 0 var(--sp-4);
}
.lp-section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-cloud);
  color: var(--c-blue);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.lp-section-head h2 {
  font-weight: 200;
  font-size: clamp(24px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-deep);
  margin-bottom: var(--sp-3);
}
.lp-section-head h2 strong {
  font-weight: 800;
  color: var(--c-blue);
}
.lp-section-head p {
  font-size: var(--fs-md);
  color: var(--c-muted);
  line-height: 1.6;
}

/* ───── MODALIDADES ───── */
.lp-modalities {
  padding: var(--sp-12) var(--sp-4) var(--sp-8);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-modality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.lp-modality {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
  text-align: center;
  transition: transform 200ms, box-shadow 200ms;
}
.lp-modality:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.1);
}
.lp-modality-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.lp-modality h3 {
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--c-deep);
  margin-bottom: var(--sp-2);
}
.lp-modality p {
  color: var(--c-text-soft);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* ───── PREMIAÇÕES ───── */
.lp-prizes {
  padding: var(--sp-8) var(--sp-4);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-prize-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.lp-prize-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
}
.lp-prize-card > header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border-soft);
}
.lp-prize-card > header svg {
  flex-shrink: 0;
  color: var(--c-blue);
}
.lp-prize-card > header h3 {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-deep);
  margin: 0;
}
.lp-prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.lp-prize-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(241, 245, 250, 0.7);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-soft);
  transition: transform 150ms, background 150ms;
}
.lp-prize-list li:hover {
  background: rgba(219, 234, 254, 0.7);
  transform: translateX(3px);
}
/* Destaque pro 1º lugar */
.lp-prize-list li:first-child {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.1));
  border-color: rgba(37, 99, 235, 0.2);
}
.lp-prize-pos {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  color: white;
  font-weight: 800;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.lp-prize-list li:first-child .lp-prize-pos {
  background: linear-gradient(135deg, #0B2545, #2563EB);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.lp-prize-desc {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1.3;
}

/* ───── CARROSSEL DE ESPÉCIES ───── */
.lp-species { padding-top: var(--sp-12); }

.lp-marquee {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) 0;
  margin-bottom: var(--sp-12);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.lp-marquee-track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: lp-marquee-scroll 60s linear infinite;
}
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
@keyframes lp-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.lp-fish-card {
  flex: 0 0 auto;
  width: 180px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.06);
  transition: transform 200ms;
}
.lp-fish-card:hover { transform: translateY(-4px); }
.lp-fish-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.lp-fish-card-empty {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, var(--c-frost), var(--c-cloud));
}
.lp-fish-name {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-deep);
  text-align: center;
}

/* ───── ATIVIDADES EXTRAS ───── */
.lp-extras {
  padding: var(--sp-8) var(--sp-4) var(--sp-10);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.lp-extra-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
}
.lp-extra-card svg {
  flex-shrink: 0;
  color: var(--c-blue);
}
.lp-extra-card h4 {
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-deep);
  margin: 0;
}

/* ───── CTA FINAL ───── */
.lp-cta-final {
  padding: var(--sp-8) var(--sp-4) var(--sp-12);
  max-width: 1180px;
  margin: 0 auto;
}
.lp-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-6);
  background: linear-gradient(135deg, #0B2545 0%, #1E3A5F 50%, #2563EB 100%);
  text-align: center;
  isolation: isolate;
}
.lp-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.4), transparent 50%);
}
.lp-cta-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  color: white;
}
.lp-cta-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.lp-cta-card h2 {
  font-weight: 200;
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: var(--sp-3);
}
.lp-cta-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-6);
}
.lp-cta-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.lp-cta-card .lp-btn-primary {
  background: white;
  color: var(--c-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.lp-cta-card .lp-btn-primary:hover { color: var(--c-blue); }

/* ───── RESPONSIVE — Tablet ───── */
@media (min-width: 720px) {
  .lp-event-meta  { grid-template-columns: 1fr 1fr; }
  .lp-modality-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-prize-grid    { grid-template-columns: repeat(2, 1fr); }
  .lp-extras-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lp-hero { padding: var(--sp-16) var(--sp-4); }
}

/* ───── RESPONSIVE — Mobile fino (≤380px) ───── */
@media (max-width: 380px) {
  .lp-hero { padding: var(--sp-8) var(--sp-3); }
  .lp-hero h1 { margin-bottom: var(--sp-4); }
  .lp-hero-sub { margin-bottom: var(--sp-5); }
  .lp-event-meta { gap: var(--sp-2); margin-bottom: var(--sp-5); }
  .lp-event-meta-item { padding: var(--sp-3) var(--sp-4); }
  .lp-countdown { padding: var(--sp-3) var(--sp-3); gap: var(--sp-1); margin-bottom: var(--sp-5); }
  .lp-cd-item { min-width: 48px; }
  .lp-cd-sep { font-size: 20px; padding-bottom: 14px; }
  .lp-hero-cta { gap: var(--sp-2); }
  .lp-fish-card { width: 140px; }
  .lp-fish-card img,
  .lp-fish-card-empty { height: 90px; }
  .lp-hero-cta .btn,
  .lp-cta-actions .btn { width: 100%; justify-content: center; }
  .lp-soon-pill { width: 100%; justify-content: center; }
  .lp-prize-list li { padding: var(--sp-2) var(--sp-3); }
  .lp-prize-pos { width: 36px; height: 36px; font-size: var(--fs-xs); }
  .lp-prize-desc { font-size: var(--fs-sm); }
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track { animation: none; }
  .lp-soon-pill .dot { animation: none; }
}

/* =====================================================================
   67. PHONE INPUT GROUP + custom country dropdown (cdd)
   ===================================================================== */
.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-input-group .form-control {
  flex: 1;
  min-width: 0;
}
.phone-input-group.is-invalid .cdd-toggle,
.phone-input-group.is-invalid .form-control {
  border-color: var(--c-danger);
}

/* Custom dropdown ──────────────────────────────────────────────────── */
.cdd {
  position: relative;
  flex-shrink: 0;
}

/* Botão fechado */
.cdd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--c-deep);
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
  font-family: inherit;
}
.cdd-toggle:hover { border-color: var(--c-muted-lt); }
.cdd-toggle:focus,
.cdd.is-open .cdd-toggle {
  outline: 0;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cdd-flag {
  font-size: 18px;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple Color Emoji",
               "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.cdd-ddi {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.cdd-caret {
  color: var(--c-muted);
  transition: transform 200ms;
}
.cdd.is-open .cdd-caret { transform: rotate(180deg); }

/* Panel (dropdown aberto) */
.cdd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.18);
  overflow: hidden;
  animation: cdd-fade 150ms ease;
}
@keyframes cdd-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search bar dentro do panel */
.cdd-search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cdd-search svg {
  position: absolute;
  left: 22px;
  color: var(--c-muted);
  pointer-events: none;
}
.cdd-search-input {
  flex: 1;
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-family: inherit;
  background: var(--c-bg);
  color: var(--c-deep);
  transition: border-color 150ms;
}
.cdd-search-input:focus {
  outline: 0;
  border-color: var(--c-blue);
  background: white;
}
.cdd-search-input::placeholder { color: var(--c-muted-lt); }

/* Lista */
.cdd-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
}
.cdd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 120ms;
  font-size: var(--fs-sm);
}
.cdd-item[hidden] { display: none; }
.cdd-item:hover,
.cdd-item:focus {
  background: var(--c-frost);
  outline: 0;
}
.cdd-item.is-selected {
  background: var(--c-cloud);
  font-weight: 600;
}
.cdd-item-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple Color Emoji",
               "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.cdd-item-name {
  flex: 1;
  color: var(--c-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdd-item-ddi {
  font-weight: 600;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
}
.cdd-empty {
  padding: 16px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* Scrollbar mais discreta dentro da lista */
.cdd-list::-webkit-scrollbar { width: 6px; }
.cdd-list::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 3px;
}
.cdd-list::-webkit-scrollbar-thumb:hover { background: var(--c-muted-lt); }

/* Mobile fino: panel ocupa mais espaço */
@media (max-width: 380px) {
  .cdd-panel { width: 260px; }
}

/* =====================================================================
   68. CONSENT CARD (checkbox de aceite humanizado)
   ===================================================================== */
.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-frost);
  border: 1px solid var(--c-cloud);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
  user-select: none;
}
.consent-card:hover {
  background: var(--c-cloud);
  border-color: var(--c-mist);
}
.consent-card.is-invalid {
  background: var(--c-danger-bg);
  border-color: var(--c-danger);
}

/* Esconde o input real, usa o span .consent-check como visual */
.consent-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.consent-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--c-muted-lt);
  border-radius: var(--r-sm);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, border-color 150ms, transform 150ms;
  color: white;
  margin-top: 2px;
}
.consent-check svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms, transform 150ms;
}

/* Estado: checado */
.consent-card input:checked ~ .consent-check {
  background: var(--c-blue);
  border-color: var(--c-blue);
}
.consent-card input:checked ~ .consent-check svg {
  opacity: 1;
  transform: scale(1);
}

/* Estado: foco (acessibilidade) */
.consent-card input:focus-visible ~ .consent-check {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  border-color: var(--c-blue);
}

.consent-text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-text-soft);
}
.consent-text strong {
  display: block;
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 2px;
  font-size: var(--fs-md);
}
.consent-text a {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-text a:hover { color: var(--c-deep); }

/* =====================================================================
   69. PÁGINAS LEGAIS (/termos, /privacidade)
   ===================================================================== */
.legal-page {
  background: var(--c-bg);
  min-height: 100vh;
  padding: var(--sp-8) var(--sp-4) var(--sp-12);
}
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: clamp(var(--sp-6), 5vw, var(--sp-12));
  box-shadow: 0 4px 24px rgba(11, 37, 69, 0.04);
}

.legal-header {
  text-align: center;
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}
.legal-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-cloud);
  color: var(--c-blue);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.legal-header h1 {
  font-weight: 200;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-deep);
  margin: 0 0 var(--sp-2);
}
.legal-meta {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0;
}

.legal-callout {
  background: var(--c-frost);
  border-left: 4px solid var(--c-blue);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-text);
}
.legal-callout strong { color: var(--c-deep); }
.legal-callout abbr {
  border-bottom: 1px dotted var(--c-muted);
  cursor: help;
  text-decoration: none;
}

.legal-toc {
  background: var(--c-surface-2);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-sm);
}
.legal-toc strong {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--c-deep);
  font-weight: 700;
}
.legal-toc ol {
  margin: 0;
  padding-left: var(--sp-5);
  columns: 2;
  column-gap: var(--sp-5);
}
.legal-toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--c-text-soft);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--c-blue); text-decoration: underline; }

.legal-section {
  margin-bottom: var(--sp-8);
  scroll-margin-top: 80px;
}
.legal-section h2 {
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--c-deep);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--c-deep);
  margin: var(--sp-5) 0 var(--sp-2);
}
.legal-section p {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 var(--sp-3);
}
.legal-section ul,
.legal-section .legal-defs {
  margin: 0 0 var(--sp-4);
  padding-left: var(--sp-5);
}
.legal-section li {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-text);
  margin-bottom: 6px;
}
.legal-section .legal-defs {
  list-style: none;
  padding-left: 0;
}
.legal-section .legal-defs li {
  padding-left: var(--sp-3);
  border-left: 3px solid var(--c-cloud);
  margin-bottom: var(--sp-2);
}
.legal-section a {
  color: var(--c-blue);
  font-weight: 600;
}
.legal-section a:hover { color: var(--c-deep); }
.legal-section strong { color: var(--c-deep); }

.legal-footer {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.legal-footer p { margin: 0 0 var(--sp-2); }
.legal-footer a {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: none;
}
.legal-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
  .legal-container { padding: var(--sp-5) var(--sp-4); }
}

/* Footer legal links */
.footer-legal-links {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.footer-legal-links a {
  color: var(--c-muted);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--c-blue); text-decoration: underline; }
.footer-legal-links span { margin: 0 8px; }

/* =====================================================================
   70. AUTH CALLOUTS + secondary action
   ===================================================================== */
.auth-callout {
  padding: 14px 16px;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.auth-callout strong { display: block; font-size: var(--fs-md); color: var(--c-deep); margin-bottom: 4px; }
.auth-callout p { margin: 0 0 4px; }
.auth-callout p:last-child { margin: 0; }
.auth-callout .text-xs {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 8px;
}

.auth-callout-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.auth-callout-success strong { color: #065F46; }

.auth-callout-error {
  background: var(--c-danger-bg);
  border: 1px solid #FCA5A5;
  color: #991B1B;
}
.auth-callout-error strong { color: #991B1B; }

.auth-secondary-action {
  text-align: center;
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-sm);
}
.auth-secondary-action a {
  color: var(--c-muted);
  text-decoration: none;
  font-weight: 500;
}
.auth-secondary-action a:hover { color: var(--c-blue); text-decoration: underline; }

/* =====================================================================
   71. ADMIN EMAILS (templates, editor, log)
   ===================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.email-tpl-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.email-tpl-card:hover {
  border-color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.08);
}
.email-tpl-card.is-inactive {
  opacity: 0.6;
  background: var(--c-surface-2);
}
.email-tpl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.email-tpl-header h3 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-deep);
}
.email-tpl-desc {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.5;
}
.email-tpl-subject {
  padding: 8px 12px;
  background: var(--c-cloud);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
}
.email-tpl-subject .text-xs { display: block; margin-bottom: 2px; }
.email-tpl-stats {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
}

/* Editor de template */
.code-editor {
  font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
}

.var-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--c-blue);
  border-radius: var(--r-sm);
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
}

.email-test-section {
  background: var(--c-surface-2);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
.email-test-section h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-lg);
  color: var(--c-deep);
}
.email-test-form {
  display: flex;
  gap: var(--sp-2);
  align-items: stretch;
  margin: var(--sp-3) 0 var(--sp-2);
}
.email-test-form .form-control { flex: 1; min-width: 0; }
@media (max-width: 540px) {
  .email-test-form { flex-direction: column; }
}

/* =====================================================================
   72. PREMIAÇÕES (admin + público)
   ===================================================================== */

/* --- Barra superior ---------------------------------------------- */
.prize-add-bar {
  margin-bottom: var(--sp-5);
}

/* --- Card de form (novo prêmio) ---------------------------------- */
.prize-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-blue);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.prize-form-card h3 {
  margin: 0 0 var(--sp-4);
  color: var(--c-deep);
  font-size: var(--fs-lg);
}

/* form-row genérica de 2 colunas */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 540px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* --- Categorias agrupadas ---------------------------------------- */
.prize-categories { display: flex; flex-direction: column; gap: var(--sp-6); }

.prize-category > header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-cloud);
}
.prize-category > header h2 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-deep);
  letter-spacing: -0.01em;
}

.prize-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* --- Item de prêmio ---------------------------------------------- */
.prize-item {
  display: grid;
  grid-template-columns: 32px 48px 56px 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.prize-item:hover {
  border-color: var(--c-blue);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.06);
}
.prize-item.is-frozen {
  background: var(--c-surface-2);
  border-style: dashed;
  opacity: 0.85;
}
.prize-item.is-frozen:hover {
  border-color: var(--c-border);
  box-shadow: none;
}

/* Handle de drag */
.prize-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  cursor: grab;
  transition: background 150ms, color 150ms;
}
.prize-handle:hover { background: var(--c-cloud); color: var(--c-blue); }
.prize-handle:active { cursor: grabbing; }
.prize-handle--locked { cursor: not-allowed; color: var(--c-muted-lt); }
.prize-handle--locked:hover { background: transparent; color: var(--c-muted-lt); }

/* Posição (1º, 2º...) */
.prize-position {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-position-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
}

/* Foto */
.prize-photo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--c-surface-2);
}
.prize-photo-empty {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted-lt);
}

/* Info */
.prize-info { min-width: 0; }
.prize-title {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 2px;
  word-break: break-word;
}
.prize-desc {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.4;
}
.prize-value {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--c-cloud);
  color: var(--c-blue);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Actions */
.prize-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.prize-actions form { display: inline; }
.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--c-text-soft);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.btn-icon:hover { background: var(--c-cloud); color: var(--c-blue); border-color: var(--c-blue); }
.btn-icon-danger:hover { background: var(--c-danger-bg); color: var(--c-danger); border-color: var(--c-danger); }

/* Form de edição inline (grid-column ocupa toda a linha) */
.prize-edit-form {
  grid-column: 1 / -1;
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-border);
  margin-top: var(--sp-2);
}

/* Estados do SortableJS */
.prize-item--ghost  { opacity: 0.4; background: var(--c-cloud); }
.prize-item--chosen { box-shadow: 0 8px 24px rgba(11, 37, 69, 0.15); }
.prize-item--drag   { transform: rotate(1deg); }

/* Mobile */
@media (max-width: 640px) {
  .prize-item {
    grid-template-columns: 24px 40px 1fr auto;
    gap: var(--sp-2);
    padding: var(--sp-3);
  }
  .prize-photo, .prize-photo-empty { grid-column: 2; width: 40px; height: 40px; }
  .prize-position { display: none; } /* posição vai pro título no mobile */
  .prize-title::before {
    content: attr(data-pos);
    color: var(--c-blue);
    margin-right: 4px;
  }
}

/* --- Cards públicos de prêmio (página do torneio) ---------------- */
.t-prizes-card { margin-top: var(--sp-4); }
.t-prizes-card h3 {
  display: flex;
  align-items: center;
  margin: 0 0 var(--sp-4);
}
.t-prize-group {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px dashed var(--c-border);
}
.t-prize-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.t-prize-group h4 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.t-prize-group ul { list-style: none; margin: 0; padding: 0; }
.t-prize-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.t-prize-pos {
  flex-shrink: 0;
  width: 28px;
  font-weight: 800;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-md);
}
.t-prize-photo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.t-prize-body { flex: 1; min-width: 0; }
.t-prize-body strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-deep);
  line-height: 1.3;
}
.t-prize-value {
  display: inline-block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
}
.t-prize-desc {
  margin: 4px 0 0;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.4;
}

/* =====================================================================
   73. BTN-DISABLED-INFO (substituto pra <button disabled> em cards)
   ===================================================================== */
/* Pra mostrar status como "Inscrições encerradas" sem virar botão clicável.
   Tem visual de tag/badge e suporta texto multilinha. */
.btn-disabled-info {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--c-surface-2);
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  cursor: default;
  /* Permite quebra em qualquer ponto se necessário */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* =====================================================================
   74. AUTH-TIP — avisos no auth (ex: "confira o spam")
   ===================================================================== */
.auth-tip {
  background: #FEF9C3;
  border: 1px solid #FACC15;
  color: #713F12;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: var(--sp-3) 0 var(--sp-5);
}
.auth-tip strong { color: #422006; }

/* =====================================================================
   75. PROFILE — /meu-perfil
   ===================================================================== */
.profile-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
}
.profile-dl dt {
  font-weight: 600;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.profile-dl dd {
  margin: 0;
  color: var(--c-deep);
  font-weight: 500;
}
@media (max-width: 540px) {
  .profile-dl { grid-template-columns: 1fr; gap: 2px var(--sp-2); }
  .profile-dl dd { margin-bottom: var(--sp-3); }
}

.lgpd-card {
  border: 2px solid var(--c-cloud);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}
.lgpd-card h2 {
  display: flex;
  align-items: center;
}

/* =====================================================================
   76. PROFILE DASHBOARD — /meu-perfil expandido
   ===================================================================== */

/* Hero card com avatar */
.profile-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
}
.profile-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}
.profile-hero-info h2 {
  margin: 0 0 4px;
  color: var(--c-deep);
  font-size: var(--fs-xl);
}
.profile-hero-info p {
  margin: 0;
  font-size: var(--fs-sm);
}

/* Stats cards */
.profile-stats .stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: center;
  transition: border-color 150ms, box-shadow 150ms;
}
.profile-stats .stat-card:hover {
  border-color: var(--c-blue);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.06);
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Icon redondo (atalhos) */
.profile-icon {
  width: 48px;
  height: 48px;
  background: var(--c-cloud);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
  flex-shrink: 0;
}

/* Section titles */
.section-title {
  font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-cloud);
}

/* Lista de configurações */
.profile-settings-list {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.setting-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 16px;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  transition: background 150ms;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row:hover:not(.setting-row-disabled) { background: var(--c-cloud); }
.setting-row-disabled { opacity: 0.55; cursor: not-allowed; }
.setting-icon {
  width: 36px;
  height: 36px;
  background: var(--c-cloud);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
}
.setting-body h4 {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--c-deep);
  font-weight: 700;
}
.setting-body p {
  margin: 2px 0 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.setting-value {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  text-align: right;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setting-chev {
  font-size: 18px;
  color: var(--c-muted-lt);
  font-weight: 700;
}

@media (max-width: 640px) {
  .setting-row { grid-template-columns: 36px 1fr 12px; }
  .setting-value { display: none; }
  .profile-stats.grid-4 { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .stat-num { font-size: 24px; }
  .profile-hero { flex-direction: column; text-align: center; }
}

/* LGPD card destacado */
.lgpd-icon {
  width: 44px;
  height: 44px;
  background: var(--c-cloud);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
  flex-shrink: 0;
}
.lgpd-card-danger {
  border: 1px solid var(--c-danger-bg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FEF5F5 100%);
}
.lgpd-card-danger .lgpd-icon {
  background: var(--c-danger-bg);
}

/* Phone row no edit: reutiliza .phone-input-group já definida na seção 6543 */

/* =====================================================================
   77. DATA-TABLE — tabela genérica (segurança, etc.)
   ===================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table thead {
  background: var(--c-surface-2);
  border-bottom: 2px solid var(--c-border);
}
.data-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-xs);
}
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--c-surface-2); }
.data-table td.num { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .data-table { font-size: var(--fs-xs); }
  .data-table th, .data-table td { padding: var(--sp-2) var(--sp-3); }
}

/* =====================================================================
   78. AVATAR — perfil
   ===================================================================== */

/* Avatar como imagem (sobreescreve fundo gradient + texto) */
.profile-hero-avatar-img {
  object-fit: cover;
  background: var(--c-cloud);
  /* mantém os 72px do .profile-hero-avatar */
}
.header-user-avatar-img {
  object-fit: cover;
  /* mantém o size do .header-user-avatar (geralmente 28-32px) */
}

/* Hero avatar clicável (overlay editar) */
.profile-hero-avatar-link {
  position: relative;
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}
.profile-hero-avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  background: var(--c-blue);
  color: white;
  border-radius: 50%;
  border: 3px solid var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.3);
  transition: transform 150ms;
}
.profile-hero-avatar-link:hover .profile-hero-avatar-edit {
  transform: scale(1.1);
}

/* Tela de edição: preview do avatar atual */
.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.avatar-preview-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-cloud);
  flex-shrink: 0;
}
.avatar-preview-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}
.avatar-preview-info { flex: 1; min-width: 0; }

@media (max-width: 540px) {
  .avatar-preview-row { flex-direction: column; text-align: center; }
}

/* =====================================================================
   79. PREFERÊNCIAS — linhas com switch toggle
   ===================================================================== */
.pref-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
}
.pref-row:last-child { border-bottom: 0; }
.pref-body { flex: 1; min-width: 0; }
.pref-body strong {
  display: block;
  color: var(--c-deep);
  font-size: var(--fs-md);
  margin-bottom: 4px;
}
.pref-body p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.4;
}

/* Switch toggle (substitui o checkbox visualmente) */
.pref-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.pref-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.pref-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--c-surface-3);
  border-radius: 28px;
  transition: background 200ms;
}
.pref-switch-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.pref-switch input:checked + .pref-switch-slider {
  background: var(--c-blue);
}
.pref-switch input:checked + .pref-switch-slider::before {
  transform: translateX(20px);
}
.pref-switch input:focus-visible + .pref-switch-slider {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* =====================================================================
   80. LISTAS COM BULLETS — opt-in (sobreescreve reset global)
   ===================================================================== */
.list-bulleted {
  list-style: disc outside;
  padding-left: 1.4em;
  margin: 0;
}
.list-bulleted li {
  margin-bottom: 6px;
  line-height: 1.55;
}
.list-bulleted li:last-child { margin-bottom: 0; }

.list-bulleted-sm {
  list-style: disc outside;
  padding-left: 1.4em;
  margin: 8px 0 0;
}
.list-bulleted-sm li {
  margin-bottom: 4px;
  line-height: 1.5;
  font-size: var(--fs-sm);
}

/* =====================================================================
   81. FORM-ACTIONS — botões de submit/cancelar
   ===================================================================== */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
@media (max-width: 540px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn { width: 100%; }
}

/* =====================================================================
   82. CAMPANHAS DE EMAIL — dl-inline + radio-row
   ===================================================================== */
.dl-inline {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin: 0;
}
.dl-inline dt {
  font-weight: 700;
  color: var(--c-deep);
}
.dl-inline dd {
  margin: 0;
  color: var(--c-text);
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--c-border);
}
.radio-row:last-child { border-bottom: 0; }
.radio-row input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--c-blue);
  flex-shrink: 0;
}
.radio-row > div { flex: 1; min-width: 0; }
.radio-row strong { color: var(--c-deep); display: block; }

/* =====================================================================
   83. SEARCHABLE-SELECT — select com campo de busca embutido
   ===================================================================== */
.ss-root {
  position: relative;
  width: 100%;
}

.ss-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  text-align: left;
  cursor: pointer;
  width: 100%;
  background: white;
}
.ss-toggle:hover { border-color: var(--c-muted-lt); }
.ss-root.is-open .ss-toggle,
.ss-toggle:focus {
  border-color: var(--c-blue);
  outline: 2px solid color-mix(in srgb, var(--c-blue) 25%, transparent);
  outline-offset: 1px;
}
.ss-root.is-invalid .ss-toggle {
  border-color: var(--c-danger);
}

.ss-toggle-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-text);
}
.ss-toggle-label.is-placeholder {
  color: var(--c-muted-lt);
}
.ss-toggle-caret {
  flex-shrink: 0;
  color: var(--c-muted);
  transition: transform 150ms;
}
.ss-root.is-open .ss-toggle-caret { transform: rotate(180deg); }

.ss-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.15);
  z-index: 100;
  max-height: 360px;
  display: flex;
  flex-direction: column;
}
.ss-panel[hidden] { display: none !important; }

.ss-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-muted);
}
.ss-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: var(--fs-md);
  font-family: inherit;
  background: transparent;
  color: var(--c-text);
}
.ss-search-input::placeholder { color: var(--c-muted-lt); }

.ss-list {
  list-style: none;
  margin: 0;
  padding: var(--sp-2) 0;
  overflow-y: auto;
  max-height: 280px;
}
.ss-item {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-size: var(--fs-md);
  color: var(--c-text);
  border-left: 3px solid transparent;
  transition: background 120ms;
}
.ss-item[hidden] { display: none; }
.ss-item:hover,
.ss-item.is-active {
  background: var(--c-cloud);
}
.ss-item.is-selected {
  background: color-mix(in srgb, var(--c-blue) 8%, white);
  border-left-color: var(--c-blue);
  font-weight: 600;
  color: var(--c-deep);
}

.ss-empty {
  padding: var(--sp-4);
  text-align: center;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

.ss-list::-webkit-scrollbar { width: 6px; }
.ss-list::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 3px;
}
.ss-list::-webkit-scrollbar-thumb:hover { background: var(--c-muted-lt); }

/* =====================================================================
   84. TDM — Tournament Delete Modal (genérico, reutilizável)
   ===================================================================== */
.tdm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.tdm[hidden] { display: none !important; }

.tdm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(2px);
  cursor: pointer;
  animation: tdm-fade-in 150ms ease-out;
}
.tdm-dialog {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: tdm-slide-up 200ms ease-out;
}
.tdm-dialog h2 {
  font-size: var(--fs-xl);
  color: var(--c-deep);
  margin: 0 0 var(--sp-2);
}
.tdm-section { padding: var(--sp-2) 0; }

.tdm-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.tdm-radio {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.tdm-radio:hover { border-color: var(--c-blue); background: var(--c-cloud); }
.tdm-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--c-blue);
}
.tdm-radio input[type="radio"]:checked + span strong { color: var(--c-blue); }

@keyframes tdm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tdm-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .tdm-dialog { padding: var(--sp-4); }
}

/* =====================================================================
   85. ARCHIVED BANNER — redesign do banner de torneio arquivado
   ===================================================================== */
.archived-banner {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-text-muted);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}

.archived-banner-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.archived-banner-info {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  flex: 1;
  min-width: 240px;
}
.archived-banner-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.archived-banner-title {
  font-size: var(--fs-lg);
  color: var(--c-deep);
  margin: 0 0 4px;
  font-weight: 700;
}
.archived-banner-meta {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.archived-banner-meta strong {
  color: var(--c-text);
}
.archived-banner-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}
.archived-banner-description {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0 0 var(--sp-5);
  line-height: 1.55;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

/* =====================================================================
   86. PURGE CARD — bloco de auto-exclusão
   ===================================================================== */
.purge-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Cores por estado */
.purge-card-soon  { border-left: 4px solid var(--c-warning); }
.purge-card-mid   { border-left: 4px solid var(--c-info); }
.purge-card-far   { border-left: 4px solid var(--c-text-muted); }
.purge-card-now   { border-left: 4px solid var(--c-danger); }
.purge-card-off   { border-left: 4px solid var(--c-muted-lt); }

.purge-card-main {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
}

/* Contador grande pra estado "agendado" */
.purge-card-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: var(--sp-3) var(--sp-2);
  background: var(--c-cloud);
  border-radius: var(--r-md);
  line-height: 1;
}
.purge-card-counter-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.purge-card-counter-unit {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 4px;
}

/* Variantes coloridas do contador */
.purge-card-soon .purge-card-counter {
  background: color-mix(in srgb, var(--c-warning) 12%, white);
}
.purge-card-soon .purge-card-counter-num { color: var(--c-warning); }
.purge-card-mid .purge-card-counter {
  background: color-mix(in srgb, var(--c-info) 10%, white);
}

/* Ícone (fallback pros estados off / now) */
.purge-card-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}

.purge-card-body {
  flex: 1;
  min-width: 0;
}
.purge-card-headline {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 4px;
}
.purge-card-sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.5;
}
.purge-card-sub strong { color: var(--c-text); }

/* Controles compactos no rodapé */
.purge-card-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
  flex-wrap: wrap;
}
.purge-card-update {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: 0;
}
.purge-card-update-label {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  font-weight: 500;
  margin: 0;
}
.purge-card-update-input {
  width: 70px;
  padding: 6px 8px;
  font-size: var(--fs-sm);
}
.purge-card-update-suffix {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.purge-card-disable {
  margin-left: auto;
  color: var(--c-muted) !important;
}
.purge-card-disable:hover {
  color: var(--c-danger) !important;
}

@media (max-width: 640px) {
  .archived-banner { padding: var(--sp-4); }
  .archived-banner-header { flex-direction: column; }
  .archived-banner-actions { width: 100%; }
  .purge-card-main { flex-direction: column; align-items: flex-start; text-align: left; }
  .purge-card-counter { align-self: flex-start; }
  .purge-card-controls { flex-direction: column; align-items: stretch; }
  .purge-card-disable { margin-left: 0; }
  .purge-card-update { width: 100%; }
}

/* =====================================================================
   87. INVALIDATION TAG — etiqueta visível em capturas invalidadas
   ===================================================================== */
.invalidation-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-danger) 12%, white);
  color: var(--c-danger);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: help;
  border: 1px solid color-mix(in srgb, var(--c-danger) 25%, white);
}
.invalidation-tag svg {
  flex-shrink: 0;
}

/* =====================================================================
   88. TEAMS GRID — listagem de equipes do torneio
   ===================================================================== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.team-card {
  position: relative;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
}
.team-card-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.team-card-header {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.team-card-color {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
  background: white;
}
.team-card-color:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.team-card-name {
  flex: 1;
  font-weight: 600;
  font-size: var(--fs-md);
}
.team-card-name[readonly] {
  background: var(--c-surface-2);
  cursor: default;
}
.team-card-meta {
  margin-top: -4px;
}
.team-card-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-2);
}

.team-card-delete {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  margin: 0;
}
.team-card-delete-btn {
  color: var(--c-muted);
  padding: 6px;
  background: transparent;
}
.team-card-delete-btn:hover {
  color: var(--c-danger);
  background: color-mix(in srgb, var(--c-danger) 8%, transparent);
}

.team-card-locked {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 16px;
  opacity: 0.5;
  cursor: help;
}

/* =====================================================================
   89. RANKING DETAIL MODAL — modal de detalhes de participante/equipe
   ===================================================================== */

/* Linhas clicáveis no ranking público */
.ranking-table-clickable tbody tr {
  cursor: pointer;
  transition: background 120ms;
}
.ranking-table-clickable tbody tr:hover {
  background: var(--c-cloud);
}
.ranking-table-clickable tbody tr:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: -2px;
}

/* Chevron indicador "abre detalhes" — na última td.
   Mostra sempre (touch friendly). Anima leve no hover. */
.ranking-table-clickable tbody tr td:last-child {
  position: relative;
  padding-right: 26px;
}
.ranking-table-clickable tbody tr td:last-child::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-muted);
  border-top: 2px solid var(--c-muted);
  transform: translateY(-50%) rotate(45deg);
  transition: right 150ms, border-color 150ms;
  pointer-events: none;
}
.ranking-table-clickable tbody tr:hover td:last-child::after {
  right: 4px;
  border-color: var(--c-blue);
}

/* Hint discreto debaixo dos cabeçalhos (só desktop, primeira coluna do nome) */
.ranking-table-clickable thead th:nth-child(2)::after {
  content: ' ↗';
  font-size: 0.85em;
  color: var(--c-muted-lt);
  font-weight: normal;
}

@media (max-width: 540px) {
  /* Em mobile reduz o respiro pra não estourar */
  .ranking-table-clickable tbody tr td:last-child {
    padding-right: 22px;
  }
  .ranking-table-clickable tbody tr td:last-child::after {
    right: 6px;
    width: 7px;
    height: 7px;
    border-width: 1.5px;
  }
  /* Esconde o ↗ do cabeçalho em mobile pra economizar espaço */
  .ranking-table-clickable thead th:nth-child(2)::after {
    display: none;
  }
}

/* Modal dialog específico — usa .tdm base mas com tamanho maior */
.ranking-detail-dialog {
  max-width: 640px;
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  position: relative;
}
.ranking-detail-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: var(--c-muted);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-detail-close:hover {
  background: var(--c-cloud);
  color: var(--c-deep);
}

.rk-detail-title {
  font-size: var(--fs-xl);
  color: var(--c-deep);
  margin: 0 var(--sp-6) 4px 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.rk-detail-number {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.rk-detail-meta {
  margin-bottom: var(--sp-2);
}
.rk-detail-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.rk-detail-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.rk-detail-team-dot-lg {
  width: 16px;
  height: 16px;
}
.rk-detail-sub {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0 0 var(--sp-4);
}

/* Container com scroll — limita altura do modal */
.rk-detail-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  margin: 0 -8px;
  padding-left: 8px;
}
.rk-detail-scroll::-webkit-scrollbar { width: 6px; }
.rk-detail-scroll::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 3px;
}

/* Lista de capturas individuais (linha plana) */
.rk-catches {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rk-catch {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}
.rk-catch:last-child { border-bottom: 0; }
.rk-catch-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cloud);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.rk-catch-species {
  color: var(--c-text);
  font-size: var(--fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-catch-value {
  font-weight: 700;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rk-catch-time {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rk-catch-bypass {
  display: block;
  font-size: 11px;
  color: #d97706;
  font-weight: 600;
  margin-top: 2px;
  white-space: normal;
}

/* Equipe: accordion de pescadores */
.rk-members {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.rk-member {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: white;
}
.rk-member[open] {
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.05);
}
.rk-member-summary {
  display: grid;
  grid-template-columns: 32px 1fr auto 18px;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  background: var(--c-surface-2);
  list-style: none;
  user-select: none;
}
.rk-member-summary::-webkit-details-marker { display: none; }
.rk-member-summary:hover { background: var(--c-cloud); }
.rk-member-pos {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  font-weight: 700;
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
}
.rk-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rk-member-info strong {
  color: var(--c-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-member-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.rk-member-stats strong {
  color: var(--c-deep);
  font-variant-numeric: tabular-nums;
}
.rk-member-chevron {
  color: var(--c-muted);
  transition: transform 200ms;
}
.rk-member[open] .rk-member-chevron {
  transform: rotate(180deg);
}
.rk-member .rk-catches {
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
}

/* Spinner */
.ranking-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-cloud);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: rkspin 700ms linear infinite;
  margin: 0 auto;
}
@keyframes rkspin {
  to { transform: rotate(360deg); }
}

@media (max-width: 540px) {
  .ranking-detail-dialog {
    padding: var(--sp-4);
  }
  .rk-catch {
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px var(--sp-2);
  }
  .rk-catch-time {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .rk-member-summary {
    grid-template-columns: 28px 1fr 14px;
    grid-template-rows: auto auto;
    gap: 4px var(--sp-2);
  }
  .rk-member-stats {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .rk-member-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* =====================================================================
   90. RANKING UPDATED LABEL — dot pulsante + texto relativo
   ===================================================================== */
.ranking-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  cursor: help;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ranking-updated:empty { display: none; }

.ranking-updated-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-success);
  flex-shrink: 0;
  animation: ranking-updated-pulse 2s ease-in-out infinite;
}

/* Estado "stale": passou de 3min sem update (cron parado?) */
.ranking-updated.is-stale {
  color: var(--c-warning);
}
.ranking-updated.is-stale .ranking-updated-dot {
  background: var(--c-warning);
  animation: none;
}

@keyframes ranking-updated-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

@media (max-width: 540px) {
  .ranking-updated {
    font-size: 11px;
    gap: 5px;
  }
  .ranking-updated-dot {
    width: 5px;
    height: 5px;
  }
}

/* =====================================================================
   91. SETTINGS PAGE — seções organizadas + nav sticky
   ===================================================================== */

/* Barra de navegação sticky no topo */
.settings-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  margin: 0 calc(-1 * var(--sp-4)) var(--sp-5);
  padding: 0 var(--sp-4);
}
.settings-nav-scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}
.settings-nav-scroll::-webkit-scrollbar { display: none; }

.settings-nav-link {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-muted);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 120ms, color 120ms;
  white-space: nowrap;
}
.settings-nav-link:hover {
  background: var(--c-cloud);
  color: var(--c-deep);
}
.settings-nav-link.is-active {
  background: var(--c-cloud);
  color: var(--c-blue);
}
.settings-nav-link[data-danger="1"] {
  color: var(--c-danger);
}
.settings-nav-link[data-danger="1"]:hover,
.settings-nav-link[data-danger="1"].is-active {
  background: color-mix(in srgb, var(--c-danger) 10%, white);
  color: var(--c-danger);
}

/* Seções */
.settings-section {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  scroll-margin-top: 80px;
}
.settings-section.is-danger {
  border-color: color-mix(in srgb, var(--c-danger) 30%, white);
  background: color-mix(in srgb, var(--c-danger) 2%, white);
}

.settings-section-header {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.settings-section.is-danger .settings-section-header {
  border-bottom-color: color-mix(in srgb, var(--c-danger) 15%, white);
}

.settings-section-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cloud);
  border-radius: var(--r-md);
  color: var(--c-blue);
}
.settings-section-icon svg {
  width: 22px;
  height: 22px;
}
.settings-section.is-danger .settings-section-icon {
  background: color-mix(in srgb, var(--c-danger) 10%, white);
  color: var(--c-danger);
}

.settings-section-title {
  font-size: var(--fs-lg);
  color: var(--c-deep);
  margin: 0 0 2px;
  font-weight: 700;
}
.settings-section-desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin: 0;
  line-height: 1.5;
}

.settings-section-help {
  margin-bottom: var(--sp-4);
}

.settings-section-body .form-group:last-child {
  margin-bottom: 0;
}

/* Barra de ações fixa no rodapé */
.settings-actions {
  position: sticky;
  bottom: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-4);
  margin: var(--sp-5) calc(-1 * var(--sp-4)) 0;
  display: flex;
  gap: var(--sp-3);
  z-index: 15;
}

@media (max-width: 640px) {
  .settings-section {
    padding: var(--sp-4);
  }
  .settings-section-header {
    gap: var(--sp-3);
  }
  .settings-section-icon {
    width: 36px;
    height: 36px;
  }
  .settings-section-icon svg {
    width: 18px;
    height: 18px;
  }
  .settings-section-title {
    font-size: var(--fs-md);
  }
}

/* =====================================================================
   92. SPECIES LIST — layout dual (tabela desktop / lista compacta mobile)
   ===================================================================== */

/* Por padrão: mostra desktop, esconde mobile */
.species-mobile { display: none; }

@media (max-width: 767px) {
  /* Inverte */
  .species-desktop { display: none; }
  .species-mobile {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .species-mobile-toolbar {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-3);
    background: var(--c-cloud);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
  }

  .species-mobile-item {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: background 120ms;
  }
  .species-mobile-item.is-inactive {
    opacity: 0.55;
    background: var(--c-surface-2);
  }
  .species-mobile-item:active {
    background: var(--c-cloud);
  }

  .species-mobile-check {
    display: flex;
    align-items: center;
    padding: 0 var(--sp-3);
    border-right: 1px solid var(--c-border);
    /* Aumenta área de toque sem aumentar visual */
    min-width: 44px;
    justify-content: center;
  }
  .species-mobile-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .species-mobile-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    text-decoration: none;
    color: inherit;
    min-width: 0; /* permite text-overflow funcionar */
  }

  .species-mobile-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--c-cloud);
    flex-shrink: 0;
  }
  .species-mobile-thumb.species-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
  }

  .species-mobile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .species-mobile-name {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    flex-wrap: wrap;
  }
  .species-mobile-name strong {
    font-size: var(--fs-md);
    color: var(--c-deep);
    line-height: 1.2;
    /* Permite quebra se nome muito longo */
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .species-mobile-tag-inactive {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-warning);
    background: color-mix(in srgb, var(--c-warning) 12%, white);
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 600;
  }
  .species-mobile-sci {
    font-size: 12px;
    color: var(--c-muted);
    font-style: italic;
    line-height: 1.3;
    /* trunca em 1 linha */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .species-mobile-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: 3px;
    flex-wrap: wrap;
  }
  .species-mobile-meta .badge-xs {
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.3;
  }
  .species-mobile-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
  }
  .species-mobile-count svg {
    color: var(--c-muted);
  }
  .species-mobile-region {
    font-size: 11px;
    color: var(--c-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
  }

  .species-mobile-chevron {
    color: var(--c-muted);
    flex-shrink: 0;
  }
}

/* Bulk bar sticky em mobile pra ações sempre acessíveis */
@media (max-width: 767px) {
  .bulk-bar {
    position: sticky;
    bottom: var(--sp-3);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  }
}

/* =====================================================================
   93. SPECIES FILTERS + reset defensivo dos layouts dual
   ===================================================================== */

/* Filtros — layout próprio, mobile-first, sem position:absolute na lupa.
   Substitui o uso de .users-filters que tinha min-width: 240px causando
   estouro em mobile estreito. */
.species-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.species-filters-search {
  flex: 1 1 200px;
  min-width: 0; /* CRÍTICO: sem isso flex-item não encolhe abaixo do conteúdo */
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
}
.species-filters-icon {
  flex-shrink: 0;
  color: var(--c-text-soft);
  /* Garante que não escape do container */
  position: static !important;
  transform: none !important;
}
.species-filters-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 0;
  background: transparent;
  font-size: var(--fs-md);
  font-family: inherit;
}
.species-filters-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.species-filters-actions select {
  padding: 10px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-family: inherit;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .species-filters { flex-direction: column; align-items: stretch; }
  .species-filters-search { width: 100%; flex: 1 1 auto; }
  .species-filters-actions { width: 100%; }
  .species-filters-actions select,
  .species-filters-actions .btn { flex: 1; }
}

/* ============================================================
   Reset defensivo dos layouts dual desktop/mobile
   Usa !important pra vencer qualquer regra antiga em cache do
   browser/CDN que possa estar conflitando.
   ============================================================ */
.species-mobile { display: none !important; }

@media (max-width: 767px) {
  .species-desktop { display: none !important; }
  .species-mobile  { display: block !important; }
}

/* =====================================================================
   CORREÇÃO — modais de ranking: pontos+medida, overflow, thumb, lightbox
   (Bugs: valor em pontos, texto escapando, foto que não abria)
   ===================================================================== */

/* Grid da linha de captura: [rank] [thumb?] [main flexível] [valor] [hora] */
.rk-catch {
  grid-template-columns: 28px auto 1fr auto auto;
  align-items: start;
}
.rk-catch-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rk-catch-species {
  min-width: 0;               /* permite o ellipsis funcionar dentro do grid */
}

/* Breakdown do cálculo: "70 cm × 12 pts/cm = 840 pts" */
.rk-catch-formula {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.rk-catch-formula strong { color: var(--c-deep); }

/* Tags de status (transparência) */
.rk-catch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.rk-tag {
  display: inline-flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.rk-tag-reason {
  font-weight: 500;
  font-size: 10.5px;
  opacity: .9;
}
.rk-tag-warning { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
.rk-tag-danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.rk-tag-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.rk-tag-muted   { background: var(--c-surface-2); color: var(--c-muted); border-color: var(--c-border); }

/* Linha de captura que NÃO contabiliza: esmaecida */
.rk-catch-void { opacity: .72; }
.rk-catch-value-muted { color: var(--c-muted); font-weight: 700; }

/* Separador "Não contabilizadas (N)" */
.rk-catch-divider {
  list-style: none;
  margin: var(--sp-3) 0 var(--sp-1);
  padding: 6px var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-border);
}

/* Valor: pontos como principal, medida física como secundária (empilhados) */
.rk-catch-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.rk-catch-points {
  font-weight: 800;
  color: var(--c-deep);
}
.rk-catch-measure {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}

/* Miniatura clicável dentro do modal de detalhe */
.rk-catch-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.rk-catch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rk-catch-thumb:hover,
.rk-catch-thumb:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--c-primary, #7E1418);
  outline: none;
}

/* Ícone de "ampliar" — SEMPRE visível sobre a foto (importante no mobile:
   sem hover, o usuário precisa de um sinal claro de que a foto é tocável). */
.rk-thumb-zoom {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  pointer-events: none;         /* o clique é do botão inteiro */
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.rk-thumb-zoom .rk-zoom-icon,
.rk-thumb-zoom svg {
  width: 14px;
  height: 14px;
}

/* Foto do ranking maior/menor: botão sem cara de botão + ícone de ampliar */
.biggest-thumb-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}
.biggest-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.biggest-thumb-btn .rk-thumb-zoom {
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
}
.biggest-thumb-btn .rk-thumb-zoom svg { width: 16px; height: 16px; }
.biggest-thumb-btn:focus-visible {
  outline: 2px solid var(--c-primary, #7E1418);
  outline-offset: 2px;
}

/* Valor do ranking maior/menor: tamanho principal + pontos secundários */
.biggest-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.biggest-value-main {
  font-weight: 800;
  color: var(--c-deep);
}
.biggest-value-pts {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-primary, #7E1418);
}

/* Reforço anti-overflow nas seções do modal */
.rk-detail-scroll { max-width: 100%; }
.rk-catches { max-width: 100%; }
.rk-catch-species,
.rk-catch-value,
.rk-catch-time { min-width: 0; }

/* ---------- LIGHTBOX ---------- */
.rk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rk-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(2px);
  animation: rk-lb-fade .18s ease;
}
.rk-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rk-lb-pop .18s ease;
}
.rk-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md, 10px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
.rk-lightbox-caption {
  margin-top: 10px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.rk-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: transform .12s ease;
}
.rk-lightbox-close:hover { transform: scale(1.08); }
@keyframes rk-lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rk-lb-pop  { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 640px) {
  .rk-catch { grid-template-columns: 24px auto 1fr auto; }
  .rk-lightbox-close { top: 6px; right: 6px; }
}

/* =====================================================================
   CORREÇÃO — tabela de ranking (equipe) escapando no mobile
   A coluna "Equipe" com nome longo dentro de inline-flex não quebrava,
   forçando a largura da tabela além da tela. Aqui garantimos que o nome
   quebre e que as colunas numéricas fiquem compactas.
   ===================================================================== */

/* O wrap já tem overflow-x:auto; reforçamos que ele não estoure o pai */
.table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Nome da equipe/pescador pode quebrar ENTRE palavras (não no meio delas) em
   vez de empurrar a tabela. "Piranhas" fica inteiro; "Equipe do Barranco"
   quebra entre as palavras se precisar. */
.ranking-table td strong {
  white-space: normal;
  overflow-wrap: break-word;   /* só quebra palavra se ela sozinha não couber */
}

/* Nome de equipe: bolinha + nome, com o nome podendo quebrar em várias linhas */
.rk-team-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rk-team-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;   /* alinha a bolinha com a primeira linha do texto */
}

/* Em telas estreitas: reduz padding e fontes das células e aperta as
   colunas numéricas pra sobrar espaço pro nome. */
@media (max-width: 640px) {
  .ranking-table th,
  .ranking-table td {
    /* padding vertical mantém a área de toque; lateral bem menor, já que o
       card já dá um bom respiro das bordas da tela */
    padding: var(--sp-3) 6px;
    font-size: var(--fs-sm);
  }
  /* a primeira e última célula encostam menos na borda do card */
  .ranking-table th:first-child,
  .ranking-table td:first-child { padding-left: 4px; }
  .ranking-table th:last-child,
  .ranking-table td:last-child { padding-right: 4px; }

  /* Colunas numéricas mais estreitas no mobile */
  .ranking-table th.text-center,
  .ranking-table td.text-center { width: 44px !important; }
  .ranking-table th.text-right,
  .ranking-table td.text-right  { width: auto; white-space: nowrap; }
  .ranking-table .rk-rank { width: 28px; font-size: var(--fs-md); }
  .ranking-table th { white-space: nowrap; }
}

/* =====================================================================
   CORREÇÃO — recuo lateral excessivo no mobile (página de torneio)
   No mobile havia empilhamento de padding: .container (24px) + .t-body
   (24px) + .card (24px) = ~72px de cada lado, comendo a largura útil e
   deixando o conteúdo apertado/descentralizado numa tela estreita.
   Aqui reduzimos o padding lateral no mobile SEM mexer no desktop.
   ===================================================================== */
@media (max-width: 640px) {
  /* O container já afasta das bordas; não precisa de 24px aqui */
  .container {
    padding-left: var(--sp-4);   /* 16px */
    padding-right: var(--sp-4);
  }

  /* A .t-body quase não precisa de padding lateral (quem afasta das bordas é
     o .container); um respiro de 10px evita que o card cole demais. */
  .t-body {
    padding: var(--sp-5) 10px;   /* 20px topo/baixo, 10px nas laterais */
    gap: var(--sp-5);
  }

  /* O card interno mantém um padding lateral enxuto (o respiro do conteúdo
     vem daqui agora, não do empilhamento). */
  .t-body .card,
  .ranking-card {
    padding: var(--sp-5) var(--sp-4);   /* 20px topo/baixo, 16px lados */
  }
}

/* Telas bem estreitas (≤380px, edge-to-edge): aperta mais um pouco */
@media (max-width: 380px) {
  .container {
    padding-left: var(--sp-3);   /* 12px */
    padding-right: var(--sp-3);
  }
  .t-body .card,
  .ranking-card {
    padding: var(--sp-4) var(--sp-3);   /* 16px/12px */
  }
}

/* =====================================================================
   Pontuação por espécie no card "Espécies permitidas"
   Exibida quando o torneio pontua por peixe. Destaque próprio (não é um
   extra neutro): positivo em cor de destaque, negativo em vermelho
   (penalidade). Texto SÓLIDO, sem outline. Mobile-first.
   ===================================================================== */
.species-chip-points {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.species-chip-points.is-positive {
  color: var(--c-success);
  background: var(--c-success-bg);
}
.species-chip-points.is-negative {
  color: var(--c-danger);
  background: var(--c-danger-bg);
}
.species-chip-points.is-zero {
  color: var(--c-text-soft);
  background: var(--c-surface-2, #f1f5f9);
}

/* =====================================================================
   Mídia de vídeo nos rankings (Problema 2)
   - Thumb de vídeo clicável (modal individual/equipe + maior/menor captura)
   - Overlay de "play"; poster quando disponível, senão placeholder
   - Vídeo no lightbox (carregado sob demanda, ao abrir)
   ===================================================================== */

/* --- Thumb de vídeo no MODAL (ranking individual/equipe) --- */
.rk-catch-thumb-video .rk-video-ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.12), transparent 60%),
    var(--c-deep, #0f172a);
}
.rk-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.rk-thumb-play .rk-play-icon { opacity: .95; }

/* --- Botão de thumb nos rankings de MAIOR/MENOR captura --- */
.biggest-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--c-surface-2);
  cursor: pointer;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.biggest-thumb-btn:hover,
.biggest-thumb-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--c-primary, #7E1418);
  outline: none;
}
.biggest-thumb-video-btn {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.12), transparent 60%),
    var(--c-deep, #0f172a);
}
.biggest-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}

/* --- Vídeo dentro do lightbox --- */
.rk-lightbox-video .rk-lightbox-dialog { max-width: min(920px, 94vw); }
.rk-lightbox-video-el {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: var(--r-md, 10px);
  background: #000;
}

/* Placeholder de vídeo "peixe + play em anel" (quando não há poster).
   Reutilizado no grid de maior/menor captura e no modal individual/equipe. */
.rk-fishplay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rk-fishplay svg { width: 66%; height: 66%; display: block; }

/* Campos de camiseta (cadastro / inscrição / perfil) */
.shirt-fields .form-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  color: var(--c-text, #1f2937);
}
.shirt-warning {
  margin-top: .5rem;
  padding: .7rem .85rem;
  border-radius: var(--r-sm, 8px);
  background: var(--c-amber-soft, #fef6e0);
  border: 1px solid var(--c-amber, #e6b800);
  color: var(--c-text, #4a3d00);
  font-size: .85rem;
  line-height: 1.45;
}

/* Balanço de camisetas (aba admin) */
.shirt-balance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.shirt-balance-summary .stat-pill {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .5rem .9rem;
  border-radius: var(--r-sm, 8px);
  background: var(--c-surface-2, #f1f5f9);
  min-width: 110px;
}
.shirt-balance-summary .stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-text-muted, #64748b);
}
.shirt-balance-summary .stat-value { font-size: 1.35rem; font-weight: 700; }
.shirt-balance-summary .text-warning { color: var(--c-amber-dark, #b45309); }

/* Resumo do que o perfil já tem de camiseta (acima dos campos) */
.shirt-current {
  margin-bottom: 1rem;
  padding: .7rem .85rem;
  border-radius: var(--r-sm, 8px);
  background: var(--c-azul-soft, #eaf2fb);
  border: 1px solid var(--c-azul, #AFCDEB);
  color: var(--c-text, #1f3a52);
  font-size: .88rem;
  line-height: 1.5;
}
