        :root {
            --png-red: #CE1126;
            --png-yellow: #FCD116;
            --png-black: #000000;
            --cricket-green: #2E7D32;
            --cricket-blue: #1976D2;
            /*--cricket-dark: #1976D2;*/
            --cricket-dark: #1a237e;
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
            color: #333;
            min-height: 100vh;
        }

        /* Navigation */
        .navbar {
            background: linear-gradient(135deg, var(--png-red) 0%, #A00E1E 100%);
            height: 90px;               /* FIXED menu height */
            padding: 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            height: 100%;               /* fills navbar height */
            display: flex;
            justify-content: space-between;
            align-items: center;        /* vertical centre */
            padding: 0 20px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            height: 100%;               /* keep alignment stable */
            text-decoration: none;
        }

        .nav-brand .no-transform {
            text-transform: none;
        }

        .logo-badge {
            background: white;
            padding: 6px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 76px;               /* contains the 70px logo neatly */
            box-shadow: 0 3px 10px rgba(0,0,0,0.25);
        }

        .logo-badge img {
            height: 70px;               /* REQUIRED logo size */
            width: auto;
            display: block;
        }

        .nav-brand h1 {
            color: white;
            font-size: 1.8em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 0;
            line-height: 1;             /* prevents height shifts */
        }

        @media (max-width: 700px) {
            .navbar { height: 90px; }   /* keep constant */
            .logo-badge { height: 76px; }
            .logo-badge img { height: 70px; }
            .nav-brand h1 { font-size: 1.35em; letter-spacing: 1px; }
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 5px;
        }

        .nav-menu a {
            color: white;
            text-decoration: none;
            padding: 0 25px;
            height: 90px;               /* match navbar height */
            display: flex;
            align-items: center;        /* vertical centre */
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }

        .nav-menu a:hover {
            background: rgba(255,255,255,0.1);
            border-bottom-color: var(--png-yellow);
        }

        .nav-menu a.active {
            background: rgba(255,255,255,0.15);
            border-bottom-color: var(--png-yellow);
        }

        /* Main Container */
        .container {
            max-width: 1400px;
            margin: 30px auto;
            padding: 0 20px;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--cricket-dark) 0%, #283593 100%);
            color: white;
            padding: 60px 40px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
            text-align: center;
        }

        .hero h1 {
            font-size: 3em;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .hero p {
            font-size: 1.3em;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Cards */
        .card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            margin-bottom: 25px;
        }

        .card h2 {
            color: var(--png-red);
            font-size: 1.8em;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 3px solid var(--png-yellow);
            padding-bottom: 10px;
        }

        .card h3 {
            color: var(--cricket-blue);
            font-size: 1.3em;
            margin: 20px 0 15px 0;
        }

        /* Grid Layouts */
        .grid {
            display: grid;
            gap: 25px;
        }

        .grid-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }

        .grid-3 {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }

        /* Buttons */
        .btn {
            display: inline-block;
            padding: 14px 30px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s;
            text-align: center;
        }

        .btn-primary {
            background: var(--cricket-blue);
            color: white;
        }

        .btn-primary:hover {
            background: #1565C0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
        }

        .btn-success {
            background: var(--cricket-green);
            color: white;
        }

        .btn-success:hover {
            background: #1B5E20;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
        }

        .btn-warning {
            background: #F57C00;
            color: white;
        }

        .btn-warning:hover {
            background: #E65100;
        }

        .btn-danger {
            background: var(--png-red);
            color: white;
        }

        .btn-danger:hover {
            background: #A00E1E;
        }

        .btn-secondary {
            background: #616161;
            color: white;
        }

        .btn-secondary:hover {
            background: #424242;
        }

        .btn-outline {
            background: transparent;
            color: var(--cricket-blue);
            border: 2px solid var(--cricket-blue);
        }

        .btn-outline:hover {
            background: var(--cricket-blue);
            color: white;
        }

        /* Feature Box */
        .feature-box {
            background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
            border-left: 5px solid var(--cricket-blue);
            padding: 25px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .feature-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            border-left-color: var(--png-red);
        }

        .feature-box h3 {
            color: var(--cricket-blue);
            font-size: 1.4em;
            margin-bottom: 10px;
        }

        .feature-box p {
            color: #666;
            line-height: 1.6;
        }

        /* Forms */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
            font-size: 1.05em;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 1em;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--cricket-blue);
        }

        .form-group input.input-error {
            border-color: #c62828;
            background: #fff8f8;
        }

        /* Tables */
        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
        }

        th {
            background: linear-gradient(135deg, var(--cricket-dark) 0%, #283593 100%);
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

        tr:hover {
            background: #f5f5f5;
        }

        /* Match Card */
        .match-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            border-left: 6px solid var(--cricket-green);
            transition: all 0.3s;
        }

        .match-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }

        .match-card h3 {
            color: var(--png-red);
            font-size: 1.5em;
            margin-bottom: 15px;
        }

        .match-status {
            display: inline-block;
            padding: 6px 15px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.85em;
            text-transform: uppercase;
        }

        .match-status.not-started {
            background: #FFF3E0;
            color: #E65100;
        }

        .match-status.in-progress {
            background: #E8F5E9;
            color: var(--cricket-green);
        }

        .match-status.completed {
            background: #E3F2FD;
            color: var(--cricket-blue);
        }

        /* Footer */
        footer {
            background: var(--png-black);
            color: white;
            padding: 30px 20px;
            text-align: center;
            margin-top: 50px;
        }

        footer p {
            opacity: 0.8;
        }
        footer a {
            cursor: pointer;
        }

        /* Alerts */
        .alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .alert-success {
            background: #E8F5E9;
            border-left: 4px solid var(--cricket-green);
            color: var(--cricket-green);
        }

        .alert-error {
            background: #FFEBEE;
            border-left: 4px solid var(--png-red);
            color: var(--png-red);
        }

        .alert-info {
            background: #E3F2FD;
            border-left: 4px solid var(--cricket-blue);
            color: var(--cricket-blue);
        }

        /* ── Global Dialog System ─────────────────────────────────────── */

        .dialog-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(3px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9000;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .dialog-overlay.visible { opacity: 1; pointer-events: all; }

        .dialog-box {
            background: white;
            border-radius: 14px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            padding: 32px 36px;
            max-width: 420px;
            width: 90%;
            transform: translateY(16px) scale(0.97);
            transition: transform 0.22s ease, opacity 0.22s ease;
            opacity: 0;
        }
        .dialog-overlay.visible .dialog-box { transform: translateY(0) scale(1); opacity: 1; }

        .dialog-icon {
            width: 48px; height: 48px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 18px; font-size: 22px;
        }
        .dialog-icon.warning { background: #FFF3E0; color: #E65100; }
        .dialog-icon.danger  { background: #FFEBEE; color: var(--png-red); }
        .dialog-icon.info    { background: #E3F2FD; color: var(--cricket-blue); }

        .dialog-title {
            font-size: 1.15em; font-weight: 700; color: #1a1a1a;
            text-align: center; margin-bottom: 10px; letter-spacing: 0.2px;
        }
        .dialog-message {
            font-size: 0.95em; color: #555; text-align: center;
            line-height: 1.6; margin-bottom: 28px;
        }
        .dialog-actions { display: flex; gap: 12px; justify-content: center; }
        .dialog-btn {
            padding: 11px 28px; border: none; border-radius: 8px;
            font-size: 0.95em; font-weight: 600; cursor: pointer;
            transition: all 0.18s ease; letter-spacing: 0.3px; min-width: 100px;
        }
        .dialog-btn-cancel { background: #f0f0f0; color: #444; }
        .dialog-btn-cancel:hover { background: #e0e0e0; }
        .dialog-btn-confirm { background: var(--cricket-blue); color: white; }
        .dialog-btn-confirm:hover { background: #1565C0; box-shadow: 0 4px 12px rgba(25,118,210,0.35); transform: translateY(-1px); }
        .dialog-btn-confirm.danger { background: var(--png-red); }
        .dialog-btn-confirm.danger:hover { background: #A00E1E; box-shadow: 0 4px 12px rgba(206,17,38,0.35); }

        /* Toast */
        .toast-container {
            position: fixed; bottom: 28px; right: 28px; z-index: 9100;
            display: flex; flex-direction: column; gap: 10px; pointer-events: none;
        }
        .toast {
            display: flex; align-items: flex-start; gap: 12px;
            background: white; border-radius: 10px; padding: 14px 18px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
            min-width: 280px; max-width: 380px; pointer-events: all;
            transform: translateX(120%);
            transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
            border-left: 4px solid #ccc;
        }
        .toast.show { transform: translateX(0); }
        .toast.hide { transform: translateX(120%); transition: transform 0.25s ease-in; }
        .toast.toast-error   { border-left-color: var(--png-red); }
        .toast.toast-success { border-left-color: var(--cricket-green); }
        .toast.toast-info    { border-left-color: var(--cricket-blue); }
        .toast.toast-warning { border-left-color: #F57C00; }
        .toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
        .toast-error   .toast-icon { color: var(--png-red); }
        .toast-success .toast-icon { color: var(--cricket-green); }
        .toast-info    .toast-icon { color: var(--cricket-blue); }
        .toast-warning .toast-icon { color: #F57C00; }
        .toast-body { flex: 1; }
        .toast-title { font-weight: 700; font-size: 0.88em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; color: #222; }
        .toast-msg { font-size: 0.92em; color: #555; line-height: 1.4; }
        .toast-close { background: none; border: none; cursor: pointer; color: #aaa; font-size: 16px; padding: 0; flex-shrink: 0; line-height: 1; }
        .toast-close:hover { color: #555; }

        .nav-logout-btn {
            background: none;
            border: none;
            color: white;
            font-weight: 600;
            font-size: 1em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            cursor: pointer;
            padding: 0 25px;
            height: 90px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .nav-logout-btn:hover {
            background: rgba(255,255,255,0.1);
            border-bottom-color: var(--png-yellow);
        }

        .nav-initials-badge {
            background: rgba(255,255,255,0.25);
            border: 2px solid rgba(255,255,255,0.6);
            border-radius: 50%;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75em;
            font-weight: 700;
            letter-spacing: 0;
            flex-shrink: 0;
        }

        /*Admin Drop Down Menu*/
        /* ── Admin Dropdown ───────────────────────────────────────────── */
        .nav-dropdown {
            position: relative;
        }

        .nav-dropdown-toggle {
            color: white;
            text-decoration: none;
            padding: 0 25px;
            height: 90px;
            display: flex;
            align-items: center;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            gap: 6px;
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
            font-family: inherit;
            font-size: 1em;
            white-space: nowrap;
        }

        .nav-dropdown-toggle:hover,
        .nav-dropdown.open .nav-dropdown-toggle {
            background: rgba(255,255,255,0.1);
            border-bottom-color: var(--png-yellow);
        }

        .nav-dropdown-toggle.has-pending {
            background: rgba(255, 214, 0, 0.18);
            border-bottom-color: var(--png-yellow);
            color: var(--png-yellow);
        }
        .nav-dropdown-toggle.has-pending:hover,
        .nav-dropdown.open .nav-dropdown-toggle.has-pending {
            background: rgba(255, 214, 0, 0.28);
        }
        .nav-dropdown-toggle.admin-active {
            border-bottom-color: var(--png-yellow);
        }
        .nav-sync-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--png-yellow);
            color: #333;
            font-size: 0.68em;
            font-weight: 900;
            border-radius: 10px;
            padding: 1px 7px;
            min-width: 18px;
            line-height: 1.6;
            margin-left: 4px;
        }

        .pw-strength-bar {
            height: 5px;
            border-radius: 3px;
            margin: 6px 0 4px;
            transition: width 0.3s, background 0.3s;
            background: #eee;
            width: 100%;
            position: relative;
        }
        .pw-strength-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s, background 0.3s;
        }
        .pw-rules {
            font-size: 0.78em;
            margin: 4px 0 0;
            padding: 0;
            list-style: none;
        }
        .pw-rules li { padding: 1px 0; }
        .pw-rules li.pass { color: #2E7D32; }
        .pw-rules li.fail { color: #aaa; }

        .nav-locked-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--png-yellow);
            color: #111;
            font-size: 0.68em;
            font-weight: 900;
            border-radius: 10px;
            padding: 1px 7px;
            min-width: 18px;
            line-height: 1.6;
            margin-left: 4px;
        }
        .nav-dropdown-toggle.has-locked {
            background: rgba(255, 214, 0, 0.18);
            border-bottom-color: var(--png-yellow);
            color: var(--png-yellow);
        }
        .nav-dropdown-toggle.has-locked:hover,
        .nav-dropdown.open .nav-dropdown-toggle.has-locked {
            background: rgba(255, 214, 0, 0.28);
        }
        .nav-dropdown-toggle.has-pending.has-locked {
            background: rgba(255, 214, 0, 0.18);
            border-bottom-color: var(--png-yellow);
            color: var(--png-yellow);
        }

        .nav-dropdown-menu {
            display: none;
            position: absolute;
            top: 90px;
            left: 0;
            background: white;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            min-width: 160px;
            z-index: 2000;
            overflow: hidden;
        }

        .nav-dropdown.open .nav-dropdown-menu {
            display: block;
        }

        .nav-dropdown-menu a {
            display: block;
            padding: 13px 20px;
            color: #333;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: background 0.2s;
            border-bottom: 1px solid #f0f0f0;
            height: auto;
        }

        .nav-dropdown-menu a:last-child {
            border-bottom: none;
        }

        .nav-dropdown-menu a:hover {
            background: #f5f5f5;
            color: var(--png-red);
        }

        /* ── Hamburger button (mobile only) ──────────────────────────── */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 32px;
            height: 22px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
        }

        .hamburger span {
            display: block;
            height: 3px;
            width: 100%;
            background: white;
            border-radius: 3px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        /* Animate to X when open */
        .hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; }
        .hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

        /* ── Mobile nav layout ───────────────────────────────────────── */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 90px;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, var(--png-red) 0%, #A00E1E 100%);
                z-index: 999;
                box-shadow: 0 6px 16px rgba(0,0,0,0.3);
                gap: 0;
            }

            .nav-menu.mobile-open {
                display: flex;
            }

            .nav-menu li {
                width: 100%;
                border-bottom: 1px solid rgba(255,255,255,0.12);
            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a,
            .nav-logout-btn,
            .nav-dropdown-toggle {
                height: 52px !important;
                padding: 0 24px !important;
                width: 100%;
                justify-content: flex-start;
                border-bottom: none !important;
                font-size: 0.95em;
            }

            .nav-menu a:hover,
            .nav-dropdown-toggle:hover,
            .nav-dropdown.open .nav-dropdown-toggle {
                background: rgba(255,255,255,0.12);
                border-bottom: none !important;
            }

            /* Admin sub-dropdown goes inline on mobile */
            .nav-dropdown {
                position: static;
            }

            .nav-dropdown-menu {
                position: static;
                box-shadow: none;
                border-radius: 0;
                background: rgba(0,0,0,0.2);
                min-width: unset;
                width: 100%;
            }

            .nav-dropdown-menu a {
                color: rgba(255,255,255,0.9) !important;
                padding: 0 40px !important;
                height: 48px !important;
                display: flex !important;
                align-items: center;
                border-bottom: 1px solid rgba(255,255,255,0.08) !important;
            }

            .nav-dropdown-menu a:hover {
                background: rgba(255,255,255,0.1) !important;
                color: white !important;
            }

            .nav-dropdown-menu a:last-child {
                border-bottom: none !important;
            }
        }

/* ── Additional classes replacing inline styles ── */

/* Nav badges — initially hidden */
.nav-badge--hidden { display: none; }
.dialog--hidden    { display: none !important; }

/* Admin dropdown arrow */
.nav-dropdown-arrow { font-size: 0.7em; }

/* My Account nav link */
.nav-account-link {
    color: white;
    text-decoration: none;
    padding: 0 18px;
    height: 90px;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.nav-account-link:hover {
    border-bottom-color: var(--png-yellow);
    background: rgba(255,255,255,0.1);
}

/* Logout form inline */
.nav-logout-form {
    display: inline;
    margin: 0;
}

/* Dialog input wrapper */
.dialog-input-wrapper {
    margin: 0 0 16px;
}

/* Dialog input field */
.dialog-input {
    width: 100%;
    padding: 9px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

/* Dialog passphrase tip */
.dialog-passphrase-tip {
    color: #888;
    font-size: 0.9em;
}

/* Dialog input error */
.dialog-input-error {
    color: #CE1126;
    font-size: 0.82em;
    margin: 4px 0 0;
    display: none;
}

/* Footer links */
.footer-meta {
    margin-top: 8px;
    font-size: 0.88em;
    opacity: 0.7;
}

.footer-link {
    color: var(--png-yellow);
    text-decoration: none;
}

/* ── Global small action buttons — used in all tables across the app ──────────
   Defined here so every page gets consistent styling without copy-pasting.
   Do NOT redefine these in page-specific CSS files.                          */

.btn-sm {
    padding: 6px 13px;
    font-size: 0.82em;
    border-radius: 5px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-sm.btn-success   { background: var(--cricket-green, #2E7D32); color: white; }
.btn-sm.btn-primary   { background: var(--cricket-blue);           color: white; }
.btn-sm.btn-secondary { background: #616161;                       color: white; }
.btn-sm.btn-edit      { background: #455A64;                       color: white; }
.btn-sm.btn-danger    { background: #c62828;                       color: white; }
.btn-sm.btn-archive   { background: #f5f5f5; color: #555; border: 1.5px solid #ccc; font-weight: 600; }
.btn-sm.btn-scorer    { background: #F57F17;                       color: white; }
.btn-sm.btn-watch     { background: #00838F;                       color: white; }
.btn-sm.btn-success:hover   { background: #1B5E20; }
.btn-sm.btn-primary:hover   { background: #1565C0; }
.btn-sm.btn-secondary:hover { background: #424242; }
.btn-sm.btn-edit:hover      { background: #263238; }
.btn-sm.btn-danger:hover    { background: #b71c1c; }
.btn-sm.btn-archive:hover   { background: #e8e8e8; border-color: #757575; color: #222; }
.btn-sm.btn-scorer:hover    { background: #E65100; }
.btn-sm.btn-watch:hover     { background: #006064; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Global pagination — used by matches, teams, players and all list pages ──
   Defined here once. Do NOT redefine in page-specific CSS files.           */

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 4px 6px;
    font-size: 0.88em;
}
.pg-info {
    color: #888;
    white-space: nowrap;
    min-width: 90px;
}
.pg-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pg-prev,
.pg-next {
    padding: 6px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #444;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pg-prev:hover:not(:disabled),
.pg-next:hover:not(:disabled) {
    background: var(--cricket-blue);
    border-color: var(--cricket-blue);
    color: white;
}
.pg-prev:disabled,
.pg-next:disabled { opacity: 0.35; cursor: default; }
.pg-nums { display: flex; align-items: center; gap: 3px; }
.pg-num {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #444;
    font-weight: 600;
    font-size: 0.88em;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pg-num:hover {
    background: #f0f4ff;
    border-color: var(--cricket-blue);
    color: var(--cricket-blue);
}
.pg-num.active {
    background: var(--cricket-blue);
    border-color: var(--cricket-blue);
    color: white;
    cursor: default;
}
.pg-ellipsis { padding: 0 4px; color: #aaa; user-select: none; }
.pg-size-select {
    padding: 6px 10px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: inherit;
    color: #444;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}
.pg-size-select:focus { outline: none; border-color: var(--cricket-blue); }
@media (max-width: 600px) {
    .pagination-bar { justify-content: center; }
    .pg-info { width: 100%; text-align: center; }
}
