/* CSS Design System - Meu Clube (Gestão Esportiva) */

:root {
    /* Color Palette from Brand Book */
    --color-primary: #004D25;       /* Deep Forest Green */
    --color-gold: #D1A31A;          /* Gold Accent */
    --color-secondary-green: #7AAB8A; /* Sage Green */
    --color-secondary-beige: #D1B48C; /* Sand Beige */
    
    /* Background Gradients */
    --bg-dark-1: #030805;           /* Deep obsidian-green */
    --bg-dark-2: #08170e;           /* Rich forest-black */
    --bg-card: rgba(8, 22, 14, 0.55);
    --border-glass: rgba(209, 163, 26, 0.12);
    --border-glass-hover: rgba(209, 163, 26, 0.35);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-muted: #9bb0a3;
    --text-gold: #e5bf4c;
    
    /* System Colors */
    --color-error: #ef5350;
    --color-success: #66bb6a;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    color: var(--text-white);
    font-family: var(--font-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-1);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
    border: 1px solid var(--color-gold);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

.text-gold {
    color: var(--color-gold) !important;
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-24 {
    margin-top: 24px;
}

.hidden {
    display: none !important;
}

/* Header & Logo styling */
.app-header {
    background: rgba(3, 8, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-fallback-shield {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0c2b18 100%);
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 24px;
}

.brand-names {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.brand-subtitle {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold);
    background: rgba(209, 163, 26, 0.08);
    border-color: rgba(209, 163, 26, 0.15);
}

.nav-admin-btn {
    border: 1px dashed var(--color-gold);
}

.nav-admin-btn:hover {
    background: rgba(209, 163, 26, 0.15);
}

/* Main Content SPA View */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

.spa-view {
    animation: fadeIn 0.4s ease-out;
}

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

/* Hero Section style */
.hero-section {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #021a0d 0%, #004D25 100%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right, rgba(209, 163, 26, 0.15) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.badge-premium {
    display: inline-block;
    background: rgba(209, 163, 26, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.grid-left-col {
    display: flex;
    flex-direction: column;
}

.grid-right-col {
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
}

.glass-card.full-height {
    height: 100%;
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.card-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header p.subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Common UI Elements: Buttons, inputs */
.btn {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: #e5bf4c;
    box-shadow: 0 0 12px rgba(209, 163, 26, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass-hover);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-gold);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 12px 10px 38px;
    color: var(--text-white);
    font-family: var(--font-secondary);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--color-gold);
}

/* Clubs Lists & Items */
.clubs-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.club-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.club-list-item:hover {
    background: rgba(209, 163, 26, 0.05);
    border-color: rgba(209, 163, 26, 0.2);
    transform: translateX(4px);
}

.club-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-item-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.club-item-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 700;
}

.club-item-info h3 {
    font-size: 14px;
    color: var(--text-white);
}

.club-item-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.club-item-meta {
    font-size: 12px;
    color: var(--color-gold);
    font-weight: 600;
}

/* Leaderboards styling */
.leaderboard-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--color-gold);
    color: #000;
}

.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.leaderboard-row:nth-child(1) { border-left-color: #d1a31a; background: rgba(209, 163, 26, 0.05); }
.leaderboard-row:nth-child(2) { border-left-color: #c0c0c0; }
.leaderboard-row:nth-child(3) { border-left-color: #cd7f32; }

.leaderboard-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-rank {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 14px;
    width: 20px;
    color: var(--color-gold);
}

.leaderboard-name {
    font-weight: 600;
    font-size: 13px;
}

.leaderboard-club-code {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    margin-left: 6px;
}

.leaderboard-score {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-gold);
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    width: 100%;
}

.empty-state i {
    font-size: 48px;
    color: rgba(209, 163, 26, 0.25);
    margin-bottom: 16px;
}

/* Forms and Login layouts */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    font-size: 48px;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.login-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 12px;
    color: var(--color-gold);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    margin-right: 4px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-white);
    font-family: var(--font-secondary);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--color-gold);
}

.form-row {
    display: flex;
    gap: 12px;
}

.col-4 {
    flex: 0 0 calc(33.333% - 8px);
}

.error-msg {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--color-error);
    color: #ff8a80;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 16px;
    text-align: left;
}

/* Master Admin Dashboard & Tables */
.dashboard-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.dashboard-title h1 {
    font-size: 28px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

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

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

.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.text-right {
    text-align: right;
}

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

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--color-gold);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-lg {
    max-width: 750px;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-title-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-body {
    padding-bottom: 20px;
}

.scroll-y {
    overflow-y: auto;
}

.max-h-500 {
    max-height: 500px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-gold);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: 20px;
}

/* Image Upload Preview Box */
.image-upload-wrapper {
    position: relative;
    width: 100%;
}

.image-preview-box {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-preview-box:hover {
    border-color: var(--color-gold);
    background: rgba(209, 163, 26, 0.03);
}

.image-preview-box i {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.preview-text {
    font-size: 11px;
    color: var(--text-muted);
}

.image-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.form-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Radio Cards selection for tournament sizing */
.radio-group-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.radio-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card.active {
    border-color: var(--color-gold);
    background: rgba(209, 163, 26, 0.05);
}

.radio-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-gold);
}

.radio-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* Club selection list for championship */
.teams-grid-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.15);
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}

.team-checkbox-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.team-checkbox-card.selected {
    background: rgba(0, 77, 37, 0.2);
    border-color: var(--color-gold);
}

.team-checkbox-card input {
    cursor: pointer;
    accent-color: var(--color-gold);
}

.team-checkbox-card label {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Championships Admin Rows */
.championships-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.champ-admin-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.champ-admin-item:hover {
    border-color: rgba(209, 163, 26, 0.25);
}

.champ-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.champ-info p {
    font-size: 11px;
}

/* Club Portal Profiles */
.club-profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.club-profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.club-profile-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.club-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.club-profile-logo i {
    font-size: 32px;
    color: var(--color-gold);
}

.club-profile-info h1 {
    font-size: 24px;
}

.club-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.club-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats editing input controls */
.stat-input-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-input-cell input {
    width: 42px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 4px;
    color: var(--text-white);
    text-align: center;
    font-size: 12px;
    font-family: var(--font-secondary);
    outline: none;
}

.stat-input-cell input:focus {
    border-color: var(--color-gold);
}

.stat-adjust-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stat-adjust-btn:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* Club Portal: Active Championships List */
.club-championships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.club-champ-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.club-champ-card:hover {
    border-color: var(--color-gold);
    background: rgba(209, 163, 26, 0.03);
}

.club-champ-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.club-champ-header h3 {
    font-size: 14px;
    color: var(--text-white);
}

.club-champ-badge {
    font-size: 10px;
    background: var(--color-primary);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.club-champ-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================== */
/* BRACKETS RENDER SYSTEM (COPA / MATA-MATA) */
/* ============================================== --> */
.bracket-viewport {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.bracket-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    min-width: max-content;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 30px;
    min-width: 260px;
    height: 100%;
}

.bracket-round-title {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* Match card layout */
.bracket-match {
    background: rgba(4, 10, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.bracket-match:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 4px 20px rgba(0, 77, 37, 0.2);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.match-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
}

.match-team.winner {
    background: rgba(0, 77, 37, 0.15);
    border-color: rgba(209, 163, 26, 0.2);
    color: var(--text-gold);
}

.match-team.loser {
    opacity: 0.6;
}

.team-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.team-logo-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-logo-sm-fallback {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 8px;
    font-weight: 700;
}

.match-score {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    width: 24px;
    text-align: center;
    color: var(--text-white);
}

.match-team.winner .match-score {
    color: var(--color-gold);
}

/* Edit / Interactive score display */
.bracket-editor-viewport .bracket-match {
    cursor: pointer;
}

.bracket-editor-viewport .bracket-match:hover {
    border-color: var(--color-gold);
}

.bracket-editor-viewport .match-score-input {
    width: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-white);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    padding: 2px 0;
}

.bracket-editor-viewport .match-score-input:focus {
    border-color: var(--color-gold);
}

/* Footer styling */
.app-footer {
    background: rgba(3, 8, 5, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 20px 24px;
    text-align: center;
    margin-top: 48px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Public Club details roster */
.details-section-title {
    font-size: 14px;
    color: var(--color-gold);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
    text-transform: uppercase;
}

.details-table-container {
    overflow-x: auto;
}

/* Detail logo */
.modal-header-logo-area #club-details-logo-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

#club-details-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#club-details-logo-container i {
    font-size: 24px;
    color: var(--color-gold);
}

/* Corujão (Round-Robin) Layout and Styles */
.round-robin-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.round-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.round-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.round-tab-btn:hover, .round-tab-btn.active {
    background: var(--color-primary);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

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

.standings-table-container {
    overflow-x: auto;
    margin-bottom: 12px;
}

.admin-table th.col-small, .admin-table td.col-small {
    width: 48px;
    text-align: center;
    padding: 10px 4px;
}

.admin-table tr.highlight-standings {
    background: rgba(0, 77, 37, 0.05);
    border-left: 3px solid var(--color-gold);
}

/* Custom indicator colors for platform labels */
.badge-platform {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-pc {
    background: rgba(209, 163, 26, 0.15);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.badge-xbox {
    background: rgba(16, 124, 16, 0.15);
    color: #107c10;
    border: 1px solid #107c10;
}

.badge-ps {
    background: rgba(0, 112, 204, 0.15);
    color: #0070cc;
    border: 1px solid #0070cc;
}

/* Stats Cards Grid Layout */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.player-stats-card {
    background: rgba(3, 8, 5, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.player-stats-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 77, 37, 0.15);
}

.player-stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.player-card-title h3 {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 2px;
}

.player-card-title span {
    font-size: 11px;
    color: var(--text-muted);
}

.player-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.player-stats-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.player-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Trophy Gallery and Cards */
.trophies-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.trophy-card {
    background: linear-gradient(135deg, rgba(209, 163, 26, 0.05) 0%, rgba(3, 8, 5, 0.5) 100%);
    border: 1px solid rgba(209, 163, 26, 0.25);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.trophy-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(209, 163, 26, 0.2);
    transform: translateY(-2px);
}

.trophy-card i.trophy-gold-icon {
    font-size: 40px;
    color: var(--color-gold);
    filter: drop-shadow(0 0 8px rgba(209, 163, 26, 0.4));
}

.trophy-card h3 {
    font-size: 14px;
    color: var(--text-white);
}

.trophy-card p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badges */
.badge-status {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-status-andamento {
    background: rgba(0, 112, 204, 0.15);
    color: #00b0ff;
    border: 1px solid #00b0ff;
}

.badge-status-finalizado {
    background: rgba(209, 163, 26, 0.15);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.badge-status-adiado {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.badge-status-cancelado {
    background: rgba(239, 83, 80, 0.15);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* Image proof controls and viewer modal */
.proof-upload-btn-label {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.proof-upload-btn-label:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(209,163,26,0.03);
}

.proof-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.proof-indicator:hover {
    transform: scale(1.2);
}

.image-viewer-card {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 0 35px rgba(209, 163, 26, 0.35);
}

.image-viewer-card img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-viewer-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: var(--text-white);
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

.image-viewer-close:hover {
    color: var(--color-gold);
}

.trophy-custom-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(209, 163, 26, 0.45));
    transition: transform 0.3s ease;
}

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

/* Toast Clipboard Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 77, 37, 0.95);
    border: 1px solid var(--color-gold);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(209, 163, 26, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Player Roster List (replaces table on desktop) */
.player-roster-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.roster-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.roster-player-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(209, 163, 26, 0.25);
}

.player-roster-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* allows flex wrapping and text truncating */
}

.player-roster-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-gold);
    min-width: 32px;
}

.player-roster-details {
    min-width: 0;
}

.player-roster-details h4 {
    font-size: 14px;
    color: var(--text-white);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-roster-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.player-roster-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

/* Fix desktop layout grid leakages and sizing */
.dashboard-grid {
    grid-template-columns: minmax(320px, 380px) 1fr !important;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Invisible Honeypot Field for Spam Bot Protection */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Header Social Links Styling */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.header-social-icon {
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-social-icon:hover {
    color: var(--color-gold) !important;
    transform: scale(1.15);
}

@media (max-width: 900px) {
    .header-social-links {
        display: none !important;
    }
}

/* Tactical Board Styling */
.tactical-piece {
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    user-select: none;
    touch-action: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tactical-piece:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    z-index: 100;
}

.piece-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
}

.piece-red {
    background: linear-gradient(135deg, #b22222 0%, #ff4500 100%);
    border-radius: 4px;
}

.tatic-tool-btn.active {
    background: var(--color-gold) !important;
    color: #000000 !important;
    border-color: var(--color-gold) !important;
}






