/* =====================================================
   Caxias Mais Esporte — Design v6 (Estádio)
   Identidade esportiva moderna · público · confiável
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
    /* Brand · azul Caxias profundo + amarelo de torcida + laranja energia */
    --ink:            #0b1530;
    --ink-strong:     #050b1c;
    --ink-2:          #1a2a55;

    --brand:          #1656d6;
    --brand-dark:     #0e3aa3;
    --brand-darker:   #0b1f60;
    --brand-bright:   #2d7bff;
    --brand-50:       #eef4ff;
    --brand-100:      #d8e6ff;

    --energy:         #ff6a13;     /* laranja Caxias */
    --energy-dark:    #d04a00;
    --energy-50:      #fff2e8;

    --gold:           #ffc628;     /* amarelo torcida */
    --gold-dark:      #e0a900;
    --gold-50:        #fff7d6;

    --turf:           #1aa66e;     /* verde campo p/ sucesso */
    --turf-50:        #e8faf2;
    --whistle:        #d12c2c;     /* vermelho árbitro */
    --whistle-50:     #fdecec;

    /* Texto / superfície */
    --text:           #0f1729;
    --text-soft:      #404a63;
    --text-muted:     #6b7691;
    --text-faint:     #9aa3bb;

    --line:           #e4e8f0;
    --line-strong:    #cfd6e4;
    --surface:        #ffffff;
    --surface-soft:   #f6f8fc;
    --bg:             #f1f4fa;

    /* Forma + ritmo */
    --r-xs: 6px;
    --r-sm: 10px;
    --r:    14px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-pill: 999px;

    --shadow-1: 0 1px 2px rgba(11, 21, 48, .04), 0 2px 6px rgba(11, 21, 48, .04);
    --shadow-2: 0 4px 14px rgba(11, 21, 48, .06), 0 12px 32px rgba(11, 21, 48, .06);
    --shadow-3: 0 12px 32px rgba(11, 21, 48, .12), 0 24px 64px rgba(11, 21, 48, .08);
    --shadow-brand:  0 14px 32px rgba(22, 86, 214, .28);
    --shadow-energy: 0 14px 32px rgba(255, 106, 19, .32);

    --t: 220ms cubic-bezier(.2,.7,.2,1);
}

/* ========== Reset / base ========== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--t);
}
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    font-family: 'Archivo', 'Inter', sans-serif;
    color: var(--ink-strong);
    margin: 0 0 .5em;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.12;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; color: var(--text-soft); }
p.lead { font-size: 1.06rem; color: var(--text); }
small { font-size: .86rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }

::selection { background: var(--gold); color: var(--ink-strong); }

.icon, .material-symbols-outlined, .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal; font-style: normal;
    font-size: 1.1em; line-height: 1;
    display: inline-block;
    vertical-align: -0.225em;
    -webkit-font-feature-settings: 'liga';
    user-select: none;
    font-variation-settings: 'opsz' 24, 'wght' 500, 'FILL' 0, 'GRAD' 0;
}
.icon-fill { font-variation-settings: 'opsz' 24, 'wght' 600, 'FILL' 1, 'GRAD' 0; }

/* ========== Topbar ========== */

.topbar {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-nav { min-width: 0; flex-wrap: wrap; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink-strong);
}
.brand:hover { color: var(--ink-strong); text-decoration: none; }
.brand img {
    height: 38px;
    width: auto;
    max-width: 170px;
    display: block;
    object-fit: contain;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ========== Hero ========== */

.hero {
    position: relative;
    padding: clamp(72px, 10vw, 124px) clamp(32px, 6vw, 80px) clamp(96px, 12vw, 160px);
    color: white;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(255, 198, 40, 0.18), transparent 60%),
        radial-gradient(80% 70% at 0% 100%, rgba(45, 123, 255, 0.45), transparent 65%),
        linear-gradient(160deg, var(--ink-strong) 0%, var(--brand-darker) 60%, var(--brand-dark) 100%);
}

/* mesh sutil de pontos */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Bola gigante difusa no canto */
.hero::after {
    content: "";
    position: absolute;
    right: -160px; top: -180px;
    width: 540px; height: 540px;
    background: conic-gradient(from 220deg at 50% 50%, rgba(255, 198, 40, .55), rgba(255, 106, 19, .45), rgba(45, 123, 255, .4), rgba(255, 198, 40, .55));
    filter: blur(80px);
    border-radius: 50%;
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-strong);
    background: var(--gold);
    padding: 8px 16px 8px 12px;
    border-radius: var(--r-pill);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 28px rgba(255, 198, 40, .35);
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--whistle);
    box-shadow: 0 0 0 4px rgba(209, 44, 44, .25);
    animation: pulse 1.4s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(.7); opacity: .55; }
}

.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    margin: 0 0 22px;
    color: white;
    letter-spacing: -0.015em;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    overflow: visible;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 900;
    display: inline-block;
    padding-right: 0.18em;       /* respira o overhang do R italic */
    margin-right: -0.05em;       /* compensa visualmente para não soltar do texto */
    background: linear-gradient(180deg, var(--gold) 60%, #ffe88a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.sub {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 44px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon {
    color: var(--gold);
    background: rgba(255, 198, 40, 0.14);
    border-radius: 50%;
    padding: 6px;
    font-size: 18px;
}

/* divisória diagonal substituída por curva suave */
.hero-bottom {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 70px;
    background: var(--bg);
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1;
}

/* ========== Section / Container ========== */

.container        { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px;  margin: 0 auto; padding: 0 28px; }

.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-pull { margin-top: -56px; position: relative; z-index: 5; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--energy-dark);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    padding: 6px 14px;
    background: var(--energy-50);
    border-radius: var(--r-pill);
}
.section-head .kicker::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--energy);
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { max-width: 580px; margin: 0 auto; color: var(--text-soft); }

/* ========== Path cards ========== */

.paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.path-card {
    --c1: var(--brand);
    --c2: var(--brand-bright);
    --c-soft: var(--brand-50);
    --c-100:  var(--brand-100);

    position: relative;
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 36px 32px 30px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
    min-height: 230px;
}
.path-card.accent {
    --c1: var(--energy);
    --c2: #ffa566;
    --c-soft: var(--energy-50);
    --c-100:  #ffd6b3;
}

/* faixa colorida no topo */
.path-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--c1) 0%, var(--c2) 100%);
}
/* nº gigante decorativo */
.path-card .big-num {
    position: absolute;
    top: 14px; right: 22px;
    font-family: 'Anton', 'Archivo', sans-serif;
    font-size: 8rem;
    color: var(--c-soft);
    line-height: 1;
    pointer-events: none;
    transition: color var(--t), transform var(--t);
    letter-spacing: -0.04em;
    z-index: 0;
}

.path-card:hover {
    transform: translateY(-6px);
    border-color: var(--c1);
    box-shadow: 0 24px 48px rgba(11, 21, 48, .14);
    color: var(--text);
    text-decoration: none;
}
.path-card:hover .big-num { color: var(--c-100); transform: scale(1.04) rotate(-3deg); }

.path-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    color: white;
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 22px;
    position: relative; z-index: 1;
    box-shadow: 0 10px 22px rgba(22, 86, 214, .25);
}
.path-card.accent .path-icon { box-shadow: 0 10px 22px rgba(255, 106, 19, .3); }
.path-icon .icon { font-size: 28px; }

.path-card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative; z-index: 1;
    color: var(--ink-strong);
    letter-spacing: -0.015em;
}
.path-card p {
    margin: 0 0 22px;
    position: relative; z-index: 1;
    color: var(--text-soft);
    font-size: 0.96rem;
}
.path-card .arrow {
    margin-top: auto;
    align-self: flex-start;
    color: var(--c1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.84rem;
    display: inline-flex; align-items: center; gap: 6px;
    position: relative; z-index: 1;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--c-soft);
    transition: gap var(--t), background var(--t), color var(--t);
}
.path-card:hover .arrow { gap: 12px; background: var(--c1); color: white; }

/* ========== Steps ========== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 36px 0;
}

.step-item {
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
}
.step-item:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}
.step-item .num {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: 6px;
}
.step-item:nth-child(2) .num { color: var(--energy); }
.step-item:nth-child(3) .num { color: var(--brand-bright); }
.step-item:nth-child(4) .num { color: var(--gold-dark); }
.step-item .lbl {
    margin-top: 4px;
    font-weight: 800;
    color: var(--ink-strong);
    font-size: 1rem;
    font-family: 'Archivo', sans-serif;
}
.step-item .desc {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ========== Card ========== */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: clamp(28px, 4.5vw, 44px);
    box-shadow: var(--shadow-1);
}

/* ========== Page head ========== */

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.1rem); }
.page-head p  { margin: 0; }

.crumbs {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.crumbs .icon { font-size: 16px; }

/* ========== Form Sections ========== */

fieldset.form-section {
    border: 0;
    padding: 0;
    margin: 0 0 32px;
}
.form-section + .form-section {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    margin-top: 32px;
}
.form-section legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Archivo', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--ink-strong);
    margin-bottom: 8px;
    width: 100%;
    letter-spacing: -0.01em;
}
.form-section .step-num {
    width: 38px; height: 38px;
    border-radius: 12px;
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    line-height: 38px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    flex: none;
    box-shadow: 0 8px 18px rgba(22, 86, 214, .28);
    letter-spacing: 0.02em;
}
.form-section legend + p {
    margin: 6px 0 22px 52px;
    font-size: 0.94rem;
    color: var(--text-soft);
}
@media (max-width: 600px) {
    .form-section legend + p { margin-left: 0; }
}

/* ========== Grid + Field ========== */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 22px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field > label {
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.86rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.field > label .req { color: var(--energy); margin-left: 2px; font-weight: 800; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"],
.field input[type="url"],
.field input[type="search"],
.field select,
.field textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 0.96rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    width: 100%;
    line-height: 1.4;
    box-sizing: border-box;
    min-height: 44px;
}

/* datetime-local tem altura interna diferente em alguns browsers — força paridade */
.field input[type="datetime-local"],
.field input[type="date"],
.field input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    color-scheme: light;
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
    padding: 2px;
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.field input:hover:not(:focus):not(:disabled),
.field select:hover:not(:focus):not(:disabled),
.field textarea:hover:not(:focus):not(:disabled) {
    border-color: var(--line-strong);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 86, 214, .14);
    background: white;
}
.field input.invalid, .field select.invalid {
    border-color: var(--whistle);
    background: var(--whistle-50);
}
.field input:disabled, .field select:disabled {
    background: var(--surface-soft);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== Campo de data digitável + botão calendário ===== */
.date-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}
.date-input-wrap > input.date-input {
    flex: 1;
    padding-right: 48px; /* espaço pro botão dentro do input */
}
.date-input-picker {
    position: absolute;
    inset: 0;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
    border: 0; padding: 0; margin: 0;
    /* o picker fica invisível mas funcional (showPicker abre o calendário nativo) */
}
.date-input-btn {
    position: absolute;
    right: 4px; top: 50%; transform: translateY(-50%);
    background: transparent;
    border: 0;
    border-radius: var(--r-xs, 6px);
    color: var(--brand);
    cursor: pointer;
    padding: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--t), color var(--t);
}
.date-input-btn:hover {
    background: var(--brand-50);
}
.date-input-btn .icon { font-size: 22px; }
.date-input-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.field .help {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.field .help.help-blue { color: var(--brand); font-weight: 600; }
.field .help.help-orange { color: var(--energy-dark); font-weight: 600; }

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231656d6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Bloco de agendamento (datetime-local com destaque visual) */
.schedule-block {
    margin-top: 20px;
    background: linear-gradient(180deg, var(--brand-50,#eef4ff), white 80%);
    border: 1px solid var(--brand-30, #cfe0ff);
    border-radius: var(--r-md);
    padding: 18px 18px 14px;
}
.schedule-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--brand-30, #cfe0ff);
}
.schedule-head .icon {
    width: 36px; height: 36px;
    background: var(--brand);
    color: white;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.schedule-head strong {
    display: block;
    color: var(--ink-strong);
    font-size: 1rem;
    line-height: 1.2;
}
.schedule-head .schedule-sub {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.schedule-block .field input[type="datetime-local"] {
    background: white;
}
.schedule-hint {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--r-sm);
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex; gap: 8px; align-items: flex-start;
}
.schedule-hint .icon { font-size: 16px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.schedule-hint em { font-style: normal; font-weight: 700; color: var(--ink-strong); }

/* Check rows */
.check-row {
    display: flex; gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    cursor: pointer;
    transition: all var(--t);
}
.check-row:hover { border-color: var(--brand); background: var(--brand-50); }
.check-row:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

.check-row input[type="checkbox"], .check-row input[type="radio"] {
    width: 20px; height: 20px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--brand);
    cursor: pointer;
}
.check-row label, .check-row > div { font-size: 0.94rem; cursor: pointer; flex: 1; }
.check-row strong { display: block; color: var(--ink-strong); font-weight: 700; margin-bottom: 2px; }
.check-row small { color: var(--text-muted); }

.checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

/* Pill-group para radios */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label {
    padding: 10px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all var(--t);
    background: var(--surface);
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}
.pill-group label:hover { border-color: var(--brand); color: var(--brand); }
.pill-group input:checked + label, .pill-group label.checked {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 6px 14px rgba(22, 86, 214, .28);
}

/* ========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.94rem;
    font-weight: 700;
    border: 1.5px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    line-height: 1.2;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn .icon { font-size: 1.18em; }

.btn-primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: white;
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

.btn-accent { background: var(--energy); color: white; border-color: var(--energy); }
.btn-accent:hover {
    background: var(--energy-dark);
    border-color: var(--energy-dark);
    color: white;
    box-shadow: var(--shadow-energy);
    transform: translateY(-1px);
}

.btn-white { background: white; color: var(--ink-strong); border-color: white; }
.btn-white:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-strong);
    box-shadow: 0 12px 26px rgba(255, 198, 40, .35);
    transform: translateY(-1px);
}

.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--brand-50); color: var(--brand-dark); border-color: var(--brand); }

.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { background: var(--whistle); color: white; border-color: var(--whistle); }
.btn-danger:hover { background: #a01f1f; border-color: #a01f1f; color: white; }

/* Zona de exclusão (área vermelha de "danger zone" em edits) */
.danger-zone {
    background: var(--whistle-50, #fef2f2);
    border: 1.5px solid #f7c1c1;
    border-radius: var(--r-md);
    padding: 22px 24px;
}
.danger-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #f7c1c1;
}
.danger-head .icon {
    width: 40px; height: 40px;
    background: var(--whistle);
    color: white;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.danger-head strong {
    display: block;
    color: var(--whistle);
    font-size: 1.06rem;
    line-height: 1.2;
}
.danger-head .muted { font-size: 0.86rem; }

.danger-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.danger-stats > div {
    background: white;
    border: 1px solid #f7c1c1;
    border-radius: var(--r-sm);
    padding: 14px;
    text-align: center;
}
.danger-stats .num {
    font-family: 'Anton','Archivo',sans-serif;
    font-size: 2rem;
    color: var(--whistle);
    display: block;
    line-height: 1;
}
.danger-stats > div span {
    display: block;
    font-size: 0.86rem;
    color: var(--text-soft);
    margin-top: 4px;
}
.danger-text {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.5;
}
.danger-check {
    background: white;
    border: 1.5px solid #f7c1c1;
}
.danger-check:has(input:checked) {
    border-color: var(--whistle);
    background: var(--whistle-50);
}

/* Botão só com ícone (usado em tabelas pra deletar linha individual) */
.btn-icon {
    padding: 7px 9px;
    min-width: 0;
    line-height: 1;
}
.btn-icon .icon { font-size: 18px; }

/* Variante danger discreta — só fica vermelha no hover */
.btn-danger-ghost {
    background: transparent;
    color: var(--whistle);
    border: 1px solid transparent;
}
.btn-danger-ghost:hover {
    background: var(--whistle-50);
    color: var(--whistle);
    border-color: var(--whistle);
}

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-xl { padding: 17px 34px; font-size: 1.08rem; }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; gap: 6px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.right { justify-content: flex-end; }

/* ========== Termo accordion ========== */

.termo-accordion {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 18px;
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
}
.termo-accordion[open] {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 86, 214, .08);
}
.termo-accordion summary {
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; gap: 12px;
    font-weight: 700;
    color: var(--brand);
    transition: background var(--t);
    font-size: 0.94rem;
}
.termo-accordion summary::-webkit-details-marker { display: none; }
.termo-accordion summary::marker { display: none; }
.termo-accordion summary:hover { background: var(--brand-50); }
.termo-accordion summary .chev { margin-left: auto; transition: transform var(--t); }
.termo-accordion[open] summary .chev { transform: rotate(180deg); }
.termo-accordion .content {
    padding: 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.65;
}
.termo-accordion .content p { margin-bottom: 12px; }
.termo-accordion .content p:last-child { margin-bottom: 0; }

/* ========== Alerts ========== */

.alert {
    padding: 14px 18px;
    border-radius: var(--r);
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 0.95rem;
    display: flex; gap: 12px;
    align-items: flex-start;
    box-shadow: var(--shadow-1);
}
.alert .icon { font-size: 22px; flex: none; margin-top: 1px; }
.alert-ok   { background: var(--turf-50); color: var(--turf); border-color: #b6e9d2; }
.alert-err  { background: var(--whistle-50); color: var(--whistle); border-color: #f7c1c1; }
.alert-warn { background: var(--gold-50); color: #8a6a00; border-color: #ffe58a; }

/* ========== Atletas dinâmico ========== */

.atletas-list { display: flex; flex-direction: column; gap: 14px; }

.atleta-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 22px 18px;
    position: relative;
    transition: all var(--t);
    border-left: 5px solid var(--brand);
}
.atleta-card:hover { border-color: var(--line-strong); border-left-color: var(--brand); }
.atleta-card.captain {
    border-left-color: var(--energy);
    background: linear-gradient(90deg, var(--energy-50) 0%, var(--surface) 60%);
}

.atleta-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
}
.atleta-num {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-size: 2.1rem;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: 34px;
}
.atleta-card.captain .atleta-num { color: var(--energy); }

.atleta-head h4 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.atleta-head .captain-tag {
    margin-left: 6px;
    font-size: 0.7rem;
    background: var(--energy);
    color: white;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.remove-athlete {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--t);
}
.remove-athlete:hover { background: var(--whistle-50); color: var(--whistle); }
.remove-athlete .icon { font-size: 20px; }

.add-athlete {
    width: 100%;
    padding: 18px;
    border: 2px dashed var(--brand);
    background: var(--brand-50);
    color: var(--brand);
    border-radius: var(--r);
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    transition: all var(--t);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.add-athlete:hover {
    background: var(--brand);
    color: white;
    border-style: solid;
    box-shadow: var(--shadow-brand);
}
.add-athlete .icon { font-size: 22px; }

.athletes-counter {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}
.athletes-counter strong { color: var(--brand); font-weight: 800; font-size: 1.05rem; }

/* ========== Sucesso ========== */

.success-card { text-align: center; padding: clamp(40px, 6vw, 64px); }

.success-icon {
    width: 92px; height: 92px;
    background: radial-gradient(circle at 30% 30%, #4ed193, var(--turf));
    color: white;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 26px;
    box-shadow: 0 16px 40px rgba(26, 166, 110, .35), inset 0 -4px 12px rgba(0, 0, 0, .12);
    position: relative;
}
.success-icon::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(26, 166, 110, .4);
    animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-icon .icon { font-size: 50px; position: relative; z-index: 1; }

.protocol {
    display: inline-flex; align-items: center; gap: 18px;
    margin: 26px 0;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--ink-strong) 0%, var(--brand-darker) 100%);
    border-radius: var(--r-md);
    color: white;
    box-shadow: var(--shadow-brand);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.protocol .num {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--gold);
}
.protocol .lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.78;
    font-weight: 700;
    margin-bottom: 2px;
}

.next-steps {
    display: grid; gap: 14px;
    margin: 26px 0;
    text-align: left;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.next-step {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 18px 20px;
    border-radius: var(--r);
    border-left: 4px solid var(--brand);
    display: flex; gap: 14px;
    align-items: flex-start;
    transition: all var(--t);
}
.next-step:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.next-step .icon {
    color: var(--brand);
    background: var(--brand-50);
    padding: 8px;
    border-radius: 10px;
    font-size: 22px;
    flex: none;
}
.next-step strong {
    display: block; margin-bottom: 3px;
    color: var(--ink-strong); font-weight: 700;
    font-size: 0.94rem;
}
.next-step span { font-size: 0.88rem; color: var(--text-soft); }

/* ========== Footer ========== */

.footer {
    padding: 44px 28px 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    background: var(--ink-strong);
    margin-top: 80px;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 28%, var(--energy) 60%, var(--gold) 100%);
}
.footer a { color: var(--gold); font-weight: 600; }
.footer a:hover { color: #ffe88a; }
.footer p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.footer-mark {
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
}

.footer-admin {
    margin-top: 18px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-admin a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t);
}
.footer-admin a:hover { color: var(--gold) !important; text-decoration: none; }
.footer-admin a .icon { font-size: 16px; }

/* ========== Install / Seed ========== */

.install-page {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 106, 19, 0.14), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(22, 86, 214, 0.14), transparent 60%),
        var(--bg);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 28px;
}
.install-card {
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 40px;
    box-shadow: var(--shadow-2);
    max-width: 620px;
    width: 100%;
    border-top: 6px solid var(--brand);
}
.install-card h1 { margin-bottom: 6px; }
.install-list { list-style: none; padding: 0; margin: 20px 0; }
.install-list li {
    padding: 13px 16px;
    border-radius: var(--r);
    margin-bottom: 8px;
    border-left: 4px solid;
    background: var(--surface-soft);
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.94rem;
}
.install-list li .icon { font-size: 22px; flex: none; }
.install-list li.ok   { border-color: var(--turf); }
.install-list li.ok .icon { color: var(--turf); }
.install-list li.err  { border-color: var(--whistle); background: var(--whistle-50); }
.install-list li.err .icon { color: var(--whistle); }
.install-list li.warn { border-color: var(--gold-dark); background: var(--gold-50); }
.install-list li.warn .icon { color: var(--gold-dark); }

/* ========== ADMIN ========== */

.admin-body { background: var(--bg); min-height: 100vh; }

.admin-nav {
    background: var(--ink-strong);
    padding: 0 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    position: sticky; top: 0; z-index: 50;
}
.admin-nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--energy) 0%, var(--gold) 50%, var(--brand-bright) 100%);
}

.admin-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
}

.admin-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    color: white;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.92rem;
    font-family: 'Archivo', sans-serif;
    flex-shrink: 0;
}
.admin-brand:hover { text-decoration: none; color: white; }
.admin-brand img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* As abas ocupam o espaço sobrando e rolam horizontalmente se necessário. */
.admin-tabs {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-self: stretch;
}
.admin-tabs::-webkit-scrollbar { height: 0; display: none; }
.admin-tabs a {
    padding: 18px 14px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 7px;
    transition: color var(--t), border-color var(--t);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}
.admin-tabs a:hover { color: white; text-decoration: none; }
.admin-tabs a.active { color: white; border-bottom-color: var(--gold); }
.admin-tabs a.active .icon { color: var(--gold); }

/* Mantido pra retrocompat com markups que ainda usam — agora é no-op */
.admin-spacer { display: none; }

.admin-user {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    padding: 12px 0;
    font-weight: 600;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 14px;
    margin-left: 4px;
}
.admin-user > span:not(.icon) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-user > .icon { font-size: 18px; opacity: 0.7; }
.admin-user a {
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 8px;
    transition: background var(--t), color var(--t);
    display: inline-flex; align-items: center; justify-content: center;
}
.admin-user a:hover { background: rgba(255, 255, 255, 0.12); color: white; text-decoration: none; }

.admin-main { max-width: 1280px; margin: 0 auto; padding: 36px 28px; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat {
    background: var(--surface);
    padding: 22px 24px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 4px;
    position: relative;
    overflow: hidden;
    transition: all var(--t);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
}
.stat.accent { border-top-color: var(--energy); }
.stat.cyan   { border-top-color: var(--brand-bright); }
.stat.yellow { border-top-color: var(--gold-dark); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.stat .num {
    font-family: 'Anton', 'Archivo', sans-serif;
    font-size: 2.8rem;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat.accent .num { color: var(--energy); }
.stat.cyan .num   { color: var(--brand-bright); }
.stat.yellow .num { color: var(--gold-dark); }
.stat .lbl {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.stat .ico { position: absolute; top: 18px; right: 18px; }
.stat .ico .icon { font-size: 40px; opacity: 0.12; color: var(--brand); }
.stat.accent .ico .icon { color: var(--energy); }
.stat.cyan .ico .icon   { color: var(--brand-bright); }
.stat.yellow .ico .icon { color: var(--gold-dark); }

/* Toolbar */
.toolbar {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    box-shadow: var(--shadow-1);
}
.toolbar .search { flex: 1 1 240px; position: relative; }
.toolbar .search .icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 18px;
    pointer-events: none;
}
.toolbar .search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--text);
}
.toolbar .search input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 86, 214, .12);
}
.toolbar select {
    padding: 11px 38px 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-family: inherit;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231656d6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: var(--surface);
    font-size: 0.92rem;
    font-weight: 500;
    min-height: 44px;
}

/* Range de datas dentro da toolbar (De → Até) */
.toolbar-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 14px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    height: 44px;
    transition: border-color var(--t), box-shadow var(--t);
}
.toolbar-range:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 86, 214, .12);
}
.toolbar-range .label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.toolbar-range .label .icon { font-size: 16px; color: var(--brand); }
.toolbar-range input[type="date"] {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    min-height: 0;
    min-width: 124px;
    color-scheme: light;
}
.toolbar-range input[type="date"]:focus { box-shadow: none; outline: none; }
.toolbar-range input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.55; cursor: pointer; padding: 2px;
}
.toolbar-range input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.toolbar-range .sep {
    color: var(--text-faint);
    font-weight: 700;
    user-select: none;
}
@media (max-width: 760px) {
    .toolbar-range {
        width: 100%;
        justify-content: space-between;
    }
    .toolbar-range input[type="date"] { min-width: 0; flex: 1; }
}

/* Tables */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    overflow-x: auto;
}
table.list { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.list th, table.list td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.list th {
    background: var(--ink-strong);
    color: white;
    font-weight: 800;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Archivo', sans-serif;
}
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: var(--brand-50); }
table.list tbody tr { transition: background var(--t); }

.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tag .icon { font-size: 14px; }
.tag-primary { background: var(--brand); color: white; }
.tag-accent  { background: var(--energy); color: white; }
.tag-success { background: var(--turf); color: white; }
.tag-warn    { background: var(--gold-dark); color: white; }
.tag-muted   { background: var(--text-faint); color: white; }
.tag-cyan    { background: var(--brand-bright); color: white; }

.empty { padding: 72px 20px; text-align: center; color: var(--text-muted); }
.empty .icon-big {
    width: 84px; height: 84px;
    margin: 0 auto 16px;
    background: var(--brand-50);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.empty .icon-big .icon { font-size: 42px; }
.empty h3 { margin-bottom: 6px; color: var(--ink-strong); }

/* Detail */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 24px;
    margin: 16px 0;
}
.detail-item { padding: 4px 0; }
.detail-item .lbl {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    font-weight: 800;
}
.detail-item .val {
    color: var(--ink-strong);
    font-weight: 600;
    word-wrap: break-word;
    font-size: 0.96rem;
}
.detail-item .val.empty-val { color: var(--text-faint); font-weight: 400; }

.detail-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 26px;
    margin-bottom: 16px;
    border-left: 5px solid var(--brand);
    box-shadow: var(--shadow-1);
}
.detail-section.accent { border-left-color: var(--energy); }
.detail-section h3 {
    margin: 0 0 16px;
    color: var(--ink-strong);
    font-size: 1.06rem;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Archivo', sans-serif;
}
.detail-section h3 .icon {
    color: var(--brand);
    font-size: 24px;
    background: var(--brand-50);
    padding: 6px;
    border-radius: 8px;
}
.detail-section.accent h3 .icon { color: var(--energy); background: var(--energy-50); }

.athletes-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.athletes-table th, .athletes-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.athletes-table th {
    background: var(--surface-soft);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: 'Archivo', sans-serif;
}
.athletes-table tr:last-child td { border-bottom: 0; }

/* Login */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at top right, rgba(255, 106, 19, 0.32), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(45, 123, 255, 0.36), transparent 55%),
        linear-gradient(135deg, var(--ink-strong) 0%, var(--brand-darker) 100%);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.login-wrap::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.login-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 40px;
    box-shadow: var(--shadow-3);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    border-top: 6px solid var(--energy);
}
.login-card .login-logo {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 22px;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card .sub { color: var(--text-muted); margin-bottom: 24px; font-size: 0.94rem; }

/* ========== Helpers ========== */

.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

.callout {
    background: var(--brand-50);
    border-left: 4px solid var(--brand);
    padding: 16px 18px;
    border-radius: var(--r-sm);
    color: var(--brand-darker);
    font-size: 0.94rem;
    margin: 16px 0;
    display: flex; gap: 12px;
    align-items: flex-start;
}
.callout .icon { color: var(--brand); font-size: 22px; flex: none; }

.event-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    box-shadow: var(--shadow-1);
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 22px;
}
.event-strip > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.event-strip .icon {
    color: var(--brand);
    background: var(--brand-50);
    border-radius: 50%;
    padding: 5px;
    font-size: 18px;
}
.event-strip strong { color: var(--ink-strong); font-weight: 700; }

/* ========== Responsivo ========== */

@media (max-width: 720px) {
    .grid { grid-template-columns: 1fr; }
    .container, .container-narrow { padding: 0 18px; }
    .admin-main { padding: 22px 18px; }
    .topbar-inner { padding: 12px 18px; gap: 10px; }
    .topbar-actions .btn-accent { display: none; } /* já tem CTA grande no menu mobile */
    .topbar-actions .btn { padding: 8px 12px; font-size: 0.84rem; }
    .topbar-actions .btn .lbl { display: none; }
    .admin-tabs a { padding: 14px 10px; font-size: 0.78rem; gap: 5px; }
    .admin-user { font-size: 0.82rem; padding-left: 10px; }
    .admin-user > span:not(.icon) { display: none; } /* só ícones + ações no mobile */
    .admin-brand { font-size: 0; gap: 0; } /* mantém só a logo no mobile */
    .admin-brand img { height: 28px; max-width: 110px; }
    .stat .num { font-size: 2.2rem; }
    .actions-cell { justify-content: flex-start; }
    .path-card .big-num { font-size: 5.5rem; right: 10px; }
    .brand img { height: 32px; max-width: 140px; }

    /* Hero do portal mais compacto */
    .portal-hero { padding: 36px 18px 48px; }
    .portal-hero-text h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .portal-hero-text p.sub { font-size: 0.96rem; }
    .portal-hero-text .cta-row {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .portal-hero-text .cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    /* Page-head e hero antigo */
    .page-head h1 { font-size: 1.5rem; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

    /* Section-row (título + "ver tudo") */
    .section-row { gap: 8px; }
    .section-row h2 { font-size: clamp(1.25rem, 5vw, 1.6rem); width: 100%; }
    .section-row .more { width: 100%; justify-content: flex-start; padding-top: 4px; }

    /* Calendário */
    .day-group { margin-bottom: 22px; }
    .day-header .num { font-size: 1.9rem; }
    .day-header .lbl strong { font-size: 0.94rem; }
    .matches-grid { grid-template-columns: 1fr; gap: 10px; }
    .match-card .score { font-size: 1.25rem; padding: 6px 10px; }
    .match-card .team .name { font-size: 0.95rem; }

    /* Standings — tabela com scroll horizontal */
    .standings { overflow-x: auto; }
    .standings table { min-width: 540px; }

    /* Listagens públicas */
    .list-toolbar { padding: 12px 14px; gap: 8px; }
    .list-toolbar select, .list-toolbar input[type="search"] { width: 100%; min-width: 0; }
    .list-toolbar input[type="search"] { min-width: 0; }
    .list-toolbar .btn { width: 100%; justify-content: center; }
    .toolbar-label { width: 100%; }

    /* Article hero (notícia/competição) */
    .article-hero { aspect-ratio: 4 / 5; max-height: none; }
    .article-hero .inner { padding: 24px 18px; }
    .article-hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
    .article-body { padding: 36px 18px; font-size: 1rem; }

    /* Form sections */
    .form-section legend { font-size: 1rem; gap: 10px; }
    .form-section .step-num { width: 30px; height: 30px; line-height: 30px; font-size: 1.15rem; }
    .form-section legend + p { margin: 6px 0 18px 0; }

    /* Card padding mais enxuto */
    .card { padding: 22px 18px; }

    /* Footer realização */
    .footer-realizacao { padding: 28px 18px; }
    .footer-realizacao .inner { gap: 22px 36px; }
    .footer-realizacao img { max-height: 48px; }

    /* Admin mobile: tabela com scroll */
    .table-wrap { overflow-x: auto; }
    table.list { min-width: 640px; }
    .toolbar { gap: 8px; padding: 10px 12px; }
    .toolbar .search { flex: 1 1 100%; }
    .toolbar select { flex: 1 1 100%; }

    /* CTA banner */
    .cta-banner { padding: 28px 22px; border-radius: var(--r-md); }
    .cta-banner h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }

    /* Path cards */
    .paths { gap: 12px; }
    .path-card { padding: 24px 22px; min-height: 200px; }

    /* Steps */
    .steps { grid-template-columns: 1fr; gap: 10px; }
}

/* Telas bem pequenas — 420px */
@media (max-width: 420px) {
    .portal-hero-text .cta-row .btn { width: 100%; }
    .article-hero .meta { font-size: 0.82rem; gap: 6px 14px; }
    .article-hero .meta span { gap: 4px; }
    .article-header h1 { font-size: clamp(1.4rem, 7vw, 1.8rem); }
    .article-header .meta { font-size: 0.84rem; gap: 6px 12px; }
    .news-grid { gap: 14px; }
    .comp-strip { gap: 14px; }
    .day-header .num { font-size: 1.7rem; }
}

/* Mais ajustes mobile global pra prevenir overflow e overlap */
@media (max-width: 720px) {
    .section { padding: 48px 0; }
    .section-tight { padding: 32px 0; }
    .section-pull { margin-top: -36px; }
    .section-head { margin-bottom: 28px; }

    /* Sticky topbar mais baixa */
    .topbar { z-index: 50; }
    .topbar-inner { gap: 8px; }
    .brand img { height: 30px; max-width: 130px; }

    /* Match-card no mobile — empilha com mais conforto */
    .match-card .head { padding: 9px 14px; font-size: 0.68rem; }
    .match-card .team-row { padding: 12px 14px; min-height: 44px; }
    .match-card .team-row .name { font-size: 0.94rem; }
    .match-card .team-row .score { font-size: 1.4rem; min-width: 32px; }
    .match-card .footer-info { padding: 8px 14px; font-size: 0.74rem; }

    /* Article body lê melhor */
    .article-body { font-size: 1rem; }
    .article-body p { margin-bottom: 1em; }
    .article-figure { margin-bottom: 24px; border-radius: var(--r); }
    .article-figure img { max-height: 360px; }

    /* Inscrições (form de atleta/equipe) */
    .topbar .topbar-actions .btn .icon { font-size: 1.2em; }

    /* Page-head e crumbs */
    .crumbs { font-size: 0.72rem; }

    /* Detail grid no admin */
    .detail-grid { grid-template-columns: 1fr; gap: 14px; }
    .detail-section { padding: 18px 18px; }
    .detail-section h3 { font-size: 0.96rem; }

    /* Section-row title em mobile */
    .section-row { margin-bottom: 16px; }
}

@media print {
    .topbar, .footer, .admin-nav, .toolbar, .btn, .actions-cell { display: none !important; }
    body { background: white; }
    .container, .admin-main { max-width: 100%; padding: 0; }
    .card, .detail-section { box-shadow: none; border: 0; }
}

/* ========== Animações ========== */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.atleta-card { animation: slideIn 0.28s ease-out; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease-out both; }

/* ==========================================================
   PORTAL — componentes do site público v2
   ========================================================== */

/* ---------- Top nav refinada (com menu) ---------- */

.topbar-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 12px;
}
.topbar-nav a {
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-soft);
    border-radius: var(--r-pill);
    transition: all var(--t);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.topbar-nav a:hover { color: var(--brand); background: var(--brand-50); }
.topbar-nav a.active { color: var(--brand-dark); background: var(--brand-50); }
.topbar-nav a .icon { font-size: 18px; }

.topbar-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    transition: background var(--t);
}
.topbar-toggle:hover { background: var(--brand-50); color: var(--brand); }
.topbar-toggle .icon { font-size: 28px; }

@media (max-width: 820px) {
    .topbar-nav { display: none !important; }
    .topbar-toggle { display: inline-flex !important; }
}

/* Menu mobile = overlay full-screen */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--surface);
    padding: 80px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: block; }
.mobile-menu::before {
    content: "Menu";
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-left: 14px;
}
.mobile-menu .mobile-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border: 0;
    background: var(--surface-soft);
    border-radius: 50%;
    color: var(--ink-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
}
.mobile-menu .mobile-close:hover { background: var(--brand-50); color: var(--brand); }
.mobile-menu .mobile-close .icon { font-size: 26px; }
.mobile-menu .mobile-brand {
    position: absolute;
    top: 22px; left: 24px;
}
.mobile-menu .mobile-brand img { height: 32px; max-width: 140px; }

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink-strong);
    border-radius: var(--r);
    text-decoration: none;
    transition: all var(--t);
    border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a .icon {
    color: var(--brand);
    font-size: 22px;
    background: var(--brand-50);
    padding: 6px;
    border-radius: 8px;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--brand-50); color: var(--brand-dark); }
.mobile-menu a.active .icon { background: var(--brand); color: white; }
.mobile-menu .mobile-cta {
    margin-top: 24px;
    display: block;
    text-align: center;
    padding: 16px;
    background: var(--energy);
    color: white !important;
    border-radius: var(--r);
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 0;
}
.mobile-menu .mobile-cta:hover { background: var(--energy-dark); color: white; }
body.menu-open { overflow: hidden; }

/* ---------- Portal hero v2: split + portrait-friendly ---------- */

.portal-hero {
    position: relative;
    background:
        radial-gradient(110% 60% at 100% 0%, rgba(255, 198, 40, 0.15), transparent 55%),
        radial-gradient(80% 70% at 0% 100%, rgba(45, 123, 255, 0.42), transparent 60%),
        linear-gradient(160deg, var(--ink-strong) 0%, var(--brand-darker) 60%, var(--brand-dark) 100%);
    color: white;
    padding: clamp(40px, 5vw, 76px) clamp(24px, 4vw, 56px) clamp(56px, 7vw, 92px);
    overflow: hidden;
    isolation: isolate;
}

.portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.portal-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Versão sem mídia: texto centralizado em uma coluna só */
.portal-hero-solo .portal-hero-inner {
    grid-template-columns: 1fr;
    max-width: 880px;
    text-align: center;
}
.portal-hero-solo .portal-hero-text { display: flex; flex-direction: column; align-items: center; }
.portal-hero-solo .portal-hero-text p.sub { text-align: center; }
.portal-hero-solo .cta-row { justify-content: center; }

@media (max-width: 880px) {
    .portal-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .portal-hero-text  { order: 1; }
    .portal-hero-media { order: 0; }
}

/* ----- Texto da esquerda ----- */
.portal-hero-text .kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--ink-strong);
    background: var(--gold);
    padding: 7px 16px 7px 12px;
    border-radius: var(--r-pill);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    box-shadow: 0 8px 22px rgba(255, 198, 40, .35);
}
.portal-hero-text .kicker .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--whistle);
    box-shadow: 0 0 0 4px rgba(209, 44, 44, .25);
    animation: pulse 1.4s infinite;
}
.portal-hero-text h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: white;
    margin: 0 0 18px;
    font-weight: 900;
    text-transform: uppercase;
}
.portal-hero-text h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 900;
    display: inline-block;
    padding-right: 0.06em;
    background: linear-gradient(180deg, var(--gold) 60%, #ffe88a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.portal-hero-text p.sub {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    margin: 0 0 26px;
    line-height: 1.55;
}
.portal-hero-text .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----- Spotlight estático (direita) — sem rotação, sem auto-play ----- */
.portal-spot {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 580px;
    background: var(--ink-strong);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .06) inset;
    text-decoration: none;
    color: inherit;
    transition: transform var(--t), box-shadow var(--t);
}
.portal-spot:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 90px -20px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(255, 198, 40, .25) inset;
    text-decoration: none;
    color: inherit;
}
.portal-spot .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 9s ease;
}
.portal-spot:hover .bg { transform: scale(1.04); }

.portal-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 21, 48, 0) 35%, rgba(11, 21, 48, .55) 70%, rgba(11, 21, 48, .92) 100%);
}

.portal-spot .overlay {
    position: absolute;
    z-index: 2;
    bottom: 0; left: 0; right: 0;
    padding: clamp(20px, 3vw, 32px);
    color: white;
}
.portal-spot .overlay .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ink-strong);
    background: var(--gold);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.portal-spot .overlay h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: white;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    font-weight: 800;
    text-transform: uppercase;
}
.portal-spot .overlay p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 12px;
    line-height: 1.45;
    max-width: 90%;
}
.portal-spot .overlay .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap var(--t);
}
.portal-spot:hover .overlay .link { gap: 12px; }

@media (max-width: 880px) {
    .portal-spot { aspect-ratio: 16 / 11; max-height: 380px; }
}

/* ===== legacy: classes do carrossel rotativo (mantidas pro caso de outras páginas referenciarem) ===== */
.portal-feature {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 580px;
    background: var(--ink-strong);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .06) inset;
}
@media (max-width: 880px) {
    .portal-feature { aspect-ratio: 16 / 12; max-height: 460px; }
}

.portal-feature-track {
    position: absolute;
    inset: 0;
}
.portal-feature-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 700ms cubic-bezier(.4, 0, .2, 1), visibility 700ms;
}
.portal-feature-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.portal-feature-slide .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 9s ease;
}
.portal-feature-slide.is-active .bg { transform: scale(1.0); }

.portal-feature-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 21, 48, 0) 35%, rgba(11, 21, 48, .55) 70%, rgba(11, 21, 48, .92) 100%);
}

.portal-feature-slide .overlay {
    position: absolute;
    z-index: 2;
    bottom: 0; left: 0; right: 0;
    padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(56px, 6vw, 72px);
    color: white;
}
.portal-feature-slide .overlay .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ink-strong);
    background: var(--gold);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.portal-feature-slide .overlay h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: white;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    font-weight: 800;
    text-transform: uppercase;
}
.portal-feature-slide .overlay p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.84);
    margin: 0 0 12px;
    line-height: 1.45;
    max-width: 90%;
}
.portal-feature-slide .overlay .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap var(--t);
}
.portal-feature-slide .overlay .link:hover { gap: 12px; color: #ffe88a; }

/* Controles do feature */
.portal-feature-nav {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-feature-nav button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: all var(--t);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.portal-feature-nav button:hover { background: var(--gold); color: var(--ink-strong); }
.portal-feature-nav button .icon { font-size: 18px; }
.portal-feature-nav .counter {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

/* ---------- Carrossel hero antigo (legacy, mantido para compatibilidade) ---------- */

.carousel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink-strong);
    aspect-ratio: 21 / 9;
    max-height: 580px;
    min-height: 360px;
}
@media (max-width: 720px) {
    .carousel { aspect-ratio: 4 / 5; max-height: 620px; }
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform .6s cubic-bezier(.22,.7,.2,1);
    will-change: transform;
}
.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}
.carousel-slide .bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.carousel-slide.is-active .bg { transform: scale(1); }

.carousel-slide::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 21, 48, 0.05) 0%, rgba(11, 21, 48, 0.5) 60%, rgba(11, 21, 48, 0.92) 100%),
        linear-gradient(90deg, rgba(11, 21, 48, 0.62) 0%, rgba(11, 21, 48, 0) 60%);
}

.carousel-slide .content {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 88px) clamp(40px, 6vw, 80px);
    color: white;
    max-width: 800px;
}
.carousel-slide .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--ink-strong);
    background: var(--gold);
    padding: 6px 14px 6px 10px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 8px 22px rgba(255, 198, 40, .35);
}
.carousel-slide .kicker .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--whistle);
    animation: pulse 1.4s infinite;
}
.carousel-slide h1, .carousel-slide h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: white;
    margin: 0 0 16px;
    font-weight: 900;
    text-transform: uppercase;
}
.carousel-slide p.sub {
    font-size: clamp(0.96rem, 1.5vw, 1.12rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.carousel-arrows {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 16px;
}
.carousel-arrows button {
    pointer-events: auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: all var(--t);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.carousel-arrows button:hover { background: rgba(255, 255, 255, 0.32); }
.carousel-arrows button .icon { font-size: 22px; }

.carousel-dots {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dots button {
    width: 28px; height: 4px;
    border-radius: 2px;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--t);
    padding: 0;
}
.carousel-dots button.is-active { background: var(--gold); width: 40px; }

/* ---------- Strip de competições em destaque ---------- */

.comp-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.comp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.comp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--brand);
    text-decoration: none;
    color: inherit;
}
.comp-card .cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    background-size: cover;
    background-position: center;
    position: relative;
}
.comp-card .cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 21, 48, 0) 50%, rgba(11, 21, 48, 0.5) 100%);
}
.comp-card .cover .badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
}
.comp-card .body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.comp-card .modalidade {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 6px;
}
.comp-card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.18rem;
    margin: 0 0 10px;
    line-height: 1.18;
    color: var(--ink-strong);
}
.comp-card .meta {
    font-size: 0.86rem;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 14px;
}
.comp-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.comp-card .meta .icon { color: var(--brand); font-size: 16px; }
.comp-card .footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.comp-card .arrow {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--t);
}
.comp-card:hover .arrow { gap: 10px; }

/* CTA único e full-width nos cards de competição */
.comp-card .cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-md);
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
    text-decoration: none;
    box-sizing: border-box;
}
.comp-card .cta .icon { font-size: 18px; }
.comp-card .cta .arrow-ico { transition: transform var(--t); margin-left: 2px; }
.comp-card:hover .cta .arrow-ico { transform: translateX(4px); }

/* Inscrições abertas: laranja chamativo */
.comp-card .cta-open {
    background: var(--energy);
    color: white;
    box-shadow: 0 4px 14px -4px rgba(255, 122, 0, 0.45);
}
.comp-card:hover .cta-open {
    background: var(--energy-dark);
    box-shadow: 0 6px 18px -4px rgba(255, 122, 0, 0.6);
}

/* Fechadas: secundário, mais sutil */
.comp-card .cta-detail {
    background: var(--brand-50);
    color: var(--brand);
    border: 1px solid transparent;
}
.comp-card:hover .cta-detail {
    background: var(--brand);
    color: white;
}

/* ---------- Grid de notícias ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 22px 0;
}

/* Variante: destaque (1 grande + 3 pequenas em grid) */
.news-grid.feature {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.news-grid.feature .news-card:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
@media (max-width: 980px) {
    .news-grid.feature {
        grid-template-columns: 1fr 1fr;
    }
    .news-grid.feature .news-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
@media (max-width: 600px) {
    .news-grid.feature { grid-template-columns: 1fr; }
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--t);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-2);
    text-decoration: none;
    color: inherit;
}
.news-card .cover {
    aspect-ratio: 16 / 9;
    background: var(--brand-50);
    background-size: cover;
    background-position: center;
    position: relative;
}
.news-card .cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(11, 21, 48, 0.35) 100%);
}
.news-card .cover .cat {
    position: absolute;
    bottom: 12px; left: 14px;
    z-index: 2;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.news-card .body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card .meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.news-card .cat-pill {
    font-size: 0.68rem;
    background: var(--energy-50);
    color: var(--energy-dark);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.news-card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    line-height: 1.22;
    margin: 0 0 10px;
    color: var(--ink-strong);
    transition: color var(--t);
}
.news-card:hover h3 { color: var(--brand-dark); }
.news-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0 0 14px;
}
.news-card .read {
    margin-top: auto;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card grande (feature) */
.news-grid.feature .news-card:first-child .cover { aspect-ratio: 16 / 11; }
.news-grid.feature .news-card:first-child h3 { font-size: 1.65rem; }
.news-grid.feature .news-card:first-child .body { padding: 22px 26px 26px; }

/* ---------- Página de notícia / competição (single) — estilo jornal ---------- */

.article-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 28px 0;
}
@media (max-width: 720px) {
    .article-page { padding: 32px 18px 0; }
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.article-header .crumbs {
    margin-bottom: 14px;
}
.article-header .crumbs a {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-header h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: var(--ink-strong);
    font-weight: 800;
}
.article-header .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.article-header .meta > span,
.article-header .meta > .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.article-header .meta .icon { color: var(--brand); font-size: 18px; }

.article-figure {
    margin: 0 0 36px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-soft);
    box-shadow: var(--shadow-1);
}
.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
}
.article-figure figcaption {
    padding: 12px 18px;
    font-size: 0.84rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-style: italic;
}

/* ---------- Hero antigo (article-hero) — legacy, mantido se algo ainda usar ---------- */

.article-hero {
    position: relative;
    aspect-ratio: 21 / 9;
    max-height: 460px;
    min-height: 280px;
    background: linear-gradient(135deg, var(--brand-darker), var(--brand-dark));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.article-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 21, 48, 0.18) 0%, rgba(11, 21, 48, 0.85) 100%);
}
.article-hero .inner {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: clamp(28px, 4vw, 56px);
    max-width: 980px;
    margin: 0 auto;
    color: white;
}
.article-hero .crumbs {
    color: var(--gold);
    margin-bottom: 14px;
}
.article-hero .crumbs .icon, .article-hero .crumbs a { color: var(--gold); }
.article-hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    font-weight: 800;
}
.article-hero .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}
.article-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero .meta .icon { color: var(--gold); font-size: 18px; }

.article-body {
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--text);
    padding-bottom: 56px;
}
.article-page > .article-body { padding-bottom: 56px; }
.article-body p { margin: 0 0 1.2em; color: var(--text); }
.article-body strong { color: var(--ink-strong); font-weight: 700; }
.article-body a { color: var(--brand); font-weight: 600; }
.article-body a:hover { color: var(--brand-dark); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 22px; }
.article-body li { margin-bottom: 0.45em; }
.article-body h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.article-body h3 { font-size: 1.18rem; margin: 1.4em 0 0.4em; }
.article-body blockquote {
    margin: 1.4em 0;
    padding: 14px 22px;
    border-left: 4px solid var(--brand);
    background: var(--brand-50);
    color: var(--ink-strong);
    border-radius: var(--r);
    font-style: italic;
}

/* ---------- Listagens (notícias / competições) ---------- */

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-1);
}
.list-toolbar .toolbar-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}
.list-toolbar select, .list-toolbar input[type="search"] {
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    background: var(--surface);
    color: var(--text);
}
.list-toolbar input[type="search"] { min-width: 220px; }

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    padding: 60px 28px;
    text-align: center;
    color: var(--text-soft);
}
.empty-state .icon-big {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: inline-flex;
    align-items: center; justify-content: center;
}
.empty-state .icon-big .icon { font-size: 38px; }
.empty-state h3 { color: var(--ink-strong); margin-bottom: 6px; }

/* ---------- Footer realização (logos) ---------- */

.footer-realizacao {
    background: white;
    padding: 36px 28px;
    border-top: 1px solid var(--line);
}
.footer-realizacao .inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px 56px;
    justify-content: center;
}
.footer-realizacao .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 6px;
}
.footer-realizacao .group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.footer-realizacao img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Section variantes ---------- */

.section-head .actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
}
.section-head.left { text-align: left; }
.section-head.left .kicker::before { display: none; }
.section-head.left .kicker { padding: 0; background: transparent; }
.section-head.left p { margin: 0; }

.section-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.section-row h2 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    margin: 0;
}
.section-row .more {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--t);
}
.section-row .more:hover { gap: 10px; color: var(--brand-dark); text-decoration: none; }

/* ---------- Banner CTA inscrições ---------- */

.cta-banner {
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(255, 198, 40, 0.18), transparent 60%),
        radial-gradient(80% 70% at 0% 100%, rgba(45, 123, 255, 0.45), transparent 65%),
        linear-gradient(160deg, var(--ink-strong) 0%, var(--brand-darker) 60%, var(--brand-dark) 100%);
    color: white;
    padding: clamp(36px, 6vw, 56px);
    border-radius: var(--r-lg);
    margin: 0 0 8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-banner::before {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 380px; height: 380px;
    background: conic-gradient(from 220deg at 50% 50%, rgba(255, 198, 40, .35), rgba(255, 106, 19, .25), rgba(45, 123, 255, .3), rgba(255, 198, 40, .35));
    filter: blur(70px);
    border-radius: 50%;
    opacity: .55;
    z-index: -1;
    pointer-events: none;
}
.cta-banner h2 {
    color: white;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-weight: 900;
}
.cta-banner h2 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 900;
    display: inline-block;
    padding-right: 0.08em;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 22px;
    max-width: 520px;
    font-size: 1.05rem;
}
.cta-banner .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Admin upload preview ---------- */

.upload-field {
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-md);
    padding: 18px;
    background: var(--surface-soft);
    transition: all var(--t);
}
.upload-field:hover { border-color: var(--brand); background: var(--brand-50); }
.upload-field input[type="file"] {
    width: 100%;
    font-family: inherit;
}
.upload-field .preview {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: var(--surface);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}
.upload-field .preview img {
    width: 96px; height: 64px;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}
.upload-field .preview .info { font-size: 0.86rem; color: var(--text-soft); }
.upload-field .preview .info strong { color: var(--ink-strong); display: block; }

/* ---------- Status pills do admin ---------- */

.pill-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pill-status.on { background: var(--turf-50); color: var(--turf); }
.pill-status.off { background: var(--whistle-50); color: var(--whistle); }
.pill-status.draft { background: var(--gold-50); color: #8a6a00; }

/* ---------- Calendário / Jogos ---------- */

.day-group {
    margin-bottom: 28px;
}
.day-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}
.day-header .num {
    font-family: 'Anton', sans-serif;
    font-size: 2.4rem;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.02em;
}
.day-header .lbl {
    display: flex;
    flex-direction: column;
}
.day-header .lbl strong {
    font-family: 'Archivo', sans-serif;
    font-size: 1.05rem;
    color: var(--ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}
.day-header .lbl small {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.match-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.match-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow-2);
    color: inherit;
    text-decoration: none;
}

/* Cabeçalho do card: modalidade + horário */
.match-card .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--text-muted);
}
.match-card .head .modal { color: var(--brand); }
.match-card .head .when {
    color: var(--ink-strong);
    font-variant-numeric: tabular-nums;
}
.match-card.status-em_andamento .head {
    background: var(--turf-50);
    color: var(--turf);
}
.match-card.status-em_andamento .head .when {
    color: var(--turf);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.match-card.status-em_andamento .head .when::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--turf);
    animation: pulse 1.4s infinite;
    display: inline-block;
}

/* Lista de times dentro do card — duas linhas, uma por time */
.match-card .teams {
    display: flex;
    flex-direction: column;
}
.match-card .team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-height: 52px;
}
.match-card .team-row + .team-row {
    border-top: 1px dashed var(--line);
}
.match-card .team-row .marker {
    width: 4px; height: 22px;
    border-radius: 2px;
    background: transparent;
    flex: none;
}
.match-card .team-row.winner .marker { background: var(--turf); }
.match-card .team-row .name {
    flex: 1;
    min-width: 0;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-strong);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-card .team-row.winner .name { color: var(--turf); }
.match-card .team-row.loser  .name { color: var(--text-muted); }
.match-card .team-row .score {
    font-family: 'Anton', sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink-strong);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex: none;
}
.match-card .team-row.winner .score { color: var(--turf); }
.match-card .team-row.loser  .score { color: var(--text-muted); }
.match-card .team-row .score-empty {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    color: var(--text-faint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 36px;
    text-align: right;
    flex: none;
}

/* Rodapé do card: local + status */
.match-card .footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.match-card .footer-info .meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.match-card .footer-info .meta .icon { font-size: 15px; color: var(--brand); flex: none; }
.match-card .footer-info .tag { font-size: 0.66rem; padding: 3px 9px; flex: none; }

/* ---------- Standings (tabela de classificação) ---------- */

.standings {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow-x: auto;
    box-shadow: var(--shadow-1);
}
.standings table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.standings th, .standings td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.standings th {
    background: var(--ink-strong);
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Archivo', sans-serif;
}
.standings td.team-name {
    text-align: left;
    font-weight: 700;
    color: var(--ink-strong);
}
.standings td.pos {
    width: 48px;
    font-family: 'Anton', sans-serif;
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1;
}
.standings td.pts {
    background: var(--brand-50);
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1rem;
}
.standings tbody tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover td { background: var(--surface-soft); }
.standings tbody tr:hover td.pts { background: var(--brand-100); }

/* ---------- Galeria de mídia ---------- */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.media-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: inherit;
    transition: all var(--t);
    display: flex;
    flex-direction: column;
}
.media-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-2);
    color: inherit;
    text-decoration: none;
}
.media-card .cover {
    aspect-ratio: 4 / 3;
    background: var(--ink-strong);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.media-card .cover .play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 21, 48, 0.32);
    color: white;
    transition: background var(--t);
}
.media-card:hover .cover .play { background: rgba(11, 21, 48, 0.55); }
.media-card .cover .play .icon {
    font-size: 56px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.media-card .cover .badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
}
.media-card .cover .count {
    position: absolute;
    bottom: 12px; right: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.media-card .body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.media-card h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--ink-strong);
    line-height: 1.25;
}
.media-card .desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
}

/* Galeria do álbum (single) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 24px;
}
.photo-grid .photo {
    aspect-ratio: 1;
    background: var(--surface-soft);
    background-size: cover;
    background-position: center;
    border-radius: var(--r-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--t);
    border: 0;
    padding: 0;
    display: block;
}
.photo-grid .photo:hover { transform: scale(1.02); }

/* Lightbox simples */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 21, 48, 0.94);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.lightbox-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background: var(--gold); color: var(--ink-strong); }
.lightbox-close .icon { font-size: 26px; }

/* Embed do Google Drive (fallback sem API key) */
.drive-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 480px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.drive-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 720px) {
    .drive-embed-wrap { aspect-ratio: 4 / 5; min-height: 540px; }
}

/* Embed responsivo de vídeo */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--ink-strong);
    box-shadow: var(--shadow-2);
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Pequenas cells/utilities ---------- */

.thumb-mini {
    width: 56px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--surface-soft);
    background-size: cover;
    background-position: center;
    flex: none;
    border: 1px solid var(--line);
}
.cell-mix { display: flex; align-items: center; gap: 12px; }
.cell-mix strong { color: var(--ink-strong); display: block; }
.cell-mix small { color: var(--text-muted); font-size: 0.78rem; }
