:root {
    --bg-primary: #080811;
    --bg-secondary: #0f0f22;
    --bg-card: rgba(20, 20, 38, 0.65);
    --bg-card-hover: rgba(30, 30, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(0, 240, 255, 0.4);
    
    --primary-color: #00f0ff; /* Neon Cyan */
    --primary-glow: rgba(0, 240, 255, 0.3);
    --secondary-color: #ff007f; /* Neon Pink */
    --secondary-glow: rgba(255, 0, 127, 0.3);
    --accent-color: #39ff14; /* Neon Green */
    --warning-color: #ffbf00; /* Neon Yellow */
    --danger-color: #ff3344; /* Neon Red */
    
    --text-main: #f0f0fa;
    --text-muted: #85859e;
    --text-dark: #0a0a14;
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-shadow-primary: 0 0 15px rgba(0, 240, 255, 0.25);
    --neon-shadow-secondary: 0 0 15px rgba(255, 0, 127, 0.25);
    
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --sidebar-width: 280px;
    --transition-speed: 0.25s;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 20%, rgba(255, 0, 127, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: var(--neon-shadow-primary);
}

/* Layout structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar / Header */
.app-header {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    overflow-y: auto;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow-primary);
    background: rgba(0, 240, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.logo-text h1 {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* Global User Selector Card */
.user-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-speed);
}

.user-selector-card:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

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

.user-dropdown {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 20px 2px 0;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385859e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.user-dropdown option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
}

.user-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 18px;
    color: var(--secondary-color);
    text-shadow: var(--neon-shadow-secondary);
}

.score-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-speed);
}

.nav-btn i {
    font-size: 18px;
    width: 20px;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}

/* Header Footer button areas */
.header-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.app-version {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    align-self: center;
    padding: 2px 10px;
    border-radius: 4px;
}

/* Shimmer Light Ray Effect */
.app-version::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmerSweep 240s infinite linear;
}

@keyframes shimmerSweep {
    0% {
        left: -150%;
    }
    1% { /* 1% of 240s is 2.4s for a full sweep across the text */
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Tabs structure */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(20, 20, 38, 0.8), rgba(15, 15, 30, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.welcome-banner h2 {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-banner p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 14px;
}

.quick-stats-grid {
    display: flex;
    gap: 16px;
}

.quick-stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 20px;
    text-align: center;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    font-size: 16px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Custom Table Styles */
.table-container {
    padding: 12px 24px;
}

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

.custom-table th {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

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

.custom-table tbody tr {
    transition: var(--transition-speed);
}

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

/* Leaderboard Specifics */
.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 13px;
    margin: 0 auto;
}

.rank-badge.rank-1 {
    background: radial-gradient(circle, #ffe066, #d4af37);
    color: #000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.rank-badge.rank-2 {
    background: radial-gradient(circle, #e0e0e0, #a0a0a0);
    color: #000;
}

.rank-badge.rank-3 {
    background: radial-gradient(circle, #e69d73, #cd7f32);
    color: #000;
}

.rank-badge.rank-other {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.player-dots-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Empty states */
.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state i {
    font-size: 36px;
    opacity: 0.3;
}

/* Dashboard Matches List */
.dashboard-matches-list {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
}

.dashboard-match-row {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-speed);
    cursor: pointer;
}

.dashboard-match-row:hover {
    border-color: var(--border-color-active);
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-match-row .match-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.dashboard-match-row .match-teams-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-match-row .teams-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dashboard-match-row .team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.dashboard-match-row .score-col {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 16px;
    text-align: right;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dashboard-match-row .actual-score {
    color: var(--text-main);
}

.dashboard-match-row .tipped-score {
    font-size: 12px;
    color: var(--primary-color);
}

.dashboard-match-row .match-points-earned {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.match-points-earned.exact {
    background: rgba(57, 255, 20, 0.15);
    color: var(--accent-color);
}

.match-points-earned.diff {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary-color);
}

.match-points-earned.winner {
    background: rgba(255, 191, 0, 0.15);
    color: var(--warning-color);
}

.match-points-earned.none {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Filter Bar styles */
.filter-bar {
    display: flex;
    padding: 16px 24px;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.custom-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 10px;
    font-family: var(--font-title);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    min-width: 150px;
    transition: var(--transition-speed);
}

.custom-select:focus {
    border-color: var(--primary-color);
}

.filter-stats {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 180px;
}

.filter-stats span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Matches Grid Layout */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

/* Betting Match Card */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-speed);
}

.match-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.match-card.completed {
    border-color: rgba(255, 255, 255, 0.04);
    opacity: 0.85;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 8px;
}

.match-group-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-main);
}

.match-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 35%;
    gap: 8px;
}

.match-team img {
    width: 44px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.match-team span {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.match-vs-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%;
    gap: 6px;
}

.match-vs-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.match-scores-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-input {
    width: 38px;
    height: 34px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 16px;
    outline: none;
    transition: var(--transition-speed);
}

.score-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.score-input:disabled {
    opacity: 0.7;
    background: rgba(0,0,0,0.3);
    cursor: not-allowed;
    border-color: transparent;
}

.score-separator {
    color: var(--text-muted);
    font-weight: 800;
}

.match-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 8px;
    margin-top: 4px;
}

.actual-result-badge {
    color: var(--text-muted);
    display: flex;
    gap: 4px;
}

.actual-result-badge strong {
    color: var(--text-main);
    font-family: var(--font-title);
}

/* Knockout Specifics: Penalty shootout options */
.knockout-penalty-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
}

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

.penalty-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.penalty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
    transition: var(--transition-speed);
}

.penalty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.penalty-btn.selected {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.penalty-btn.selected-actual {
    background: var(--secondary-glow);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Bracket View (Scrollable Diagram) */
.bracket-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.bracket-view {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    min-width: 1600px;
    justify-content: space-between;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
}

.round-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.round-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    gap: 16px;
}

/* Bracket Match Card */
.bracket-match {
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-speed);
}

.bracket-match:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.bracket-match-id {
    font-size: 9px;
    color: var(--text-muted);
    position: absolute;
    top: 4px;
    right: 8px;
}

.bracket-match-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
}

.bracket-team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 80%;
}

.bracket-match-team.winner .bracket-team-info {
    color: var(--text-main);
    font-weight: 600;
}

.bracket-match-team.winner .bracket-team-score {
    color: var(--primary-color);
    font-weight: 800;
}

.bracket-team-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracket-team-score {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}

/* Spacers for Bracket connector styling (Optional, we keep it simple for robust CSS layout) */
/* We can add horizontal line effects between column lists */

/* Admin Tables Grid */
.group-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-group-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
}

.admin-group-card h4 {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.admin-group-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.admin-group-card th {
    color: var(--text-muted);
    text-align: left;
    padding-bottom: 6px;
    font-weight: 600;
}

.admin-group-card td {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.admin-group-card tr:last-child td {
    border-bottom: none;
}

/* User Management Form & List */
.players-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="text"] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-speed);
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow-primary);
}

/* Custom Grid Color Picker */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.color-option {
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.color-option input {
    display: none;
}

.color-option .checkmark {
    display: none;
    color: var(--text-dark);
    font-size: 14px;
}

.color-option input:checked + .checkmark {
    display: block;
}

/* Players List */
.players-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-list-item {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-list-item .delete-user-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-speed);
    padding: 6px;
}

.player-list-item .delete-user-btn:hover {
    color: var(--danger-color);
}

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

.player-list-info .name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
}

.player-list-info .stats {
    font-size: 11px;
    color: var(--text-muted);
}

/* Buttons System */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 240, 255, 0.7));
    color: var(--text-dark);
    font-family: var(--font-title);
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-speed);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-title);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-speed);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.danger-btn {
    background: rgba(255, 51, 68, 0.1);
    border: 1px solid rgba(255, 51, 68, 0.2);
    color: var(--danger-color);
    font-family: var(--font-title);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-speed);
}

.danger-btn:hover {
    background: rgba(255, 51, 68, 0.2);
    color: #ff5566;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 8px;
}

.block-btn {
    width: 100%;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-speed);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 18px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.match-meta-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.match-board-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 24px;
}

.team-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    gap: 8px;
}

.team-preview img {
    width: 52px;
    height: 34px;
    border-radius: 4px;
}

.team-preview span {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.score-preview {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 26px;
    color: var(--secondary-color);
    text-shadow: var(--neon-shadow-secondary);
}

.all-tips-section h4 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.players-tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-tip-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-tip-row .user-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.player-tip-row .tip-score {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.toast {
    background: rgba(10, 10, 20, 0.9);
    border-left: 4px solid var(--primary-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out forwards;
}

.toast.success {
    border-left-color: var(--accent-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

/* Badges and Helper Classes */
.badge {
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-muted);
}

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

.text-secondary {
    color: var(--secondary-color);
}

.text-danger {
    color: var(--danger-color);
}

.card-actions-right {
    margin-left: auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .app-header {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .app-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .players-layout {
        grid-template-columns: 1fr;
    }
}

/* Setup Wizard Overlay */
.setup-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 17, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.setup-card {
    max-width: 550px;
    width: 90%;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.02);
    animation: fadeIn 0.5s ease-out;
}

.setup-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.setup-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.setup-features {
    text-align: left;
    margin: 25px auto;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.setup-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.setup-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.setup-actions button {
    flex: 1;
}

.form-help {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}
