/* --- Light & Pastel Gaming Styling (torneo-fifa.css) --- */

:root {
    --gaming-bg: #faf8fc;
    --gaming-panel: rgba(255, 255, 255, 0.7);
    --gaming-panel-hover: rgba(255, 255, 255, 0.9);
    --gaming-border: rgba(107, 33, 168, 0.1);
    --gaming-border-active: rgba(147, 51, 234, 0.3);
    --gaming-text: #1a153b;
    --gaming-text-muted: #5e587d;
    
    /* Bright Esports Accents (Light Mode Optimized) */
    --neon-purple: #7c3aed;
    --neon-pink: #db2777;
    --neon-blue: #2563eb;
    --neon-mint: #059669;
    --neon-gold: #d97706;
    --neon-red: #dc2626;
}

/* Base Body override for Torneo page */
body.torneo-page-theme {
    background-color: var(--gaming-bg) !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(240, 98, 146, 0.12) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(186, 104, 200, 0.12) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(33, 150, 243, 0.1) 0px, transparent 50%) !important;
    color: var(--gaming-text) !important;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Typography styles */
.torneo-page-theme h1, 
.torneo-page-theme h2, 
.torneo-page-theme h3, 
.torneo-page-theme h4, 
.torneo-page-theme h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--gaming-text);
    font-weight: 700;
}

/* Layout Container */
.container-torneo {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--gaming-panel);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--gaming-border);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(107, 33, 168, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: var(--gaming-panel-hover);
    border-color: var(--gaming-border-active);
    box-shadow: 0 20px 45px rgba(107, 33, 168, 0.08);
    transform: translateY(-2px);
}

/* Header & Navigation Integration */
.torneo-page-theme header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.torneo-page-theme .nav-pill {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(107, 33, 168, 0.1) !important;
    box-shadow: 0 8px 32px rgba(107, 33, 168, 0.03) !important;
}

.torneo-page-theme .nav-pill:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: var(--gaming-border-active) !important;
}

.torneo-page-theme .nav-links a {
    color: var(--gaming-text) !important;
}

.torneo-page-theme .logo-btn {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Section */
.torneo-hero {
    position: relative;
    padding: 10rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.torneo-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.esports-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.15) 0%, rgba(240, 98, 146, 0.15) 100%);
    border: 1px solid rgba(240, 98, 146, 0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--neon-pink);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.1);
}

.torneo-hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1a153b 20%, #6b21a8 70%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(107, 33, 168, 0.05);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gaming-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--gaming-text);
    border-bottom: 2px solid var(--neon-pink);
    padding-bottom: 2px;
}

/* Statistics Dashboard Grid */
.torneo-stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.stat-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon-wrapper.goals {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--neon-gold);
}

.stat-icon-wrapper.avg {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--neon-mint);
}

.stat-icon-wrapper.match {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--neon-pink);
}

.stat-icon-wrapper.group {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--neon-blue);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--gaming-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.stat-val {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--gaming-text);
}

.stat-val-small {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--gaming-text);
}

/* Split Layout: Search & Scorers */
.torneo-search-leaders-section {
    margin-bottom: 3rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.card-header-torneo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-header-torneo h3 {
    font-size: 1.5rem;
    color: var(--gaming-text);
}

.header-icon-torneo {
    color: var(--neon-purple);
    width: 24px;
    height: 24px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--gaming-text-muted);
    margin-bottom: 1.5rem;
}

/* Search input design */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-field-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gaming-text-muted);
    width: 18px;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gaming-text-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.clear-search-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gaming-text);
}

#participant-search-input {
    width: 100%;
    padding: 1.1rem 3.5rem 1.1rem 3.2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gaming-border);
    color: var(--gaming-text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

#participant-search-input:focus {
    border-color: var(--gaming-border-active);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
    background: #ffffff;
}

/* Search autocomplete list */
.search-results-list {
    margin-top: 0.8rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--gaming-border-active);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(107, 33, 168, 0.08);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(147, 51, 234, 0.06);
}

.search-result-name {
    font-weight: 600;
    color: var(--gaming-text);
}

.search-result-group {
    font-size: 0.85rem;
    color: var(--gaming-text-muted);
}

.search-result-status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.search-result-status-pill.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.search-result-status-pill.eliminated {
    background: rgba(156, 163, 175, 0.1);
    color: var(--gaming-text-muted);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Timeline Route */
.divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 2rem 0 1.5rem;
}

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

.route-header h4 {
    font-size: 1.2rem;
    color: var(--gaming-text);
}

.player-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.player-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.05);
}

.player-badge.eliminated {
    background: rgba(239, 68, 68, 0.1);
    color: var(--neon-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.route-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-purple), rgba(107, 33, 168, 0.1));
}

.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gaming-bg);
    border: 3px solid var(--neon-purple);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
    border-color: var(--neon-mint);
    background: var(--neon-mint);
}

.timeline-step.eliminated-step .timeline-dot {
    border-color: var(--neon-red);
    background: var(--neon-red);
}

.timeline-step-content {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(107, 33, 168, 0.05);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.timeline-round-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gaming-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

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

.timeline-opponent {
    font-weight: 600;
    color: var(--gaming-text);
}

.timeline-opponent-group {
    font-size: 0.8rem;
    color: var(--gaming-text-muted);
    font-weight: normal;
    margin-left: 0.4rem;
}

.timeline-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

.timeline-score.win {
    color: var(--neon-mint);
    background: rgba(16, 185, 129, 0.08);
}

.timeline-score.loss {
    color: var(--neon-red);
    background: rgba(239, 68, 68, 0.08);
}

.timeline-score.pending {
    color: var(--gaming-text-muted);
    font-size: 0.8rem;
}

/* Top Scorers Table */
.scorers-card {
    display: flex;
    flex-direction: column;
}

.scorers-table-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

/* Scrollbars */
.scorers-table-wrapper::-webkit-scrollbar,
.search-results-list::-webkit-scrollbar,
.bracket-matches-viewport::-webkit-scrollbar,
#import-participants-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scorers-table-wrapper::-webkit-scrollbar-track,
.search-results-list::-webkit-scrollbar-track,
.bracket-matches-viewport::-webkit-scrollbar-track,
#import-participants-area::-webkit-scrollbar-track {
    background: transparent;
}

.scorers-table-wrapper::-webkit-scrollbar-thumb,
.search-results-list::-webkit-scrollbar-thumb,
.bracket-matches-viewport::-webkit-scrollbar-thumb,
#import-participants-area::-webkit-scrollbar-thumb {
    background: rgba(107, 33, 168, 0.15);
    border-radius: 10px;
}

.scorers-table-wrapper::-webkit-scrollbar-thumb:hover,
.search-results-list::-webkit-scrollbar-thumb:hover,
.bracket-matches-viewport::-webkit-scrollbar-thumb:hover,
#import-participants-area::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.3);
}

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

.scorers-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gaming-text-muted);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.scorers-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    color: var(--gaming-text);
}

.scorers-table tr:last-child td {
    border-bottom: none;
}

.scorers-table tr:hover td {
    background: rgba(107, 33, 168, 0.02);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
}

.rank-badge.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--neon-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rank-badge.silver {
    background: rgba(156, 163, 175, 0.15);
    color: #4b5563;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.rank-badge.bronze {
    background: rgba(180, 83, 9, 0.15);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.3);
}

.rank-badge.other {
    background: rgba(0, 0, 0, 0.04);
    color: var(--gaming-text-muted);
}

.scorer-name {
    font-weight: 600;
}

.scorer-group {
    font-size: 0.85rem;
    color: var(--gaming-text-muted);
}

.scorer-goals {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--neon-mint);
}

/* Bracket Layout System */
.torneo-bracket-section {
    margin-bottom: 5rem;
}

.bracket-outer-card {
    padding: 2.5rem;
}

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

.left-hdr {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.left-hdr h3 {
    font-size: 1.8rem;
}

.active-players-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
}

.active-players-badge strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Round Tabs Navigation */
.round-tabs-container {
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.round-tabs-container::-webkit-scrollbar {
    height: 4px;
}

.round-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(107, 33, 168, 0.1);
}

.round-tabs {
    display: flex;
    gap: 0.6rem;
    width: max-content;
}

.tab-round-btn {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    color: var(--gaming-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-round-btn:hover {
    background: rgba(107, 33, 168, 0.05);
    color: var(--gaming-text);
}

.tab-round-btn.active {
    background: linear-gradient(135deg, var(--neon-purple) 0%, rgba(147, 51, 234, 0.8) 100%);
    border-color: rgba(147, 51, 234, 0.3);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.bracket-instructions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--gaming-text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.bracket-instructions i {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
}

.search-highlight-indicator {
    background: rgba(217, 119, 6, 0.1);
    color: var(--neon-gold);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-weight: 600;
    animation: pulse-glow-light 2s infinite;
}

@keyframes pulse-glow-light {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2); }
    70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Matches Grid View */
.bracket-matches-viewport {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 100px;
}

/* Match Card design */
.match-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(107, 33, 168, 0.06);
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: rgba(107, 33, 168, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(107, 33, 168, 0.04);
}

.match-card.highlighted {
    border-color: var(--neon-gold) !important;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
    background: rgba(217, 119, 6, 0.03) !important;
}

.match-card.admin-editable {
    cursor: pointer;
}

.match-card.admin-editable:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
}

.match-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 0.4rem;
}

.match-edit-badge {
    color: var(--neon-purple);
    display: none;
    align-items: center;
    gap: 0.2rem;
}

.match-card.admin-editable:hover .match-edit-badge {
    display: flex;
}

/* Players Rows Inside Match Card */
.match-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    position: relative;
    border-radius: 8px;
    padding-left: 0.4rem;
    transition: background 0.2s ease;
    color: var(--gaming-text);
}

.match-player-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 0.5rem;
}

.match-player-name {
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.match-player-group {
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
}

.match-player-score {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--gaming-text);
}

.match-card.highlighted .match-player-score {
    background: rgba(0, 0, 0, 0.05);
}

/* Status overlays */
.match-player-row.winner {
    color: var(--gaming-text);
}

.match-player-row.winner .match-player-score {
    color: var(--neon-mint);
    background: rgba(16, 185, 129, 0.08);
}

.match-player-row.loser {
    color: var(--gaming-text-muted);
    opacity: 0.55;
}

.match-player-row.loser .match-player-name {
    text-decoration: line-through;
}

.match-player-row.bye-row {
    color: var(--gaming-text-muted);
    font-style: italic;
    opacity: 0.5;
}

.match-player-row.highlighted-player {
    background: rgba(217, 119, 6, 0.08);
    box-shadow: inset 0 0 10px rgba(217, 119, 6, 0.05);
}

.match-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.03);
    margin: 0.4rem 0;
}

/* Trophy Icon inside match */
.trophy-winner-icon {
    color: var(--neon-gold);
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* Footer layout */
.torneo-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    padding: 3rem 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gaming-text-muted);
}

.footer-links a {
    color: var(--gaming-text-muted);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--neon-purple);
}

.dot-separator {
    color: rgba(0, 0, 0, 0.08);
    margin: 0 0.5rem;
}

/* Modal Overlay & Box styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 21, 59, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    border: 1px solid var(--gaming-border-active);
    border-radius: 28px;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(107, 33, 168, 0.1), 0 0 30px rgba(107, 33, 168, 0.03);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

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

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--gaming-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--gaming-text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--gaming-text);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--gaming-text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.input-group-torneo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group-torneo label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gaming-text-muted);
}

.input-group-torneo input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gaming-border);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--gaming-text);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group-torneo input:focus {
    border-color: var(--gaming-border-active);
}

.error-msg {
    color: var(--neon-red);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-modal-cancel {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gaming-text-muted);
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-modal-cancel:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--gaming-text);
}

.btn-modal-submit {
    background: linear-gradient(135deg, var(--neon-purple) 0%, rgba(147, 51, 234, 0.8) 100%);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: var(--white);
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-modal-submit:hover {
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    filter: brightness(1.1);
}

/* Match Score Editor inside Modal */
.match-score-editor {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.player-editor-info {
    display: flex;
    flex-direction: column;
}

.player-editor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gaming-text);
}

.player-editor-group {
    font-size: 0.8rem;
    color: var(--gaming-text-muted);
}

.score-input {
    width: 60px;
    height: 50px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gaming-border);
    border-radius: 10px;
    color: var(--gaming-text);
    outline: none;
}

.score-input:focus {
    border-color: var(--gaming-border-active);
}

.score-separator {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: var(--gaming-text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Penalties */
.penalty-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
}

.penalty-section h5 {
    font-size: 0.9rem;
    color: var(--neon-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.penalty-section p {
    font-size: 0.8rem !important;
    margin-bottom: 0.8rem !important;
}

.penalty-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.penalty-option-label {
    cursor: pointer;
}

.penalty-option-label input {
    display: none;
}

.penalty-name-btn {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gaming-text-muted);
    transition: var(--transition-smooth);
}

.penalty-option-label input:checked + .penalty-name-btn {
    background: rgba(217, 119, 6, 0.1);
    border-color: var(--neon-gold);
    color: var(--gaming-text);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.05);
}

/* Admin Toolbar Styles */
.admin-toolbar {
    margin-bottom: 2rem;
    border-color: var(--gaming-border-active);
    box-shadow: 0 10px 25px rgba(107, 33, 168, 0.06);
}

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

.toolbar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gaming-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-title i {
    color: var(--neon-mint);
}

.toolbar-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-tool {
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-tool.primary {
    background: linear-gradient(135deg, var(--neon-purple) 0%, rgba(147, 51, 234, 0.8) 100%);
    color: var(--white);
}

.btn-tool.primary:hover {
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-tool.secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gaming-text);
}

.btn-tool.secondary:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-tool.danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--neon-red);
}

.btn-tool.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.toolbar-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 1.2rem 0;
}

.toolbar-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

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

.tool-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tool-section h5 {
    font-size: 1rem;
    color: var(--gaming-text);
}

.tool-section p {
    font-size: 0.85rem;
    color: var(--gaming-text-muted);
}

#import-participants-area {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gaming-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--gaming-text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

#import-participants-area:focus {
    border-color: var(--gaming-border-active);
}

.btn-action {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    background: rgba(107, 33, 168, 0.1);
    color: var(--gaming-text);
}

.btn-action:hover {
    background: rgba(147, 51, 234, 0.2);
}

.btn-action.warning {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.15);
    color: var(--neon-gold);
}

.btn-action.warning:hover {
    background: rgba(217, 119, 6, 0.2);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.05);
}

/* Dynamic responsive scaling */
@media (max-width: 992px) {
    .torneo-hero {
        padding: 8rem 0 2rem;
    }
    .bracket-outer-card {
        padding: 1.5rem;
    }
    .bracket-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tab-round-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}
