/* =============================================================================
   ESTILOS DA ABA INSCRIÇÕES: DESIGN BASEADO NO CHECKOUT DE RESERVAS
   Caminho: front/pages/tournament/css/inscricoes.css
   Regra 1: Não utilizar animações CSS de hover com movimento scale ou shadow
   Regra 2: Não utilizar em momento algum emojis
   ============================================================================= */

.tournament-checkout-container {
    width: 100%;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main, #0f172a);
    box-sizing: border-box;
}

/* 1. Alertas Centrais de Validação & Notificações */
.registration-alert-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--navbar-height, 64px) + 24px);
}

.registration-alert-box.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
}

.registration-alert-box.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #10b981;
    color: #15803d;
}

.registration-alert-box.is-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* 2. Layout Principal em 2 Colunas (Idêntico ao Checkout de Reservas) */
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.checkout-main-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

@media (min-width: 901px) {
    .checkout-sidebar-column {
        position: -webkit-sticky;
        position: sticky;
        top: 85px;
        align-self: start;
        z-index: 10;
    }
}

/* 3. Cabeçalhos dos Passos de Inscrição (Passo 1, 2, 3) */
.checkout-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid var(--border-color, #e2e8f0);
    transition: border-color 0.25s ease;
    user-select: none;
    box-sizing: border-box;
}

.checkout-step-header:not(.locked) {
    cursor: pointer;
}

.checkout-main-column > .checkout-step-header:first-of-type {
    margin-top: 0;
}

.step-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.step-chevron-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
    transform: rotate(-90deg);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.checkout-step-header.open-step .step-chevron-icon {
    transform: rotate(0deg);
    color: var(--primary, #2563eb);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    letter-spacing: -0.015em;
    transition: color 0.25s ease;
}

.step-header-summary {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary, #2563eb);
    background: #eff6ff;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    white-space: nowrap;
}

/* Estados Locked / Completed */
.checkout-step-header.locked {
    cursor: not-allowed;
    opacity: 0.65;
}

.checkout-step-header.locked .step-badge {
    background: #cbd5e1;
    color: #64748b;
}

.checkout-step-header.locked .step-title {
    color: #94a3b8;
}

.checkout-step-header.completed .step-badge {
    background: #10b981;
    color: #ffffff;
}

/* 4. Blocos de Conteúdo do Acordeão */
.checkout-step-block {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-bottom 0.3s ease;
    margin-bottom: 0 !important;
}

.checkout-step-block.open {
    max-height: 8000px;
    opacity: 1;
    overflow: visible;
    margin-bottom: 1.25rem !important;
}

.checkout-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* 5. Grelha e Cartões de Atletas (100% de Largura - Estilo Profile Card) */
.athletes-stack-100 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.pro-athlete-card {
    width: 100%;
    background: #ffffff !important;
    border: 1.5px solid var(--border-color, #e2e8f0) !important;
    border-radius: 24px;
    padding: 1.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pro-athlete-card:hover {
    border-color: #cbd5e1 !important;
}

.pro-athlete-card.is-self {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}

.partner-profile-layout {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
}

/* Área de Foto / Retrato do Atleta */
.athlete-portrait-box {
    width: 140px;
    min-width: 140px;
    height: 170px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.athlete-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.athlete-portrait-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 20px;
    box-sizing: border-box;
}

.athlete-portrait-canvas.is-self-canvas {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
}

.athlete-portrait-canvas.is-partner-canvas {
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
}

.athlete-portrait-canvas svg {
    opacity: 0.9;
}

.athlete-portrait-canvas.is-search-canvas {
    background: #f1f5f9;
    border: 1.5px dashed #cbd5e1;
    color: var(--primary, #2563eb);
}

.portrait-sub-label {
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

/* Conteúdo e Informações do Atleta */
.athlete-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 0.85rem;
}

.athlete-content-top {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.athlete-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.athlete-display-name {
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.verified-scallop-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.athlete-bio-desc {
    font-size: 0.825rem;
    color: var(--text-muted, #64748b);
    margin: 0.25rem 0 0 0;
    line-height: 1.45;
}

/* Badges de Estado das Notificações */
.athlete-status-tag,
.pro-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 750;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    line-height: 1;
    text-transform: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.athlete-status-tag.is-you,
.pro-status-badge.is-you {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.athlete-status-tag.is-pending,
.pro-status-badge.is-pending,
.pro-status-badge:not(.is-verified):not(.is-valid):not(.is-invalid):not(.is-nocount) {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #ffedd5 !important;
}

.athlete-status-tag.is-verified,
.athlete-status-tag.is-valid,
.pro-status-badge.is-verified,
.pro-status-badge.is-valid {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.athlete-status-tag.is-invalid,
.pro-status-badge.is-invalid {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.athlete-status-tag.is-nocount,
.pro-status-badge.is-nocount {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

/* Pesquisa Integrada do Parceiro */
.partner-search-inline-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.65rem;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon-inside {
    position: absolute;
    left: 0.85rem;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.partner-text-field {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.35rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: #ffffff;
    font-size: 0.825rem;
    color: var(--text-main, #0f172a);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease;
}

.partner-text-field:focus {
    border-color: var(--primary, #2563eb);
}

.partner-modal-helper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    flex-wrap: wrap;
}

.link-create-partner {
    background: transparent;
    border: none;
    color: var(--primary, #2563eb);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-create-partner:hover {
    color: #1d4ed8;
}

/* Alerta Parceiro Não Encontrado */
.partner-notfound-module {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.notfound-alert-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: #c2410c;
}

.notfound-btn-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-notfound-sub {
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #c2410c;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-notfound-main {
    background: #ea580c;
    border: none;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-notfound-main:hover {
    background: #c2410c;
}

/* Rodapé do Cartão do Atleta: Seletor de T-Shirt e Ação Pill */
.athlete-content-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color, #f1f5f9);
    margin-top: auto;
    flex-wrap: wrap;
}

.athlete-shirt-picker-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 auto;
}

.shirt-picker-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shirt-picker-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}

.shirt-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 9999px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    transition: opacity 0.2s ease;
}

.shirt-status-pill.is-hidden {
    display: none !important;
}

.pro-size-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.pro-size-pill {
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: #ffffff;
    color: var(--text-main, #0f172a);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pro-size-pill:hover {
    border-color: var(--text-main, #0f172a);
}

.pro-size-pill.is-active {
    background: var(--text-main, #0f172a);
    border-color: var(--text-main, #0f172a);
    color: #ffffff;
}

/* Botões Pill no Estilo do Mockup (ex: Follow +) */
.btn-profile-pill {
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.15s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-profile-pill.is-you {
    background: #f1f5f9;
    color: #334155;
    cursor: default;
}

.btn-profile-pill.is-remove {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-profile-pill.is-remove:hover {
    background: #fecaca;
}

.btn-profile-pill.is-action {
    background: var(--primary, #2563eb);
    color: #ffffff;
}

.btn-profile-pill.is-action:hover {
    background: #1d4ed8;
}

@media (max-width: 680px) {
    .pro-athlete-card.is-self,
    .partner-profile-layout {
        flex-direction: column;
    }

    .athlete-portrait-box {
        width: 100%;
        min-width: 100%;
        height: 190px;
    }

    .athlete-content-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .athlete-action-tag {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* 6. Grelha de Categorias (Passo 2) */
.step-subheading-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 0.5rem 0;
}

.checkout-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.category-choice-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-choice-card:hover {
    border-color: var(--primary, #2563eb);
}

.category-choice-card.is-selected {
    border-color: var(--primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.04) !important;
}

.category-choice-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--bg-input, #f8fafc);
}

.choice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.choice-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
}

.choice-badge.badge-m {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.choice-badge.badge-f {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.choice-badge.badge-mx {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.choice-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.choice-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.choice-card-price .price-val {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
    font-family: 'Manrope', sans-serif;
}

.choice-card-price .price-sub {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.choice-card-indicator {
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border-color, #f1f5f9);
}

.choice-tag-select {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.4rem;
    border-radius: 9999px;
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    font-size: 0.775rem;
    font-weight: 750;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-choice-card.is-selected .choice-tag-select {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #ffffff;
}

.choice-tag-disabled {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}

.pro-no-cat-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
}

.no-cat-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.no-cat-desc {
    font-size: 0.775rem;
    color: var(--text-muted, #64748b);
    margin: 0.15rem 0 0 0;
}

/* 7. Passo 3: Observações */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.825rem;
    font-weight: 750;
    color: var(--text-main, #0f172a);
}

.form-textarea,
.form-input,
.form-select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: #ffffff;
    font-size: 0.85rem;
    color: var(--text-main, #0f172a);
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-textarea {
    resize: vertical !important;
}

.form-textarea:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--primary, #2563eb);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

/* 8. Coluna Direita: Recibo Lateral (Estilo Checkout de Reservas) */
.receipt-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    background: #ffffff;
}

.receipt-tournament-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.receipt-avatar-placeholder {
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #2563eb);
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.receipt-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.receipt-tournament-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-club-address {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-body {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.receipt-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.receipt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--primary, #2563eb);
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.725rem;
    font-weight: 700;
}

.receipt-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.95rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}

.receipt-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.item-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.receipt-line-item .item-title {
    font-weight: 700;
    color: var(--text-main, #0f172a);
    font-size: 0.775rem;
}

.receipt-line-item .item-desc {
    font-size: 0.725rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-line-item .item-value {
    font-weight: 800;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    font-size: 0.825rem;
}

/* Cartão de Destaque Total */
.receipt-total-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.total-title {
    font-size: 0.75rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.total-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

.total-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: #10b981;
    letter-spacing: -0.02em;
    font-family: 'Manrope', sans-serif;
}

.total-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 700;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(37, 99, 235, 0.12);
}

/* Barra de Ações do Checkout */
.checkout-actions-bar {
    width: 100%;
}

.checkout-incomplete-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3.5px solid #f59e0b;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
    box-sizing: border-box;
}

.checkout-incomplete-notice svg {
    flex-shrink: 0;
}

.btn-checkout-submit {
    width: 100%;
    background: var(--primary, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

.btn-checkout-submit:hover {
    background: #1d4ed8;
}

/* 9. Banners de Estado e Login */
.checkout-status-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.checkout-status-banner .banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-status-banner.is-closed .banner-icon {
    background: #f1f5f9;
    color: #64748b;
}

.checkout-status-banner.is-limit .banner-icon {
    background: #eff6ff;
    color: #2563eb;
}

.banner-text {
    flex: 1 1 280px;
}

.banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0 0 0.25rem 0;
}

.banner-desc {
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.btn-banner-action {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.4rem;
    border-radius: 9999px;
    background: var(--text-main, #0f172a);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.btn-banner-action:hover {
    background: #1e293b;
}

.checkout-status-banner.is-checkin {
    border-color: #fed7aa;
    background: #fffaf5;
    border-left: 4px solid #ea580c;
}

.checkout-status-banner.is-checkin .banner-icon {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.checkout-status-banner.is-checkin .banner-title {
    color: #c2410c;
}

.btn-banner-action.is-external {
    background: #ea580c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-banner-action.is-external:hover {
    background: #c2410c;
}

.checkout-status-banner.is-soon {
    border-color: #bae6fd;
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
}

.checkout-status-banner.is-soon .banner-icon {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.checkout-status-banner.is-soon .banner-title {
    color: #0369a1;
}

.btn-banner-action.is-soon-btn {
    background: #0284c7;
    color: #ffffff;
}

.btn-banner-action.is-soon-btn:hover {
    background: #0369a1;
}

/* Card de Login Convidativo */
.checkout-auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-sizing: border-box;
    max-width: 600px;
    margin: 1.5rem auto;
}

.auth-card-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.auth-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-title {
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--text-main, #0f172a);
    margin: 0;
    letter-spacing: -0.02em;
}

.auth-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.btn-checkout-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-checkout-login:hover {
    background: #1d4ed8;
}

/* 10. Modal de Parceiro */
.pro-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.pro-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.pro-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.pro-modal-title-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pro-modal-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #2563eb);
}

.pro-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.pro-modal-subtitle {
    font-size: 0.725rem;
    color: var(--text-muted, #64748b);
    display: block;
}

.pro-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    padding: 0.3rem;
}

.pro-modal-body {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pro-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.95rem 1.4rem;
    background: var(--bg-input, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.btn-modal-cancel,
.btn-pro-modal-cancel,
#btn-cancel-partner-modal {
    background: #ffffff;
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-main, #0f172a);
    padding: 0.65rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: normal;
}

.btn-modal-cancel:hover,
.btn-pro-modal-cancel:hover,
#btn-cancel-partner-modal:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-modal-submit,
.btn-pro-modal-save,
#btn-submit-partner-modal {
    background: var(--primary, #2563eb);
    border: 1px solid var(--primary, #2563eb);
    color: #ffffff;
    padding: 0.65rem 1.45rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    line-height: normal;
}

.btn-modal-submit:hover,
.btn-pro-modal-save:hover,
#btn-submit-partner-modal:hover {
    background: var(--primary-hover, #1d4ed8);
    border-color: var(--primary-hover, #1d4ed8);
}

/* 11. Responsividade */
@media (max-width: 900px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-main-column {
        order: 1;
    }

    .checkout-sidebar-column {
        order: 2;
    }
}

@media (max-width: 768px) {
    .athletes-duo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .checkout-step-header {
        margin-top: 1.25rem;
        gap: 0.65rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .checkout-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MÓDULO DE DISPONIBILIDADE HORÁRIA (PASSOS DE INSCRIÇÃO)
   ========================================================================== */
.availability-module-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-sizing: border-box;
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.availability-header-info {
    flex: 1;
    min-width: 250px;
}

.availability-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.availability-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.35rem 0 0 0;
    line-height: 1.4;
}

.availability-days-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avail-day-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.avail-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.avail-day-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 750;
    font-size: 0.875rem;
    color: #1e293b;
}

.avail-day-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.avail-quick-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.avail-quick-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.avail-quick-btn.is-clear {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff1f2;
}

.avail-quick-btn.is-clear:hover {
    background: #fee2e2;
}

.avail-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
}

.avail-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.avail-slot-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.avail-slot-btn .slot-time-text {
    font-size: 0.825rem;
    font-weight: 700;
}

.avail-slot-btn .slot-status-indicator {
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: #16a34a;
}

.avail-slot-btn.is-unavailable {
    background: #fef2f2;
    border-color: #f87171;
    color: #991c1c;
}

.avail-slot-btn.is-unavailable:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.avail-slot-btn.is-unavailable .slot-status-indicator {
    color: #dc2626;
    font-weight: 700;
}

.availability-footer-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #475569;
}

.availability-footer-status .status-summary-text {
    font-weight: 600;
}

.btn-clear-all-avail {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

@media (max-width: 600px) {
    .availability-header {
        flex-direction: column;
        align-items: stretch;
    }

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

/* 9. Ocultar barra de navegação inferior móvel APENAS quando a barra flutuante de inscrição estiver ativa */
body:has(#tournament-registration-floating-bar.active) .mobile-bottom-wrapper,
body:has(#tournament-registration-floating-bar.active) .mobile-bottom-navbar {
    display: none !important;
}

/* 10. Otimizações Mobile para o Checkout de Inscrições */
@media (max-width: 900px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .checkout-card,
    .availability-module-box {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .availability-header {
        margin-bottom: 0.85rem;
    }

    .avail-day-card {
        padding: 0.85rem !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
    }

    .avail-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .avail-day-quick-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .avail-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 0.5rem;
    }

    .tournament-checkout-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    #btn-trigger-checkout-submit {
        display: none !important;
    }
}

/* 11. Barra Flutuante Móvel na Inscrição do Torneio (Substitui a Navbar Bottom em Mobile) */
.tournament-registration-floating-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 95px;
    z-index: 9999;
    pointer-events: none;
    box-sizing: border-box;
    padding: 0 1rem calc(18px + env(safe-area-inset-bottom, 0px)) 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Fundo com Desfoque Gradiente que Suaviza o Conteúdo no Scroll */
.tournament-registration-floating-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(248, 250, 252, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
    mask-image: linear-gradient(to top, black 55%, transparent 100%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .tournament-registration-floating-bar.active {
        display: flex !important;
        align-items: flex-end;
        justify-content: center;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.btn-floating-registration {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100% !important;
    max-width: 440px !important;
    border-radius: 14px !important;
    padding: 0.95rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    background: var(--primary, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35) !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-floating-registration:disabled {
    background: #cbd5e1 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.75 !important;
}

