/* Mr.Yellow Stats - Base Global Stylesheet */
        :root {
            /* New BettingSecret Gold & Black Palette */
            --bg: #000000;
            --bg-flat: #000000;
            --bg-card: #0c0c0e;
            --bg-card-alt: #141418;
            --bg-card-hover: #1c1c22;
            --accent: #FFB300;
            --accent-dim: rgba(255, 179, 0, 0.18);
            --accent-glow: rgba(255, 179, 0, 0.3);
            --gold: #FFD700;
            --gold-dim: rgba(255, 215, 0, 0.18);
            --gold-glow: rgba(255, 215, 0, 0.4);
            --cyan: #FFD700;
            --cyan-dim: rgba(255, 215, 0, 0.18);
            --cyan-glow: rgba(255, 215, 0, 0.35);
            --text: #FFFFFF;
            --text-secondary: rgba(255, 255, 255, 0.85);
            --text-muted: rgba(255, 255, 255, 0.55);
            --red: #ff3366;
            --red-dim: rgba(255, 51, 102, 0.18);
            --border: rgba(255, 215, 0, 0.4);
            --border-light: rgba(255, 215, 0, 0.2);
            --border-glow: rgba(255, 215, 0, 0.6);
            --glass-bg: rgba(12, 12, 14, 0.95);
            --glass-border: rgba(255, 215, 0, 0.4);
            --radius: 8px;
            --radius-sm: 6px;
            --radius-xs: 4px;
            --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.25);
            --gradient-primary: linear-gradient(135deg, #FFD700, #FF8F00);
            --gradient-gold: linear-gradient(135deg, #FFD700, #FF8F00);
            --gradient-cyan: linear-gradient(135deg, #FFD700, #FF8F00);
        }
        *{margin:0;padding:0;box-sizing:border-box;}
        html {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            max-width: 100vw;
        }
        body {
            font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
            background: var(--bg);
            background-attachment: fixed;
            color:var(--text);line-height:1.5;
            -webkit-font-smoothing:antialiased;
            padding-left:240px;padding-bottom:40px;min-height:100vh;
            overflow-x: hidden;
            max-width: 100vw;
            transition: all 0.3s ease;
        }
        .container{max-width:1200px;margin:0 auto;padding:0 16px;}

        /* ═══ TOP BAR WITH NEW LOGO ═══ */
        .top-bar{
            background: #000000;
            backdrop-filter: blur(20px);
            border-bottom:1px solid var(--border);
            padding:8.5px 0;position:sticky;top:0;z-index:300;
            box-shadow: var(--shadow-glow);
            margin-left:-240px;width:calc(100% + 240px);
        }
        .top-bar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--gradient-cyan);
        }
        .top-bar .container{display:flex;justify-content:flex-start;align-items:center;position:relative;padding-left:0!important;max-width:100%!important;}
        .logo{display:flex;align-items:center;gap:0;text-decoration:none;flex:1;}
        .logo img{width:438px;height:57px;max-width:100%;object-fit:contain;}
        
        /* Logo Text — FILLS almost the entire page width */
        .logo-text{
            font-family: 'Russo One', sans-serif;
            font-size: clamp(20px, 7vw, 36px);
            font-weight: 400;
            letter-spacing: clamp(3px, 1.5vw, 12px);
            text-transform: uppercase;
            line-height: 1;
            white-space: nowrap;
            flex: 1;
        }
        .logo-text .betting{
            color: #FFFFFF;
        }
        .logo-text .secret{
            color: #00FF66;
            text-shadow: 0 0 15px rgba(0, 255, 102, 0.6), 0 0 30px rgba(0, 255, 102, 0.3);
        }
        .credit-pill{
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-secondary);
            box-shadow: var(--shadow-glow);
            transition: all 0.3s ease;
            position: relative;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .credit-pill:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 25px var(--cyan-glow);
        }
        .credit-pill .cr-val{color:var(--accent);font-weight:800;}

        /* ═══ VERTICAL LEFT SIDEBAR NAV (BELOW TOP BAR) ═══ */
        .bottom-nav{
            position:fixed;top:215px;left:0;bottom:0;width:240px;z-index:200;
            background: #000000;
            border-right:1px solid var(--border);
            box-shadow: 4px 0 20px rgba(255, 215, 0, 0.15);
            overflow-y:auto;overflow-x:hidden;
            display:flex;flex-direction:column;
        }
        .bottom-nav::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 1px;
            background: var(--gradient-gold);
        }
        .bottom-nav-inner{
            display:flex;flex-direction:column;gap:6px;
            padding: 20px 12px;width:100%;
        }
        .nav-item{
            display:flex;flex-direction:row;align-items:center;gap:12px;
            text-decoration:none;color:var(--text-muted);
            padding:12px 14px;position:relative;
            font-size:13px;font-weight:700;width:100%;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            transition: all 0.25s ease;
            box-sizing: border-box;
        }
        .nav-item .nav-icon-3d {
            width: 24px;
            height: 24px;
            min-width: 24px;
            min-height: 24px;
            max-width: 24px;
            max-height: 24px;
            object-fit: contain;
            flex-shrink: 0;
            display: inline-block;
            margin: 0;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
        }
        .nav-item:hover{
            color:var(--gold);
            background: rgba(255, 215, 0, 0.08);
            border-color: rgba(255, 215, 0, 0.2);
        }
        .nav-item:hover .nav-icon-3d,
        .nav-item.active .nav-icon-3d {
            filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95)) brightness(1.2);
            transform: scale(1.2) translateY(-1px);
        }
        .nav-item.active{
            color:var(--gold);
            background: rgba(255, 215, 0, 0.15);
            border-color: var(--gold);
            box-shadow: 0 0 15px var(--gold-glow);
        }
        .nav-badge{
            position:absolute;top:50%;right:12px;transform:translateY(-50%);
            min-width:16px;height:16px;border-radius:8px;
            font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;
            padding:0 4px;
            background: var(--gradient-gold);
            color:#000;
            box-shadow: 0 0 10px var(--gold-glow);
        }
        .nav-badge-red{background: var(--gradient-gold);color:#000;}

        /* Match detail page sidebar collapse & toggle handle */
        body.is-match-page {
            padding-left: 0 !important;
        }
        body.is-match-page .top-bar {
            margin-left: 0 !important;
            width: 100% !important;
        }
        body.is-match-page .bottom-nav {
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body.is-match-page .bottom-nav.open {
            transform: translateX(0);
        }
        .sidebar-toggle-handle {
            display: none;
            position: fixed;
            top: 230px;
            left: 0;
            z-index: 350;
            background: var(--gold);
            color: #000000;
            padding: 10px 10px 10px 6px;
            border-radius: 0 10px 10px 0;
            cursor: pointer;
            font-weight: 900;
            font-size: 14px;
            box-shadow: 2px 0 12px rgba(255, 215, 0, 0.5);
            transition: all 0.25s ease;
        }
        .sidebar-toggle-handle:hover {
            padding-left: 10px;
            background: #ffffff;
        }
        body.is-match-page .sidebar-toggle-handle {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        body.is-match-page.nav-is-open .sidebar-toggle-handle {
            left: 240px;
        }
        .handle-desk-txt { display: inline; }
        .handle-mob-txt { display: none; }
        .mobile-top-logout {
            display: none;
        }

        @media (max-width: 768px) {
            body { padding-left: 0; padding-bottom: 120px; }
            .top-bar { margin-left: 0; width: 100%; }
            .bottom-nav {
                top: auto; right: 0; bottom: 0; width: 100%; height: auto;
                border-right: none; border-top: 1px solid var(--border);
                box-shadow: 0 -4px 20px rgba(255, 215, 0, 0.2);
                overflow-x: auto; overflow-y: hidden; flex-direction: row;
            }
            .bottom-nav::before {
                top: 0; left: 0; right: 0; bottom: auto; height: 1px; width: 100%;
            }
            .bottom-nav-inner {
                flex-direction: row; justify-content: flex-start;
                padding: 6px 8px; width: max-content; min-width: 100%;
            }
            .nav-item {
                flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px;
                padding: 6px 6px; width: auto; min-width: 58px; text-align: center;
            }
            .nav-item .nav-icon-3d {
                width: 24px !important;
                height: 24px !important;
                min-width: 24px !important;
                min-height: 24px !important;
                max-width: 24px !important;
                max-height: 24px !important;
                margin: 0 auto !important;
            }
            .nav-badge { top: 4px; right: 6px; transform: none; }
            
            /* Mobile Top Bar Logout Button */
            .mobile-top-logout {
                display: inline-flex !important;
                align-items: center;
                gap: 5px;
                padding: 6px 11px;
                background: rgba(239, 68, 68, 0.15);
                color: #f87171;
                border: 1px solid rgba(239, 68, 68, 0.45);
                border-radius: 18px;
                font-size: 11px;
                font-weight: 800;
                text-decoration: none;
                flex-shrink: 0;
                box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
                transition: all 0.2s ease;
                white-space: nowrap;
                margin-left: auto;
            }
            .mobile-top-logout:hover, .mobile-top-logout:active {
                background: rgba(239, 68, 68, 0.35);
                border-color: #ef4444;
                color: #ffffff;
                box-shadow: 0 0 18px rgba(239, 68, 68, 0.6);
                transform: scale(0.96);
            }
            .mobile-top-logout svg {
                stroke: currentColor;
            }

            /* Mobile Bottom Nav Tab Order (Logout clearly visible at 5th position) */
            #acc-calcio { order: 1; }
            #nav-dc { order: 2; }
            #nav-live { order: 3; }
            #nav-betboost { order: 4; }
            #nav-logout {
                order: 5 !important;
                color: #f87171 !important;
                border: 1px solid rgba(239, 68, 68, 0.4) !important;
                background: rgba(239, 68, 68, 0.12) !important;
                border-radius: 8px !important;
            }
            #nav-logout:hover, #nav-logout:active {
                background: rgba(239, 68, 68, 0.3) !important;
                border-color: #ef4444 !important;
                color: #ffffff !important;
            }
            #nav-track { order: 6; }
            #nav-basketball { order: 7; }
            #nav-settings { order: 8; }
            #nav-admin { order: 9; }
        }

        /* ═══ FREEMIUM HUD & MODALS SYSTEM ═══ */
        .credit-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 14px;
            border-radius: 999px;
            font-size: 12.5px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: all 0.25s ease;
            text-decoration: none;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            position: relative !important;
            top: auto !important;
            right: auto !important;
            bottom: auto !important;
            left: auto !important;
            transform: none !important;
            flex-shrink: 0;
        }
        .credit-pill.free-active {
            background: rgba(255, 215, 0, 0.08);
            border: 1px solid rgba(255, 215, 0, 0.45);
            color: #fef08a;
            box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
        }
        .credit-pill.free-active .bolt {
            color: #FFD700;
            animation: freemium-pulse 2s infinite;
        }
        .credit-pill.guest-trial {
            background: rgba(56, 189, 248, 0.08);
            border: 1px solid rgba(56, 189, 248, 0.4);
            color: #bae6fd;
        }
        .credit-pill.guest-trial:hover {
            background: rgba(56, 189, 248, 0.15);
            box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
        }
        .credit-pill.limit-reached {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.45);
            color: #fca5a5;
            animation: freemium-soft-glow 2.5s infinite;
        }
        .credit-pill.pro-badge {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(245, 158, 11, 0.25));
            border: 1px solid #FFD700;
            color: #ffffff;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            font-family: 'Montserrat', sans-serif;
            font-weight: 800;
        }
        .credit-pill.pro-badge i {
            color: #FFD700;
        }

        body.is-pro-user .pro-monetization-hero-banner,
        body.is-pro-user .pro-cta-banner {
            display: none !important;
        }

        .mobile-top-login {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            background: rgba(255, 215, 0, 0.1);
            color: var(--gold);
            border: 1px solid rgba(255, 215, 0, 0.4);
            border-radius: 18px;
            font-size: 11.5px;
            font-weight: 800;
            text-decoration: none;
            flex-shrink: 0;
            box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .mobile-top-login:hover {
            background: rgba(255, 215, 0, 0.25);
            border-color: var(--gold);
            color: #fff;
            transform: scale(0.97);
        }

        @media (max-width: 600px) {
            .credit-pill {
                padding: 5px 9px;
                font-size: 11px;
                gap: 5px;
            }
        }

        @keyframes freemium-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.18); }
        }
        @keyframes freemium-soft-glow {
            0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.15); }
            50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.45); }
        }

        /* Modale Freemium e blur di sfondo */
        .match-locked-blur {
            filter: blur(8px) brightness(0.35) !important;
            user-select: none !important;
            pointer-events: none !important;
        }

        .freemium-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(4, 6, 10, 0.85);
            backdrop-filter: blur(18px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999999;
            padding: 20px;
            animation: freemium-fade-in 0.3s ease;
        }
        .freemium-modal-overlay.active {
            display: flex;
        }

        @keyframes freemium-fade-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .freemium-luxury-card {
            background: linear-gradient(180deg, #101522 0%, #0a0d15 100%);
            border: 1.5px solid rgba(255, 215, 0, 0.45);
            border-radius: 24px;
            width: 100%;
            max-width: 580px;
            padding: 38px 32px 30px;
            text-align: center;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 215, 0, 0.14);
            position: relative;
            overflow: hidden;
            animation: freemium-card-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes freemium-card-pop {
            from { transform: scale(0.92) translateY(20px); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }

        .freemium-luxury-card::before {
            content: '';
            position: absolute;
            top: -110px;
            left: 50%;
            transform: translateX(-50%);
            width: 320px;
            height: 220px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 70%);
            pointer-events: none;
        }

        .freemium-close-btn {
            position: absolute;
            top: 18px;
            right: 20px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }
        .freemium-close-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* ═══ LEAGUE HEADER ═══ */
        .league-header{
            display:flex;align-items:center;gap:10px;padding:12px 16px;
            background: var(--bg-card);font-size:13px;font-weight:700;
            color:var(--text-secondary);
            cursor:pointer;user-select:none;
            border-bottom: 1px solid var(--border-light);
            transition: all 0.3s ease;
        }
        .league-header:hover {
            background: var(--bg-card-hover);
            border-left: 3px solid var(--cyan);
        }
        .league-header .league-flag{font-size:16px;}
        .league-header .league-count{
            margin-left:auto;
            font-size:11px;
            color:var(--text-muted);
            font-weight:600;
            background: var(--bg-card-alt);
            padding: 2px 8px;
            border-radius: 12px;
        }

        /* ═══ ENHANCED MATCH ROW ═══ */
        .match-row{
            display:flex;align-items:center;padding:12px 16px;
            border-bottom:1px solid var(--border-light);
            cursor:pointer;min-height:60px;
            transition: all 0.3s ease;
            position: relative;
        }
        .match-row::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0;
            background: var(--gradient-cyan);
            transition: width 0.3s ease;
        }
        .match-row:hover {
            background: var(--bg-card-hover);
            box-shadow: inset 0 0 0 1px var(--border);
        }
        .match-row:hover::before {
            width: 3px;
        }
        .match-row:last-child{border-bottom:none;}
        .mr-time{width:38px;font-size:11px;font-weight:700;color:var(--text-muted);flex-shrink:0;}
        .mr-time.live{
            color:var(--red);
            font-weight:800;
            text-shadow: 0 0 8px rgba(255, 51, 102, 0.6);
        }
        .mr-star{
            width:20px;
            font-size:12px;
            cursor:pointer;
            flex-shrink:0;
            color:var(--text-muted);
            text-align:center;
            transition: all 0.3s ease;
        }
        .mr-star:hover {
            color: var(--gold);
            filter: drop-shadow(0 0 8px var(--gold-glow));
        }
        .mr-star.fav{
            color:var(--gold);
            filter: drop-shadow(0 0 8px var(--gold-glow));
            animation: starGlow 2s ease-in-out infinite alternate;
        }
        @keyframes starGlow {
            0% { filter: drop-shadow(0 0 8px var(--gold-glow)); }
            100% { filter: drop-shadow(0 0 15px var(--gold-glow)); }
        }
        .mr-teams{flex:1;min-width:100px;padding:0 8px;}
        .mr-team{
            font-size:13px;
            font-weight:600;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
            display:flex;
            align-items:center;
            gap:6px;
            line-height:1.7;
        }
        .mr-team img{width:16px;height:16px;flex-shrink:0;border-radius: 2px;}
        .form-dots{font-size:8px;letter-spacing:1px;margin-left:4px;flex-shrink:0;}
        .mr-referee{
            font-size:10px;
            color:var(--text-secondary);
            padding:0 8px 6px 62px;
            display:flex;align-items:center;gap:4px;
        }
        .ref-badge{
            font-size:8px;font-weight:600;
            padding:2px 6px;border-radius:4px;
            background: var(--bg-card-alt);
            border: 1px solid var(--border-light);
        }
        .ai-alert-row{
            display:flex;align-items:center;gap:6px;
            padding:4px 8px 6px 62px;font-size:10px;
        }
        .ai-rating{font-size:13px;}
        .ai-pick{font-weight:700;color:var(--accent);font-size:11px;}
        .ai-details{color:var(--gold);font-size:10px;}
        .match-row:has(.ai-alert-row){
            border-left:3px solid var(--gold);
            background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.05));
        }
        .mr-score{
            width:28px;
            text-align:center;
            font-weight:800;
            font-size:13px;
            flex-shrink:0;
        }
        .mr-score.live-score{
            color:var(--accent);
            text-shadow: 0 0 10px var(--accent-glow);
        }
        .mr-markets{
            display:flex;align-items:center;gap:4px;flex-shrink:0;
            font-size:10px;color:var(--cyan);font-weight:700;margin-right:4px;
        }
        .mr-odds{display:flex;gap:3px;flex-shrink:0;}
        .odd-btn{
            background: var(--bg-card);
            color: var(--text);
            font-weight:700;
            font-size:11px;
            min-width:44px;
            height:36px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            display:flex;
            flex-direction:column;
            align-items:center;
            justify-content:center;
            cursor:pointer;
            padding:2px;
            line-height:1.2;
            transition: all 0.3s ease;
            position: relative;
        }
        .odd-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--radius-sm);
            background: var(--gradient-cyan);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .odd-btn:hover{
            border-color: var(--cyan);
            box-shadow: 0 0 12px var(--cyan-glow);
            transform: translateY(-1px);
        }
        .odd-btn:hover::before {
            opacity: 0.1;
        }
        .odd-btn .odd-label{
            font-size:9px;
            color:var(--text-muted);
            font-weight:600;
            position: relative;
            z-index: 1;
        }
        .odd-btn .odd-val{
            font-size:12px;
            font-weight:800;
            color: var(--text);
            position: relative;
            z-index: 1;
        }
        .odd-btn.selected{
            background: var(--gradient-primary);
            color:#000;
            border-color: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }
        .odd-btn.selected .odd-label,
        .odd-btn.selected .odd-val {
            color: #000;
        }
        .mr-bf{
            width:28px;height:28px;
            border-radius: var(--radius-sm);
            border:1px solid var(--border);
            background: var(--bg-card);
            color: var(--gold);
            font-size:12px;
            cursor:pointer;
            display:flex;
            align-items:center;
            justify-content:center;
            flex-shrink:0;
            margin-left:4px;
            transition: all 0.3s ease;
        }
        .mr-bf:hover{
            border-color: var(--gold);
            box-shadow: 0 0 12px var(--gold-glow);
            background: var(--gold-dim);
        }
        .mr-bf.done{
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-dim);
            box-shadow: 0 0 10px var(--accent-glow);
        }

        /* ═══ ODDS HEADER ═══ */
        .odds-header{
            display:flex;justify-content:flex-end;padding:6px 16px;
            font-size:10px;font-weight:700;color:var(--text-muted);
            text-transform:uppercase;letter-spacing:0.8px;
            background: var(--bg-card-alt);
        }
        .odds-header span{width:44px;text-align:center;}
        .odds-header-pad{width:32px;}

        /* ═══ CATEGORY TABS ═══ */
        .cat-row{
            display:flex;gap:0;overflow-x:auto;
            border-bottom:1px solid var(--border);
            background: var(--bg-card);
        }
        .cat-row::-webkit-scrollbar{display:none;}
        .cat-tab{
            padding:12px 18px;
            font-size:13px;
            font-weight:700;
            color:var(--text-muted);
            white-space:nowrap;
            cursor:pointer;
            border-bottom:2px solid transparent;
            transition: all 0.3s ease;
            position: relative;
        }
        .cat-tab::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-cyan);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .cat-tab:hover{
            color:var(--text);
            background: rgba(0, 229, 255, 0.05);
        }
        .cat-tab:hover::before {
            opacity: 0.05;
        }
        .cat-tab.active{
            color: var(--cyan);
            border-bottom-color: var(--cyan);
            background: var(--cyan-dim);
            box-shadow: 0 0 10px var(--cyan-glow);
        }
        .cat-tab.disabled{opacity:0.4;cursor:default;}

        /* ═══ CARDS ═══ */
        .card{
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border:1px solid var(--border);
            border-radius: var(--radius);
            padding:20px;
            margin-bottom:16px;
            box-shadow: var(--shadow-glow);
            transition: all 0.3s ease;
        }
        .card:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 25px var(--cyan-glow);
        }
        .card h2{
            color: var(--cyan);
            font-family: 'Montserrat', sans-serif;
            font-size:14px;
            margin-bottom:16px;
            font-weight:800;
            text-transform:uppercase;
            letter-spacing:1px;
        }
        .card h3{
            color: var(--text);
            font-size:15px;
            margin-bottom:12px;
            font-weight:700;
        }

        /* ═══ STATS ═══ */
        .stats-grid{
            display:grid;
            grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
            gap:12px;
        }
        .stat-box{
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: var(--radius);
            padding:16px;
            text-align:center;
            border:1px solid var(--border);
            transition: all 0.3s ease;
        }
        .stat-box:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 15px var(--cyan-glow);
        }
        .stat-value{
            font-size:26px;
            font-weight:900;
            background: var(--gradient-primary);
            -webkit-background-clip:text;
            -webkit-text-fill-color:transparent;
        }
        .stat-label{
            font-size:10px;
            color:var(--text-muted);
            margin-top:4px;
            text-transform:uppercase;
            letter-spacing:1px;
            font-weight:700;
        }

        /* ═══ COMPARISON BAR ═══ */
        .comp-bar{display:flex;align-items:center;padding:8px 0;font-size:13px;}
        .comp-bar .cb-val{width:40px;text-align:center;font-weight:700;flex-shrink:0;}
        .comp-bar .cb-val.home{color:var(--accent);}
        .comp-bar .cb-val.away{color:var(--cyan);}
        .comp-bar .cb-label{
            flex:1;text-align:center;font-size:12px;
            color:var(--text-muted);font-weight:600;padding:0 8px;
        }
        .comp-bar .cb-track{
            flex:2;height:8px;
            background: var(--bg-card-alt);
            border-radius:4px;overflow:hidden;
            position:relative;
        }
        .comp-bar .cb-fill{height:100%;border-radius:4px;transition:width 0.5s;}
        .cb-fill.home-fill{background: var(--gradient-primary);float:right;}
        .cb-fill.away-fill{background: var(--gradient-cyan);}

        /* ═══ SIMULATION BAR ═══ */
        .sim-bar{display:flex;height:36px;border-radius: var(--radius);overflow:hidden;gap:1px;}
        .sim-bar div{
            display:flex;align-items:center;justify-content:center;
            font-size:12px;font-weight:800;
        }
        .sim-home{background: var(--gradient-primary);color:#000;}
        .sim-draw{background: var(--gradient-gold);color:#000;}
        .sim-away{background: var(--gradient-cyan);color:#000;}

        /* ═══ FORM BADGES ═══ */
        .form-badge{
            display:inline-flex;
            width:24px;height:24px;
            border-radius: var(--radius-xs);
            align-items:center;
            justify-content:center;
            font-size:11px;
            font-weight:800;
            margin:2px;
            box-shadow: 0 0 8px rgba(0,0,0,0.3);
        }
        .form-W{
            background: var(--gradient-primary);
            color:#000;
            box-shadow: 0 0 10px var(--accent-glow);
        }
        .form-D{
            background: var(--gradient-gold);
            color:#000;
            box-shadow: 0 0 10px var(--gold-glow);
        }
        .form-L{
            background: linear-gradient(135deg, var(--red), #cc1144);
            color:#fff;
            box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
        }

        /* ═══ TAGS ═══ */
        .tag{
            display:inline-block;
            padding:4px 10px;
            border-radius: var(--radius-sm);
            font-size:11px;
            font-weight:700;
            margin: 2px;
        }
        .tag-green{
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid var(--accent);
        }
        .tag-red{
            background: var(--red-dim);
            color: var(--red);
            border: 1px solid var(--red);
        }
        .tag-yellow{
            background: var(--gold-dim);
            color: var(--gold);
            border: 1px solid var(--gold);
        }
        .tag-blue{
            background: var(--cyan-dim);
            color: var(--cyan);
            border: 1px solid var(--cyan);
        }
        .tag-gold{
            background: var(--gold-dim);
            color: var(--gold);
            border: 1px solid var(--gold);
        }

        /* ═══ PREMIUM BUTTONS ═══ */
        .btn{
            background: var(--gradient-primary);
            color:#000;
            border:none;
            padding:10px 24px;
            border-radius: var(--radius);
            cursor:pointer;
            font-weight:700;
            font-size:14px;
            font-family:'Inter',sans-serif;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px var(--accent-glow);
        }
        .btn:hover{
            transform: translateY(-2px);
            box-shadow: 0 0 25px var(--accent-glow);
        }
        .btn-sm{padding:6px 16px;font-size:12px;}
        .btn-secondary{
            background: var(--glass-bg);
            color: var(--text);
            border:1px solid var(--border);
            box-shadow: var(--shadow-glow);
        }
        .btn-secondary:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 15px var(--cyan-glow);
        }
        .btn-gold{
            background: var(--gradient-gold);
            color:#000;
            box-shadow: 0 0 15px var(--gold-glow);
        }
        .btn-gold:hover {
            box-shadow: 0 0 25px var(--gold-glow);
        }
        .btn-red{
            background: linear-gradient(135deg, var(--red), #cc1144);
            color:#fff;
        }
        .btn-blue{
            background: var(--gradient-cyan);
            color:#000;
            box-shadow: 0 0 15px var(--cyan-glow);
        }
        .btn-blue:hover {
            box-shadow: 0 0 25px var(--cyan-glow);
        }
        .btn-icon{
            width:36px;height:36px;
            border-radius: var(--radius);
            display:inline-flex;
            align-items:center;
            justify-content:center;
            padding:0;
            font-size:16px;
            border:1px solid var(--border);
            background: var(--bg-card);
            color: var(--text);
            cursor:pointer;
            transition: all 0.3s ease;
        }
        .btn-icon:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 12px var(--cyan-glow);
        }

        /* ═══ TABLE ═══ */
        .score-table{width:100%;border-collapse:separate;border-spacing:0 4px;}
        .score-table td{padding:12px;font-size:13px;}
        .score-table tr{
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        .score-table tr:hover {
            background: var(--bg-card-hover);
            box-shadow: 0 0 10px var(--cyan-glow);
        }

        /* ═══ PROGRESS ═══ */
        .progress-bar{
            height:6px;
            background: var(--bg-card-alt);
            border-radius:3px;
            overflow:hidden;
            margin:6px 0;
        }
        .progress-fill{height:100%;border-radius:3px;transition: width 0.8s ease;}
        .fill-green{background: var(--gradient-primary);}
        .fill-yellow{background: var(--gradient-gold);}
        .fill-red{background: linear-gradient(135deg, var(--red), #cc1144);}

        /* ═══ INPUTS ═══ */
        .input,input[type="date"],input[type="number"],input[type="text"],input[type="time"],select{
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border:1px solid var(--border);
            color: var(--text);
            padding:10px 14px;
            border-radius: var(--radius);
            font-size:14px;
            font-family:'Inter',sans-serif;
            outline:none;
            transition: all 0.3s ease;
        }
        input:focus,select:focus{
            border-color: var(--cyan);
            box-shadow: 0 0 12px var(--cyan-glow);
        }

        /* ═══ TWO-COL ═══ */
        .two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
        @media(max-width:640px){.two-col{grid-template-columns:1fr;}}

        /* ═══ TABS ═══ */
        .detail-tabs{
            display:flex;
            border-bottom:1px solid var(--border);
            margin-bottom:16px;
            background: var(--bg-card);
            border-radius: var(--radius) var(--radius) 0 0;
            overflow-x:auto;
            overflow-y:hidden;
            -webkit-overflow-scrolling:touch;
            scrollbar-width:none;
        }
        .detail-tabs::-webkit-scrollbar{display:none;}
        .detail-tab{
            flex:0 0 auto;
            min-width:0;
            text-align:center;
            padding:14px 12px;
            font-size:13px;
            font-weight:700;
            color:var(--text-muted);
            cursor:pointer;
            border-bottom:2px solid transparent;
            transition: all 0.3s ease;
            white-space:nowrap;
        }
        .detail-tab:hover{
            color: var(--text);
            background: rgba(0, 229, 255, 0.05);
        }
        .detail-tab.active{
            color: var(--cyan);
            border-bottom-color: var(--cyan);
            background: var(--cyan-dim);
        }
        .tab-content{display:none;}
        .tab-content.active{display:block;}

        /* ═══ MISC ═══ */
        a{color: var(--cyan);text-decoration:none;transition: all 0.3s ease;}
        a:hover{
            color: var(--text);
            text-shadow: 0 0 8px var(--cyan-glow);
        }
        .empty-state{text-align:center;padding:50px 20px;color:var(--text-muted);}
        .empty-state .emoji{font-size:64px;margin-bottom:16px;}
        .tip-box{
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-left:3px solid var(--accent);
            padding:14px 18px;
            font-size:13px;
            color:var(--text-secondary);
            margin:16px 0;
            border-radius: 0 var(--radius) var(--radius) 0;
        }
        .tip-box strong{color: var(--accent);}
        .spinner{
            width:28px;height:28px;
            border:3px solid var(--border);
            border-top-color: var(--cyan);
            border-radius:50%;
            animation:spin 1s linear infinite;
            margin:20px auto;
        }

        /* ═══ ENHANCED GOAL TOAST ═══ */
        .goal-toast{
            position:fixed;top:-150px;left:50%;transform:translateX(-50%);z-index:9999;
            background: linear-gradient(135deg, #1a0000, #330000);
            border:2px solid #ff0000;
            border-radius:20px;
            padding:20px 30px;
            text-align:center;
            min-width:300px;
            max-width:90vw;
            box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
            transition: top .6s cubic-bezier(.4,0,.2,1);
            backdrop-filter: blur(15px);
            animation: goalPulse 2s ease-in-out infinite;
        }
        @keyframes goalPulse {
            0%, 100% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.6); }
            50% { box-shadow: 0 0 60px rgba(255, 0, 0, 1), 0 0 100px rgba(255, 0, 0, 0.4); }
        }
        @keyframes goalFlash {
            0%, 100% { background: rgba(100,0,0,0.85); }
            50% { background: rgba(180,0,0,0.95); }
        }
        @keyframes goalBounce {
            0% { transform: scale(1); }
            100% { transform: scale(1.05); }
        }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        .goal-toast.show{top:20px;}
        .goal-label{
            font-family: 'Montserrat', sans-serif;
            font-size:28px;
            font-weight:900;
            color:#ff3366;
            letter-spacing:4px;
            text-shadow: 0 0 15px rgba(255, 51, 102, 0.8);
            margin-bottom: 8px;
        }
        .goal-match{
            font-size:16px;
            font-weight:700;
            color:#fff;
            margin-bottom:6px;
        }
        .goal-scorer{
            font-size:13px;
            color:#ccc;
            margin-bottom:4px;
        }

        /* ═══ ENHANCED PRESSURE ALERT ═══ */
        .pressure-alert{
            position:fixed;top:-350px;left:50%;transform:translateX(-50%);z-index:9998;
            background: linear-gradient(135deg, #0d1117, #161b22, #1a1a2e);
            border:2px solid #ff8800;
            border-radius:24px;
            padding:24px 30px;
            min-width:340px;
            max-width:92vw;
            box-shadow: 0 0 50px rgba(255, 136, 0, 0.4);
            transition: top .8s cubic-bezier(.4,0,.2,1);
            text-align:center;
            backdrop-filter: blur(15px);
        }
        .pressure-alert.show{top:20px;}
        .pressure-alert.pa-pulse{
            animation: paPulse 1.8s ease-in-out infinite;
        }
        @keyframes paPulse {
            0%, 100% { box-shadow: 0 0 50px rgba(255, 68, 68, 0.4); }
            50% { box-shadow: 0 0 70px rgba(255, 68, 68, 0.8), 0 0 120px rgba(255, 68, 68, 0.3); }
        }
        .pa-close{
            position:absolute;top:12px;right:16px;
            color:#666;font-size:20px;cursor:pointer;
            z-index:1;padding:6px;
            transition: all 0.3s ease;
        }
        .pa-close:hover{
            color:#fff;
            transform: rotate(90deg);
        }
        .pa-icon{font-size:40px;margin-bottom:6px;}
        .pa-header{
            font-family: 'Montserrat', sans-serif;
            font-size:18px;
            font-weight:900;
            letter-spacing:2px;
            margin-bottom:4px;
        }
        .pa-team{
            font-family: 'Montserrat', sans-serif;
            font-size:22px;
            font-weight:900;
            color:#fff;
            margin-bottom:8px;
            text-transform:uppercase;
            letter-spacing:1.5px;
        }
        .pa-match{
            font-size:15px;
            font-weight:600;
            color:#ccc;
            margin-bottom:12px;
        }
        .pa-stats{
            display:flex;
            flex-wrap:wrap;
            justify-content:center;
            gap:8px;
            margin-bottom:12px;
        }
        .pa-stat-item{
            background: rgba(255,255,255,0.08);
            padding:6px 12px;
            border-radius:10px;
            font-size:12px;
            color:#ddd;
            font-weight:600;
        }
        .pa-context{
            font-size:13px;
            color:#ffcc00;
            font-weight:700;
            margin-bottom:12px;
            font-style:italic;
        }
        .pa-bar{
            height:10px;
            background: rgba(255,255,255,0.08);
            border-radius:5px;
            overflow:hidden;
            margin-bottom:8px;
        }
        .pa-bar-fill{
            height:100%;
            border-radius:5px;
            transition: width 1s cubic-bezier(.4,0,.2,1);
        }
        .pa-pct-big{
            font-family: 'Montserrat', sans-serif;
            font-size:22px;
            font-weight:900;
            letter-spacing:1px;
        }

        /* Enhanced Pressure Alert Elements */
        .pressure-alert.enhanced{max-width:460px;padding:28px 34px;}
        .goal-probability{
            font-family: 'Montserrat', sans-serif;
            font-size:24px;
            font-weight:900;
            margin:16px 0;
            text-align:center;
            display:flex;
            align-items:center;
            justify-content:center;
            gap:10px;
        }
        .overdue-badge{
            background: rgba(255,102,0,0.25);
            color:#ff6600;
            padding:4px 10px;
            border-radius:16px;
            font-size:11px;
            font-weight:800;
            animation: blinkBadge 1.5s ease-in-out infinite;
        }
        @keyframes blinkBadge {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }
        
        .xg-section{
            margin:20px 0;
            padding:16px;
            background: rgba(255,255,255,0.04);
            border-radius:16px;
        }
        .xg-label{
            font-size:13px;
            color:var(--text-secondary);
            margin-bottom:12px;
            text-align:center;
            font-weight:600;
        }
        .xg-bars{display:flex;flex-direction:column;gap:10px;}
        .xg-bar{display:flex;align-items:center;gap:16px;}
        .xg-team{
            font-size:12px;
            font-weight:700;
            min-width:70px;
            color:#fff;
        }
        .xg-bar-track{
            flex:1;
            height:10px;
            background: rgba(255,255,255,0.08);
            border-radius:5px;
            overflow:hidden;
        }
        .xg-bar-fill{
            height:100%;
            border-radius:5px;
            transition: width 1s ease-out;
        }
        .xg-bar-fill.home{
            background: var(--gradient-primary);
        }
        .xg-bar-fill.away{
            background: var(--gradient-cyan);
        }
        .xg-value{
            font-size:12px;
            font-weight:800;
            color:#fff;
            min-width:28px;
            text-align:right;
        }
        
        .momentum-section{
            display:flex;
            align-items:center;
            justify-content:center;
            gap:12px;
            margin:16px 0;
            padding:12px 16px;
            background: rgba(255,255,255,0.06);
            border-radius:12px;
        }
        .momentum-arrow{font-size:20px;}
        .momentum-text{
            font-family: 'Montserrat', sans-serif;
            font-size:13px;
            font-weight:700;
            color:#fff;
        }

        /* ═══ PITCH (lineups) ═══ */
        .pitch{
            position:relative;
            border-radius:12px;
            overflow:hidden;
            border:2px solid rgba(255,255,255,0.15);
            box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 0 60px rgba(0,0,0,0.15);
            width:100%;
            max-width:100%;
            margin:0 auto;
            box-sizing:border-box;
        }
        .pitch-svg{
            position:absolute;
            inset:0;
            width:100%;
            height:100%;
            z-index:0;
            pointer-events:none;
        }
        .pitch-field{
            position:relative;
            z-index:1;
            display:flex;
            flex-direction:row;
            align-items:stretch;
            min-height:396px;
            padding:10px 4px;
            width:100%;
            box-sizing:border-box;
        }
        .pitch-half{
            position:relative;
            z-index:1;
            display:flex;
            flex-direction:row;
            justify-content:space-evenly;
            align-items:stretch;
            flex:1;
            min-width:0;
            padding:0 2px;
            overflow:hidden;
        }
        .pitch-row{
            display:flex;
            flex-direction:column;
            justify-content:space-evenly;
            align-items:center;
            flex:1;
            min-width:0;
            overflow:hidden;
            padding:4px 0;
            position:relative;
            z-index:2;
        }
        .pitch-player{
            text-align:center;
            width:clamp(36px, 11vw, 64px);
            margin:3px 0;
            position:relative;
            flex-shrink:1;
        }
        .pitch-player .p-number{
            display:inline-flex;
            width:clamp(28px, 9vw, 46px);
            height:clamp(28px, 9vw, 46px);
            border-radius:50%;
            align-items:center;
            justify-content:center;
            font-size:clamp(10px, 3vw, 15px);
            font-weight:800;
            margin-bottom:2px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.5);
            border:2.5px solid rgba(255,255,255,0.35);
            transition: transform 0.2s;
        }
        .pitch-player:hover .p-number{transform:scale(1.15);}
        .pitch-player .p-photo{
            width:clamp(30px, 10vw, 52px);
            height:clamp(30px, 10vw, 52px);
            border-radius:50%;
            border:2.5px solid rgba(255,255,255,0.6);
            object-fit:cover;
            background:#1a5c2e;
            box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }
        .pitch-player .p-name{
            font-size:clamp(7px, 2vw, 9px);
            color:#fff;
            font-weight:700;
            line-height:1.15;
            text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.6);
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
            max-width:100%;
            margin-top:2px;
        }
        .home-player .p-number{
            background: linear-gradient(135deg, #e8b923, #f5d54a);
            color:#1a1a2e;
        }
        .away-player .p-number{
            background: linear-gradient(135deg, #00c9db, #4aeaff);
            color:#1a1a2e;
        }
        .pitch-vs{
            display:flex;
            align-items:center;
            justify-content:center;
            position:relative;
            z-index:2;
            flex:0 0 20px;
            width:20px;
        }
        .pitch-vs span{
            display:inline-block;
            background:rgba(15,15,30,0.85);
            padding:6px 4px;
            border-radius:10px;
            font-size:8px;
            font-weight:700;
            color:rgba(255,255,255,0.5);
            border:1px solid rgba(255,255,255,0.12);
            letter-spacing:1px;
            writing-mode:vertical-lr;
        }
        .formation-label{
            text-align:center;
            font-family: 'Montserrat', sans-serif;
            font-size:clamp(9px, 2.5vw, 11px);
            font-weight:700;
            color:#fff;
            padding:6px 10px;
            background: rgba(0,0,0,0.5);
            backdrop-filter:blur(4px);
            border-radius:8px;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }

        /* ═══ VERTICAL PITCH (Mobile Responsive) ═══ */
        .pitch-vertical{
            position:relative;
            border-radius:12px;
            overflow:hidden;
            border:2px solid rgba(255,255,255,0.18);
            box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 0 50px rgba(0,0,0,0.25);
            width:100%;
            height:610px;
            margin:0 auto;
            box-sizing:border-box;
        }
        .pitch-v-field{
            position:relative;
            z-index:1;
            display:flex;
            flex-direction:column;
            justify-content:space-between;
            height:100%;
            padding:10px 6px 14px 6px;
            box-sizing:border-box;
        }
        .pitch-v-half{
            display:flex;
            flex-direction:column;
            justify-content:space-evenly;
            flex:1;
            min-height:0;
            width:100%;
        }
        .pitch-v-row{
            display:flex;
            flex-direction:row;
            justify-content:space-evenly;
            align-items:center;
            width:100%;
            padding:2px 0;
        }
        .pitch-v-center{
            display:flex;
            align-items:center;
            justify-content:center;
            height:24px;
            position:relative;
            z-index:2;
        }
        .pitch-vs-pill{
            background:rgba(15,15,30,0.92);
            padding:2px 10px;
            border-radius:12px;
            font-size:9px;
            font-weight:800;
            color:rgba(255,255,255,0.7);
            border:1px solid rgba(255,255,255,0.2);
            letter-spacing:1px;
            box-shadow:0 2px 6px rgba(0,0,0,0.4);
        }
        .formation-mobile-pill{
            display:flex;
            justify-content:space-between;
            align-items:center;
            padding:7px 12px;
            border-radius:8px;
            font-size:11px;
            font-weight:700;
        }
        .formation-mobile-pill.home-pill{
            background:rgba(232,185,35,0.12);
            border:1px solid rgba(232,185,35,0.35);
            color:#f5d54a;
            margin-bottom:8px;
        }
        .formation-mobile-pill.away-pill{
            background:rgba(0,201,219,0.12);
            border:1px solid rgba(0,201,219,0.35);
            color:#4aeaff;
            margin-top:8px;
            margin-bottom:14px;
        }
        .formation-tag{
            font-size:10px;
            background:rgba(0,0,0,0.35);
            padding:2px 7px;
            border-radius:4px;
            letter-spacing:0.5px;
            color:#fff;
        }
        .formation-team-logo{
            width:18px;
            height:18px;
            object-fit:contain;
            flex-shrink:0;
            vertical-align:middle;
            filter:drop-shadow(0 1px 3px rgba(0,0,0,0.5));
        }

        /* Responsive display toggles */
        @media (min-width: 769px) {
            .pitch-mobile-wrapper{display:none !important;}
            .pitch-desktop-wrapper{display:block !important;}
        }
        @media (max-width: 768px) {
            .pitch-desktop-wrapper{display:none !important;}
            .pitch-mobile-wrapper{display:block !important;}
            .pitch-vertical .pitch-player{
                width:clamp(46px, 19vw, 70px) !important;
                margin:1px 0 !important;
                display:flex !important;
                flex-direction:column !important;
                align-items:center !important;
                justify-content:center !important;
                flex-shrink:0 !important;
            }
            .pitch-vertical .pitch-player .p-photo{
                width:34px !important;
                height:34px !important;
                border-radius:50% !important;
                border-width:2px !important;
            }
            .pitch-vertical .pitch-player .p-number{
                width:32px !important;
                height:32px !important;
                font-size:12px !important;
                margin-bottom:1px !important;
                border-width:2px !important;
            }
            .pitch-vertical .pitch-player .p-name{
                font-size:9.5px !important;
                font-weight:700 !important;
                max-width:70px !important;
                white-space:nowrap !important;
                overflow:hidden !important;
                text-overflow:ellipsis !important;
                margin-top:1px !important;
                text-align:center !important;
                color:#fff !important;
                text-shadow:0 1px 3px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.8) !important;
            }
        }
        .bench-list{
            display:flex;
            flex-wrap:wrap;
            gap:6px;
            margin-top:8px;
        }
        .bench-item{
            background: var(--bg-card-alt);
            border-radius: var(--radius-xs);
            padding:4px 10px;
            font-size:11px;
            color:var(--text-secondary);
            display:flex;
            align-items:center;
            gap:4px;
        }

        /* Brute force button (detail page) */
        .bf-btn-big{
            display:inline-flex;
            align-items:center;
            gap:8px;
            padding:12px 28px;
            border-radius: var(--radius);
            font-size:14px;
            font-weight:800;
            background: var(--gradient-gold);
            color:#000;
            border:none;
            cursor:pointer;
            font-family:'Inter',sans-serif;
            box-shadow: 0 0 15px var(--gold-glow);
            transition: all 0.3s ease;
        }
        .bf-btn-big:hover{
            transform: translateY(-2px);
            box-shadow: 0 0 25px var(--gold-glow);
        }

        /* ═══ SLIP BTN ═══ */
        .slip-btn{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            padding:6px 12px;
            border-radius: var(--radius-sm);
            background: var(--cyan-dim);
            border:1px solid var(--cyan);
            color: var(--cyan);
            cursor:pointer;
            font-size:13px;
            font-weight:700;
            transition: all 0.3s ease;
        }
        .slip-btn:hover{
            background: var(--cyan);
            color: #000;
            box-shadow: 0 0 12px var(--cyan-glow);
        }
        .slip-btn.added{
            background: var(--gradient-primary);
            border-color: var(--accent);
            color: #000;
        }

        /* ═══ ANIMATIONS ═══ */
        @keyframes spin{to{transform:rotate(360deg)}}
        @keyframes livePulse{
            0%,100%{opacity:1;transform: scale(1);}
            50%{opacity:0.4;transform: scale(0.8);}
        }
        .live-dot{
            width:8px;height:8px;
            border-radius:50%;
            background: var(--red);
            display:inline-block;
            animation: livePulse 1.5s infinite;
            margin-right:4px;
        }
        .live-pulse{
            animation: livePulse 1.2s infinite;
            font-size:12px;
            box-shadow: 0 0 8px rgba(255, 51, 102, 0.6);
        }

        /* ═══ SCROLLBAR ═══ */
        ::-webkit-scrollbar{width:4px;height:4px;}
        ::-webkit-scrollbar-track{background:transparent;}
        ::-webkit-scrollbar-thumb{
            background: var(--border);
            border-radius:2px;
        }
        ::-webkit-scrollbar-thumb:hover{
            background: var(--cyan);
        }
        ::selection{
            background: var(--cyan-dim);
            color: var(--cyan);
        }

        /* ═══ RESPONSIVE ═══ */
        @media(min-width:768px){
            .match-row{padding:14px 24px;min-height:65px;}
            .mr-teams{padding:0 20px;}
            .mr-team{font-size:15px;gap:10px;}
            .mr-team img{width:20px;height:20px;}
            .form-dots{font-size:9px;letter-spacing:1.2px;}
            .mr-referee{font-size:12px;padding-left:82px;}
            .ai-alert-row{font-size:12px;padding-left:82px;}
            .ai-pick{font-size:13px;}
            .odd-btn{min-width:64px;height:40px;font-size:12px;}
            .odd-btn .odd-val{font-size:14px;}
            .odd-btn .odd-label{font-size:10px;}
            .mr-score{width:36px;font-size:16px;}
            .mr-time{width:48px;font-size:13px;}
            .mr-bf{width:32px;height:32px;font-size:14px;}
            .mr-markets{font-size:12px;}
            .league-header{font-size:15px;padding:14px 24px;}
            .odds-header span{width:64px;}
            .cat-tab{font-size:14px;padding:14px 24px;}
            .top-bar{padding:11.5px 0;}
            .bottom-nav-inner{padding: 6px 0;}
            .nav-item{font-size:12px;padding:12px 10px 10px;}
            .nav-item .nav-icon{font-size:22px;}
        }
        @media(min-width:1024px){
            .match-row{padding:16px 32px;}
            .mr-team{font-size:16px;}
            .odd-btn{min-width:75px;height:42px;}
            .mr-teams{min-width:240px;}
        }
        @media(max-width:480px){
            .mr-odds{gap:2px;}
            .odd-btn{min-width:38px;height:32px;padding:2px;}
            .odd-btn .odd-val{font-size:11px;}
            .odd-btn .odd-label{display:block;font-size:8px;color:var(--text-muted);font-weight:600;}
            .mr-markets{display:none;}
            .mr-bf{width:24px;height:24px;font-size:11px;}
            .mr-teams{min-width:110px;}
        }

        /* ══════ MOBILE RESPONSIVE ══════ */
        @media(max-width:768px){
            /* Global */
            body{font-size:14px;}
            .container{padding:0 8px;max-width:100%;}
            
            /* Top bar */
            .top-bar{padding:5.5px 0;}
            .logo-text{font-size:clamp(16px, 5.5vw, 26px)!important;max-width:calc(100vw - 60px);}
            .logo img{height:auto;width:100%;max-width:547px;}
            .credit-pill{font-size:10px;padding:3px 7px;}
            
            /* Bottom nav */
            .bottom-nav-inner{padding:4px 0;}
            .nav-item{font-size:10px;padding:8px 4px 6px;min-width:0;}
            .nav-item .nav-icon{font-size:18px;}
            
            /* Match rows */
            .match-row{padding:8px;flex-wrap:wrap;gap:4px;}
            .mr-time{width:40px;font-size:11px;}
            .mr-team{font-size:11px;gap:2px;flex-direction:column;align-items:flex-start;width:100%;overflow:hidden;}
            .mr-team-name{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden;}
            .mr-team-name img{width:14px;height:14px;flex-shrink:0;}
            .mr-team-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;flex:1;min-width:0;}
            .mr-team>img{display:none;}
            .form-dots{display:block;margin-left:18px;margin-top:1px;font-size:8px;letter-spacing:1px;white-space:nowrap;}
            .mr-score{width:24px!important;font-size:13px;}
            .mr-time{width:36px!important;font-size:10px;}
            .mr-teams{flex:1!important;min-width:0!important;padding:0 3px;overflow:hidden;}
            .mr-odds{gap:1px!important;}
            .odd-btn{min-width:38px!important;}
            .league-header{font-size:13px;padding:8px;gap:6px;}
            .league-header img{width:16px;height:16px;}
            
            /* Odds +20% */
            .mr-odds{gap:2px;}
            .odd-btn{min-width:43px;height:36px;padding:2px;border-radius:4px;}
            .odd-btn .odd-label{font-size:9px;}
            .odd-btn .odd-val{font-size:12px;}
            .odd-btn .odd-label{display:block;font-size:8px;color:var(--text-muted);font-weight:600;}
            .odds-header{display:none;}
            
            /* Cards & boxes */
            .stat-box,.card,.panel,.glass-card{padding:10px;border-radius:8px;}
            
            /* Tables */
            table{font-size:12px;}
            th,td{padding:6px 4px;}
            
            /* Forms */
            input,select,textarea{font-size:16px!important;} /* Prevent iOS zoom */
            
            /* Grids */
            .two-col,.three-col,.grid-2,.grid-3,.grid-4,
            [style*="grid-template-columns"]{
                grid-template-columns:1fr!important;
            }
            .stats-grid,.grid{grid-template-columns:repeat(2,1fr)!important;}
            
            /* Flex wrapping */
            .flex-row,.flex,.row,[style*="display:flex"][style*="gap"]{
                flex-wrap:wrap;
            }
            
            /* Match detail page */
            .match-header{flex-direction:column;text-align:center;gap:8px;}
            .match-header .team-logo{width:48px;height:48px;}
            .match-header .team-name{font-size:16px;}
            .match-header .score{font-size:32px;}
            
            /* Analysis sections */
            .analysis-section,.section{padding:10px;margin:8px 0;}
            h2{font-size:18px;}
            h3{font-size:15px;}
            
            /* Chat panel */
            
            /* Scrollable overflow for wide content */
            pre,code,.code-block{overflow-x:auto;max-width:100%;font-size:12px;}
            
            /* Pressure/Live page */
            .pressure-card{padding:10px;}
            .pressure-bar{height:20px;}
            
            /* Bankroll */
            .bankroll-chart{height:200px!important;}
            
            /* Settings */
            .settings-section{padding:10px;}
            
            /* Spacer adjustment */
            div[style*="height:120px"]{height:80px!important;}
            
            /* Hide non-essential on mobile */
            .desktop-only{display:none!important;}
            
            /* Form factor */
            .form-dots{font-size:7px;letter-spacing:0.8px;}
            .mr-referee{display:none;}
            
            /* BF indicator */
            .mr-bf{width:22px;height:22px;font-size:10px;}

            /* Pitch formation — mobile containment */
            .pitch-desktop-wrapper .pitch-field{min-height:280px;padding:6px 2px;}
            .pitch-desktop-wrapper .pitch-half{padding:0 1px;}
            .pitch-desktop-wrapper .pitch-player{width:clamp(30px, 9vw, 52px);}
            .pitch-desktop-wrapper .pitch-player .p-number{width:clamp(24px, 7.5vw, 40px);height:clamp(24px, 7.5vw, 40px);font-size:clamp(9px, 2.8vw, 13px);}
            .pitch-desktop-wrapper .pitch-player .p-photo{width:clamp(26px, 8.5vw, 44px);height:clamp(26px, 8.5vw, 44px);}
            .pitch-desktop-wrapper .pitch-player .p-name{font-size:clamp(6px, 1.8vw, 8px);}
            .formation-label{font-size:clamp(9px, 2.2vw, 11px);padding:4px 6px;}
        }
        
        @media(max-width:480px){
            /* Tab bar: font e padding ridotti per stare tutti nella larghezza */
            .detail-tab{font-size:11px;padding:10px 8px;}
        }
        @media(max-width:420px){
            /* Ultra-small header */
            .logo-text{font-size:clamp(15px, 5vw, 22px)!important;letter-spacing:2px!important;max-width:calc(100vw - 60px);}
            .logo img{height:auto;width:100%;max-width:400px;}
            .credit-pill{font-size:9px;padding:2px 6px;}
            /* Tab bar ancora più compatto */
            .detail-tab{font-size:10px;padding:9px 6px;}
            /* Pitch players fallback for desktop view */
            .pitch-desktop-wrapper .pitch-player{width:clamp(28px, 8vw, 44px);}
            .pitch-desktop-wrapper .pitch-player .p-number{width:clamp(22px, 7vw, 36px);height:clamp(22px, 7vw, 36px);font-size:clamp(8px, 2.5vw, 12px);}
            .pitch-desktop-wrapper .pitch-player .p-photo{width:clamp(24px, 8vw, 40px);height:clamp(24px, 8vw, 40px);}
            .pitch-desktop-wrapper .pitch-player .p-name{font-size:clamp(6px, 1.8vw, 8px);}
            /* Formation label: no wrap */
            .formation-label{font-size:9px;padding:4px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        }
        @media(max-width:360px){
            .nav-item span:not(.nav-icon){font-size:8px;}
            .mr-team{font-size:11px;}
            .mr-time{width:34px;font-size:10px;}
            .mr-score{font-size:12px;width:24px;}
            .stat-box .stat-value{font-size:18px;}
        }
    
        /* Desktop bottom nav fix */
        @media(min-width:769px){
            .bottom-nav-inner{
                max-width:100%;
                padding: 8px 32px;
            }
            .nav-item{
                font-size:13px;
                padding:10px 16px 8px;
                min-width:70px;
            }
            .nav-item .nav-icon{
                font-size:22px;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           MOBILE GLOBAL RESPONSIVE  (≤767px portrait + landscape)
           ═══════════════════════════════════════════════════════════ */
        @media(max-width:767px){
            /* Container */
            .container{padding:0 8px;}
            body{padding-bottom:140px;}

            /* Match row più compatto */
            .match-row{padding:8px 10px;gap:4px;}
            .mr-teams{font-size:12px;padding:0 4px;}
            .mr-team{font-size:12px;max-width:100px;}
            .mr-time{width:40px;font-size:11px;}

            /* Odds badge */
            .odds-badge{font-size:10px;padding:2px 5px;}

            /* League header */
            .league-header{padding:10px 12px;}
            .league-name{font-size:13px;}

            /* Stats box */
            .stat-box .stat-value{font-size:20px;}

            /* Table responsive scroll */
            table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;}

            /* Card grid: forza 1 colonna */
            .card-grid,.team-grid,[class*="grid-"]{grid-template-columns:1fr!important;}

            /* Hot picks: full width su mobile */
            .hot-pick-card{border-radius:12px;margin-bottom:10px;}

            /* Score / prediction badges */
            .score-badge{font-size:14px;padding:4px 8px;}

            /* Sticky date selector */
            .date-pill{font-size:11px;padding:4px 10px;}
        }

        /* ═══ Portrait only (<=480px) ═══ */
        @media(max-width:480px) and (orientation:portrait){
            .mr-team{max-width:80px;font-size:11px;}
            .mr-score{font-size:11px;width:22px;}
            .container{padding:0 6px;}
        }

        /* ═══ Landscape smartphone (height<=430px) ═══ */
        @media(max-height:430px) and (orientation:landscape){
            body{padding-bottom:60px;}
            .bottom-nav{padding:0 env(safe-area-inset-bottom,0);}
            .bottom-nav-inner{padding:4px 8px;}
            .nav-item{padding:6px 8px 4px;gap:1px;}
            .nav-item .nav-icon{font-size:16px;}
            .nav-item span:not(.nav-icon){font-size:9px;}
            .top-bar{padding:4px 0;}
            .logo-text{font-size:clamp(16px,5vw,24px)!important;}
            .container{padding:0 12px;}
        }

.restricted{display:none!important}

        /* ACCORDION CSS */
        .nav-accordion { display: flex; flex-direction: column; width: 100%; }
        .accordion-toggle { cursor: pointer; user-select: none; }
        .accordion-arrow { margin-left: auto; font-size: 10px; transition: transform 0.3s; color: var(--text-muted); }
        .nav-accordion.open > .accordion-toggle .accordion-arrow { transform: rotate(180deg); color: var(--gold); }
        
        .accordion-content {
            display: none;
            flex-direction: column;
            padding-left: 14px;
            border-left: 1px solid var(--border);
            margin-left: 20px;
            margin-top: 4px;
            margin-bottom: 4px;
        }
        .nav-accordion.open > .accordion-content { display: flex; }
        
        .accordion-group-title {
            font-size: 10px;
            text-transform: uppercase;
            color: var(--gold);
            margin-top: 12px;
            margin-bottom: 6px;
            font-weight: 800;
            letter-spacing: 0.5px;
        }
        
        .nav-sub-item, .nav-sub-sub-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            border-radius: var(--radius-sm);
            transition: all 0.2s;
            cursor: pointer;
        }
        .nav-sub-item:hover, .nav-sub-sub-item:hover {
            color: #fff;
            background: rgba(255,255,255,0.05);
        }
        
        .league-ico { width: 18px; height: 18px; object-fit: contain; }
        .flag-ico { border-radius: 2px; }
        
        .nav-sub-accordion { display: flex; flex-direction: column; width: 100%; }
        .nav-sub-accordion.open > .sub-toggle .accordion-arrow { transform: rotate(180deg); }
        .nav-sub-accordion.open > .sub-content { display: flex; margin-left: 10px; padding-left: 10px; }
        
        @media (max-width: 768px) {
            /* On mobile, standard bottom nav won't support deep accordion well, 
               but we make it work inside the row if possible or absolute overlay */
            .nav-accordion { position: relative; }
            .accordion-content { 
                position: absolute; bottom: 100%; left: 0;
                background: var(--bg-card);
                border: 1px solid var(--border);
                box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
                width: 240px; max-height: 70vh; overflow-y: auto;
                margin: 0; border-radius: 12px 12px 0 0;
                padding: 12px; z-index: 1000;
            }
        }


/* ═══ FASE 2: GLOBAL MOBILE SAFETY RULES ═══ */
@media (max-width: 768px) {
    /* 1. Immagini e contenitori sicuri - eccetto icone e loghi con dimensioni fisse */
    img:not(.mb-c-img):not(.mobile-logo):not(.mr-team img):not(.mb-p-logo):not(.pitch-player img),
    video, canvas, iframe { max-width: 100% !important; height: auto; }
    
    /* 2. Nessuno scroll orizzontale del viewport principale */
    html, body { overflow-x: hidden !important; width: 100% !important; }
    
    /* 3. Padding laterali e safe area */
    body { padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px)) !important; }
    .bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
    .container { padding: 0 10px !important; }
    .card, .md-card, .md-glass { padding: 12px !important; }
    
    /* 4. Tappable targets base */
    .detail-tab, .nav-item, .league-header {
        min-height: 44px !important;
        display: flex;
        align-items: center;
    }
    
    /* 5. Griglie a 2 colonne passano a 1 colonna (escluse le probabilità 1X2 e classifiche) */
    .stats-2col, 
    [style*="grid-template-columns: 1fr 1fr"], 
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .handle-desk-txt { display: none !important; }
    .handle-mob-txt { display: inline-flex !important; align-items: center; gap: 5px; }

    /* 6. Match Detail: Navigazione a scomparsa sotto linguetta su Mobile */
    body.is-match-page {
        padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.is-match-page.nav-is-open {
        padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.is-match-page .bottom-nav {
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 500 !important;
    }
    body.is-match-page .bottom-nav.open,
    body.is-match-page.nav-is-open .bottom-nav {
        transform: translateY(0) !important;
    }
    body.is-match-page .sidebar-toggle-handle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 14px 14px 0 0 !important;
        padding: 6px 18px 4px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.4px !important;
        background: rgba(14, 18, 26, 0.96) !important;
        color: var(--gold) !important;
        border: 1px solid rgba(255, 215, 0, 0.5) !important;
        border-bottom: none !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 215, 0, 0.25) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        gap: 6px !important;
        z-index: 1005 !important;
        cursor: pointer;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease !important;
        user-select: none;
        white-space: nowrap;
    }
    body.is-match-page.nav-is-open .sidebar-toggle-handle {
        bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(22, 27, 34, 0.98) !important;
        border-color: #ffd700 !important;
        box-shadow: 0 -4px 22px rgba(255, 215, 0, 0.4) !important;
    }
    
    /* 6b. Tabelle responsive touch scroll */
    .table-responsive, .table-scroll {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        margin-bottom: 12px;
    }
    .table-responsive > table,
    .table-scroll > table,
    table.table-wide {
        width: 100% !important;
        min-width: 580px !important;
    }
    [style*="min-width:320px"], 
    [style*="min-width:340px"], 
    [style*="min-width: 320px"], 
    [style*="min-width: 340px"] {
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 7. Pitch Formazioni Mobile */
    .pitch-player { width: 44px !important; margin: 0 !important; }
    .pitch-player .p-photo { width: 36px !important; height: 36px !important; border-width: 1.5px !important; }
    .pitch-player .p-name { 
        font-size: 10px !important; 
        line-height: 1.1 !important; 
        max-width: 50px !important; 
        margin: 2px auto 0 !important; 
        white-space: normal !important; 
        word-break: break-word !important; 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical; 
        overflow: hidden; 
    }
}


/* Cards Heat Drawer */
#cards-heat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#cards-heat-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

#cards-heat-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    background: #0d1117;
    border-top: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 215, 0, 0.12);
    z-index: 99995;
    padding: 10px 18px 24px 18px;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    #cards-heat-drawer {
        left: 50%;
        right: auto;
        width: 480px;
        max-width: 92vw;
        border: 1px solid rgba(255, 215, 0, 0.35);
        border-radius: 18px;
        bottom: 24px;
        transform: translate(-50%, calc(100% + 40px));
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 215, 0, 0.15);
    }
    #cards-heat-drawer.open {
        transform: translate(-50%, 0) !important;
    }
}

#cards-heat-drawer.open {
    transform: translateY(0);
}

.ch-drag-handle {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 4px auto 12px auto;
    cursor: pointer;
}

.ch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.ch-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ch-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold, #FFD700);
}
.ch-badge-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.ch-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}
.ch-close-btn:hover, .ch-close-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.ch-match-info {
    margin-bottom: 14px;
}
.ch-teams {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}
.ch-meta-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.ch-hero {
    background: linear-gradient(135deg, rgba(20, 22, 32, 0.95), rgba(12, 14, 20, 0.95));
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.ch-hero.hero-red {
    border-color: rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(20, 15, 20, 0.95));
    box-shadow: inset 0 0 16px rgba(239, 68, 68, 0.12);
}
.ch-hero.hero-yellow {
    border-color: rgba(234, 179, 8, 0.45);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), rgba(20, 20, 15, 0.95));
    box-shadow: inset 0 0 16px rgba(234, 179, 8, 0.12);
}
.ch-hero.hero-neutral {
    border-color: rgba(148, 163, 184, 0.25);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(15, 18, 25, 0.95));
}

.ch-hero-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}
.ch-hero-num-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ch-hero-num {
    font-size: 26px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1;
}
.ch-hero-unit {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}
.ch-tag-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ch-hero-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.ch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.ch-card-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px 11px;
}
.ch-stat-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}
.ch-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.85);
}
.ch-stat-val {
    font-weight: 700;
    color: #fff;
}
.ch-stat-big {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ch-stat-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.ch-probs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.ch-probs-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold, #FFD700);
    margin-bottom: 8px;
}
.ch-prob-item {
    margin-top: 6px;
}
.ch-prob-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
}
.ch-prob-pct {
    font-weight: 800;
    color: #fff;
}
.ch-prob-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.ch-prob-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #eab308, #ef4444);
    transition: width 0.4s ease;
}

.ch-actions {
    margin-top: 4px;
}
.ch-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FF8F00);
    color: #000 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.ch-action-btn:hover, .ch-action-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #000 !important;
}

/* ── Dedicated Referee Official Profile Card ── */
.ch-ref-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 16px rgba(255, 215, 0, 0.04);
}
.ch-ref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.ch-ref-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ch-ref-avatar {
    font-size: 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ch-ref-meta {
    flex: 1;
    min-width: 0;
}
.ch-ref-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ch-ref-fullname {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ch-ref-sev-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1.5px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.ch-ref-sev-badge.sev-red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.ch-ref-sev-badge.sev-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.ch-ref-sev-badge.sev-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.ch-ref-sev-badge.sev-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.ch-ref-src-row {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ch-ref-check {
    color: #22c55e;
    font-weight: 800;
}
.ch-ref-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ch-ref-metric-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
}
.ch-ref-metric-lbl {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.ch-ref-metric-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MR.YELLOW STATS — LIVE CUSTOM ALERTS & WATCHLIST STYLES
   ═════════════════════════════════════════════════════════════════════════════ */
.mr-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-muted, #71717a);
    text-align: center;
    transition: all 0.25s ease;
    border-radius: 6px;
    user-select: none;
}
.mr-bell:hover {
    color: var(--gold, #ffd700);
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}
.mr-bell.active {
    color: var(--gold, #ffd700) !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    animation: bellGlow 2s ease-in-out infinite alternate;
}
@keyframes bellGlow {
    0% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)); transform: scale(1.08); }
}

/* Pulsating row on alert */
.match-row.live-alert-pulse, .card.live-alert-pulse {
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.45) !important;
    animation: rowPulse 1.2s ease-in-out infinite alternate;
}
@keyframes rowPulse {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 0 0 26px rgba(255, 215, 0, 0.6); }
}

/* Modal Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 5, 8, 0.88);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    animation: alertOverlayFade 0.25s ease;
}
.custom-alert-overlay.active {
    display: flex;
}
@keyframes alertOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Card */
.custom-alert-card {
    background: linear-gradient(180deg, #0e131f 0%, #060911 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 215, 0, 0.12);
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Inter', sans-serif;
    animation: alertCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes alertCardPop {
    from { transform: scale(0.92) translateY(16px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.custom-alert-card::before {
    content: '';
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 70%);
    pointer-events: none;
}
.custom-alert-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 2;
}
.custom-alert-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.custom-alert-header {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.alert-icon-wrap {
    font-size: 28px;
    margin-bottom: 4px;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}
.custom-alert-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: #fff;
    letter-spacing: -0.3px;
}
.custom-alert-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 3px 0 0;
    font-weight: 500;
}

/* Quick Preset Chips */
.alert-presets-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
    flex-shrink: 0;
    scrollbar-width: none;
}
.alert-presets-bar::-webkit-scrollbar {
    display: none;
}
.preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.preset-chip:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}
.preset-chip.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

/* Scrollable Form Body */
.custom-alert-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.custom-alert-scroll::-webkit-scrollbar {
    width: 5px;
}
.custom-alert-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

/* Categorized Section */
.alert-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.alert-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold, #ffd700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
    margin-bottom: 2px;
}

/* Hero Special Option (Single Shots on Target with Player) */
.alert-hero-option {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
}
.alert-hero-option:hover {
    border-color: #ffd700;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.25);
}
.alert-badge-top {
    background: #ffd700;
    color: #000;
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Option Rows */
.custom-alert-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.alert-option-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}
.alert-option-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}
.alert-option-row.option-stack {
    flex-direction: column;
    align-items: flex-start;
}
.opt-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.opt-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
}
.opt-desc {
    font-size: 11px;
    color: #64748b;
}

/* iOS-Style Custom Switch */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.custom-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.custom-switch input:checked + .slider {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
}
.custom-switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Segmented Pill Group */
.pill-group {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}
.pill-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.pill-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.pill-btn.selected {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
}

/* Action Buttons */
.custom-alert-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}
.btn-save-alert {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    transition: all 0.2s ease;
}
.btn-save-alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}
.btn-remove-alert {
    width: 100%;
    padding: 11px 16px;
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-remove-alert:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

/* Luxury Toast Banner */
.live-custom-alert-toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000000;
    background: rgba(8, 11, 18, 0.96);
    border: 2px solid rgba(255, 215, 0, 0.75);
    border-radius: 20px;
    padding: 14px 22px;
    min-width: 300px;
    max-width: 92vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(16px);
    cursor: pointer;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    user-select: none;
}
.live-custom-alert-toast.show {
    top: 18px;
}
.toast-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.toast-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.5px;
}
.toast-close {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.toast-match {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}
.toast-player-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 3px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 6px 12px;
}
.toast-player-name {
    font-family: 'Montserrat', sans-serif;
    color: #ffd700;
    font-weight: 900;
    letter-spacing: -0.2px;
}
.toast-player-team {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}
.toast-detail {
    font-size: 12px;
    color: #94a3b8;
}

/* Floating Watchlist Pill */
.watchlist-floating-pill {
    position: fixed;
    bottom: calc(68px + env(safe-area-inset-bottom));
    right: 16px;
    z-index: 185;
    background: rgba(10, 14, 22, 0.92);
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    border-radius: 24px;
    padding: 8px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    user-select: none;
}
.watchlist-floating-pill:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}
.watchlist-floating-pill .w-bell {
    font-size: 14px;
    animation: bellFloat 1.8s ease-in-out infinite;
}
@keyframes bellFloat {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(8deg); }
}
.watchlist-floating-pill .w-text {
    font-size: 11.5px;
    font-weight: 800;
    color: #f1f5f9;
}
.watchlist-floating-pill .w-count {
    background: #ffd700;
    color: #000;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 900;
}

/* Drawer / Watchlist List Modal */
.drawer-card {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.drawer-content-list {
    overflow-y: auto;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}
.drawer-match-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 12px 14px;
}
.drawer-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.drawer-match-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}
.drawer-match-actions {
    display: flex;
    gap: 6px;
}
.drawer-btn-edit, .drawer-btn-del {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.drawer-btn-del:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}
.drawer-rules-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.rule-tag {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #fef08a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}
.btn-clear-all {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.btn-clear-all:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Custom Alert Mini Toast */
.custom-alert-mini-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 19, 31, 0.95);
    border: 1px solid #ffd700;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    z-index: 1000001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.25);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .custom-alert-card {
        padding: 22px 16px 18px;
        border-radius: 20px;
    }
    .custom-alert-heading {
        font-size: 17px;
    }
    .pill-btn {
        padding: 6px 4px;
        font-size: 11px;
    }
    .watchlist-floating-pill {
        bottom: calc(64px + env(safe-area-inset-bottom));
        right: 12px;
        padding: 6px 12px;
    }
}

