/* ================================================
   Football Statistics - Clean Design
   ================================================ */

:root {
    --primary: #00d4aa;
    --primary-dark: #00a888;
    --team-red: #e74c3c;
    --team-blue: #3498db;
    --team-yellow: #f1c40f;
    --team-white: #ecf0f1;
    --team-orange: #ff9800;
    --bg-dark: #0a0f19;
    --bg-card: rgba(20, 30, 50, 0.9);
    --text: #ffffff;
    --text-dim: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.1);
    --danger: #e74c3c;
    --success: #2ecc71;
}

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

body {
    font-family: 'Heebo', sans-serif;
    min-height: 100vh;
    color: var(--text);
    background: #0a0f19 url('https://b04-ep-media-prod.azureedge.net/pickerimages/B04TV_Champions-League-Ball_6416_XL.jpg') center center / cover no-repeat fixed;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10,15,25,0.75), rgba(10,20,40,0.8));
    pointer-events: none;
    z-index: -1;
}

/* Header */
.main-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.spin { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-header {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-header:hover { background: var(--primary); color: #000; border-color: var(--primary); }
.btn-header.logout { border-color: var(--danger); color: var(--danger); }
.btn-header.logout:hover { background: var(--danger); color: #fff; }

.user-display {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Team Name Badge */
.team-name-badge {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 168, 136, 0.1));
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 480px) {
    .team-name-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        max-width: 120px;
    }
}

.team-name-highlight {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.1em;
}

.user-display .role-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

.user-display .role-badge.content-manager {
    background: #3b82f6;
    color: white;
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem;
    }
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(0,212,170,0.15);
    color: var(--primary);
}

.stat-icon.goals { background: rgba(0,212,170,0.15); color: var(--primary); }
.stat-icon.assists { background: rgba(52,152,219,0.15); color: var(--team-blue); }
.stat-icon.gotr { background: rgba(243,156,18,0.15); color: #f39c12; }
.stat-icon.mvp { background: rgba(241,196,15,0.15); color: var(--team-yellow); }
.stat-icon.penalties { background: rgba(155,89,182,0.15); color: #9b59b6; }
.stat-icon.players { background: rgba(155,89,182,0.15); color: #9b59b6; }
.stat-icon.backup { background: rgba(34,197,94,0.15); color: #22c55e; }
.stat-icon.players { background: rgba(155,89,182,0.15); color: #9b59b6; }

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.stat-arrow {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-card.clickable:hover .stat-arrow { opacity: 1; }

/* ========================================
   PLAYER WIN RATE TABLE
   ======================================== */

.player-table-section {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.player-table-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.player-table-section h3 i { 
    color: var(--primary); 
}

.player-table-container {
    background: rgba(15, 20, 35, 0.9);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.player-table-container .no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

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

.win-rate-table thead {
    background: rgba(0, 212, 170, 0.1);
}

.win-rate-table th {
    padding: 0.875rem 0.75rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary);
}

.win-rate-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.win-rate-table tbody tr:hover {
    background: rgba(0, 212, 170, 0.05);
}

.win-rate-table .rank-col {
    width: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--text-dim);
}

.win-rate-table .name-col {
    font-weight: 600;
}

.win-rate-table .num-col {
    width: 70px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

.win-rate-table .percent-col {
    width: 120px;
}

/* Percentage Bar */
.percent-bar {
    position: relative;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.percent-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00a888);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Top 3 Styling */
.win-rate-table tr.top-1 .rank-col {
    color: #ffd700;
    font-size: 1.1rem;
}
.win-rate-table tr.top-1 .name-col {
    color: #ffd700;
}
.win-rate-table tr.top-1 .percent-fill {
    background: linear-gradient(90deg, #ffd700, #ffb300);
}

.win-rate-table tr.top-2 .rank-col {
    color: #c0c0c0;
    font-size: 1.05rem;
}
.win-rate-table tr.top-2 .percent-fill {
    background: linear-gradient(90deg, #c0c0c0, #9e9e9e);
}

.win-rate-table tr.top-3 .rank-col {
    color: #cd7f32;
    font-size: 1rem;
}
.win-rate-table tr.top-3 .percent-fill {
    background: linear-gradient(90deg, #cd7f32, #8b5a2b);
}

@media (max-width: 500px) {
    .win-rate-table th, .win-rate-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .win-rate-table .percent-col {
        width: 80px;
    }
    
    .percent-bar {
        height: 20px;
    }
    
    .percent-text {
        font-size: 0.7rem;
    }
}

/* FAB */
.fab-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa, #00a888);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,212,170,0.5);
    z-index: 90;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-icon {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

.fab-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 25px rgba(0,212,170,0.6);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-large {
    max-width: 600px;
}

/* Users Management */
.invite-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invite-form .input-field {
    flex: 1;
    min-width: 150px;
}

.invite-form select {
    min-width: 120px;
}

.hint-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-codes-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.invite-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
}

.invite-code-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.invite-code-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-copy {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-copy:hover {
    filter: brightness(1.1);
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.user-email {
    font-weight: 500;
    color: var(--text);
}

.user-role-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--primary);
    color: #000;
    width: fit-content;
}

.user-role-badge.content-manager {
    background: #3b82f6;
    color: white;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.roles-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.role-card {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1rem;
}

.role-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-card ul {
    margin: 0;
    padding-right: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.role-card li {
    margin-bottom: 0.25rem;
}

@media (max-width: 500px) {
    .roles-info {
        grid-template-columns: 1fr;
    }
    
    .invite-form {
        flex-direction: column;
    }
}

.modal-sm { max-width: 350px; }
.modal-lg { max-width: 500px; }
.modal-full { 
    max-width: 100%;
    height: 100%;
    border-radius: 0;
}

@media (min-width: 768px) {
    .modal-full {
        max-width: 750px;
        height: auto;
        max-height: 90vh;
        border-radius: 24px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-header h3 i { color: var(--primary); font-size: 1.15rem; }

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover { 
    background: var(--danger); 
    border-color: var(--danger); 
    transform: scale(1.05);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

@media (min-width: 768px) {
    .modal-header {
        padding: 1.5rem 2rem;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea { resize: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.error-msg {
    color: var(--danger);
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Wizard */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.wizard-header span {
    color: var(--primary);
    font-weight: 600;
}

.wizard-body {
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    max-height: 60vh;
}

.wizard-body h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.wizard-body h4 i { color: var(--primary); margin-left: 0.5rem; }

.wizard-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.wizard-footer .btn { flex: 1; }

/* Team Selection */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.team-option {
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.team-option i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.team-option.red i { color: var(--team-red); }
.team-option.blue i { color: var(--team-blue); }
.team-option.yellow i { color: var(--team-yellow); }
.team-option.white i { color: var(--team-white); }
.team-option.orange i { color: var(--team-orange); }

.team-option.selected { border-color: var(--primary); background: rgba(0,212,170,0.1); }
.team-option.red.selected { border-color: var(--team-red); background: rgba(231,76,60,0.15); }
.team-option.blue.selected { border-color: var(--team-blue); background: rgba(52,152,219,0.15); }
.team-option.yellow.selected { border-color: var(--team-yellow); background: rgba(241,196,15,0.15); }
.team-option.white.selected { border-color: var(--team-white); background: rgba(236,240,241,0.15); }
.team-option.orange.selected { border-color: var(--team-orange); background: rgba(255,152,0,0.15); }

/* Player Grid */
.player-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.player-chip {
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.player-chip.selected {
    background: rgba(0,212,170,0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Quick Add */
.quick-add {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quick-add select { flex: 1; margin-bottom: 0; }
.quick-add input { width: 70px; margin-bottom: 0; text-align: center; }
.quick-add .btn { padding: 0.875rem; }

.added-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.added-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.3);
    border-radius: 10px;
}

.added-item .info { display: flex; align-items: center; gap: 0.5rem; }
.added-item .badge {
    background: var(--primary);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Own Goal Styling */
.added-item.own-goal {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid var(--team-orange);
}

.added-item.own-goal .badge {
    background: var(--team-orange);
    color: #000;
}

.added-item .remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--danger);
    color: #fff;
    cursor: pointer;
}

/* Section Content */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.ranking-item .rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
}

.ranking-item:nth-child(1) .rank { background: linear-gradient(135deg, #ffd700, #ffb700); color: #000; }
.ranking-item:nth-child(2) .rank { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.ranking-item:nth-child(3) .rank { background: linear-gradient(135deg, #cd7f32, #b06a2a); color: #000; }

.ranking-item .name { flex: 1; font-weight: 500; }
.ranking-item .value { font-weight: 700; color: var(--primary); font-size: 1.25rem; }

/* Penalty Stats Table */
.penalty-stats-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.penalty-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(155, 89, 182, 0.15);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.penalty-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    transition: all 0.2s;
}

.penalty-row:hover {
    background: rgba(0,0,0,0.3);
}

.penalty-header .col-name,
.penalty-row .col-name {
    flex: 1;
    font-weight: 500;
}

.penalty-header .col-taken,
.penalty-header .col-scored,
.penalty-header .col-missed,
.penalty-header .col-pct,
.penalty-row .col-taken,
.penalty-row .col-scored,
.penalty-row .col-missed,
.penalty-row .col-pct {
    width: 55px;
    text-align: center;
}

.penalty-row .col-scored {
    color: var(--success);
    font-weight: 600;
}

.penalty-row .col-missed {
    color: var(--danger);
    font-weight: 600;
}

.penalty-row .col-pct {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Game List */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    background: linear-gradient(145deg, rgba(30,40,60,0.9), rgba(20,30,50,0.95));
    border-radius: 16px;
    overflow: visible;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.game-item:hover {
    border-color: rgba(0,212,170,0.3);
}

.game-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
}

.game-item-header .date {
    font-weight: 600;
    font-size: 1.1rem;
}

.game-item-header .winner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
}

.game-item-header .winner i { font-size: 0.85rem; }

.game-item-header .winner.red { background: rgba(231,76,60,0.25); color: var(--team-red); }
.game-item-header .winner.blue { background: rgba(52,152,219,0.25); color: var(--team-blue); }
.game-item-header .winner.yellow { background: rgba(241,196,15,0.25); color: var(--team-yellow); }
.game-item-header .winner.white { background: rgba(236,240,241,0.25); color: var(--team-white); }

.game-item-body {
    padding: 1.25rem;
    display: none;
}

.game-item.expanded .game-item-body { display: block; }

.game-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.game-stat-col {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
}

.game-stat-col h5 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.game-stat-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.game-stat-line:last-child {
    border-bottom: none;
}

.game-stat-line span:last-child {
    font-weight: 700;
    color: var(--primary);
}

/* Team Players Section - Modern Style */
.team-players-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.team-players-section h5 {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-players-section h5 i {
    color: var(--primary);
}

.team-players-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-players-item {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-right: 4px solid;
    border-top: none;
    border-bottom: none;
    border-left: none;
    position: relative;
    overflow: hidden;
}

.team-players-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    opacity: 0.1;
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center;
}

.team-players-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.team-players-header i {
    font-size: 1.1rem;
}

.team-wins-count {
    margin-right: auto;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
}

.winner-trophy {
    color: #ffd700 !important;
    font-size: 1.2rem !important;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.team-players-item.winner {
    border-right-width: 6px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.team-players-list {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    padding-right: 1.5rem;
}

/* Red Team */
.team-players-item.red { 
    border-color: #ff5252;
    background: linear-gradient(135deg, rgba(255,82,82,0.15) 0%, rgba(255,82,82,0.05) 100%);
}
.team-players-item.red .team-players-header { color: #ff5252; }

/* Blue Team */
.team-players-item.blue { 
    border-color: #448aff;
    background: linear-gradient(135deg, rgba(68,138,255,0.15) 0%, rgba(68,138,255,0.05) 100%);
}
.team-players-item.blue .team-players-header { color: #448aff; }

/* Yellow Team */
.team-players-item.yellow { 
    border-color: #ffd740;
    background: linear-gradient(135deg, rgba(255,215,64,0.15) 0%, rgba(255,215,64,0.05) 100%);
}
.team-players-item.yellow .team-players-header { color: #ffd740; }

/* White Team */
.team-players-item.white { 
    border-color: #e0e0e0;
    background: linear-gradient(135deg, rgba(224,224,224,0.12) 0%, rgba(224,224,224,0.04) 100%);
}
.team-players-item.white .team-players-header { color: #ffffff; }

.game-mvps, .game-gotr {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.game-mvps { 
    background: linear-gradient(135deg, rgba(241,196,15,0.15), rgba(241,196,15,0.05)); 
    border: 1px solid rgba(241,196,15,0.2);
}
.game-mvps i { color: var(--team-yellow); margin-left: 0.5rem; font-size: 1.1rem; }

.game-gotr { 
    background: linear-gradient(135deg, rgba(243,156,18,0.15), rgba(243,156,18,0.05)); 
    border: 1px solid rgba(243,156,18,0.2);
}
.game-gotr i { color: #f39c12; margin-left: 0.5rem; font-size: 1.1rem; }

/* Sticky Action Buttons for Game Summary */
.game-actions-sticky {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(to top, rgba(20, 30, 50, 0.98) 80%, rgba(20, 30, 50, 0.9));
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 5;
}

.game-actions-sticky .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.game-actions-sticky .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .game-actions-sticky {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .game-actions-sticky .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

.game-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.game-actions .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.share-actions {
    width: 100%;
    justify-content: center !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
}

.share-actions .btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    font-weight: 600;
}

.share-actions .btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.share-actions .btn i {
    font-size: 1.1rem;
}

.whatsapp-share-btn {
    background: linear-gradient(135deg, #00c853, #00a847) !important;
}

.whatsapp-share-btn:hover {
    background: linear-gradient(135deg, #00a847, #008c3a) !important;
    transform: scale(1.05);
}

.no-games {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
}

.no-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-games p {
    font-size: 1rem;
}

/* Desktop Game List */
@media (min-width: 768px) {
    .game-item-header {
        padding: 1.25rem 1.5rem;
    }
    
    .game-item-header .date {
        font-size: 1.25rem;
    }
    
    .game-item-header .winner {
        font-size: 1rem;
        padding: 0.5rem 1.15rem;
    }
    
    .game-item-body {
        padding: 1.75rem;
    }
    
    .game-stats-row {
        gap: 2rem;
    }
    
    .game-stat-col {
        padding: 1.25rem 1.5rem;
    }
    
    .game-stat-col h5 {
        font-size: 1.05rem;
    }
    
    .game-stat-line {
        font-size: 1.05rem;
        padding: 0.5rem 0;
    }
    
    .game-mvps, .game-gotr {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }
    
    .game-actions .btn-danger {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 300;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

/* Utilities */
.hidden { display: none !important; }
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: flex !important; }

/* Desktop */
@media (min-width: 768px) {
    .main-header {
        padding: 1.25rem 2rem;
    }
    
    .header-content {
        max-width: 900px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .player-table-section h3 {
        font-size: 1.1rem;
    }
    
    .player-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fab-btn {
        width: 70px;
        height: 70px;
    }
    
    .fab-icon {
        font-size: 2.25rem;
    }
    
    .modal-content {
        border-radius: 24px;
    }
    
    .modal-lg {
        max-width: 550px;
    }
    
    .modal-full {
        max-width: 700px;
    }
    
    .ranking-item {
        padding: 1.25rem 1.5rem;
    }
    
    .ranking-item .rank {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .ranking-item .name {
        font-size: 1.1rem;
    }
    
    .ranking-item .value {
        font-size: 1.5rem;
    }
}

/* ================================================
   Player Profile
   ================================================ */
.clickable-player {
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary) !important;
}

.clickable-player:hover {
    text-decoration: underline;
    color: #fff !important;
}

.player-profile {
    padding: 1rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Players Manager Modal */
.add-player-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.add-player-section .input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.add-player-section .input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.add-player-section .btn {
    white-space: nowrap;
}

.players-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

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

.player-item-manager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.player-item-manager:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.player-item-manager .player-name {
    cursor: pointer;
    flex: 1;
}

.player-item-manager .player-name:hover {
    color: var(--accent);
}

.player-item-manager .player-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-edit {
    background: rgba(0, 230, 118, 0.15);
    border: none;
    color: var(--accent);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-edit:hover {
    background: var(--accent);
    color: white;
}

/* Backup & Restore Styles */
.backup-section,
.restore-section {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.backup-section h3,
.restore-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.backup-section p,
.restore-section p {
    margin: 0.5rem 0 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.warning-text {
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.9rem !important;
    text-align: center;
}

.player-name {
    flex: 1;
    font-size: 0.9rem;
    color: #fff;
}

.btn-icon-delete {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-icon-delete:hover {
    background: rgba(231, 76, 60, 0.2);
}

.profile-stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,212,170,0.15);
}

.profile-stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.profile-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.profile-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Special styling for top stats */
.profile-stat-card:nth-child(1) i { color: #3498db; }  /* Attendance - blue */
.profile-stat-card:nth-child(2) i { color: #f1c40f; }  /* Wins - gold */
.profile-stat-card:nth-child(3) i { color: #2ecc71; }  /* Win % - green */
.profile-stat-card:nth-child(4) i { color: #fff; }     /* Goals - white */
.profile-stat-card:nth-child(5) i { color: #e74c3c; }  /* Assists - red */
.profile-stat-card:nth-child(6) i { color: #f39c12; }  /* MVP - orange */
.profile-stat-card:nth-child(7) i { color: #e67e22; }  /* GOTR - fire orange */

/* Tablet and up */
@media (min-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .profile-stat-card {
        padding: 1.5rem;
    }
    
    .profile-stat-card i {
        font-size: 2rem;
    }
    
    .profile-stat-card .stat-value {
        font-size: 2.5rem;
    }
    
    .profile-stat-card .stat-label {
        font-size: 0.95rem;
    }
}

/* ================================================
   LIVE UPDATES SYSTEM
   ================================================ */

/* Live Modal Header */
.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 2px solid var(--primary);
}

.live-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.live-pulse {
    color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-body {
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.live-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border);
}

.live-footer .btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (min-width: 400px) {
    .live-footer {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .live-footer .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Continue Choice Dialog */
.continue-choice {
    padding: 1rem;
}

.existing-evening-info {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(241, 196, 15, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.existing-evening-info .info-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.existing-evening-info .info-icon.yellow {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.existing-evening-info .info-icon.yellow i {
    color: #000;
}

.existing-evening-info .info-icon.pulse {
    animation: pulse-red 1.5s ease-in-out infinite;
}

.existing-evening-info .info-icon.pulse.yellow {
    animation: pulse-yellow 1.5s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(241, 196, 15, 0); }
}

/* Live Banner on Main Page */
.live-banner {
    margin-bottom: 1rem;
}

.live-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.15));
    border: 2px solid rgba(241, 196, 15, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    animation: banner-glow 2s ease-in-out infinite;
}

.live-banner-content:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(243, 156, 18, 0.25));
    transform: scale(1.02);
}

@keyframes banner-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.3); }
    50% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.5); }
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-text {
    flex: 1;
    font-size: 0.9rem;
    color: #fff;
}

.live-text strong {
    color: #f1c40f;
}

.live-action {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.live-action i {
    font-size: 0.7rem;
}

.existing-evening-info .info-icon i {
    font-size: 2rem;
    color: #fff;
}

.existing-evening-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.existing-evening-info .live-notice {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.evening-details {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
}

.evening-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.evening-details p:last-child {
    border-bottom: none;
}

.evening-details i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.choice-hint {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Setup Wizard Steps */
.setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.setup-step .step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.setup-step .step-icon i {
    font-size: 2.5rem;
    color: #000;
}

.setup-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.setup-step .step-hint {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.step-indicator {
    background: var(--primary);
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.date-input-large {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.team-grid.large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.team-grid.large .team-option {
    padding: 1.25rem;
    position: relative;
}

.team-grid.large .team-option .check-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.selection-count {
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.players-step {
    text-align: right;
    align-items: stretch;
}

.players-step h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.players-step .step-hint {
    text-align: center;
}

/* Team Setup Cards */
.team-setup-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.team-setup-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.team-setup-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.4);
}

.team-setup-card.done {
    border-color: var(--success);
}

.team-setup-card.red:hover { border-color: var(--team-red); }
.team-setup-card.blue:hover { border-color: var(--team-blue); }
.team-setup-card.yellow:hover { border-color: var(--team-yellow); }
.team-setup-card.white:hover { border-color: var(--team-white); }

.team-color-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.team-color-icon.red { background: var(--team-red); }
.team-color-icon.blue { background: var(--team-blue); }
.team-color-icon.yellow { background: var(--team-yellow); }
.team-color-icon.white { background: var(--team-white); }

.team-setup-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-setup-status {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.team-setup-card.done .team-setup-status {
    color: var(--success);
}

/* Player Selection Step */
.team-selection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.team-selection-header.red { background: rgba(231, 76, 60, 0.2); }
.team-selection-header.blue { background: rgba(52, 152, 219, 0.2); }
.team-selection-header.yellow { background: rgba(241, 196, 15, 0.2); }
.team-selection-header.white { background: rgba(236, 240, 241, 0.2); }

.team-color-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.team-color-badge.red { background: var(--team-red); }
.team-color-badge.blue { background: var(--team-blue); }
.team-color-badge.yellow { background: var(--team-yellow); }
.team-color-badge.white { background: var(--team-white); }

.team-selection-header h3 {
    flex: 1;
    margin: 0;
    color: #fff;
}

.player-count {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.player-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .player-selection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.player-selection-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.player-selection-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.player-selection-chip.selected {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.player-selection-chip i {
    font-size: 0.7rem;
}

.player-selection-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 1) 80%, rgba(26, 26, 46, 0));
    padding: 1rem 0 0.5rem;
    z-index: 10;
}

.player-selection-actions .btn {
    flex: 1;
}

.team-players-setup {
    margin-bottom: 1rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.team-header.red { background: rgba(231, 76, 60, 0.2); color: var(--team-red); }
.team-header.blue { background: rgba(52, 152, 219, 0.2); color: var(--team-blue); }
.team-header.yellow { background: rgba(241, 196, 15, 0.2); color: var(--team-yellow); }
.team-header.white { background: rgba(236, 240, 241, 0.2); color: var(--team-white); }

.team-header .count {
    margin-right: auto;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.player-grid.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.player-grid.compact .player-chip {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

/* Matches Mode */
.live-matches {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.matches-summary {
    background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,168,136,0.1));
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0,212,170,0.3);
}

.matches-summary h4 {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.team-scores {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    min-width: 70px;
}

.team-score.red { background: rgba(231, 76, 60, 0.25); }
.team-score.blue { background: rgba(52, 152, 219, 0.25); }
.team-score.yellow { background: rgba(241, 196, 15, 0.25); }
.team-score.white { background: rgba(236, 240, 241, 0.25); }

.team-score .team-name {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.team-score .wins-count {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.matches-list h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.no-matches {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

/* Match Item */
.match-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-right: 3px solid var(--text-dim);
}

.match-item.red { border-right-color: var(--team-red); }
.match-item.blue { border-right-color: var(--team-blue); }
.match-item.yellow { border-right-color: var(--team-yellow); }
.match-item.white { border-right-color: var(--team-white); }

.match-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.match-num {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.match-teams .team {
    font-weight: 500;
}

.match-teams .team.red { color: var(--team-red); }
.match-teams .team.blue { color: var(--team-blue); }
.match-teams .team.yellow { color: var(--team-yellow); }
.match-teams .team.white { color: var(--team-white); }

.match-teams .team.winner {
    font-weight: 700;
}

.match-teams .vs {
    font-weight: 700;
    color: #fff;
    padding: 0 0.5rem;
}

.penalties-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.shootout-winner {
    background: rgba(255, 215, 0, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.match-detail.shootout-detail {
    background: rgba(231, 76, 60, 0.15);
    border: 1px dashed rgba(231, 76, 60, 0.4);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    color: #e0e0e0;
}

.match-detail.shootout-detail i {
    color: var(--danger);
}

.match-actions {
    display: flex;
    gap: 0.3rem;
    margin-right: auto;
}

.edit-match, .delete-match {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.edit-match {
    color: var(--accent);
}

.edit-match:hover {
    background: rgba(0, 255, 136, 0.1);
}

.delete-match {
    color: var(--danger);
}

.delete-match:hover {
    background: rgba(255, 77, 77, 0.1);
}

.match-detail {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-detail i {
    color: var(--primary);
}

/* Add Match Form */
.add-match-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.team-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-select label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Guest Goalkeeper Section */
.guest-goalkeeper-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.guest-goalkeeper-section h5 {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-goalkeeper-section h5 i {
    color: var(--primary);
}

.guest-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.guest-team-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guest-team-select label {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-align: center;
}

.guest-team-select label.red { background: rgba(231, 76, 60, 0.4); color: #fff; }
.guest-team-select label.blue { background: rgba(52, 152, 219, 0.4); color: #fff; }
.guest-team-select label.yellow { background: rgba(241, 196, 15, 0.4); color: #000; }
.guest-team-select label.white { background: rgba(255, 255, 255, 0.4); color: #fff; }

.guest-team-select select {
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
}

.guest-team-select select option {
    background: #1a1a2e;
    color: #fff;
}

.team-select select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
}

.vs-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.match-score-section,
.match-goals-section,
.match-assists-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1rem;
}

.match-score-section h5,
.match-goals-section h5,
.match-assists-section h5 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.score-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.score-team .team-label {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
}

.score-team.red .team-label { color: var(--team-red); border: 1px solid var(--team-red); }
.score-team.blue .team-label { color: var(--team-blue); border: 1px solid var(--team-blue); }
.score-team.yellow .team-label { color: var(--team-yellow); border: 1px solid var(--team-yellow); }
.score-team.white .team-label { color: var(--team-white); border: 1px solid var(--team-white); }

.score-team input {
    width: 70px;
    height: 60px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid var(--border);
    color: #fff;
}

.score-team.red input { border-color: rgba(231, 76, 60, 0.5); }
.score-team.blue input { border-color: rgba(52, 152, 219, 0.5); }
.score-team.yellow input { border-color: rgba(241, 196, 15, 0.5); }
.score-team.white input { border-color: rgba(236, 240, 241, 0.5); }

.score-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    padding: 0 0.25rem;
}

/* New Score Controls with +/- buttons */
.score-input-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.score-team-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.score-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.score-btn.plus:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.score-btn.minus {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.score-btn.minus:hover {
    background: rgba(255,255,255,0.25);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    color: #fff;
}

.score-separator-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dim);
    padding: 0 0.25rem;
}

/* Penalty checkbox for goals */
.penalty-checkbox {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.penalty-checkbox input {
    width: 16px;
    height: 16px;
}

.penalty-checkbox:has(input:checked) {
    background: rgba(0,212,170,0.2);
    color: var(--primary);
}

/* Penalty Shootout Section */
.penalty-shootout-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px dashed var(--border);
}

.penalty-shootout-section h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shootout-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: normal;
}

.shootout-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.shootout-score .team-color {
    font-weight: 600;
    font-size: 0.9rem;
}

.shootout-score .team-color.red { color: var(--team-red); }
.shootout-score .team-color.blue { color: var(--team-blue); }
.shootout-score .team-color.yellow { color: var(--team-yellow); }
.shootout-score .team-color.white { color: var(--team-white); }

.shootout-result {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.shootout-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shootout-team {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.75rem;
}

.shootout-team .team-label {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.shootout-team.red .team-label { color: var(--team-red); }
.shootout-team.blue .team-label { color: var(--team-blue); }
.shootout-team.yellow .team-label { color: var(--team-yellow); }
.shootout-team.white .team-label { color: var(--team-white); }

.shootout-players {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shootout-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.shootout-player.scored {
    background: rgba(46, 204, 113, 0.2);
}

.shootout-player.missed {
    background: rgba(231, 76, 60, 0.2);
}

.shootout-btns {
    display: flex;
    gap: 0.25rem;
}

.shootout-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    opacity: 0.4;
}

.shootout-btn.scored {
    background: rgba(46, 204, 113, 0.3);
    color: var(--success);
}

.shootout-btn.missed {
    background: rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.shootout-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.shootout-btn.scored.active {
    background: var(--success);
    color: #fff;
}

.shootout-btn.missed.active {
    background: var(--danger);
    color: #fff;
}

/* Smart Hints for Data Entry */
.smart-hint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin: 0;
}

.goals-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

/* Optgroup styling */
.quick-add select optgroup {
    font-weight: 600;
    color: var(--primary);
    background: rgba(0,0,0,0.3);
}

.winner-section {
    margin-top: 1rem;
    text-align: center;
}

.winner-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.winner-options {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.winner-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.winner-btn.red { border-color: var(--team-red); color: var(--team-red); }
.winner-btn.blue { border-color: var(--team-blue); color: var(--team-blue); }
.winner-btn.yellow { border-color: var(--team-yellow); color: var(--team-yellow); }
.winner-btn.white { border-color: var(--team-white); color: var(--team-white); }
.winner-btn.draw { border-color: var(--text-dim); color: var(--text-dim); }

/* Winner selected - GLOW effect */
.winner-btn.selected {
    font-weight: 700;
    transform: scale(1.05);
}

.winner-btn.red.selected {
    background: rgba(231, 76, 60, 0.25);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6), inset 0 0 15px rgba(231, 76, 60, 0.2);
    color: #fff !important;
    border-color: var(--team-red);
}

.winner-btn.blue.selected {
    background: rgba(52, 152, 219, 0.25);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6), inset 0 0 15px rgba(52, 152, 219, 0.2);
    color: #fff !important;
    border-color: var(--team-blue);
}

.winner-btn.yellow.selected {
    background: rgba(241, 196, 15, 0.25);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.6), inset 0 0 15px rgba(241, 196, 15, 0.2);
    color: var(--team-yellow) !important;
    border-color: var(--team-yellow);
}

.winner-btn.white.selected {
    background: rgba(236, 240, 241, 0.25);
    box-shadow: 0 0 20px rgba(236, 240, 241, 0.6), inset 0 0 15px rgba(236, 240, 241, 0.2);
    color: #fff !important;
    border-color: var(--team-white);
}

.winner-btn.draw.selected {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

/* Quick Add */
.quick-add {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quick-add select {
    flex: 1;
    padding: 0.6rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
}

.quick-add input {
    padding: 0.6rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
    text-align: center;
}

.added-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.added-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0,212,170,0.1);
    border-radius: 6px;
}

.added-item .badge {
    background: var(--primary);
    color: #000;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 25px;
    text-align: center;
}

.added-item button {
    margin-right: auto;
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
}

/* End Evening */
.end-evening {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.end-section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
}

.end-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.end-section .hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.end-section select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
    margin-bottom: 0.5rem;
}

.end-section textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
    resize: vertical;
}

/* Button sizes */
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* Evening Matches Display */
.evening-matches-section {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.evening-matches-section h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.evening-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.evening-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    border-right: 3px solid var(--text-dim);
}

.evening-match.red { border-right-color: var(--team-red); }
.evening-match.blue { border-right-color: var(--team-blue); }
.evening-match.yellow { border-right-color: var(--team-yellow); }
.evening-match.white { border-right-color: var(--team-white); }

.evening-match .match-num {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.evening-match .team {
    min-width: 50px;
}

.evening-match .team.red { color: var(--team-red); }
.evening-match .team.blue { color: var(--team-blue); }
.evening-match .team.yellow { color: var(--team-yellow); }
.evening-match .team.white { color: var(--team-white); }

.evening-match .score {
    font-weight: 700;
    color: #fff;
    padding: 0 0.5rem;
}

.evening-match .pen {
    font-size: 0.7rem;
    color: var(--danger);
    margin-right: auto;
}

.matches-count {
    font-size: 0.75rem;
    color: var(--text-dim);
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Responsive */
@media (min-width: 768px) {
    .live-body {
        padding: 1.5rem;
        max-height: calc(100vh - 250px);
    }
    
    .team-scores {
        gap: 1.5rem;
    }
    
    .team-score {
        min-width: 100px;
        padding: 1rem 1.5rem;
    }
    
    .team-score .wins-count {
        font-size: 2.5rem;
    }
    
    .match-teams-select {
        gap: 2rem;
    }
    
    .score-team input {
        width: 80px;
        height: 60px;
        font-size: 2rem;
    }
    
    .evening-match {
        font-size: 0.9rem;
    }
    
    .evening-match .team {
        min-width: 70px;
    }
}

/* ================================================
   Professional Evening Statistics Display
   ================================================ */

/* Points Table */
.pro-table-section {
    margin-bottom: 1rem;
}

.pro-table-section h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.pro-standings-table th {
    background: rgba(0,0,0,0.4);
    padding: 0.5rem 0.3rem;
    text-align: center;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.7rem;
}

.pro-standings-table td {
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pro-standings-table tr.first-place {
    background: linear-gradient(90deg, rgba(241,196,15,0.15), transparent);
}

.pro-standings-table tr.first-place td.rank {
    color: #f1c40f;
    font-weight: 700;
}

.pro-standings-table .team-name {
    text-align: right;
    font-weight: 500;
}

.pro-standings-table tr.red .team-name { color: var(--team-red); }
.pro-standings-table tr.blue .team-name { color: var(--team-blue); }
.pro-standings-table tr.yellow .team-name { color: var(--team-yellow); }
.pro-standings-table tr.white .team-name { color: var(--team-white); }

.pro-standings-table .wins { color: var(--success); }
.pro-standings-table .points { 
    font-weight: 700; 
    color: var(--primary);
    font-size: 0.9rem;
}

/* Goals display: RTL native - first number (goalsFor) appears on RIGHT */
.pro-standings-table .goals {
    color: var(--text); /* White color as requested */
}

/* Match Results */
.pro-matches-section {
    margin-bottom: 1rem;
}

.pro-matches-section h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pro-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.pro-match-row .team-name {
    flex: 1;
    font-size: 0.85rem;
}

.pro-match-row .team-name:first-child { text-align: right; }
.pro-match-row .team-name:last-child { text-align: left; }

.pro-match-row .team-name.winner {
    font-weight: 700;
}

.pro-match-row .team-name.red { color: var(--team-red); }
.pro-match-row .team-name.blue { color: var(--team-blue); }
.pro-match-row .team-name.yellow { color: var(--team-yellow); }
.pro-match-row .team-name.white { color: var(--team-white); }

.match-score {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    min-width: 70px;
    text-align: center;
}

.match-score.winner-left {
    border-right: 3px solid var(--success);
}

.match-score.winner-right {
    border-left: 3px solid var(--success);
}

.pen-tag {
    font-size: 0.65rem;
    color: var(--danger);
    margin-right: 0.25rem;
}

/* Match Card with Details */
.pro-match-card {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.pro-match-card .pro-match-row {
    padding: 0.5rem 0.75rem;
    margin: 0;
    background: none;
    border-radius: 0;
}

.match-details {
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.match-details .detail-goals,
.match-details .detail-assists {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.match-details .detail-goals i { color: var(--primary); }
.match-details .detail-assists i { color: #e67e22; }

/* Professional Team Stats Display */
.match-team-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-stat-row {
    display: flex;
    align-items: stretch;
    background: rgba(0,0,0,0.25);
    border-right: 3px solid;
}

.team-stat-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-stat-row.red { border-right-color: var(--team-red); }
.team-stat-row.blue { border-right-color: var(--team-blue); }
.team-stat-row.yellow { border-right-color: var(--team-yellow); }
.team-stat-row.white { border-right-color: var(--team-white); }

/* Modern Match Details Layout */
.match-details-modern {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.team-column {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

/* Team label header */
.team-label {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-column.red .team-label { 
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.4), rgba(231, 76, 60, 0.2));
    color: var(--team-red); 
    border-bottom: 2px solid var(--team-red);
}
.team-column.blue .team-label { 
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4), rgba(52, 152, 219, 0.2));
    color: var(--team-blue); 
    border-bottom: 2px solid var(--team-blue);
}
.team-column.yellow .team-label { 
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.4), rgba(241, 196, 15, 0.2));
    color: var(--team-yellow); 
    border-bottom: 2px solid var(--team-yellow);
}
.team-column.white .team-label { 
    background: linear-gradient(135deg, rgba(236, 240, 241, 0.4), rgba(236, 240, 241, 0.2));
    color: var(--team-white); 
    border-bottom: 2px solid var(--team-white);
}
.team-column.orange .team-label { 
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.4), rgba(230, 126, 34, 0.2));
    color: var(--team-orange); 
    border-bottom: 2px solid var(--team-orange);
}

.column-content {
    padding: 0.5rem;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-column .scorers {
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
    color: rgba(255,255,255,0.95);
}

.team-column .assisters {
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
    color: rgba(255,255,255,0.55);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
}

.team-column .no-stats {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
}

/* Keep side-by-side on all screens */

.team-badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-stat-row.red .team-badge { 
    background: rgba(231, 76, 60, 0.25); 
    color: var(--team-red); 
}
.team-stat-row.blue .team-badge { 
    background: rgba(52, 152, 219, 0.25); 
    color: var(--team-blue); 
}
.team-stat-row.yellow .team-badge { 
    background: rgba(241, 196, 15, 0.25); 
    color: var(--team-yellow); 
}
.team-stat-row.white .team-badge { 
    background: rgba(236, 240, 241, 0.25); 
    color: var(--team-white); 
}

.team-stat-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    align-items: center;
}

.stat-goals, .stat-assists {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.85);
}

.stat-goals i {
    color: var(--primary);
    font-size: 0.65rem;
}

.stat-assists i {
    color: #e67e22;
    font-size: 0.65rem;
}

.match-shootout {
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.7rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.match-shootout-teams {
    padding: 0.6rem 0.75rem;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: -1px;
}

.match-shootout-teams::before {
    content: "🎯 דו קרב פנדלים";
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.shootout-team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-right: 3px solid transparent;
}

.shootout-team-row.red { border-right-color: var(--team-red); }
.shootout-team-row.blue { border-right-color: var(--team-blue); }
.shootout-team-row.yellow { border-right-color: var(--team-yellow); }
.shootout-team-row.white { border-right-color: var(--team-white); }

.shootout-team-row .team-badge {
    font-weight: 500;
    min-width: 60px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
}

.shootout-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.shootout-players .scored {
    color: #7bed9f;
    font-size: 0.75rem;
}

.shootout-players .missed {
    color: #ff6b81;
    font-size: 0.75rem;
    opacity: 0.8;
}

.w-badge {
    background: #2ecc71;
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.shootout-scored {
    color: var(--success);
}

.shootout-missed {
    color: var(--danger);
}

/* Stats Row */
.pro-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pro-stat-col {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 0.75rem;
}

.pro-stat-col h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-line .count {
    font-weight: 600;
    color: var(--primary);
}

/* Awards */
.pro-awards {
    background: linear-gradient(135deg, rgba(241,196,15,0.1), rgba(243,156,18,0.05));
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.pro-awards .award {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.pro-awards .award.mvp i { color: #f1c40f; }
.pro-awards .award.gotr i { color: #e67e22; }

/* Team Rosters - Modern Style (Always Visible) */
.team-rosters-section {
    margin-bottom: 1rem;
}

.team-rosters-section h5 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rosters-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 768px) {
    .rosters-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

.roster-card-modern {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-right: 4px solid;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.roster-card-modern:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(-3px);
}

.roster-card-modern.red { border-right-color: var(--team-red); }
.roster-card-modern.blue { border-right-color: var(--team-blue); }
.roster-card-modern.yellow { border-right-color: var(--team-yellow); }
.roster-card-modern.white { border-right-color: var(--team-white); }
.roster-card-modern.orange { border-right-color: var(--team-orange); }

.roster-team-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.roster-card-modern.red .roster-team-name { color: var(--team-red); }
.roster-card-modern.blue .roster-team-name { color: var(--team-blue); }
.roster-card-modern.yellow .roster-team-name { color: var(--team-yellow); }
.roster-card-modern.white .roster-team-name { color: var(--team-white); }
.roster-card-modern.orange .roster-team-name { color: var(--team-orange); }

.roster-players-list {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.roster-item.red strong { color: var(--team-red); }
.roster-item.blue strong { color: var(--team-blue); }
.roster-item.yellow strong { color: var(--team-yellow); }
.roster-item.white strong { color: var(--team-white); }

.roster-item span {
    color: var(--text-dim);
}

/* Responsive for pro stats */
@media (min-width: 500px) {
    .pro-standings-table {
        font-size: 0.85rem;
    }
    
    .pro-standings-table th {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }
    
    .pro-standings-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .pro-match-row .team-name {
        font-size: 0.9rem;
    }
    
    .match-score {
        font-size: 1.1rem;
        min-width: 80px;
    }
}

/* ================================================
   Game Detail Modal (Shared Link View)
   ================================================ */
#gameDetailModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem 0;
}

.game-detail-content {
    background: var(--bg-dark);
    width: 100%;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.game-detail-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
}

.game-detail-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.game-detail-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-detail-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.game-detail-body {
    padding: 0;
    overflow-y: visible;
}

/* Make the game item in modal look exactly like the regular one */
.game-detail-view.game-item {
    margin: 0;
    border: none;
    border-radius: 0 0 12px 12px;
}

.game-detail-view .game-item-header {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.game-detail-view .game-item-body {
    display: block !important;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    #gameDetailModal {
        padding: 0;
        align-items: stretch;
    }
    
    .game-detail-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    .game-detail-header {
        border-radius: 0;
        padding: 1rem;
    }
    
    .game-detail-header h2 {
        font-size: 1.2rem;
    }
    
    .game-detail-view.game-item {
        border-radius: 0;
    }
    
    .game-detail-view .game-item-header {
        padding: 0.75rem 1rem;
    }
    
    .game-detail-view .game-item-body {
        padding: 1rem;
    }
}

/* ============================================
   ORANGE TEAM STYLES (Added for 5th team)
   ============================================ */

/* Team Winners */
.game-item-header .winner.orange { background: rgba(255,152,0,0.25); color: var(--team-orange); }

/* Team Players Items */
.team-players-item.orange { 
    border-color: #ff9800;
    background: linear-gradient(135deg, rgba(255,152,0,0.15) 0%, rgba(255,152,0,0.05) 100%);
}
.team-players-item.orange .team-players-header { color: #ff9800; }

/* Team Setup Cards */
.team-setup-card.orange:hover { border-color: var(--team-orange); }
.team-color-icon.orange { background: var(--team-orange); }
.team-selection-header.orange { background: rgba(255, 152, 0, 0.2); }
.team-color-badge.orange { background: var(--team-orange); }

/* Team Headers */
.team-header.orange { background: rgba(255, 152, 0, 0.2); color: var(--team-orange); }

/* Team Scores */
.team-score.orange { background: rgba(255, 152, 0, 0.25); }

/* Match Items */
.match-item.orange { border-right-color: var(--team-orange); }
.match-teams .team.orange { color: var(--team-orange); }

/* Guest Team Select */
.guest-team-select label.orange { background: rgba(255, 152, 0, 0.4); color: #fff; }

/* Score Team */
.score-team.orange .team-label { color: var(--team-orange); border: 1px solid var(--team-orange); }
.score-team.orange input { border-color: rgba(255, 152, 0, 0.5); }

/* Shootout */
.shootout-score .team-color.orange { color: var(--team-orange); }
.shootout-team.orange .team-label { color: var(--team-orange); }

/* Winner Buttons */
.winner-btn.orange { border-color: var(--team-orange); color: var(--team-orange); }
.winner-btn.orange.selected {
    background: rgba(255, 152, 0, 0.25);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6), inset 0 0 15px rgba(255, 152, 0, 0.2);
    color: #fff !important;
    border-color: var(--team-orange);
}

/* Evening Matches */
.evening-match.orange { border-right-color: var(--team-orange); }
.evening-match .team.orange { color: var(--team-orange); }

/* Pro Standings */
.pro-standings-table tr.orange .team-name { color: var(--team-orange); }
.pro-match-row .team-name.orange { color: var(--team-orange); }

/* Roster Items */
.roster-item.orange { border-right-color: var(--team-orange); }
.roster-item.orange .roster-team-name { color: var(--team-orange); }

/* Team Stats Row */
.team-stats-row .team-tag.orange { background: var(--team-orange); }

/* Permanent Goalkeepers Section */
.permanent-goalkeepers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.permanent-gk-chip {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,152,0,0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

.permanent-gk-chip i.fa-user-shield {
    color: var(--team-orange);
    margin-left: 0.5rem;
}

.permanent-gk-chip.selected {
    background: rgba(255,152,0,0.2);
    border-color: var(--team-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

.permanent-gk-chip .check-mark {
    position: absolute;
    top: 4px;
    left: 4px;
    color: var(--success);
    font-size: 0.8rem;
}

.permanent-gk-chip:hover {
    background: rgba(255,152,0,0.15);
    border-color: var(--team-orange);
}


/* Trial Banners */
.trial-expired-banner {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.trial-warning-banner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.trial-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trial-content i {
    font-size: 1.2rem;
}

.trial-upgrade-btn {
    background: #0f172a;
    color: #f59e0b !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.trial-expired-banner .trial-upgrade-btn {
    background: white;
    color: #dc2626 !important;
}

.trial-upgrade-btn:hover {
    background: #1e293b;
    transform: scale(1.05);
}

/* Subscription Status Display */
.sub-premium {
    color: #22c55e;
    font-weight: 600;
}

.sub-trial {
    color: #f59e0b;
    font-weight: 600;
}

.sub-expired {
    color: #ef4444;
    font-weight: 600;
}

/* Players Counter */
.players-counter {
    color: #22c55e;
    font-weight: 700;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .trial-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trial-content span {
        font-size: 0.9rem;
    }
}

/* ================================================
   Settings Modal
   ================================================ */
.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.settings-section h3 i {
    color: var(--primary);
}

.settings-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 600;
    font-family: monospace;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-form label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.danger-zone {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem;
}

.danger-zone h3 {
    color: var(--danger) !important;
}

.danger-zone h3 i {
    color: var(--danger) !important;
}

.settings-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.settings-btn:hover {
    background: var(--border);
    color: var(--text);
}
