:root {
    --primary: #0F7B3F;
    --primary-light: #18A558;
    --gold: #D4AF37;
    --bg-primary: #0B1014;
    --bg-secondary: #121A21;
    --card-bg: #18232D;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C2CC;
    --border-color: #1E2A35;
    --error: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
    --info: #3498DB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 32, 17, 0.15) 0%, rgba(7, 48, 25, 0.2) 100%);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

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

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
    border-color: rgba(39, 174, 96, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #18A558;
}

.btn-secondary:hover {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.5);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(39, 174, 96, 0.35);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.1);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.08);
}

/* Compact, premium look for the homepage stats */
.stats-section .stat-card {
    padding: 1rem 1rem;
    border-left: none;
    background: linear-gradient(135deg, rgba(18,26,33,0.6) 0%, rgba(24,35,45,0.6) 100%);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 64px;
}
.stats-section .stat-card .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.stats-section .stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stats-section .stat-card.highlight {
    background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(18,26,33,0.6) 100%);
    border-color: rgba(212,175,55,0.12);
}
.stats-section .stat-card .stat-icon { display: none; }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Sections */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Cards e Tabelas */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.history-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: var(--bg-secondary);
}

.history-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.history-table tbody tr:hover {
    background: rgba(39, 174, 96, 0.05);
}

.history-table tr.top-1 {
    background: rgba(212, 175, 55, 0.1);
}

.history-table tr.top-2 {
    background: rgba(192, 192, 192, 0.05);
}

.history-table tr.top-3 {
    background: rgba(205, 127, 50, 0.05);
}

/* Matches */
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.match-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.match-round {
    display: inline-block;
    background: rgba(24, 165, 88, 0.1);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.team {
    flex: 1;
    text-align: center;
}

.team-flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.match-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    min-width: 80px;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 123, 63, 0.1);
}

.form-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-section h2 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: var(--error);
    color: #FF9999;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success);
    color: #90EE90;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left-color: var(--warning);
    color: #FFD700;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: var(--info);
    color: #87CEEB;
}

.alert a {
    color: inherit;
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-exact {
    background: var(--gold);
    color: #000;
}

.badge-correct {
    background: var(--success);
    color: white;
}

.badge-wrong {
    background: var(--error);
    color: white;
}

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

.badge-missing {
    background: var(--warning);
    color: #000;
}

/* Filter */
.filter-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.filter-form input,
.filter-form select {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .matches-list {
        grid-template-columns: 1fr;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .hero {
        padding: 2rem 1rem;
        min-height: 250px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .match-content {
        flex-direction: column;
    }
    
    .match-time {
        order: -1;
    }
}

/* Print */
@media print {
    .header,
    .footer,
    .filter-section,
    .btn,
    .hero {
        display: none;
    }
}

/* Premium Glassmorphic Admin UI & Modal Styles */
.admin-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.admin-grid-layout .full-width {
    grid-column: 1 / -1;
}

.admin-card-section {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 2rem;
}

.admin-card-section h2 {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-light);
    padding-left: 0.75rem;
}

/* Legal Pages - Regras, Privacidade, Termos */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 1.5rem;
}

.legal-card h2 {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-light);
    padding-left: 0.75rem;
}

.legal-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-card li {
    margin-bottom: 0.5rem;
}

.legal-card strong {
    color: var(--text-primary);
}

.legal-card a {
    color: var(--primary-light);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header-flex h2 {
    margin-bottom: 0;
}

.filter-form-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-form-inline select {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
    font-weight: 500;
}

.admin-form-glass {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn-full {
    width: 100%;
}

/* Badges de Status do Jogo */
.status-scheduled {
    background: rgba(184, 194, 204, 0.15) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

.status-live {
    background: rgba(231, 76, 60, 0.15) !important;
    color: var(--error) !important;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: pulse-red 2s infinite;
}

.status-finished {
    background: rgba(39, 174, 96, 0.15) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

@keyframes pulse-red {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.badge-primary {
    background: rgba(24, 165, 88, 0.2) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(24, 165, 88, 0.4);
}

.badge-secondary {
    background: rgba(184, 194, 204, 0.1) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

.badge-warning {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Tabela e Células de Jogos */
.match-teams-col {
    font-size: 1rem;
}

.match-teams-col .vs {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: normal;
    margin: 0 0.5rem;
}

.score-pill {
    background: var(--bg-primary);
    border: 1px solid var(--primary-light);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-family: monospace;
    font-size: 1rem;
}

.score-pill-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Ações nas Tabelas */
.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-action {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-action:hover {
    transform: translateY(-2px);
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--info);
}

.btn-status:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--warning);
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--error);
}

.btn-lock:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--error);
}

.btn-unlock:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--success);
}

/* Modais Glassmorphism */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 16, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content-glass {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.95) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--error);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

/* Custom Checkbox */
.form-checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-light);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary-light);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Premium Filter Layout */
.filter-section-premium {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-form-premium {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form-premium input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-form-premium input:focus {
    border-color: var(--primary-light);
}

.user-tag {
    background: rgba(24, 165, 88, 0.1);
    color: var(--primary-light);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* =============================================
   PAINEL ADMIN - Estilos Premium & Glassmorphism
   ============================================= */

/* Admin Grid no Dashboard */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.admin-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(39, 174, 96, 0.4);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.2);
}

.admin-card .icon {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.admin-card:hover .icon {
    transform: scale(1.15);
}

.admin-card .title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
}

.admin-menu {
    margin-top: 2rem;
}

.admin-menu h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary-light);
    padding-left: 0.55rem;
}

/* Barra de Navegação Rápida Superior do Admin */
.admin-quick-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.85rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.admin-quick-nav::-webkit-scrollbar {
    height: 5px;
}

.admin-quick-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-nav-item.active {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.35);
    color: var(--primary-light);
}

.ani-icon {
    font-size: 1.1rem;
}

/* Responsividade Aprimorada */
@media (max-width: 768px) {
    .admin-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .section-header-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form-premium {
        flex-direction: column;
        align-items: stretch;
    }
}

.match-row-hover {
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.match-row-hover:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.match-row-hover:active {
    transform: scale(0.995);
}

/* Admin Stats Grid - 7 cards compactos em uma única linha */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}

.admin-stats-grid .stat-card {
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-stats-grid .stat-card .stat-value {
    font-size: 1.35rem;
    word-break: break-all;
}

.admin-stats-grid .stat-card .stat-label {
    font-size: 0.75rem;
}

/* Responsividade para Admin Stats Grid */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ESTILOS PREMIUM - PÁGINAS DE AUTENTICAÇÃO
   ============================================= */

/* Fundo da página de auth */
.auth-page {
    background: radial-gradient(circle at top right, rgba(24, 165, 88, 0.12), transparent 45%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.07), transparent 45%),
                var(--bg-primary) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2.5rem 1.25rem !important;
}

/* Container centralizado */
.auth-container {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Card Premium com Glassmorphism */
.auth-card {
    background: linear-gradient(135deg, rgba(24, 35, 45, 0.75) 0%, rgba(18, 26, 33, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 2.75rem 2.25rem !important;
    width: 100% !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
}

.auth-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Card maior para o Registro */
.auth-card.auth-card-large {
    max-width: 540px !important;
}

/* Cabeçalho da autenticação */
.auth-header {
    text-align: center !important;
    margin-bottom: 2.25rem !important;
}

.auth-header a {
    text-decoration: none !important;
    display: inline-block !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
}

.auth-header a:hover {
    transform: scale(1.025) !important;
    opacity: 0.9 !important;
}

.auth-header h1 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(to right, #FFFFFF, var(--text-secondary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-top: 0 !important;
}

.auth-header p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* Formulário de autenticação */
.auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.35rem !important;
}

/* Campos de entrada refinados */
.auth-form .form-group {
    margin-bottom: 0 !important; /* Reseta margem antiga */
}

.auth-form .form-group label {
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
}

.auth-form .form-group input {
    background: rgba(18, 26, 33, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    padding: 0.9rem 1.1rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-form .form-group input:focus {
    outline: none !important;
    border-color: var(--primary-light) !important;
    background: rgba(18, 26, 33, 0.85) !important;
    box-shadow: 0 0 0 4px rgba(24, 165, 88, 0.15) !important;
}

/* Botões Modernos na Auth */
.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(15, 123, 63, 0.2) !important;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 123, 63, 0.3) !important;
    filter: brightness(1.1) !important;
}

.auth-form .btn-primary:active {
    transform: translateY(0) !important;
}

/* Links do rodapé da auth */
.auth-footer {
    margin-top: 2rem !important;
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.auth-footer p {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.auth-footer a {
    color: var(--primary-light) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.auth-footer a:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* Helper para telefone (WhatsApp) */
.phone-helper {
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
    margin-top: 0.4rem !important;
}

/* Alertas customizados dentro do Card */
.auth-card .alert {
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-page {
        padding: 1.5rem 1rem !important;
    }
    
    .auth-card {
        padding: 2.25rem 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .auth-header h1 {
        font-size: 1.65rem !important;
    }
}

/* =============================================
   ESTILOS PREMIUM - PERFIL DO USUÁRIO (PROFILE)
   ============================================= */

.profile-section {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(24, 165, 88, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

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

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.profile-info p.username {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.profile-info p.email {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.profile-stats .stat-box {
    background: rgba(10, 16, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-stats .stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stats .stat-box.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.25);
}

.profile-stats .stat-box.highlight .stat-value {
    color: var(--gold);
}

.profile-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.profile-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-actions .btn, 
.profile-actions a.btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* User Menu Cards Section */
.user-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.menu-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(18, 26, 33, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-light);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.menu-card:hover::after {
    transform: scaleY(1);
}

.menu-card .icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card .title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.menu-card .arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.menu-card:hover .arrow {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* Responsividade do Perfil */
@media (max-width: 576px) {
    .profile-section {
        padding: 1.75rem 1.25rem;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        border-radius: 20px;
    }
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   PALETA VISUAL PADRONIZADA - Todas as Páginas
   ============================================================ */

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(18, 26, 33, 0.8) 0%, rgba(24, 35, 45, 0.6) 100%);
    border: 1px solid rgba(39, 174, 96, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-card:hover {
    border-color: rgba(39, 174, 96, 0.35);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.1);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.08);
}

/* History/Match Tables */
.history-table-wrapper {
    background: rgba(18, 26, 33, 0.6);
    border: 1px solid rgba(39, 174, 96, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(39, 174, 96, 0.08);
}

.history-table tbody tr:hover {
    background: rgba(39, 174, 96, 0.05);
}

/* Ranking Table */
.ranking-table {
    background: rgba(18, 26, 33, 0.5);
}

.ranking-table tbody tr:hover {
    background: rgba(39, 174, 96, 0.04);
}

/* Status Badges */
.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.status-scheduled {
    background: rgba(39, 174, 96, 0.12);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-live {
    background: rgba(231, 76, 60, 0.12);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: pulse-live 2s infinite;
}

.status-finished {
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Input Focus */
input:focus, textarea:focus, select:focus {
    border-color: rgba(39, 174, 96, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* Alert Styles */
.alert {
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
    border-left-color: #27AE60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    border-left-color: #E74C3C;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498DB;
    border-left-color: #3498DB;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #18A558 0%, #0F7B3F 100%);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
    border-color: rgba(39, 174, 96, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #18A558;
}

.btn-secondary:hover {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.5);
}
