        :root {
            --brand-1: #334155;
            --brand-2: #475569;
            --brand-3: #64748b;
            --ink: #1f2937;
            --muted: #6b7280;
            --line: #e5e7eb;
            --paper: #ffffff;
            --bg: #f1f5f9;
            --ok-bg: #ecfdf5;
            --ok-line: #a7f3d0;
            --warn-bg: #fffbeb;
            --warn-line: #fde68a;
            --err-bg: #fef2f2;
            --err-line: #fecaca;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background:
                radial-gradient(circle at 8% 12%, rgba(75, 85, 99, 0.10), transparent 38%),
                radial-gradient(circle at 95% 85%, rgba(107, 114, 128, 0.09), transparent 35%),
                linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
            font-family: "Poppins", "Montserrat", sans-serif;
            color: var(--ink);
            min-height: 100vh;
        }

        .page-wrap {
            max-width: 980px;
            margin: 18px auto 28px;
            padding: 0 16px;
        }

        .brand-box {
            text-align: center;
            margin-bottom: 14px;
        }

        .brand-box img {
            width: 88px;
            height: auto;
            filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .14));
        }

        .brand-title {
            font-weight: 700;
            letter-spacing: .02em;
            margin-top: 10px;
            margin-bottom: 4px;
            font-size: 1.12rem;
        }

        .brand-subtitle {
            color: var(--muted);
            font-size: .9rem;
        }

        .card-main {
            border: 1px solid var(--line);
            border-radius: 22px;
            background: var(--paper);
            box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
            overflow: hidden;
        }

        .card-top {
            background: linear-gradient(112deg, #1e293b 0%, var(--brand-1) 52%, var(--brand-3) 100%);
            color: #fff;
            padding: 22px 24px 16px;
        }

        .card-top h4 {
            margin-bottom: 6px;
            font-weight: 800;
            font-size: 1.36rem;
            color: #f9fafb;
            text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
            letter-spacing: .015em;
        }

        .card-top .camp-name {
            opacity: .95;
            font-size: .92rem;
        }

        .deadline-grid {
            margin-top: 12px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            align-items: stretch;
        }

        .deadline-box {
            background: rgba(255, 255, 255, .14);
            border: 1px solid rgba(255, 255, 255, .25);
            border-radius: 14px;
            padding: 10px 12px;
        }

        .deadline-label {
            opacity: .9;
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .04em;
        }

        .deadline-date {
            margin-top: 4px;
            font-size: 1.22rem;
            line-height: 1.1;
            font-weight: 700;
            letter-spacing: .01em;
        }

        .period-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 8px;
        }

        .period-item {
            border-radius: 10px;
            padding: 8px 10px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .2);
        }

        .period-item .deadline-label {
            font-size: .72rem;
        }

        .period-item .deadline-date {
            font-size: 1.12rem;
        }

        .deadline-aux {
            margin-top: 4px;
            opacity: .95;
            font-size: .82rem;
        }

        .countdown-card {
            padding: 8px 8px 7px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
        }

        .countdown-title {
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .05em;
            opacity: .92;
            margin-bottom: 8px;
        }

        .countdown-units {
            display: flex;
            gap: 6px;
            align-items: stretch;
            flex-wrap: wrap;
            flex: 1;
            align-content: center;
        }

        .countdown-unit {
            min-width: 70px;
            padding: 10px 6px 8px;
            border-radius: 9px;
            text-align: center;
            background: rgba(17, 24, 39, .22);
            border: 1px solid rgba(255, 255, 255, .2);
            flex: 1 1 70px;
        }

        .countdown-value {
            font-size: 2rem;
            line-height: 1;
            font-weight: 800;
            color: #fff;
        }

        .countdown-label {
            margin-top: 4px;
            font-size: .64rem;
            letter-spacing: .06em;
            text-transform: uppercase;
            opacity: .92;
        }

        .countdown-fallback {
            font-size: .86rem;
            font-weight: 600;
            opacity: .95;
            margin-top: 2px;
        }

        .countdown-note {
            margin-top: 8px;
            font-size: .76rem;
            opacity: .9;
            text-align: center;
        }

        .countdown-closed {
            flex: 1;
            display: grid;
            align-content: center;
            justify-items: center;
            text-align: center;
            gap: 6px;
            padding: 8px 4px;
        }

        .countdown-closed-title {
            font-size: 1.1rem;
            line-height: 1.1;
            font-weight: 700;
        }

        .countdown-closed-sub {
            font-size: .82rem;
            opacity: .92;
        }

        .countdown-empty {
            flex: 1;
            display: grid;
            place-items: center;
            text-align: center;
            font-size: .88rem;
            font-weight: 600;
            opacity: .92;
            padding: 8px 4px;
        }

        .status-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: .8rem;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, .3);
            background: rgba(255, 255, 255, .15);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #bbf7d0;
        }

        .status-closed .status-dot {
            background: #fecaca;
        }

        .status-pending .status-dot {
            background: #fde68a;
        }

        .session-ip {
            margin-top: 10px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 11px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .16);
            border: 1px solid rgba(255, 255, 255, .30);
            font-size: .8rem;
            font-weight: 600;
            color: #f8fafc;
        }

        .card-body-custom {
            padding: 18px 20px 22px;
        }

        .helper-box {
            border: 1px solid #dbeafe;
            background: #eff6ff;
            color: #1e3a8a;
            border-radius: 12px;
            padding: 12px 13px;
            font-size: .9rem;
            margin-bottom: 14px;
        }

        .required-mark {
            color: #b91c1c;
            font-weight: 700;
            margin-left: 2px;
        }

        .form-label {
            font-weight: 600;
            font-size: .9rem;
            color: #374151;
            margin-bottom: 6px;
        }

        .form-control {
            border: 1px solid #d1d5db;
            border-radius: 12px;
            min-height: 46px;
            font-size: .95rem;
            padding-left: 13px;
            padding-right: 13px;
            transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
            background-color: #fff;
        }

        .form-control:focus {
            border-color: #64748b;
            box-shadow: 0 0 0 .2rem rgba(100, 116, 139, .14);
            background-color: #f8fafc;
        }

        .grid-2 {
            display: grid;
            gap: 12px;
            grid-template-columns: 1fr 1fr;
        }

        .field-group {
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            background: #f8fafc;
            padding: 12px 12px 2px;
            margin-bottom: 10px;
        }

        .validation-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .validation-card-grid .field-group {
            margin-bottom: 0;
        }

        .section-title {
            font-size: .85rem;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: #334155;
            font-weight: 700;
            margin-bottom: 9px;
        }

        .btn-submit {
            min-height: 48px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(90deg, #1e293b, #334155);
            font-weight: 600;
            letter-spacing: .01em;
            box-shadow: 0 10px 20px rgba(30, 41, 59, .22);
            transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
        }

        .btn-submit:hover {
            background: linear-gradient(90deg, #0f172a, #1e293b);
            transform: translateY(-1px);
            box-shadow: 0 14px 24px rgba(30, 41, 59, .26);
        }

        .btn-submit:disabled {
            background: linear-gradient(90deg, #94a3b8, #cbd5e1);
            box-shadow: none;
            transform: none;
            cursor: not-allowed;
        }

        .assoc-preview {
            border: 1px solid #e5e7eb;
            background: #f8fafc;
            border-radius: 14px;
            padding: 12px;
            display: none;
            margin-bottom: 14px;
        }

        .assoc-preview-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 14px;
        }

        .assoc-preview-grid .assoc-preview {
            margin-bottom: 0;
            height: 100%;
        }

        .assoc-preview.is-loading {
            display: block;
            color: #4b5563;
        }

        .assoc-preview.is-success {
            display: block;
            border-color: var(--ok-line);
            background: var(--ok-bg);
        }

        .assoc-preview.is-error {
            display: block;
            border-color: var(--err-line);
            background: var(--err-bg);
        }

        .assoc-preview-wrap {
            display: grid;
            grid-template-columns: 56px 1fr;
            gap: 12px;
            align-items: center;
        }

        .assoc-card-title {
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: #475569;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .assoc-photo {
            width: 54px;
            height: 72px;
            border-radius: 12px;
            object-fit: cover;
            border: 1px solid #d1d5db;
            background: #fff;
        }

        .assoc-name {
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 2px;
        }

        .assoc-meta {
            color: #6b7280;
            font-size: .86rem;
            line-height: 1.25;
        }

        .assoc-pill {
            display: inline-block;
            margin-top: 6px;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 600;
            color: #065f46;
            border: 1px solid var(--ok-line);
            background: #d1fae5;
        }

        .alert {
            border-radius: 12px;
            margin-bottom: 12px;
        }

        .alert-warning {
            border-color: var(--warn-line);
            background-color: var(--warn-bg);
        }

        .hp-field {
            position: absolute !important;
            left: -9999px !important;
            width: 1px !important;
            height: 1px !important;
            overflow: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        @media (max-width: 768px) {
            .page-wrap {
                margin-top: 14px;
                padding: 0 10px;
            }

            .card-top {
                padding: 16px 14px 12px;
            }

            .card-body-custom {
                padding: 12px 12px 16px;
            }

            .grid-2 {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .validation-card-grid {
                grid-template-columns: 1fr;
            }

            .deadline-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .period-row {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .brand-box img {
                width: 70px;
            }

            .countdown-card {
                width: 100%;
            }

            .countdown-units {
                justify-content: space-between;
            }

            .countdown-unit {
                min-width: 62px;
                padding: 8px 5px 6px;
            }

            .countdown-value {
                font-size: 1.65rem;
            }

            .assoc-preview-grid {
                grid-template-columns: 1fr;
            }

            .assoc-preview-wrap {
                grid-template-columns: 44px 1fr;
                gap: 10px;
            }

            .assoc-photo {
                width: 42px;
                height: 56px;
            }

            .form-control {
                min-height: 44px;
            }
        }

        .cadastro-atualizado-aviso {
            border: 1px solid #b8daf5;
            background: #eef7ff;
            color: #174f78;
        }

        .numero-corrida-painel {
            padding: 20px;
            border: 1px solid #d9e4ef;
            border-radius: 16px;
            background: linear-gradient(145deg, #f0f6fc, #ffffff);
            box-shadow: 0 4px 15px rgba(29, 91, 140, 0.05);
        }

        .numero-corrida-titulo {
            margin-bottom: 14px;
            color: #173b5f;
            font-weight: 700;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .numero-corrida-titulo::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #156aa8;
            border-radius: 50%;
        }

        .numero-corrida-grade {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
            gap: 12px;
        }

        .numero-corrida-opcao {
            position: relative;
            min-height: 64px;
            border: 2px solid #b9cde0;
            border-radius: 12px;
            background: #fff;
            color: #174f78;
            font-family: 'Poppins', sans-serif;
            font-size: 1.25rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 4px 8px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 3px 6px rgba(29, 91, 140, 0.04);
            overflow: hidden;
        }

        /* Furos de alfinete em miniatura nos cantos */
        .numero-corrida-opcao::before {
            content: '•     •';
            position: absolute;
            top: 2px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 8px;
            color: #a0b8cb;
            letter-spacing: 34px;
            text-indent: 17px;
            line-height: 1;
            font-weight: normal;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        /* Texto de rodapé da mini-placa */
        .numero-corrida-opcao::after {
            content: 'ATLETA';
            position: absolute;
            bottom: 4px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 7px;
            font-weight: 700;
            letter-spacing: 0.12em;
            color: #8fa7bc;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .numero-corrida-opcao:hover {
            transform: translateY(-3px);
            border-color: #1d82cc;
            color: #115383;
            box-shadow: 0 8px 16px rgba(29, 91, 140, 0.12);
        }

        .numero-corrida-opcao.is-selected {
            border-color: #115383;
            background: linear-gradient(135deg, #115383 0%, #1d82cc 100%);
            color: #fff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            box-shadow: 0 8px 20px rgba(17, 83, 131, 0.3);
            transform: translateY(-2px) scale(1.03);
        }

        .numero-corrida-opcao.is-selected::before {
            color: rgba(255, 255, 255, 0.6);
        }

        .numero-corrida-opcao.is-selected::after {
            color: rgba(255, 255, 255, 0.8);
            content: '✓ SELECIONADO';
            font-size: 6px;
            letter-spacing: 0.05em;
        }

        .numero-corrida-feedback {
            margin-top: 14px;
            color: #4b5a6a;
            font-size: 0.88rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #numeroCorridaBuscaContainer {
            position: relative;
        }

        #numeroCorridaFiltro {
            min-height: 42px;
            border-radius: 10px;
            border: 2px solid #d9e4ef;
            padding-left: 14px;
            font-size: 0.95rem;
            background-color: #fff;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
            transition: all 0.2s ease;
        }

        #numeroCorridaFiltro:focus {
            border-color: #174f78;
            box-shadow: 0 0 0 3px rgba(23, 79, 120, 0.1);
            background-color: #fff;
        }

        /* ==========================================================================
           Card do Turnstile (Verificação de Segurança Anti-Robô)
           ========================================================================== */
        .turnstile-card-wrapper {
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            background: #f8fafc;
            padding: 16px;
            margin-top: 14px;
            margin-bottom: 16px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        }

        .turnstile-card-wrapper:hover {
            border-color: #cbd5e1;
        }

        .turnstile-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #334155;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
        }

        .turnstile-header-icon {
            font-size: 1.15rem;
            line-height: 1;
        }

        .turnstile-header-title {
            letter-spacing: 0.03em;
        }

        .turnstile-widget-container {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            min-height: 65px;
            margin-bottom: 4px;
        }

        .turnstile-alert-atencao {
            margin-top: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 0.9rem;
            line-height: 1.45;
            border: 1px solid #f59e0b;
            background: #fffbeb;
            color: #92400e;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
            animation: turnstileFadeIn 0.3s ease-out;
        }

        .turnstile-alert-atencao.turnstile-alert-sucesso {
            border-color: #10b981;
            background: #ecfdf5;
            color: #065f46;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
        }

        .turnstile-alert-atencao.turnstile-alert-expirado {
            border-color: #f87171;
            background: #fef2f2;
            color: #991b1b;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
        }

        .turnstile-alert-icon {
            font-size: 1.25rem;
            line-height: 1;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .turnstile-alert-text {
            flex: 1;
        }

        .turnstile-alert-text strong {
            display: inline-block;
            margin-bottom: 2px;
        }

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

        /* ==========================================================================
           Assistente e Feedback Dinâmico da Data de Nascimento
           ========================================================================== */
        .data-nascimento-feedback {
            font-size: 0.82rem;
            line-height: 1.35;
            margin-top: 6px;
            padding: 6px 10px;
            border-radius: 8px;
            min-height: 24px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .data-nascimento-feedback:empty {
            display: none;
        }

        /* Estado Informativo / Padrão */
        .data-nascimento-feedback.is-info {
            background-color: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        /* Estado de Atenção / Ano incompleto */
        .data-nascimento-feedback.is-warning {
            background-color: #fffbeb;
            color: #b45309;
            border: 1px solid #fde68a;
            font-weight: 600;
            animation: pulseWarning 1.6s infinite ease-in-out;
        }

        /* Estado de Sucesso / Data e Idade Válidas */
        .data-nascimento-feedback.is-success {
            background-color: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
            font-weight: 600;
        }

        /* Estado de Erro / Data Inválida */
        .data-nascimento-feedback.is-error {
            background-color: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
            font-weight: 600;
        }

        @keyframes pulseWarning {
            0%, 100% {
                border-color: #fde68a;
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
            }
            50% {
                border-color: #f59e0b;
                box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
            }
        }

        /* ==========================================================================
           Animação de Destaque / Pulso no Botão de Envio (Pós-Turnstile)
           ========================================================================== */
        .btn-submit.btn-submit-attention {
            animation: btnAttentionPulse 1.8s infinite ease-in-out;
            border: 2px solid #38bdf8 !important;
            position: relative;
        }

        .btn-submit:disabled.btn-submit-attention {
            animation: none;
            border: none !important;
            box-shadow: none;
        }

        @keyframes btnAttentionPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7), 0 10px 20px rgba(30, 41, 59, 0.22);
                transform: translateY(0);
            }
            50% {
                box-shadow: 0 0 0 8px rgba(56, 189, 248, 0), 0 14px 28px rgba(30, 41, 59, 0.32);
                transform: translateY(-2px);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(56, 189, 248, 0), 0 10px 20px rgba(30, 41, 59, 0.22);
                transform: translateY(0);
            }
        }
