/* ==========================================================================
   DESENHO E ACESSIBILIDADE - RIFA FÁCIL DO BICHOS (SUA SORTE)
   Foco principal: Usuários idosos. Letras grandes, alto contraste, botões fáceis.
   ========================================================================== */

:root {
    /* Cores Suaves e de Alto Contraste */
    --bg-primary: #FAF9F5;       /* Fundo creme suave (reduz fadiga visual) */
    --text-main: #1D231F;        /* Texto cinza bem escuro (excelente contraste) */
    --text-muted: #4E5953;       /* Texto auxiliar legível */
    
    --header-bg: #1B4332;        /* Verde floresta tradicional da sorte */
    --header-text: #FFFFFF;
    
    --primary: #2D6A4F;          /* Verde principal */
    --primary-hover: #1B4332;
    --primary-light: #D8F3DC;
    
    --secondary: #E9ECEF;        /* Cinza claro para botões secundários */
    --secondary-text: #2D3142;
    
    --accent: #D4A373;           /* Dourado para destaques e seleções */
    --accent-dark: #A57548;
    --accent-light: #FEFAE0;     /* Fundo amarelado suave */
    
    --success: #2D6A4F;
    --error: #D62828;            /* Vermelho de aviso */
    --error-bg: #FDF0D5;
    
    --card-bg: #FFFFFF;
    --border-color: #D3DCD6;
    --border-radius: 16px;
    
    /* Tipografia de Alta Legibilidade */
    --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

/* Reset básico de acessibilidade */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 18px; /* Fonte maior por padrão */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.font-large {
    font-size: 1.2rem;
}
.font-medium {
    font-size: 1.1rem;
}
.font-small {
    font-size: 0.95rem;
}
.bold {
    font-weight: 700;
}
.text-muted {
    color: var(--text-muted);
}
.price-highlight {
    color: var(--primary);
    font-weight: 800;
}

/* ==========================================================================
   CABECALHO DA PÁGINA E ABAS DO MENU
   ========================================================================== */
.main-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 20px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 54px;
    width: 54px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.logo-area:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1 !important;
    letter-spacing: 0.5px;
    font-style: italic;
    margin: 0 !important;
}

.logo-title-rifas {
    color: #FFFFFF;
    text-shadow: 
        1px 1px 0 #1b4332,
        2px 2px 0 #1b4332,
        3px 3px 0 #1b4332,
        0px 4px 6px rgba(0, 0, 0, 0.4);
}

.logo-title-dos {
    font-size: 1rem;
    color: #FEFAE0;
    font-weight: 800;
    align-self: center;
    border-top: 2px solid #FEFAE0;
    border-bottom: 2px solid #FEFAE0;
    padding: 1px 5px;
    margin: 0 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-style: normal;
    line-height: 1;
}

.logo-title-bichos {
    color: #52B788;
    text-shadow: 
        1px 1px 0 #1b4332,
        2px 2px 0 #1b4332,
        3px 3px 0 #1b4332,
        0px 4px 6px rgba(0, 0, 0, 0.4);
}

/* Menu de Navegação Superior (Abas) */
.header-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    background-color: transparent;
    color: #D8F3DC;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover, .nav-link:focus {
    color: #FFFFFF;
    background-color: rgba(255,255,255,0.08);
    outline: none;
}

.nav-link.active {
    background-color: #FEFAE0;
    color: #1B4332;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.accessibility-controls {
    display: flex;
    align-items: center;
}

.btn-acc {
    background-color: #FEFAE0;
    color: #1B4332;
    border: 2px solid #FEFAE0;
    padding: 12px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-acc:hover, .btn-acc:focus {
    background-color: #FFFFFF;
    transform: scale(1.05);
    outline: 3px solid var(--accent);
}

.btn-acc.active {
    background-color: var(--accent);
    color: var(--text-main);
    border-color: var(--accent-dark);
}

/* ==========================================================================
   TABS VISIBILIDADE
   ========================================================================== */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

/* ==========================================================================
   INDICADOR DE PASSOS
   ========================================================================== */
.step-indicator {
    max-width: 700px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.step-line {
    height: 4px;
    background-color: #E2E8F0;
    flex-grow: 1;
    margin-bottom: 25px;
    border-radius: 2px;
}

.step.active .step-num {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary-light);
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.3);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step.completed .step-num {
    background-color: var(--accent);
    color: var(--text-main);
    transform: scale(1);
}

.step.completed .step-label {
    color: var(--text-main);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL E WIZARD PANES
   ========================================================================== */
.main-container {
    max-width: 1100px;
    margin: 0 auto 120px auto;
    padding: 0 16px;
}

.pane-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.pane-section.active {
    display: block;
}

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

.pane-header {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.pane-header h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--header-bg);
}

.helper-text {
    color: var(--text-muted);
}

/* ==========================================================================
   GRID DE BICHOS COM DESIGN REALISTA
   ========================================================================== */
.bicho-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 80px;
}

.bicho-grid.list-mode {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Alternador de Visualização */
.view-toggle-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.toggle-label {
    color: var(--text-muted);
}

.toggle-group {
    display: flex;
    background-color: var(--bg-primary);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(45, 106, 79, 0.2);
}

.toggle-btn:focus {
    outline: none;
}

/* Visualização em Lista / Modo Compacto sem imagens */
.bicho-card.list-view {
    min-height: 75px;
    height: 85px;
    padding: 8px;
    justify-content: space-between;
    align-items: stretch;
}

.list-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    width: 100%;
}

.bicho-number-badge-list {
    background: var(--header-bg);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--accent);
}

.bicho-name-list {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-card-status {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-align: center;
    width: 100%;
    padding-top: 4px;
}

.status-sold-text {
    color: var(--error);
    font-weight: 600;
    line-height: 1.2;
}

.buyer-name-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    word-break: break-all;
    max-width: 110px;
    font-weight: 700;
}

.status-avail-text {
    color: var(--primary);
    font-weight: 600;
}

.bicho-card {
    background-color: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.bicho-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.bicho-card.selected {
    background-color: var(--accent-light);
    border-color: var(--accent-dark);
    border-width: 4px;
    box-shadow: 0 12px 25px rgba(212, 163, 115, 0.4);
    transform: scale(1.03);
    animation: selectedPulse 2s infinite ease-in-out;
}

@keyframes selectedPulse {
    0% { box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3); }
    50% { box-shadow: 0 12px 25px rgba(212, 163, 115, 0.6); }
    100% { box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3); }
}

/* Foto Realista do Bicho */
.bicho-image-wrapper {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
    background-color: #E2E8F0;
}

.bicho-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bicho-card:hover .bicho-img {
    transform: scale(1.1);
}

/* Badge de Numero Sobreposto na Foto - Design Premium e Vítreo */
.bicho-number-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(27, 67, 50, 0.85); /* Translúcido */
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 4px 14px;
    border-radius: 30px;
    border: 1.5px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    transition: all 0.25s ease;
}

.bicho-card:hover .bicho-number-badge {
    background: var(--accent-dark);
    border-color: #FFFFFF;
    transform: scale(1.1);
}

.bicho-card.selected .bicho-number-badge {
    background-color: var(--accent-dark);
    border-color: #FFFFFF;
}

.bicho-card-details {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.bicho-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    text-align: center;
}

.bicho-tens {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.bicho-card.selected .bicho-tens {
    background-color: #FFFFFF;
    border-color: var(--accent);
}

/* Indicador de Selecionado */
.selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #FFFFFF;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

/* ==========================================================================
   ESTADO VENDIDO (BLOQUEIO DO CARD)
   ========================================================================== */
.bicho-card.sold {
    cursor: not-allowed;
    border-color: #D3DCD6;
    box-shadow: none;
    transform: none !important;
}

.bicho-card.sold:hover {
    transform: none;
    box-shadow: none;
    border-color: #D3DCD6;
}

.bicho-card.sold .bicho-image-wrapper {
    filter: grayscale(100%);
    opacity: 0.5;
}

.bicho-card.sold .bicho-card-details {
    opacity: 0.6;
}

/* Carimbo de Vendido */
.sold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background-color: rgba(214, 40, 40, 0.9);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    text-align: center;
    width: max-content;
    max-width: 90%;
}

/* ==========================================================================
   BARRA DE CONFIRMAÇÃO SELEÇÃO
   ========================================================================== */
.selection-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 16px 24px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 90;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: 2px solid var(--border-color);
    border-bottom: none;
}

.summary-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-bicho-badge {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
}

.selection-footer.active-selection {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 -10px 30px rgba(27, 67, 50, 0.3) !important;
}

.selection-footer.active-selection .summary-info span {
    color: #FFFFFF !important;
}

.selection-footer.active-selection .summary-bicho-badge {
    background-color: var(--accent-light) !important;
    color: var(--accent-dark) !important;
    border-color: #FFFFFF !important;
}

/* Pulsing action button animation */
@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 8px 20px rgba(212, 163, 115, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4); }
}

.pulse-btn {
    animation: buttonPulse 2s infinite ease-in-out;
    background-color: var(--accent) !important;
    color: var(--text-main) !important;
    border-color: var(--accent-dark) !important;
}

.pulse-btn:hover {
    background-color: #FFFFFF !important;
    color: var(--primary) !important;
}

/* ==========================================================================
   BOTOES E ENTRADAS COMUNS
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    text-align: center;
}

.btn-large {
    padding: 18px 28px;
    font-size: 1.2rem;
    min-height: 60px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-primary:disabled {
    background-color: #D3DCD6;
    color: #8C9991;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #E2E8F0;
    transform: scale(1.02);
}

.btn-success {
    background-color: #2D6A4F;
    color: #FFFFFF;
}

.btn-success:hover, .btn-success:focus {
    background-color: #1B4332;
    transform: scale(1.02);
}

.btn-danger {
    background-color: var(--error);
    color: #FFFFFF;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #A31E1E;
    transform: scale(1.02);
}

.button-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.button-row .btn-large {
    flex: 1;
}

.justify-center {
    justify-content: center;
}

.margin-top {
    margin-top: 30px;
}

/* Estilo Inputs */
.accessible-form {
    background-color: #FFFFFF;
    padding: 30px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.label-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.input-field {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    font-size: 1.15rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-primary);
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-error {
    color: var(--error);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    min-height: 24px;
}

.input-field.error {
    border-color: var(--error);
    background-color: #FFF0F0;
}

.input-field.error:focus {
    box-shadow: 0 0 0 4px #FFD2D2;
}

/* ==========================================================================
   PORTAL DO CLIENTE (CONSULTA / BUSCA)
   ========================================================================== */
.search-row {
    display: flex;
    gap: 15px;
}

.search-row .input-field {
    flex-grow: 1;
}

.results-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.client-ticket-card {
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.ticket-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticket-bicho-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ticket-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--header-bg);
}

.ticket-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticket-action-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.pending {
    background-color: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

.status-badge.completed {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.status-badge.failed {
    background-color: #E2E8F0;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO
   ========================================================================== */
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--header-bg);
}

/* Tabela Admin */
.admin-table-container {
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.admin-table-container h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--header-bg);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1rem;
}

.admin-table th {
    background-color: var(--bg-primary);
    color: var(--text-muted);
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: #FAFBF9;
}

.admin-action-row {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: 38px;
    border-radius: 6px;
}

.empty-table-text {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   ETAPA 3: PAGAMENTO (PIX) E DETALHES
   ========================================================================== */
.selected-badge {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.badge-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-text-title {
    font-weight: 700;
    color: var(--accent-dark);
}

.payment-card {
    background-color: #FFFFFF;
    padding: 30px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.payment-summary {
    width: 100%;
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 5px;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.text-large {
    font-size: 1.4rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #FFFFFF;
}

.qr-code-img {
    width: 250px;
    height: 250px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.timer-badge {
    background-color: var(--error-bg);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1rem;
    color: var(--error);
    display: flex;
    gap: 5px;
}

.copia-e-cola-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pix-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    font-size: 0.95rem;
    font-family: monospace;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    resize: none;
    outline: none;
}

.copy-success-badge {
    background-color: #D8F3DC;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary);
    animation: pulse 1.5s infinite;
}

.payment-status-box {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-status-box.success {
    background-color: #D8F3DC;
    border-color: var(--primary);
}

.status-icon {
    font-size: 2rem;
}

.pulse {
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-footer {
    text-align: center;
    padding: 40px 16px;
    background-color: var(--header-bg);
    color: #FFFFFF;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-footer .text-muted {
    color: #D8F3DC;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 1000;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--error);
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-actions button {
    flex: 1;
    height: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Responsividade básica para Mobile */
@media(max-width: 800px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-link {
        flex: 1;
        justify-content: center;
        padding: 10px 5px;
        font-size: 0.95rem;
    }
}

@media(max-width: 600px) {
    body {
        font-size: 17px;
    }
    
    .main-header {
        padding: 8px 12px !important;
    }
    
    .logo-area {
        gap: 6px !important;
    }
    
    .logo-img {
        height: 44px !important;
        width: 44px !important;
        border-radius: 8px !important;
    }

    .logo-title {
        font-size: 1.35rem !important;
        gap: 3px !important;
    }

    .logo-title-dos {
        font-size: 0.75rem !important;
        padding: 1px 3px !important;
        margin: 0 1px !important;
    }
    
    .nav-link {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        min-height: 38px !important;
        border-radius: 6px !important;
    }
    
    .main-container {
        margin-top: 10px !important;
        margin-bottom: 90px !important;
        padding: 0 8px !important;
    }
    
    .btn-acc {
        padding: 6px 10px;
    }
    
    .btn-acc .acc-text {
        display: none;
    }
    
    .step-indicator {
        margin: 8px auto 12px auto !important;
        gap: 4px !important;
    }
    
    .step {
        gap: 4px !important;
    }
    
    .step-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        border-width: 2px !important;
    }
    
    .step-label {
        font-size: 0.7rem !important;
    }
    
    .step-line {
        height: 3px !important;
        margin-bottom: 20px !important;
    }
    
    .pane-header {
        padding: 10px 14px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    
    .pane-header h2 {
        font-size: 1.1rem !important;
        margin-bottom: 4px !important;
    }
    
    .helper-text.font-large {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    
    .bicho-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 25px !important;
    }
    
    .bicho-grid.list-mode {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
    
    .bicho-card {
        min-height: 110px;
        border-width: 2px;
        border-radius: 8px;
    }
    
    /* Ajustes específicos do modo lista no mobile (Super Compacto) */
    .bicho-card.list-view {
        min-height: 60px;
        height: 68px;
        padding: 4px 6px;
    }
    .bicho-card.list-view .list-card-header {
        padding-bottom: 2px;
        gap: 4px;
    }
    .bicho-card.list-view .bicho-number-badge-list {
        font-size: 0.72rem;
        padding: 1px 4px;
    }
    .bicho-card.list-view .bicho-name-list {
        font-size: 0.8rem;
    }
    .bicho-card.list-view .list-card-status {
        padding-top: 0px;
        font-size: 0.72rem;
    }
    .bicho-card.list-view .buyer-name-text {
        font-size: 0.72rem;
        max-width: 100%;
    }
    .bicho-card.list-view .status-sold-text,
    .bicho-card.list-view .status-avail-text {
        font-size: 0.72rem;
    }
    
    .bicho-image-wrapper {
        height: 62px;
    }
    
    .bicho-img {
        opacity: 1;
    }

    .bicho-number-badge {
        top: 3px;
        left: 3px;
        font-size: 0.75rem;
        padding: 1px 6px;
        border-width: 1px;
    }

    .bicho-card-details {
        display: flex;
        padding: 4px 2px;
        gap: 1px;
        justify-content: center;
        align-items: center;
    }
    
    .bicho-name {
        font-size: 0.8rem;
    }
    
    .selected-indicator {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
        border-width: 2px;
        z-index: 10;
    }

    .sold-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-12deg);
        background-color: rgba(214, 40, 40, 0.9);
        color: #FFFFFF;
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 4px;
        text-align: center;
        white-space: nowrap;
        letter-spacing: 0px;
    }
    
    .selection-footer {
        padding: 12px 16px;
    }
    
    .btn-large {
        padding: 14px 20px;
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .accessible-form {
        padding: 20px 16px;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FESTIVAL DE GANHADORES E OVERLAYS (Fase 3)
   ========================================================================== */
.winner-banner {
    background: linear-gradient(135deg, #1b4332 0%, #081c15 100%);
    border: 3px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    margin-bottom: 30px;
    box-shadow: 0 12px 24px rgba(212, 163, 115, 0.25);
    animation: pulseCelebration 2s infinite ease-in-out;
}

@keyframes pulseCelebration {
    0% { transform: scale(1); box-shadow: 0 12px 24px rgba(212, 163, 115, 0.25); }
    50% { transform: scale(1.01); box-shadow: 0 12px 35px rgba(212, 163, 115, 0.45); }
    100% { transform: scale(1); box-shadow: 0 12px 24px rgba(212, 163, 115, 0.25); }
}

.winner-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #FFFFFF;
}

.winner-trophy {
    font-size: 4rem;
    background: linear-gradient(135deg, #FFE066 0%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.winner-text-area h2 {
    color: #FFE066 !important;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.winner-text-area p {
    margin: 4px 0;
}

/* Overlay do Grid Fechado */
.closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    border-radius: var(--border-radius);
    padding: 20px;
}

.overlay-card {
    background: #FFFFFF;
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 440px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-card h2 {
    color: var(--header-bg);
    margin-top: 10px;
    font-size: 1.6rem;
}

.overlay-card p {
    color: var(--text-muted);
    margin-top: 10px;
}

/* ==========================================================================
   ESTILOS DOS ELEMENTOS SELECIONADOS EM LISTA INLINE (Passo 2)
   ========================================================================== */
.badge-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.selected-bichos-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.selected-bicho-badge-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* ==========================================================================
   ESTILOS PREMIUM DA ÁREA ADMINISTRATIVA
   ========================================================================== */

/* Login com Glassmorphism */
#admin-login-section .pane-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 40px 30px !important;
    margin-top: 50px;
    border-radius: 20px !important;
}

/* Hover e Destaques dos Cards de Estatísticas */
.admin-stats-grid .stat-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 5px solid var(--border-color);
}

.admin-stats-grid .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.admin-stats-grid .stat-card:nth-child(1) { border-left-color: var(--primary); }
.admin-stats-grid .stat-card:nth-child(2) { border-left-color: var(--accent); }
.admin-stats-grid .stat-card:nth-child(3) { border-left-color: #f1c40f; }

/* Tabela de Transações Modernizada */
.admin-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.admin-table th {
    background-color: var(--bg-primary);
    color: var(--header-bg);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.admin-table tr:hover td {
    background-color: var(--bg-primary);
}

/* Badges de Status na Tabela */
.admin-table .status-badge {
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.admin-table .status-badge.completed {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

.admin-table .status-badge.pending {
    background-color: #FEFAE0 !important;
    color: var(--accent-dark) !important;
    border: 1px solid var(--accent);
}

.admin-table .status-badge.failed {
    background-color: #F8D7DA !important;
    color: #721C24 !important;
}

/* Botões de Ação na Tabela */
.btn-small {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    min-height: auto !important;
    border-radius: 6px !important;
}

.btn-admin-confirm {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-admin-confirm:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-admin-cancel {
    background-color: var(--error) !important;
    border-color: var(--error) !important;
    color: #FFFFFF !important;
}

.btn-admin-cancel:hover {
    background-color: #B22222 !important;
    border-color: #B22222 !important;
}

/* Sistema de Toasts (Notificações) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), fadeOut 0.4s 3.6s forwards;
}

.toast.success {
    border-left: 5px solid var(--primary);
}

.toast.error {
    border-left: 5px solid var(--error);
}

.toast-icon {
    font-size: 1.3rem;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}

/* Modal de Confirmação Customizado (Fundo Desfocado) */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    animation: fadeInModal 0.25s ease-out;
}

.confirm-modal-content {
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: scaleInModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-modal-content h4 {
    font-size: 1.3rem;
    color: var(--header-bg);
    margin-bottom: 12px;
}

.confirm-modal-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.confirm-modal-actions button {
    padding: 10px 24px !important;
    min-height: auto !important;
    border-radius: 8px !important;
    font-weight: 700;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleInModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Permitir cliques e cursor pointer nos cards vendidos dentro do Grid de Administração */
#admin-bicho-grid .bicho-card.sold {
    cursor: pointer !important;
}

#admin-bicho-grid .bicho-card.sold::after {
    content: "🔄 Liberar Bicho";
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    z-index: 12;
}

#admin-bicho-grid .bicho-card.sold:hover::after {
    opacity: 1;
}

/* ==========================================================================
   ESTILOS DE NAVEGAÇÃO POR ABAS NO PAINEL ADMIN
   ========================================================================== */

/* Barra de Abas */
.admin-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--header-bg);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Botões de Aba */
.nav-tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.nav-tab-btn.active {
    background-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.2);
}

/* Visibilidade do Conteúdo de Abas */
.admin-tab-content {
    display: none;
    animation: fadeInTab 0.35s ease-out;
}

.admin-tab-content.active {
    display: block;
}

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

/* Adaptação Responsiva das Abas no Mobile */
@media(max-width: 600px) {
    .admin-nav-tabs {
        padding: 6px;
        gap: 4px;
        border-radius: 8px;
        margin-bottom: 15px;
        justify-content: space-between;
    }
    
    .nav-tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
        text-align: center;
        gap: 4px;
        white-space: nowrap;
    }
}

/* ==========================================================================
   ESTILOS DOS GANHADORES ANTERIORES E LOGS DE AÇÃO
   ========================================================================== */

/* Grid de Ganhadores Anteriores (Cliente) */
.past-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Card de Ganhador Anterior */
.past-winner-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.past-winner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

.past-winner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.past-edition-badge {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
}

.past-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.past-winner-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.past-winner-animal-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.past-winner-animal-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border: 2px solid var(--border-color);
}

.past-winner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.past-winner-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.past-winner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-bg);
}

.past-winner-bicho {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Badges Coloridas de Logs no Admin */
.log-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

.badge-blue {
    background-color: #EBF8FF;
    color: #2B6CB0;
    border: 1px solid #BEE3F8;
}

.badge-purple {
    background-color: #FAF5FF;
    color: #6B46C1;
    border: 1px solid #E9D8FD;
}

.badge-green {
    background-color: #F0FFF4;
    color: #2F855A;
    border: 1px solid #C6F6D5;
}

.badge-red {
    background-color: #FFF5F5;
    color: #C53030;
    border: 1px solid #FED7D7;
}

.badge-orange {
    background-color: #FFFAF0;
    color: #DD6B20;
    border: 1px solid #FEEBC8;
}

.badge-gold {
    background-color: #FFFDF0;
    color: #B7791F;
    border: 1px solid #FEFCBF;
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.2);
}

/* ==========================================================================
   ESTILOS TRADICIONAIS DO JOGO DO BICHO (RETRÔ E REALISTA)
   ========================================================================== */

.bicho-grid.traditional-mode {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 80px;
}

.bicho-card.traditional-bicho {
    background-color: #FFFFFF !important;
    border: 3px double #1D231F !important;
    border-radius: 8px !important;
    padding: 10px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 190px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    min-width: 0;
}

.bicho-card.traditional-bicho:hover {
    transform: translateY(-5px) scale(1.02) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.bicho-card.traditional-bicho.selected {
    background-color: #FEFAE0 !important;
    border-color: var(--accent-dark) !important;
    border-style: solid !important;
    border-width: 4px !important;
    box-shadow: 0 12px 25px rgba(212, 163, 115, 0.45) !important;
}

.bicho-traditional-group-num {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Outfit', 'Georgia', serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #D62828; /* Vermelho tradicional do Jogo do Bicho */
    line-height: 0.9;
    letter-spacing: -1px;
}

.bicho-traditional-tens {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Outfit', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1D231F;
    line-height: 1.1;
    text-align: right;
}

.bicho-traditional-img-wrapper {
    width: 85px;
    height: 85px;
    margin-top: 32px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
}

.bicho-traditional-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.08));
}

.bicho-traditional-name {
    font-family: 'Outfit', 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D231F;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: auto;
    text-transform: uppercase;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    padding-top: 6px;
}

/* Carimbo vintage de Reservado / Pago */
.sold-overlay-traditional {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(214, 40, 40, 0.9);
    color: #FFFFFF;
    border: 3px double #FFFFFF;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 20;
    width: 90%;
    line-height: 1.1;
}

.bicho-card.traditional-bicho.sold {
    cursor: not-allowed;
    opacity: 0.9;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    70% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   ESTILOS RESPONSIVOS E MENU HAMBURGUER (☰)
   ========================================================================== */

.hamburger-btn {
    display: none;
}

@media (max-width: 900px) {
    .header-container {
        position: relative;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        outline: none;
        border-radius: 0;
        box-shadow: none;
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #FFFFFF;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Transformação do botão hamburguer em X */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-15px);
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 12px 24px rgba(0,0,0,0.18);
        padding: 15px 20px;
        gap: 10px;
        z-index: 1000;
        border-bottom: 3px solid var(--accent);
        animation: slideDownMenu 0.25s ease-out forwards;
    }

    .header-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 1.15rem;
        border-radius: 8px;
    }
}

@keyframes slideDownMenu {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #FFFFFF;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    color: #FFFFFF !important;
    text-decoration: none;
}

.whatsapp-float svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
