   
         #phone-edit-view .settings-input {
            flex-grow: 1;
            min-width: 0; /* Allows the input to shrink */
        }

        /* --- NEW: VIP Profile Flair --- */
            .vip-glow {
                border: 3px solid var(--warning-color) !important;
                box-shadow: 0 0 15px rgba(var(--warning-color-rgb, 255, 212, 40), 0.7);
            }
        /* --- NEW: Horizontal Scroll for History --- */
            .horizontal-scroll-container {
                display: flex;
                gap: 10px;
                overflow-x: auto;
                padding-bottom: 10px; /* Add some space for the scrollbar */
                /* Hide scrollbar for a cleaner look, but still allow scrolling */
                scrollbar-width: none; /* Firefox */
            }
            .horizontal-scroll-container::-webkit-scrollbar {
                display: none; /* Chrome, Safari, Opera */
            }
            .history-item {
                flex-shrink: 0; /* Prevents items from shrinking */
                width: 70px;
                padding: 8px;
                border-radius: 8px;
                background-color: var(--tertiary-bg);
                text-align: center;
            }
            .history-item-points {
                font-weight: 700;
                font-size: 1.2rem;
                color: var(--warning-color);
            }
            .history-item-label {
                font-size: 0.7rem;
                color: var(--secondary-text);
            }
                /* --- NEW: Stats Page Title & Table Alignment Fixes --- */

                /* This rule makes all section titles inside the Stats Page white */
                #stats-page .section-title {
                    color: var(--primary-text);
                }

                /* --- This is the new, more powerful alignment fix --- */

                /* Force tables on this page to use fixed column widths */
                #stats-page .data-table {
                    table-layout: fixed;
                    width: 100%;
                }

                /* Set a fixed width for the Rank (#) column and center it */
                #stats-page .data-table .rank-cell {
                    width: 15%;
                    text-align: center;
                }

                /* The middle (Player) column will automatically fill the remaining space */

                /* Set a fixed width for the Points/Goals column and align it right */
                #stats-page .data-table .points-cell {
                    width: 30%;
                    text-align: right;
                    padding-right: 15px;
                }
                /* --- NEW: Global Custom Scrollbar Styling --- */
                /* This targets all main pages, pop-up content, the player list, and the side menu */
                .app-page::-webkit-scrollbar,
                .rules-content-container::-webkit-scrollbar,
                #player-list-container::-webkit-scrollbar,
                .side-menu-links::-webkit-scrollbar {
                    width: 6px; /* Sets the width of the scrollbar */
                }

                .app-page::-webkit-scrollbar-track,
                .rules-content-container::-webkit-scrollbar-track,
                #player-list-container::-webkit-scrollbar-track,
                .side-menu-links::-webkit-scrollbar-track {
                    background: transparent; /* Makes the track invisible */
                }

                .app-page::-webkit-scrollbar-thumb,
                .rules-content-container::-webkit-scrollbar-thumb,
                #player-list-container::-webkit-scrollbar-thumb,
                .side-menu-links::-webkit-scrollbar-thumb {
                    background-color: #555; /* A dark grey for the scroll handle */
                    border-radius: 6px;
                    border: 2px solid var(--secondary-bg); /* Creates padding around the handle */
                }

                /* For Firefox browsers */
                .app-page,
                .rules-content-container,
                #player-list-container,
                .side-menu-links {
                    scrollbar-width: thin;
                    scrollbar-color: #555 var(--secondary-bg);
                }

            /* --- NEW: Palmarès Modal Title & Count Styling --- */
            #palmares-total-title span {
                background-color: var(--tertiary-bg);
                color: var(--warning-color);
                padding: 2px 8px;
                border-radius: 6px;
                font-size: 0.9rem;
                margin-left: 10px;
            }
            .trophy-count {
                color: var(--warning-color); /* This is the app's yellow color */
            }
            /* --- NEW: Palmarès Modal Styling --- */
            #palmares-modal .modal-content {
                padding-top: 55px; 
                position: relative;
            }
            #palmares-modal-logo-top {
                position: absolute;
                top: -45px; 
                left: 50%;
                transform: translateX(-50%);
                width: 90px;
                height: 90px;
                border-radius: 50%;
                background-color: var(--tertiary-bg);
                border: 4px solid var(--secondary-bg);
                object-fit: contain;
                padding: 5px;
            }

            /* --- Styles for the Team Name --- */
            #palmares-modal-title {
                text-align: center;
                font-family: 'Berlin Sans FB Demi', sans-serif; /* Berlin font */
                color: var(--primary-text); /* White color */
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow */
            }

            #palmares-team-description {
                font-size: 0.9rem;
                color: var(--secondary-text);
                text-align: left; /* Aligns description text to the left */
            }
            #palmares-team-description div {
                margin-bottom: 5px;
            }
            #palmares-team-description strong {
                color: var(--primary-text); 
                font-weight: 600;
            }

            /* --- Styles for Section Titles --- */
            .palmares-section-title {
                color: var(--warning-color);
                font-weight: 600;
                font-size: 1rem;
                text-align: left; /* CHANGED: Aligns titles to the left */
                margin-top: 20px;
                margin-bottom: 10px;
                padding-bottom: 5px;
                border-bottom: 1px solid var(--border-color);
            }

            #palmares-total-title {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            #palmares-total-title span {
                background-color: var(--tertiary-bg);
                color: var(--primary-text); /* CHANGED: Total count is now white */
                padding: 2px 8px;
                border-radius: 6px;
                font-size: 0.9rem;
            }

            /* --- Styles for the Trophy List --- */
            .palmares-item {
                display: flex;
                align-items: center;
                gap: 15px;
                padding-bottom: 10px;
                border-bottom: 1px solid var(--border-color);
            }
            .palmares-item:last-child {
                border-bottom: none;
            }
            .palmares-item-logo {
                width: 40px;
                height: 40px;
                object-fit: contain;
            }
            .palmares-item-details {
                flex-grow: 1;
            }
            .palmares-item-title {
                display: flex;
                justify-content: space-between;
                font-weight: 600;
                font-size: 1rem;
            }
            .palmares-item-years {
                font-size: 0.75rem;
                color: var(--secondary-text);
                margin-top: 4px;
            }
            .trophy-count {
                color: var(--warning-color); /* This keeps the 'x 4' text yellow */
            }

            /* --- NEW: Styling for VIP-only items and Coins section --- */
            .buy-btn.vip-only {
                background-color: var(--tertiary-bg);
                color: var(--secondary-text);
                cursor: not-allowed;
            }
            .coins-section-container {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            .coins-card {
                background-color: var(--secondary-bg);
                border-radius: 12px;
                padding: 15px;
                text-align: center;
            }
            .coins-card h3 {
                margin-bottom: 10px;
                color: var(--primary-text);
            }
            .coins-card p {
                color: var(--secondary-text);
                font-size: 0.9rem;
                margin-bottom: 15px;
            }

            .coin-pack-grid.disabled .coin-pack {
                opacity: 0.5;
                cursor: not-allowed;
            }
            .coin-pack-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .coin-pack {
                background: var(--tertiary-bg);
                padding: 10px;
                border-radius: 8px;
                cursor: pointer;
            }
            .coin-pack .fas {
                color: #ffd700;
                font-size: 1.5rem;
            }
            .coin-pack div {
                font-weight: 600;
                margin-top: 5px;
            }

        /* --- NEW: Store Page Styling --- */
            .store-header {
                margin-bottom: 20px;
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            .store-balance {
                background-color: var(--secondary-bg);
                padding: 10px 15px;
                border-radius: 8px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-weight: 500;
            }
            #store-coin-balance {
                font-weight: 700;
                font-size: 1.2rem;
                color: var(--warning-color);
                display: flex;
                align-items: center;
                gap: 5px;
            }
            #store-filters {
                display: flex;
                gap: 10px;
            }
            #store-item-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            .store-item-card {
                background-color: var(--secondary-bg);
                border-radius: 12px;
                padding: 10px;
                text-align: center;
                border: 1px solid transparent;
                transition: all 0.2s ease;
            }
            .store-item-card.vip {
                border-color: var(--warning-color);
            }
            .store-item-image {
                width: 100%;
                height: 100px;
                object-fit: contain;
                margin-bottom: 10px;
            }
            .store-item-name {
                font-weight: 600;
                font-size: 0.9rem;
                min-height: 36px; /* A a fixed height to prevent layout shifts */
            }
            .buy-btn {
                width: 100%;
                margin-top: 10px;
                padding: 8px;
                border: none;
                border-radius: 8px;
                background-color: var(--accent-color);
                color: var(--primary-bg);
                font-weight: 600;
                cursor: pointer;
            }
            .buy-btn.vip {
                background-color: var(--warning-color);
            }
            .buy-btn:disabled {
                background-color: var(--tertiary-bg);
                color: var(--secondary-text);
                cursor: not-allowed;
            }
            .buy-btn .fa-coins {
                margin-left: 5px;
            }
            /* --- NEW: Style for coin balance on the Profile Page --- */
            #header-coin-balance.on-profile {
                position: absolute;
                bottom: -10px; /* Sits below the main avatar */
                left: 50%;
                transform: translateX(-50%);
                font-size: 1rem; /* Larger font */
                padding: 4px 15px;
                border-radius: 15px;
                border: 3px solid var(--secondary-bg); /* Match the card background */
            }

        /* --- NEW: Fixtures Page Filter Styling --- */
            #fixtures-filter-container {
                margin-bottom: 20px;
            }
            #matchday-filter {
                width: 100%;
                padding: 10px 12px;
                background-color: var(--secondary-bg);
                border: 1px solid var(--border-color);
                color: var(--primary-text);
                border-radius: 8px;
                font-family: var(--font-family);
                font-size: 1rem;
                font-weight: 500;
            }
             .settings-input {
                background: none;
                border: none;
                color: var(--primary-text);
                font-family: var(--font-family);
                font-size: 1rem;
                flex-grow: 1;
            }
            .settings-input:focus {
                outline: none;
            }
            .settings-save-btn {
                background-color: var(--accent-color);
                color: var(--primary-bg);
                border: none;
                border-radius: 6px;
                padding: 6px 12px;
                font-weight: 600;
                cursor: pointer;
            }

        /* --- NEW: Donation Total Text Styling --- */
            #donation-current-total {
                text-align: center;
                margin-top: 15px;
                font-size: 0.9rem;
                font-weight: 600;
                color: var(--secondary-text);
            }
                /* --- NEW: Bank Info Styling for Donate Modal --- */

                /* 1. Makes the main instruction text white */
                    #donate-info-modal .modal-content > p {
                        color: var(--primary-text);
                    }
                .bank-info {
                    background-color: var(--tertiary-bg);
                    border: 1px dashed var(--border-color);
                    padding: 15px;
                    border-radius: 8px;
                    font-family: monospace;
                    font-size: 0.9rem;
                }
                .bank-info div {
                    margin-bottom: 10px;
                    color: var(--primary-text);
                }
                .bank-info div:last-child {
                    margin-bottom: 0;
                }
                .bank-info span {
                    font-weight: 600;
                    display: block;
                    font-family: var(--font-family);
                    margin-bottom: 4px;
                    font-size: 0.8rem;
                    color: var(--accent-color);
                }
        /* --- NEW: About Us & Donate Page Styling --- */
                .about-section {
                    background-color: var(--secondary-bg);
                    padding: 20px;
                    border-radius: 12px;
                    margin-bottom: 20px;
                }
                .about-section h3 {
                    font-size: 1.2rem;
                    font-weight: 600;
                    color: var(--accent-color);
                    margin-bottom: 15px;
                }
                .about-section p {
                    color: var(--secondary-text);
                    line-height: 1.6;
                }
                .about-section a {
                    color: var(--accent-color);
                    text-decoration: none;
                    font-weight: 600;
                }
                .donate-btn {
                    display: block;
                    width: 100%;
                    text-align: center;
                    background-color: var(--accent-color);
                    color: var(--primary-bg) !important;
                    padding: 12px;
                    border-radius: 8px;
                    margin-top: 20px;
                    font-size: 1.1rem;
                    box-shadow: 0px 5px 25px rgba(var(--accent-color-rgb), 0.35);
                }
                .donate-btn i {
                    margin-right: 8px;
                }
                .copyright {
                    text-align: center;
                    font-size: 0.8rem;
                    color: var(--secondary-text);
                    margin-top: 20px;
                }
                    /* --- NEW: Donation Goal Bar Styling --- */
                    #donation-goal-container h4 {
                        color: var(--primary-text);
                        font-size: 1rem;
                    }

                    #donation-goal-complete p {
                        color: var(--secondary-text);
                        line-height: 1.6;
                        font-size: 0.9rem;
                    }

                    #donation-goal-complete p strong {
                        color: var(--accent-color);
                    }
        /* --- NEW: Controls logo size on the pitch --- */
                .player-jersey img {
                    width: 40px;
                    height: 40px;
                    object-fit: contain;
                }

            /* --- NEW Pitch Header Layout Styles --- */

                /* Makes the header a flex container to separate left and right sides */
                .pitch-header {
                    width: 90%; /* Aligns with the pitch width */
                    margin: 0 auto; /* Centers the header */
                    padding: 0; /* Removes old padding */
                    justify-content: space-between; /* Pushes left and right content to the edges */
                }


                /* New wrapper for the title and icons */
                .pitch-header-left {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                }

                                /* --- NEW: Event Icon Styling --- */
                #event-info-btn.active-event {
                    display: block !important; /* Make it visible */
                    color: var(--warning-color); /* Make it yellow */
                    font-size: 1rem; /* Match other icons */
                }

                /* Reduces the size of the icons */
                #rules-info-btn, #auto-select-btn {
                    font-size: 1rem;
                }
        /* --- NEW Header Avatar & Gameweek Points Styling --- */

            /* Styles the new circular avatar in the header */
            .header-avatar {
                width: 60px;
                height: 60px;
                border-radius: 50%;
                object-fit: cover;
                border: 2px solid var(--accent-color);
                cursor: pointer;
                background-color: var(--tertiary-bg);
            }

            /* Styles the new gameweek points display on the pitch */
            .gameweek-points-display {
                background-color: var(--secondary-bg);
                padding: 5px 10px;
                border-radius: 8px;
                text-align: center;
                border: 1px solid var(--border-color);
            }
            .gameweek-points-display span {
                font-weight: 700;
                font-size: 1.1rem;
                color: var(--warning-color);
            }
            .gameweek-points-display small {
                font-size: 0.6rem;
                color: var(--secondary-text);
                display: block;
                line-height: 1;
            }
            /* --- NEW Side Menu Styles --- */

            /* 1. Apply the Berlin Sans font to all text in the side menu */
            .side-menu-header {
                font-family: 'Berlin Sans FB Demi', sans-serif;
            }

            /* 2. Add a shadow effect to the main title */
            .side-menu-header {
                text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
            }


         /* --- NEW: Custom Styles for Earned Badges --- */

                /* ---- RARE BADGES (Purple Gradient) ---- */
                #badge-perfectionist.earned,
                #badge-top50.earned {
                    background: linear-gradient(145deg, #8E2DE2, #4A00E0);
                    border-color: rgba(255, 255, 255, 0.5);
                    box-shadow: 0 0 15px rgba(178, 102, 255, 0.8); /* Purple glow */
                }

                /* ---- SPECIAL BADGES (Teal Gradient) ---- */
                #badge-365.earned,
                #badge-referrer.earned {
                    background: linear-gradient(145deg, #43cea2, #185a9d);
                    border-color: rgba(255, 255, 255, 0.5);
                    box-shadow: 0 0 15px rgba(100, 220, 200, 0.8); /* Teal glow */
                }

                /* ---- ADMIN BADGES (Graphite Gradient) ---- */
                #badge-donator.earned {
                    background: linear-gradient(145deg, #616161, #212121);
                    border-color: rgba(255, 255, 255, 0.5);
                    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* White glow */
                }

                /* --- Common styles for all these new gradient badges --- */
                #badge-perfectionist.earned span, #badge-perfectionist.earned i,
                #badge-top50.earned span, #badge-top50.earned i,
                #badge-365.earned span, #badge-365.earned i,
                #badge-referrer.earned span, #badge-referrer.earned i,
                #badge-donator.earned span, #badge-donator.earned i {
                    color: #FFFFFF; /* White text and icon */
                    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); /* White icon glow */
                }

              /* --- NEW: Custom Style for Earned VIP Badge --- */
                #badge-vip.earned {
                    background: linear-gradient(145deg, #FFD700, #FFA500); /* Gold to Orange gradient */
                    border-color: rgba(255, 255, 255, 0.6);
                    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9); /* Stronger gold glow */
                }

                #badge-vip.earned i {
                    color: #FFFFFF; /* White icon */
                    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Soft black shadow for depth */
                }

                #badge-vip.earned span {
                    color: #000000; /* Black text */
                    font-weight: 600;
                    /* This simulates a white "border" around the text */
                    text-shadow: 
                        -1px -1px 0 #fff,  
                        1px -1px 0 #fff,
                        -1px  1px 0 #fff,
                        1px  1px 0 #fff;
                }  
            /* --- Rookie Badge: Grey --- */
            #badge-rookie.earned {
                background-color: #808080; /* Grey background */
                border-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white border */
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* White border glow */
            }
            #badge-rookie.earned span,
            #badge-rookie.earned i {
                color: #FFFFFF; /* White text and icon */
            }
            #badge-rookie.earned i {
                text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* White icon glow */
            }


            /* --- The Pro Badge: Blue --- */
            #badge-pro.earned {
                background-color: #3498db; /* Blue background */
                border-color: rgba(255, 255, 255, 0.5);
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
            }
            #badge-pro.earned span,
            #badge-pro.earned i {
                color: #FFFFFF;
            }
            #badge-pro.earned i {
                text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
            }


            /* --- Elite Badge: Magenta --- */
            #badge-elite.earned {
                background-color: #C71585; /* Magenta background */
                border-color: rgba(255, 255, 255, 0.5);
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
            }
            #badge-elite.earned span,
            #badge-elite.earned i {
                color: #FFFFFF;
            }
            #badge-elite.earned i {
                text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
            }


            /* --- The Legend Badge: Gold --- */
            #badge-legend.earned {
                background-color: #FFD700; /* Gold background */
                border-color: rgba(255, 255, 255, 0.5);
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
            }
            #badge-legend.earned span,
            #badge-legend.earned i {
                color: #000000; /* Black text and icon for better contrast */
            }
            #badge-legend.earned i {
                text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
            }       
        
        #auth-action-btn,
            .confirm-team-btn,
            .league-btn,
            .modal-btn.btn-save {
                box-shadow: 0px 5px 25px rgba(var(--accent-color-rgb), 0.35);
            }
        /* Default Theme (Your original colors) */
        /* --- NEW Theme System --- */
        /* Default Theme */
        body.theme-default {
            --primary-bg: #0B1215;         /* Darkest Teal/Black */
            --secondary-bg: #1A282D;       /* Dark Teal/Gray */
            --tertiary-bg: #293E45;         /* Lighter Teal/Gray */
            --accent-color: #33FFD7;       /* Bright Cyan/Teal for buttons */
            --accent-color-rgb: 51, 255, 215; /* RGB version for the glow effect */
            --warning-color: #ebbb44;       /* Keeping the original yellow for consistency */
            --primary-text: #FFFFFF;
            --secondary-text: #a0a0a0;
            --border-color: #4A5F67;
        }

        /* Yellow Theme */
        body.theme-yellow {
            --primary-bg: #1D1D1F;
            --secondary-bg: #2C2D2F;
            --tertiary-bg: #3E3F41;
            --accent-color: #FFD428;
            --accent-color-rgb: 255, 212, 40; /* RGB for the yellow */
            --warning-color: #FFD428;
            --warning-color-rgb: 255, 212, 40; /* <-- ADD THIS */
            --primary-text: #FFFFFF;
            --secondary-text: #a0a0a0;
            --border-color: #444444;
        }

        /* Green Theme */
        /* --- NEW: Updated Green Theme --- */
        body.theme-green {
            --primary-bg: #1E2528;           /* The darkest background color */
            --secondary-bg: #3A504B;         /* The lighter card/section color */
            --tertiary-bg: #2a3a40;           /* A logical intermediate for inputs */
            --accent-color: #0ef682;         /* The bright mint accent color */
            --accent-color-rgb: 14, 246, 190;  /* The RGB version for the glow effect */
            --warning-color: #ebbb44;         /* Keeping yellow for warnings */
            --primary-text: #F7F7F7;          /* The light text color */
            --secondary-text: #a0a0a0;
            --border-color: #4A5F67;         /* A subtle border color */
        }

        /* Styling for the theme switcher buttons on the Settings page */
        .theme-switcher {
            display: flex;
            gap: 10px;
            background-color: var(--secondary-bg);
            padding: 15px;
            border-radius: 12px;
        }
        .theme-btn {
            flex-grow: 1;
            padding: 10px;
            border: 2px solid var(--tertiary-bg);
            background-color: var(--tertiary-bg);
            color: var(--secondary-text);
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .theme-btn.active {
            border-color: var(--accent-color);
            color: var(--accent-color);
        }
                /* --- NEW Player Name Position Colors --- */
                .player-slot.pos-gk .player-slot-name { 
                    background-color: #ebbb44; /* Yellow */
                    color: var(--primary-bg); /* Black text */
                    font-weight: 400;
                }
                .player-slot.pos-df .player-slot-name { 
                    background-color: #1e608d; /* Blue */
                }
                .player-slot.pos-mf .player-slot-name { 
                    background-color: #1a8044; /* Green */
                }
                .player-slot.pos-fw .player-slot-name { 
                    background-color: #a33327; /* Red */
                }

                /* 3. Restyle and position the points display */
                .player-slot-points {
                    position: absolute;
                    top: -5px;
                    left: -5px;
                    z-index: 3;
                    background-color: var(--primary-bg); 
                    color: var(--warning-color); 
                    font-size: 0.7rem;
                    font-family: 'DAGGERSQUARE', monospace;
                    font-weight: 400; /* This makes the font thinner */
                    border-radius: 50%;
                    width: 22px;
                    height: 22px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border: 2px solid var(--primary-bg);
                }

        @font-face {
        font-family: 'DAGGERSQUARE'; /* Use the simple name */
        font-style: normal;
        font-weight: normal;
        src: local('DAGGERSQUARE Regular'), url('DAGGERSQUARE.woff') format('woff');
        }

        @font-face {
        font-family: 'Berlin Sans FB Demi'; /* Use the simple name */
        font-style: normal;
        font-weight: bold; /* Correctly identify this as a bold font */
        src: local('Berlin Sans FB Demi Bold'), url('BRLNSDB.woff') format('woff');
        }

            /* --- NEW Font and Shadow Styles for Player Modal --- */

            /* Change the font for the player's name and add a shadow */
            #player-info-modal #modal-player-name {
                font-family: 'Berlin Sans FB Demi', sans-serif; /* Uses Berlin Sans, with a fallback */
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            }

            /* Change the font for the stat values (Price, Pts, Next Opp) and add a shadow */
            #player-info-modal .modal-player-meta .info-box-title {
                font-family: 'DAGGERSQUARE', monospace; /* Uses DAGGERSQUARE, with a fallback */
                text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
            }

            #player-info-modal .modal-content {
                position: relative;
                padding: 45px 15px 15px 15px;
                text-align: center;
                gap: 20px;
            }

            /* Reposition and style the team logo */
            #player-info-modal #modal-team-logo {
                position: absolute;
                top: -35px; /* Hangs the logo off the top */
                left: 50%;
                transform: translateX(-50%);
                width: 70px;
                height: 70px;
                border-radius: 50%;
                background-color: var(--tertiary-bg);
                border: 4px solid var(--secondary-bg);
                object-fit: contain;
                padding: 5px;
            }

            /* Style for the player name/team/position section */
            #player-info-modal .modal-player-details {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 5px;
            }
            #player-info-modal #modal-player-name {
                font-size: 1.5rem;
                font-weight: 700;
                color: var(--primary-text);
            }
            #player-info-modal #modal-player-team-name {
                font-size: 0.9rem;
                color: var(--secondary-text);
            }
            #player-info-modal .modal-player-position {
                margin-top: 5px;
            }


            /* Restyle the stats section (Price, Points, etc.) */
            #player-info-modal .modal-player-meta {
                display: flex;
                justify-content: space-around;
                padding: 15px 0;
                border-top: 1px solid var(--border-color);
                border-bottom: 1px solid var(--border-color);
                margin: 0 -15px; /* Make borders stretch to edges */
            }
            #player-info-modal .modal-player-meta .info-box {
                flex-basis: 33%;
                position: relative;
            }
            /* Add the vertical separators */
            #player-info-modal .modal-player-meta .info-box:not(:last-child)::after {
                content: '';
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 1px;
                height: 60%;
                background-color: var(--border-color);
            }

            /* Flip the info-box content to value-on-top */
            #player-info-modal .modal-player-meta .info-box-title {
                font-size: 1.4rem;
                font-weight: 700;
            }
            #player-info-modal .modal-player-meta .info-box-value {
                font-size: 0.7rem;
                text-transform: uppercase;
            }

            /* Make sure buttons are centered */
            #player-info-modal .modal-player-actions {
                justify-content: center;
            }

         #confirm-remove-text {
                text-align: center;
                color: var(--primary-text);
            }
        /* --- CSS Variables for Easy Theming --- */
        :root {
            --primary-bg: #0B1215;
            --secondary-bg: #1A282D;
            --tertiary-bg: #293E45;
            --accent-color: #33FFD7; /* <-- THE NEW TEAL COLOR */
            --accent-color-rgb: 51, 255, 215; /* <-- ADD THE RGB FOR GLOW */
            --warning-color: #ebbb44;
            --error-color: #ff5252;
            --price-color: #fdd835;
            --primary-text: #ffffff;
            --secondary-text: #a0a0a0;
            --border-color: #4A5F67;
            --pitch-bg: #0e3b25;
            --pitch-line: #b5b9b5b2;
            --font-family: 'Poppins', sans-serif;
        }

        /* --- Basic Reset & Body Styling --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body {
            height: 100%; font-family: var(--font-family); background-color: #333;
            display: flex; justify-content: center; align-items: center;
            -webkit-tap-highlight-color: transparent;
        }

        /* --- App Container --- */
        #app-container {
            width: 100%; height: 100%; max-width: 450px; max-height: 950px;
            background-color: var(--primary-bg); color: var(--primary-text);
            display: flex; flex-direction: column; border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; position: relative;
            transition: filter 0.3s ease-in-out;
        }
        @media (min-width: 451px) { #app-container { border: 8px solid #111; } }

        /* --- Header --- */
        .app-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 15px 20px; background-color: var(--secondary-bg);
            border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 10; position: relative; /* Add this line */
        }
        .header-title-container {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 60%; /* Prevents long titles from overlapping */
        }
        /* 1. Update the header title font */
        .header-title { 
            font-size: 1.7rem; 
            font-weight: 600; 
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: 'Berlin Sans FB Demi', sans-serif; /* This is the new line */
        }

        /* 2. Add a glow to the active nav icon */
        .nav-btn.active i {
            text-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.1);
        }
        .icon-btn {
            background: none;
            border: none;
            color: var(--secondary-text);
            font-size: 1rem;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        .icon-btn:hover { color: var(--primary-text); }
        .menu-btn { background: none; border: none; color: var(--primary-text); font-size: 1.4rem; cursor: pointer; }
        .header-points {
            background-color: var(--tertiary-bg);
            padding: 5px 10px;
            border-radius: 8px;
            text-align: center;
            min-width: 50px;
            border: 1px solid var(--border-color);
        }
        .header-points span {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--warning-color);
        }
        .header-points small {
            font-size: 0.6rem;
            color: var(--secondary-text);
            display: block;
            line-height: 1;
        }

        /* --- Main Content Area --- */
        .app-main { flex-grow: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
        .app-page { display: none; padding: 20px; animation: fadeIn 0.3s ease-in-out; flex-grow: 1; overflow-y: auto;}
        #players-page, #fantasy-page, #settings-page, #rewards-page, #fixtures-page { padding: 15px; }
        
        .app-page.active { 
            display: flex;
            flex-direction: column;
        }
        
        .app-page.page--placeholder.active { display: flex; justify-content: center; align-items: center; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* --- Bottom Navigation --- */
        .app-nav {
            display: flex; justify-content: space-around; padding: 10px 0;
            background-color: var(--secondary-bg); border-top: 1px solid var(--border-color);
            position: sticky; bottom: 0; z-index: 5;
        }
        .nav-btn {
            background: none; border: none; color: var(--secondary-text); display: flex; flex-direction: column;
            align-items: center; gap: 10px; font-size: 0.7rem; cursor: pointer; transition: color 0.2s ease;
            width: 80px; /* Sets a consistent base width */
            flex-shrink: 0; /* Prevents the button from shrinking smaller than its width */
            padding: 0 4px; /* Adds space so text doesn't touch the edges */
            text-align: center;
        }
        .nav-btn i { font-size: 1.4rem; }
        .nav-btn.active { color: var(--accent-color); }

        /* --- Side Menu --- */
        #side-menu-backdrop {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.6); opacity: 0; visibility: hidden;
            transition: opacity 0.3s ease, visibility 0s 0.3s; z-index: 998;
        }
        #side-menu-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
        #side-menu {
            position: absolute; top: 0; left: 0; width: 75%; max-width: 300px; height: 100%;
            background-color: var(--secondary-bg); display: flex; flex-direction: column;
            transform: translateX(-100%); transition: transform 0.3s ease-in-out;
            z-index: 999; border-right: 1px solid var(--border-color);
        }
        #side-menu.open { transform: translateX(0); }
        .side-menu-header { padding: 20px; font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid var(--border-color); }
        .side-menu-links { flex-grow: 1; list-style: none; padding: 20px 0; }
        .side-menu-links a {
            display: flex; align-items: center; gap: 15px; padding: 15px 20px; color: var(--primary-text);
            text-decoration: none; font-size: 1.1rem; transition: background-color 0.2s ease;
        }
        .side-menu-links a:hover { background-color: var(--tertiary-bg); }
        .side-menu-links a i { width: 24px; text-align: center; color: var(--secondary-text); }
        .logout-btn {
             padding: 15px 20px; margin: 20px; background-color: var(--tertiary-bg);
             border: none; color: var(--primary-text); border-radius: 10px;
             font-family: var(--font-family); font-size: 1.1rem; text-align: left; cursor: pointer;
        }

        /* --- Loading Spinner --- */
        #loader {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            border: 4px solid var(--tertiary-bg); border-top: 4px solid var(--accent-color);
            border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite;
        }
        @keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

        /* --- Shared Table & Logo Styling --- */
        .data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
        .data-table th, .data-table td { padding: 12px 8px; text-align: left; }
        .data-table thead { background-color: var(--secondary-bg); }
        .data-table th { font-weight: 500; color: var(--secondary-text); }
        .data-table tbody tr { border-bottom: 1px solid var(--border-color); }
        .data-table tbody tr:last-child { border-bottom: none; }
        .data-table .team-cell { display: flex; align-items: center; gap: 10px; }
        .team-logo { width: 24px; height: 24px; object-fit: contain; }
        .data-table .rank-cell, .data-table .points-cell { font-weight: 600; text-align: center; }
        .data-table .points-cell { color: var(--accent-color); }
        .data-table .pld-cell { text-align: center; font-weight: 600; }
        
        /* --- Fixtures Page Styling (Old & New) --- */
        .matchday-group { margin-bottom: 30px; }
        .matchday-title {
            font-size: 1.1rem; font-weight: 600; color: var(--secondary-text);
            margin-bottom: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--border-color);
        }
        
        /* --- NEW Fixture Page Styling --- */
        .fixture-card {
            background-color: var(--secondary-bg); 
            border-radius: 12px;
            margin-bottom: 15px;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 0px solid var(--warning-color);
        }
        .fixture-team-logo {
            width: 80px;
            height: 80px;
            object-fit: contain;
        }
        .fixture-center-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            color: var(--primary-text);
            text-align: center;
        }
        .fixture-date {
            font-size: 0.9rem;
            font-weight: 500;
            opacity: 0.8;
        }
        .fixture-time-score {
            font-size: 2rem;
            font-weight: 500;
            letter-spacing: 2px;
            font-family: 'DAGGERSQUARE', monospace;
        }
        .fixture-stadium-status {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            color: var(--secondary-text);
        }
        /* --- Hides the old fixture styles --- */
        .fixture-teams, .fixture-team, .fixture-vs, .fixture-details {
            display: none !important;
        }

        /* --- Players Page Styling --- */
        .sticky-filters {
            position: sticky; top: -15px; background-color: var(--primary-bg); z-index: 5;
            padding: 15px 0 10px 0; margin: -15px 0 0 0;
        }
        #players-page-info-bar {
            background-color: var(--secondary-bg); padding: 8px 12px; border-radius: 8px;
            margin-bottom: 10px; text-align: center; font-size: 0.9rem; font-weight: 500;
        }
        #player-list-container {
             flex-grow: 1; overflow-y: auto; padding-top: 10px;
        }
        .filters-container { display: flex; flex-direction: column; gap: 10px; }
        .position-filters { display: flex; gap: 10px; }
        .filter-btn {
            flex-grow: 1; padding: 8px 12px; background-color: var(--secondary-bg);
            border: 1px solid var(--border-color); color: var(--secondary-text); border-radius: 8px;
            cursor: pointer; font-family: var(--font-family); font-weight: 500; transition: all 0.2s ease;
        }
        .filter-btn.active { background-color: var(--accent-color); color: var(--primary-bg); border-color: var(--accent-color); }
        #team-filter {
            width: 100%; padding: 8px 12px; background-color: var(--secondary-bg);
            border: 1px solid var(--border-color); color: var(--primary-text); border-radius: 8px;
            font-family: var(--font-family); font-size: 0.9rem;
        }
        .player-card {
            display: flex; align-items: center; background-color: var(--secondary-bg);
            padding: 12px; border-radius: 8px; margin-bottom: 10px; min-height: 70px;
            cursor: pointer; transition: background-color 0.2s, opacity 0.2s;
        }
        .player-card:hover { background-color: var(--tertiary-bg); }
        .player-card.selected { opacity: 0.5; cursor: not-allowed; }
        .player-card.selected:hover { background-color: var(--secondary-bg); }
        .player-info { flex-grow: 1; margin-left: 12px; position: relative; }
        .player-name { font-weight: 600; font-size: 1rem; }
        .player-meta { font-size: 0.8rem; color: var(--secondary-text); }
        .player-details-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
        }
        .player-price { 
            font-size: 1.0rem; 
            font-weight: 700; 
            color: var(--price-color); 
        }
        .player-total-points {
            font-size: 0.8rem;
            color: var(--secondary-text);
            font-weight: 500;
        }
        .selected-tick {
            position: absolute; right: 0; top: 50%; transform: translateY(-50%);
            color: var(--accent-color); font-size: 1.2rem; display: none;
        }
        .player-card.selected .selected-tick { display: block; }


        /* --- My Team (Fantasy) Page Styling --- */
        #fantasy-page.locked .pitch,
        #fantasy-page.locked .bench,
        #fantasy-page.locked #player-list-container {
             opacity: 0.7;
             /*pointer-events: none;*/
        }

        .pitch-header-actions {
            display:flex;
            align-items: center;
            gap: 8px;
        }
        .pitch-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 90%; /* Aligns with the pitch width */
            margin: 0 auto 10px auto; /* Centers the header and adds margin below */
            padding: 0; 
        }

        /* 2. Updates the "Pitch View" text style */
        .pitch-header-title {
            font-weight: 600;
            color: var(--secondary-text);
            font-size: 1.4rem; /* Made bigger */
            font-family: 'Berlin Sans FB Demi', sans-serif; /* Added Berlin font */
        }

        /* 3. Reduces the icon size */
        #rules-info-btn, #auto-select-btn {
            font-size: 0.8rem;
        }
        .team-lock-banner {
            background-color: var(--warning-color);
            color: var(--primary-bg);
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }
        .team-management-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
        .team-info-bar { display: flex; justify-content: space-between; gap: 5px; background-color: var(--secondary-bg); padding: 12px; border-radius: 8px; }
        .info-box { text-align: center; display: flex; flex-direction: column; flex-basis: 33%; }
        .info-box-title { font-size: 0.9rem; font-weight: 600; color: var(--primary-text); }
        .info-box-value { font-size: 0.8rem; font-weight: 400; color: var(--secondary-text); margin-top: 2px; }
        .info-box-value.value--warning { color: var(--warning-color); font-weight: 600; }
        .info-box-value.value--error { color: var(--error-color); font-weight: 600; }

        #formation-changer {
            width: 100%; padding: 8px 12px; background-color: var(--secondary-bg);
            border: 1px solid var(--border-color); color: var(--primary-text); border-radius: 8px;
            font-family: var(--font-family); font-size: 0.9rem;
        }
 /* --- NEW PITCH STYLING --- */
                    
            .pitch {
                width: 90%;
                margin: 0 auto;
                border-radius: 8px;
                padding: 30px 20px;
                display: flex;
                flex-direction: column; 
                gap: 30px;
                position: relative; 
                overflow: hidden;
                align-self: center;
                flex-shrink: 0; /* Prevents stretching */
    
                
                /* Striped grass effect */
                background: repeating-linear-gradient(
                    to right,
                    #124b2f,
                    #11492e 10%,
                    #11492d 10%,
                    #10442a 20%
                );
            }

                    .pitch-row { display: flex; justify-content: space-around; position: relative; z-index: 2; } /* Puts player slots above the lines */
                    .player-slot { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; border-radius: 4px;}
                    .player-slot:active { transform: scale(0.95); }

            /* NEW: Draws the halfway line */
            .pitch::before {
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                height: 1px;
                background-color: #64886965;
                z-index: 1; /* Places line behind players */
            }

            /* Draws the center circle */
            .pitch::after {
                content: '';
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                width: 80px;
                height: 80px;
                border: 1px solid  #64886965;
                border-radius: 50%;
                z-index: 1; /* Places circle behind players */
            }

            /* Draws the Goalkeeper's penalty box */
            #gk-slots::before {
                content: '';
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                width: 60%;
                height: 60px;
                bottom: -55px;
                border: 1px solid  #64886965;
                border-bottom: none;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;
                z-index: 0; /* Places box behind players */
            }

        
        .captain-band {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--warning-color);
            color: var(--primary-bg);
            font-weight: 700;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: none;
            justify-content: center;
            align-items: center;
            border: 1px solid var(--primary-bg);
        }
        .player-slot.captain .captain-band {
            display: flex;
            z-index: 2;
        }

            .player-jersey {
                width: 48px; 
                height: 48px;
                border-radius: 50%; 
                display: flex; 
                justify-content: center; 
                align-items: center;
                color: rgba(255, 255, 255, 0.877);  
                font-size: 1.5rem;
                background-color: rgba(73, 73, 73, 0.863); 
                clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);

            }



            .player-jersey.filled { 
                border: 1px solid var(--border-color); 
            }

            .player-slot-name { 
                font-size: 0.6rem; 
                padding: 2px 5px; 
                border-radius: 4px; 
                margin-top: 4px; 
                width: 50px; 
                text-align: center; 
                overflow: hidden; 
                text-overflow: ellipsis; 
                white-space: nowrap; 
                z-index: 2;
                color: var(--primary-text); /* Ensure text is white by default */
            }

            .player-slot-points {
                position: absolute;
                top: -5px;
                left: -5px;
                z-index: 3;
                background-color: rgb(32, 32, 32); /* Swapped to Black */
                color: rgb(221, 192, 26); /* Swapped to Yellow */
                font-size: 0.8rem;
                font-family: 'DAGGERSQUARE', monospace;
                font-weight: 400;
                border-radius: 50%;
                width: 22px;
                height: 22px;
                display: flex;
                justify-content: center;
                align-items: center;
                border: 0px solid var(--primary-bg);
            }

        .bench { margin-top: 15px; position: relative; }
        .bench-title { text-align: center; font-size: 0.8rem; color: var(--secondary-text); margin-bottom: 10px; }
        .bench-row { display: flex; justify-content: space-around; background-color: var(--secondary-bg); padding: 10px; border-radius: 8px; }
        
        .confirm-team-btn {
            background-color: var(--accent-color); /* Your green color */
            color: var(--primary-bg); 
            font-weight: 600;
            padding: 12px; 
            border: none; 
            border-radius: 8px; 
            width: 100%;
            font-family: var(--font-family); 
            font-size: 1rem; 
            cursor: pointer; 
            margin-top: 15px;
            transition: background-color 0.2s ease;
        }
        .confirm-team-btn:disabled {
            background-color: var(--tertiary-bg);
            color: var(--secondary-text);
            cursor: not-allowed;
        }
        
        /* --- Player & Team Name Modals --- */
        .modal-backdrop {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); display: flex;
            justify-content: center; align-items: center; z-index: 1000;
            opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s;
        }
        .modal-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
        .modal-content {
            background: var(--secondary-bg); padding: 20px; border-radius: 15px;
            width: 95%; max-width: 350px; transform: scale(0.9);
            transition: transform 0.5s ease-in-out; display: flex; flex-direction: column; gap: 15px;
        }
        .modal-backdrop.open .modal-content { transform: scale(1); }
        .modal-player-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
        .modal-player-title { display: flex; align-items: baseline; gap: 8px; }
        .modal-player-name { font-size: 1.1rem; font-weight: 600; }
        .modal-player-position {
            font-size: 0.8rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
        }
        /* Position Colors */
        .pos-GK { background-color: #f09f1d; color: var(--primary-bg); }
        .pos-DF { background-color: #3498db; color: var(--primary-text); }
        .pos-MF { background-color: #27ae60; color: var(--primary-text); }
        .pos-FW { background-color: #e74c3c; color: var(--primary-text); }
        
        .modal-player-meta { display: flex; justify-content: space-around; margin-bottom: 20px; }
        #modal-player-team { font-size: 1rem !important; font-weight: 600 !important; color: var(--primary-text) !important;}
        
        .modal-player-actions { display: flex; gap: 15px; justify-content: center;}
        .modal-icon-btn {
            width: 50px; height: 50px; border-radius: 50%; border: none;
            font-size: 1.4rem; cursor: pointer; display: flex;
            justify-content: center; align-items: center; transition: transform 0.2s ease;
        }
        .modal-icon-btn:active { transform: scale(0.95); }
        .modal-btn {
            flex-grow: 1; padding: 10px; border-radius: 8px; border: none;
            font-family: var(--font-family); font-weight: 600; cursor: pointer;
        }
        .modal-icon-btn.btn-captain { background-color: var(--warning-color); color: var(--primary-bg); }
        .modal-icon-btn.btn-swap { background-color: var(--tertiary-bg); color: var(--primary-text); }
        .modal-icon-btn.btn-remove { background-color: var(--error-color); color: var(--primary-text); }
        .modal-btn.btn-save { background-color: var(--accent-color); color: var(--primary-bg); }
        .modal-btn.btn-danger { background-color: var(--error-color); color: var(--primary-text); }
        .modal-btn:disabled, .modal-icon-btn:disabled {
            background-color: var(--tertiary-bg) !important;
            color: var(--secondary-text) !important;
            cursor: not-allowed;
            transform: none;
        }
        
        #team-name-modal .modal-content, #confirm-lock-modal .modal-content, #rules-modal .modal-content, #auto-select-modal .modal-content, #confirm-league-action-modal .modal-content, #edit-league-name-modal .modal-content, #change-password-modal .modal-content, #delete-account-modal .modal-content, #prize-winner-modal .modal-content { 
            padding: 15px; 
        }
        #edit-league-name-modal .league-input {
            margin-bottom: 15px;
        }

        .modal-content h2 { 
            text-align: center; 
            font-weight: 600; 
            font-size: 1.3rem;
            color: var(--warning-color);
        }

        #delete-account-modal h2 {
            color: var(--error-color);
        }

        #team-name-modal p, #confirm-lock-modal p, #auto-select-modal p, #confirm-league-action-modal p, #delete-account-modal p, #prize-winner-modal p { 
            text-align: center; color: var(--secondary-text); 
            font-size: 0.9rem; margin-top: -10px; line-height: 1.5; 
        }

        #rules-modal h2, #league-details-modal h2 {
            color: var(--accent-color);
        }
        .rules-content-container, .league-table-container {
            max-height: 300px;
            overflow-y: auto;
            padding-right: 10px;
        }
        .rules-content-container h4 {
            margin-top: 15px;
            margin-bottom: 5px;
            color: var(--accent-color);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 5px;
        }
        .rules-content-container h4:first-child { margin-top: 0; }
        .rules-content-container ul {
            list-style: none;
            padding-left: 0;
        }
        .rules-content-container li, .rules-content-container p {
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: var(--secondary-text);
            line-height: 1.5;
        }
        .rules-content-container b {
            color: var(--primary-text);
        }

        /* --- Leagues Page --- */
        .league-actions {
            display: flex; flex-direction: column; gap: 10px;
            background-color: var(--secondary-bg);
            padding: 8px; border-radius: 12px; margin-bottom: 20px;
        }
        .league-actions h3 { text-align: center; font-weight: 600; margin-bottom: 5px; }
        .league-input-group { display: flex; align-items: center; gap: 10px; }
        .league-input {
            flex-grow: 1;
            padding: 8px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px; color: var(--primary-text);
            font-size: 0.7rem; font-family: var(--font-family);
        }
        .league-btn {
            padding: 10px 15px; background: var(--accent-color);
            color: var(--primary-bg); border: none; border-radius: 8px;
            font-size: 0.9rem; font-weight: 600; cursor: pointer;
             flex-shrink: 0;
        }
        #league-list-container { display: flex; flex-direction: column; gap: 10px; }
        .league-card {
            background-color: var(--secondary-bg);
            padding: 10px; border-radius: 12px;
            transition: background-color 0.2s ease;
        }
        .league-card:hover { background-color: var(--tertiary-bg); }
        .league-card-header {
            display: flex; justify-content: space-between; align-items: center;
        }
        .league-name-container {
            display: flex; align-items: center; gap: 15px;
            flex-grow: 1;
            cursor: pointer;
            overflow: hidden;
        }
        .league-name { 
            font-weight: 600; 
            font-size: 1.1rem; 
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .league-card-actions { display: flex; gap: 15px; }
        .league-card-actions .icon-btn { font-size: 0.9rem; }
        
        .league-rank { font-size: 0.9rem; color: var(--secondary-text); margin-top: 5px; }
        .league-rank b { color: var(--accent-color); }
        #league-join-code {
            background-color: var(--tertiary-bg);
            border: 1px dashed var(--border-color);
            padding: 8px;
            border-radius: 8px;
            margin-top: 10px;
            text-align: center;
        }
        #league-join-code span {
            font-weight: 600;
            color: var(--warning-color);
            letter-spacing: 2px;
        }
        
        #league-details-modal .data-table .team-cell span {
            color: var(--primary-text);
            font-weight: 500;
        }
         #league-details-modal .data-table .points-cell {
            color: var(--warning-color);
        }
        #league-details-modal .data-table .rank-cell {
            color: var(--accent-color);
        }
        #league-details-modal .user-rank-separator td {
            padding: 2px;
            border-bottom: 1px solid var(--border-color);
        }
        #user-global-rank-card .data-table tr {
            background-color: var(--tertiary-bg);
        }


        /* --- Profile Page Styling --- */
        .profile-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 20px;
            background-color: var(--secondary-bg);
            border-radius: 12px;
            margin-bottom: 20px;
        }
        .profile-avatar-wrapper {
            position: relative;
            cursor: pointer;
        }
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid var(--accent-color);
            object-fit: cover;
            background-color: var(--tertiary-bg);
        }
        .profile-avatar-wrapper::after {
            content: '\f044'; /* Font Awesome pencil icon */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            bottom: 5px;
            right: 5px;
            background-color: var(--primary-text);
            color: var(--primary-bg);
            border-radius: 50%;
            width: 25px;
            height: 25px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.8rem;
        }

        .profile-info {
            display: flex;
            flex-direction: column;
            align-items: center; /* This is the key change for centering */
            gap: 8px; /* Adds consistent spacing between items */
        }
        .profile-team-name {
            font-size: 1.8rem; /* Made the name slightly bigger */
            font-weight: 700;
        }
        
        .profile-favorite-club {
            display: flex;
            align-items: center;
            gap: 8px; /* Increased gap for better visual */
            color: var(--secondary-text);
            font-size: 1rem;
            cursor: pointer;
        }
        
        .profile-user-id {
            display: inline-flex; /* Ensures it fits content and stays centered */
            align-items: center;
            gap: 8px;
            color: var(--secondary-text);
            font-size: 0.8rem;
            background-color: var(--tertiary-bg);
            padding: 5px 10px; /* Increased padding */
            border-radius: 8px;
        }
        .profile-user-id #profile-user-id {
            color: var(--primary-text);
            font-weight: 500;
            font-family: monospace;
        }
        .profile-user-id .icon-btn {
            font-size: 0.9rem;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        .stat-box {
            background-color: var(--secondary-bg);
            padding: 15px;
            border-radius: 12px;
            text-align: center;
        }
        .stat-box-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--warning-color);
        }
        .stat-box-label {
            font-size: 0.8rem;
            color: var(--secondary-text);
            margin-top: 5px;
        }
        .profile-section-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 1px solid var(--border-color);
            text-align: left;
        }
        
        .achievements-section, .referral-card {
            background-color: var(--secondary-bg);
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }
        .achievements-list {
            list-style: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .achievement-item {
            font-size: 0.9rem;
            color: var(--primary-text);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .achievement-item .icon {
            color: var(--warning-color);
        }
         .achievement-placeholder {
            color: var(--secondary-text);
            font-size: 0.9rem;
            text-align: center;
            padding: 10px 0;
        }

         .referral-card p {
            color: var(--secondary-text);
            font-size: 0.9rem;
            text-align: center;
            line-height: 1.4;
            margin-bottom: 15px;
        }
        .referral-code-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background-color: var(--tertiary-bg);
            padding: 10px;
            border-radius: 8px;
        }
         #referral-code {
            font-weight: 600;
            letter-spacing: 2px;
            color: var(--accent-color);
            font-size: 1.1rem;
        }
        .referral-counter {
            text-align: center;
            margin-top: 10px;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--secondary-text);
        }
        
        .manager-level-section {
            background-color: var(--secondary-bg);
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }
        .manager-level-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 10px;
        }
        #manager-level-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent-color);
        }
        #manager-level-points {
            font-size: 0.8rem;
            color: var(--secondary-text);
            font-weight: 500;
        }
        .progress-bar-container {
            width: 100%;
            height: 8px;
            background-color: var(--tertiary-bg);
            border-radius: 8px;
            overflow: hidden;
        }
        .progress-bar-fill {
            width: 0%;
            height: 100%;
            background-color: var(--accent-color);
            border-radius: 8px;
            transition: width 0.5s ease-in-out;
        }


        /* --- Avatar & Club Modal Styling --- */
        #avatar-modal .modal-content, #favorite-club-modal .modal-content {
            padding: 20px;
        }
        #avatar-modal h2, #favorite-club-modal h2 {
            text-align: center;
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: 15px;
        }
        #avatar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            max-height: 40vh;
            overflow-y: auto;
        }
        .avatar-option {
            width: 100%;
            height: 0;
            padding-bottom: 100%; /* Creates a square aspect ratio */
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            border: 3px solid transparent;
            transition: border-color 0.2s ease;
        }
        .avatar-option:hover, .avatar-option.selected {
            border-color: var(--accent-color);
        }

        #club-list-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 50vh;
            overflow-y: auto;
        }
        .club-option {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px;
            background-color: var(--tertiary-bg);
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        .club-option:hover {
            background-color: var(--primary-bg);
        }
        .club-option .team-logo {
            width: 30px;
            height: 30px;
        }
        .club-option span {
            font-weight: 500;
            color: var(--primary-text);
        }
        
        .section-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--secondary-text);
            text-transform: uppercase;
            margin-bottom: 10px;
            padding-left: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .info-btn { font-size: 0.9rem; }


        /* --- Settings Page Styling --- */
        .settings-section {
            margin-bottom: 25px;
        }
        .settings-list {
            list-style: none;
            background-color: var(--secondary-bg);
            border-radius: 12px;
            overflow: hidden;
        }
        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.2s ease;
        }
        .settings-item:last-child {
            border-bottom: none;
        }
        .settings-item:hover {
            background-color: var(--tertiary-bg);
        }
        .settings-item i {
            color: var(--secondary-text);
        }
        .settings-item-text {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .settings-item-text i {
            width: 20px;
            text-align: center;
        }
         .settings-item--danger .settings-item-text {
            color: var(--error-color);
        }

        /* Toggle Switch Styling */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 28px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--tertiary-bg);
            transition: .4s;
            border-radius: 28px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: var(--accent-color);
        }
        input:checked + .toggle-slider:before {
            transform: translateX(22px);
        }
        
        /* --- Rewards & Events Page Styling --- */
        .podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 15px; margin-bottom: 25px; }
        .podium-item { display: flex; flex-direction: column; align-items: center; text-align: center; background-color: var(--secondary-bg); border-radius: 12px; padding: 15px 10px; width: 30%; cursor: pointer; transition: background-color 0.2s ease; }
        .podium-item:hover { background-color: var(--tertiary-bg); }
        .podium-item .podium-rank { font-size: 1.2rem; font-weight: 700; }
        .podium-item i { font-size: 2.5rem; margin: 10px 0; }
        .podium-item .podium-prize { font-size: 0.75rem; color: var(--secondary-text); line-height: 1.3; }
        .podium-2 { order: 2; height: 130px; }
        .podium-1 { order: 1; height: 150px; border: 2px solid var(--warning-color); }
        .podium-3 { order: 3; height: 130px; }
        
        .award-card, .event-card { background-color: var(--secondary-bg); border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
        .award-card i, .event-card .event-icon i { font-size: 2rem; color: var(--warning-color); }
        .award-details h4, .event-details h4 { font-size: 1rem; font-weight: 600; }
        .award-details p, .event-details p { font-size: 0.8rem; color: var(--secondary-text); }
        .award-bonus {
            margin-left: auto;
            background-color: var(--accent-color);
            color: var(--primary-bg);
            padding: 4px 0; /* Reduced vertical padding, no horizontal */
            width: 60px; /* Fixed width */
            border-radius: 8px; /* Less rounded */
            font-weight: 700;
            font-size: 0.9rem;
            text-align: center; /* Center the text */
        }
        .season-winner-section { 
            background-color: var(--secondary-bg);
            border: 2px dashed var(--border-color);
            padding: 20px; 
            border-radius: 12px; 
            text-align: center; 
            margin-bottom: 15px; 
            color: var(--primary-text); 
            cursor: pointer; 
            transition: all 0.2s ease; 
        }
        .season-winner-section:hover { 
            background-color: var(--tertiary-bg);
            border-color: var(--secondary-text);
        }
        .season-winner-section.earned {
            background: linear-gradient(45deg, var(--warning-color), #ffb300);
            color: var(--primary-bg);
            border: none;
        }
        .season-winner-badge i { font-size: 3rem; margin-bottom: 10px; }
        .season-winner-badge span { font-weight: 700; font-size: 1.1rem; }
        
        .badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
        .badge-item { background-color: var(--secondary-bg); border-radius: 12px; padding: 15px 5px; text-align: center; opacity: 0.5; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease; }
        .badge-item:hover { background-color: var(--tertiary-bg); }
        .badge-item.earned { opacity: 1; border: 1px solid var(--accent-color); box-shadow: 0px 0px 15px rgba(var(--accent-color-rgb), 0.5);}
        .badge-item i { font-size: 2.5rem; margin-bottom: 10px; color: var(--secondary-text); }
        .badge-item.earned i { color: var(--accent-color); }
        .badge-item span { font-size: 0.8rem; font-weight: 500; line-height: 1.2; }
        .badge-counter { position: absolute; top: 5px; right: 5px; background-color: var(--error-color); color: var(--primary-text); font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: none; justify-content: center; align-items: center; }
        .badge-item.earned .badge-counter { display: flex; }

        /* --- Placeholder Page Styling --- */
        .placeholder { text-align: center; color: var(--secondary-text); }
        .placeholder i { font-size: 3rem; margin-bottom: 15px; }
        
        /* --- Auth Screen Styling --- */
        #auth-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8);
            display: flex; justify-content: center; align-items: center;
            z-index: 2000;
            opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
        }
        #auth-overlay.show { opacity: 1; visibility: visible; }
        
        #auth-container {
            background-color: var(--secondary-bg);
            padding: 25px; border-radius: 15px;
            width: 90%; max-width: 380px;
            color: var(--primary-text);
            font-family: var(--font-family);
            border: 1px solid var(--border-color);
            box-shadow: 0 5px 20px rgba(0,0,0,0.4);
        }
        #auth-title { text-align: center; margin-bottom: 20px; font-weight: 600; }
        #auth-error {
            color: var(--error-color); text-align: center;
            margin-bottom: 15px; font-size: 0.9rem; min-height: 18px;
        }
        .auth-input {
            width: 100%; padding: 12px; margin-bottom: 10px;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px; color: var(--primary-text);
            font-size: 1rem; font-family: var(--font-family);
        }
        #auth-action-btn {
            width: 100%; padding: 12px; background: var(--accent-color);
            color: var(--primary-bg); border: none; border-radius: 8px;
            font-size: 1rem; font-weight: 600; cursor: pointer;
            margin-top: 5px; transition: background-color 0.2s ease;
        }
        #auth-action-btn:hover { background-color: #00c853; }
        #auth-toggle-text {
            text-align: center; margin-top: 15px; font-size: 0.9rem;
            color: var(--secondary-text);
        }
        #auth-toggle-link {
            color: var(--accent-color); font-weight: 600;
            text-decoration: none; cursor: pointer;
        }

        /* Notification Styling */
        #notification {
            position: absolute;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            padding: 10px 20px;
            border-radius: 8px;
            color: var(--primary-bg);
            font-weight: 500;
            z-index: 1001;
            transition: top 0.4s ease-in-out;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        #notification.show {
            top: 20px;
        }
        #notification.success {
            background-color: var(--accent-color);
        }
        #notification.error {
            background-color: var(--error-color);
        }
        body.light-mode {
            --primary-bg: #f4f4f5;
            --secondary-bg: #ffffff;
            --tertiary-bg: #e4e4e7;
            --primary-text: #18181b;
            --secondary-text: #71717a;
            --border-color: #d4d4d8;
            --pitch-bg: #a8dadc; 
        }

        /* --- NEW: Light Mode Yellow Theme Fix --- */
        body.light-mode.theme-yellow {
            --accent-color: #FCA600; /* A darker, more readable yellow for light backgrounds */
            --accent-color-rgb: 252, 166, 0;
            --warning-color: #FCA600; /* Ensure the warning color also changes */
            --warning-color-rgb: 252, 166, 0;
            --pitch-bg: #a8dadc; 
        }
        
        /* --- Custom Level Colors --- */
        #manager-level-name.level-newcomer, #manager-level-name.level-beginner {
            color: #a0a0a0; /* This is a light grey color */
        }
        .manager-level-section .progress-bar-fill.level-newcomer, .manager-level-section .progress-bar-fill.level-beginner {
            background-color: #dbca34; /* This is a nice yellow color */
        }
        .settings-save-btn {
            flex-shrink: 0; /* Prevents the button from shrinking */
            width: 38px;
            height: 38px;
            border-radius: 50%; /* Makes it a circle */
            background-color: var(--accent-color);
            color: var(--primary-bg);
            border: none;
            font-size: 1.1rem; /* Adjust icon size */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px; /* Adds a little space */
        }
            /* --- Larger Team Logos ONLY for the Stats Page --- */
        #stats-page .team-logo {
            width: 32px;
            height: 32px;
        }
        /* --- NEW: Pitch Header Action Buttons --- */
        .pitch-action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background-color: var(--tertiary-bg);
            border: 1px solid var(--border-color);
            color: var(--secondary-text);
            border-radius: 8px;
            cursor: pointer;
            font-family: var(--font-family);
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.2s ease;
        }

        .pitch-action-btn:hover {
            background-color: var(--secondary-bg);
            color: var(--primary-text);
        }

        /* Style for the "Clear Team" button */
        .pitch-action-btn.danger {
            color: var(--error-color);
        }


        /* --- UPDATED: User Rank Footer on Ranking Page --- */
        /* This styles the footer and removes any positioning that creates a gap. */
        #user-rank-footer {
            background-color: var(--secondary-bg);
            padding: 12px 20px;
            text-align: center;
            font-size: 1rem;
            font-weight: 500;
            color: var(--secondary-text);
            border-top: 1px solid var(--border-color);
            margin: 15px -20px -15px -15px; /* Pulls footer to screen edges */
            flex-shrink: 0; /* Prevents the footer from shrinking */
        }

        #user-rank-footer strong {
            color: var(--accent-color);
            font-weight: 700;
            font-size: 1.1rem;

                }

        /* --- NEW: Styling for icon-only pitch buttons --- */
        .pitch-action-btn.icon-only {
            width: 36px;   /* Make it square */
            height: 36px;
            padding: 6px;  /* Adjust padding */
            justify-content: center; /* Center the icon */
        }

        .pitch-action-btn.icon-only span {
            display: none; /* Hide the text span if it exists */
        }
        #global-ranking-page {
            flex-grow: 0; /* Tells the page to only be as tall as its content */
        }
        #global-ranking-page .league-table-container {
    max-height: none; /* This removes the 300px height limit */
     flex-grow: 1;
        }
        /* In style.css */

            /* --- NEW: Styling for the Rules Pill Button --- */
            .rules-pill-btn {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 4px 10px;
                background-color: var(--tertiary-bg);
                border: 1px solid var(--border-color);
                color: var(--secondary-text);
                border-radius: 15px; /* Pill shape */
                cursor: pointer;
                font-family: var(--font-family);
                font-weight: 500;
                font-size: 0.7rem; /* Make it small */
                transition: all 0.2s ease;
            }

            .rules-pill-btn:hover {
                background-color: var(--secondary-bg);
                color: var(--primary-text);
            }

            /* --- NEW: Styling for the Bench Action Buttons --- */
            .bench-actions {
                display: flex;
                justify-content: center;
                gap: 15px;
                margin-top: 5px; /* Space above the bench players */
                margin-bottom: 15px; /* Space below the buttons */
                margin: 0;
            }
            /* In style.css */

/* --- NEW: Bench Header Layout --- */
.bench-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    
    /* These new lines force the alignment */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Overrides previous centering styles for the bench title */
.bench-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 1.4rem;
    font-family: 'Berlin Sans FB Demi', sans-serif;
    font-weight: 600;
    color: var(--secondary-text);
}



/* --- NEW: Pill-Style Bench Action Buttons --- */
/* This makes the "Auto" and "Clear" buttons look like the "Rules" button */
.pitch-action-btn {
    padding: 4px 10px;      /* Matches Rules button padding */
    border-radius: 15px;    /* Pill shape */
    font-size: 0.7rem;      /* Matches Rules button font size */
    font-weight: 500;
}

/* Adjusts the icon-only "Clear" button to be a circle */
.pitch-action-btn.icon-only {
    width: 28px;
    height: 28px;
    border-radius: 50%; /* Circle shape */
    padding: 4px;
}
.bench {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Sets the confirm button to match the pitch width and centers it */
.confirm-team-btn {
    width: 90%;
    display: block; /* Necessary to allow auto margins to work on a button */
    margin-left: auto;
    margin-right: auto;
}
#confirm-remove-all-modal p {
    text-align: center;
    color: var(--primary-text);
}
/* --- NEW: Styling for Postponed Fixture Tag --- */
.fixture-status-postponed {
    color: rgb(240, 179, 65); /* Uses your app's red color */
    font-weight: 700;
    font-size: 0.9rem;
}
/* In style.css */

/* --- NEW: Header for Matchday Title --- */
.matchday-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Replaces the margin from .matchday-title */
}

/* This makes sure the old title doesn't have extra margin */
.matchday-title {
    margin-bottom: 0;
}

/* Styles the new "Read Me" button */
#postponed-info-btn {
    background-color: var(--error-color);
    color: var(--primary-text);
    border-color: var(--error-color);
    font-size: 0.8rem;
}