        :root {
            /* Colori Premium Dark Mode - Deep Space Upgrade */
            --bg-body: #05070a;
            --bg-panel: rgba(13, 20, 28, 0.7);
            --bg-panel-inner: rgba(18, 28, 38, 0.6);
            --accent-color: #00f2fe;
            --accent-glow: rgba(0, 242, 254, 0.3);
            --accent-secondary: #4facfe;
            --om-teal: #13a89e;
            --om-red: #e31b23;
            --om-gold: #fadb5f;
            --text-primary: #ffffff;
            --text-secondary: #a3b8cc;
            --text-muted: #64748b;

            /* Font System */
            --font-main: 'Outfit', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;

            /* Colori Funzionali */
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --live-color: #ff3b30;

            /* Effetti Glassmorphism */
            --glass-border: 1px solid rgba(255, 255, 255, 0.08);
            --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
        }

        .match-card {
            background: var(--bg-panel);
            border: var(--glass-border);
            border-radius: 16px;
            padding: 16px;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-height: 320px;
        }

        #matches-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        @media (max-width: 1400px) {
            #matches-grid { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 1100px) {
            #matches-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            #matches-grid { grid-template-columns: 1fr; }
        }

        .match-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(0, 242, 254, 0.4);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.1);
        }

        @keyframes lab-pulse {
            0% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
            100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.4); }
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-primary);
            font-family: var(--font-main);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background-image:
                radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.05) 0%, transparent 40%),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
            background-attachment: fixed;
            -webkit-font-smoothing: antialiased;
        }

        * {
            box-sizing: border-box;
        }

        /* Layout Grid */
        .app-container {
            display: grid;
            grid-template-columns: 280px 1fr;
            min-height: 100vh;
        }

        /* Sidebar Styling */
        .sidebar {
            background: linear-gradient(180deg, rgba(16, 16, 24, 0.95) 0%, rgba(10, 10, 15, 0.95) 100%);
            border-right: var(--glass-border);
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 0;
            height: 100vh;
            z-index: 10;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 48px;
        }

        .logo-icon {
            font-size: 22px;
            color: var(--accent-color);
            filter: drop-shadow(0 0 6px var(--accent-glow));
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.5px;
        }

        .hud-status-badge {
            font-size: 8px;
            background: var(--accent-color);
            color: #000;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 900;
            margin-left: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .highlight {
            color: var(--accent-color);
        }

        .nav-menu {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-grow: 1;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 18px;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .nav-link i {
            font-size: 18px;
            width: 20px;
            text-align: center;
        }

        .nav-link:hover {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(8px);
            box-shadow: -4px 0 15px rgba(0, 242, 254, 0.1);
        }

        .nav-link.active {
            color: var(--bg-body);
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
            box-shadow: 0 4px 15px var(--accent-glow);
        }

        /* Widgets */
        .glass-panel-inner {
            background: var(--bg-panel-inner);
            border: var(--glass-border);
            border-radius: 16px;
            padding: 20px;
        }

        .bankroll-widget {
            margin-top: auto;
        }

        .widget-title {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            margin: 0 0 16px 0;
            font-weight: 600;
        }

        .stake-levels {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* Badges */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .badge-low {
            background: rgba(16, 185, 129, 0.15);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .badge-mid {
            background: rgba(245, 158, 11, 0.15);
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .badge-high {
            background: rgba(239, 68, 68, 0.15);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        /* Main Content Area */
        .main-content {
            padding: 40px 48px;
            height: 100vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--bg-panel-inner) transparent;
        }

        .main-content::-webkit-scrollbar {
            width: 8px;
        }

        .main-content::-webkit-scrollbar-thumb {
            background: var(--bg-panel-inner);
            border-radius: 4px;
        }

        .top-header {
            display: flex;
            justify-content: center; /* Centra il titolo */
            align-items: center;
            margin-bottom: 40px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .page-title {
            font-size: 38px;
            font-weight: 800;
            margin: 0;
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }
        .page-title::after {
            display: none;
        }

        .page-subtitle {
            display: none; /* Rimosso dalla testata, ora in sidebar */
        }

        /* Nuovi stili Sidebar Info */
        .sidebar-info {
            margin: -24px 0 32px 0;
            padding: 0 4px;
        }
        .software-version {
            font-size: 10px;
            color: var(--text-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            display: block;
            margin-bottom: 4px;
        }
        .current-date {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            display: block;
        }

        /* Sidebar Actions */
        .sidebar-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 32px;
        }
        
        .sidebar-btn {
            width: 100%;
            justify-content: flex-start !important;
            padding: 12px 16px !important;
            border-radius: 12px !important;
        }

        #scraper-status-sidebar {
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 12px;
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        #scraper-status-sidebar:hover {
            background: rgba(255,255,255,0.05);
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--bg-panel-inner) 0%, rgba(255, 255, 255, 0.05) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            border: var(--glass-border);
            color: var(--accent-color);
            font-size: 18px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .avatar:hover {
            box-shadow: 0 0 20px var(--accent-glow);
            transform: scale(1.05);
        }

        @keyframes pulseValue {
            0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255,234,0,0.4); }
            50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,234,0,0.6); }
            100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255,234,0,0.4); }
        }

        #matches-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        @media (max-width: 1200px) {
            #matches-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            #matches-grid { grid-template-columns: 1fr; }
        }

        /* 📡 HUD ACTIVITY MONITOR & ANIMATIONS */
        .hud-activity-monitor {
            margin-top: 10px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-mono);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        .activity-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        /* States */
        .hud-idle .activity-dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
        .hud-fetching .activity-dot { 
            background: var(--warning); 
            box-shadow: 0 0 15px var(--warning); 
            animation: hud-blink 0.6s infinite; 
        }
        .hud-syncing .activity-dot { 
            background: var(--accent-color); 
            box-shadow: 0 0 15px var(--accent-color); 
            animation: hud-blink 1s infinite; 
        }
        .hud-error .activity-dot { background: var(--danger); box-shadow: 0 0 15px var(--danger); }

        .hud-fetching .activity-label { color: var(--warning); }
        .hud-syncing .activity-label { color: var(--accent-color); }
        .hud-error .activity-label { color: var(--danger); }

        @keyframes hud-blink {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes hud-pulse {
            0% { box-shadow: 0 0 10px var(--accent-glow); opacity: 0.8; }
            50% { box-shadow: 0 0 25px var(--accent-glow); opacity: 1; }
            100% { box-shadow: 0 0 10px var(--accent-glow); opacity: 0.8; }
        }


        .match-card:hover {
            transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
            border-color: rgba(0, 242, 254, 0.4);
        }

        /* Laser Border Effect */
        .match-card::after {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent 25%);
            animation: laserRotate 4s linear infinite;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: -1;
        }

        .match-card:hover::after {
            opacity: 0.15;
        }

        @keyframes laserRotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .match-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            opacity: 0.3;
            transition: all 0.3s ease;
        }

        .match-card:hover::before {
            opacity: 1;
            height: 6px;
            box-shadow: 0 0 15px var(--accent-color);
        }

        .match-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px; /* Aumentato da 8px */
        }

        .date-pill {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(0, 242, 254, 0.1);
            border: 1px solid rgba(0, 242, 254, 0.2);
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 700;
            color: var(--accent-color);
            margin: 0 auto 15px auto;
            width: fit-content;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .date-pill i {
            color: var(--om-teal);
            font-size: 10px;
        }

        .competition {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
        }

        .match-time {
            font-size: 13px;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.3);
            padding: 4px 10px;
            border-radius: 12px;
        }

        .match-time-live {
            color: #fff;
            background: rgba(245, 158, 11, 0.2);
            border: 1px solid rgba(245, 158, 11, 0.3);
            font-size: 13px;
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .match-time-finished {
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 13px;
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: 600;
        }

        .live-pulse {
            width: 4px;
            height: 4px;
            background-color: var(--warning);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 5px var(--warning);
            animation: pulse-yellow 1.5s infinite;
        }

        @keyframes pulse-yellow {
            0% {
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
            }
        }

        .ft-pulse {
            width: 4px;
            height: 4px;
            background-color: var(--live-color);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 5px var(--live-color);
            animation: pulse-red 1.5s infinite;
            margin-right: 4px;
            vertical-align: middle;
        }

        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
            }
        }

        .teams-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            position: relative;
            width: 100%;
        }

        .team {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            width: 35%;
        }

        .team-logo {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: var(--text-muted);
            overflow: hidden;
            padding: 6px; /* Aggiunto padding per non far toccare i bordi */
        }

        .team-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary) !important; /* Forza colore originale bianco */
            text-align: center;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            width: 100%;
            margin-top: 4px;
        }

        .vs {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.3);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .score {
            font-size: 18px;
            font-weight: 900;
            color: #0c0f16;
            background: #00f2fe;
            padding: 6px 18px;
            border-radius: 14px;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.5px;
            min-width: 65px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .score-display {
            background: rgba(0, 242, 254, 0.05);
            border: 1.5px solid rgba(0, 242, 254, 0.3);
            color: #00f2fe;
            padding: 8px 15px; /* Rettificata per font mono */
            border-radius: 12px;
            font-weight: 700;
            font-size: 20px;
            font-family: var(--font-mono);
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 90px;
            backdrop-filter: blur(10px);
            box-shadow: 
                inset 0 0 15px rgba(0, 242, 254, 0.1),
                0 4px 15px rgba(0, 0, 0, 0.3);
            text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
            transition: all 0.3s ease;
        }

        .score-display:hover {
            background: rgba(0, 242, 254, 0.1);
            border-color: rgba(0, 242, 254, 0.5);
            box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
            transform: scale(1.05);
        }

        .status-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 9px;
            font-weight: 900;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: center; /* Centratura aggiunta */
            gap: 5px;
            letter-spacing: 0.5px;
            min-width: 40px; /* Assicura una larghezza minima per la coerenza visiva */
        }

        .status-badge.live { background: #FFD600; color: #000; }
        .status-badge.ht { background: #FFD600; color: #000; }
        .status-badge.ft { background: #ef4444; color: #fff; }
        .status-badge.pst { background: rgba(255,255,255,0.1); color: #ddd; border: 1px solid rgba(255,255,255,0.1); }

        .status-dot {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            margin-top: -1px;
        }
        .status-badge.live .status-dot { background: #000; animation: lab-blink 1s infinite; }
        .status-badge.ft .status-dot { background: #fff; }

        /* Lab Status Dot */
        .lab-status-dot {
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            margin-right: 8px;
            vertical-align: middle;
        }
        .status-api { background: var(--success); box-shadow: 0 0 6px var(--success); }
        .status-cache { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

        .predictions-title {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            margin: 20px 0 12px 0;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .prediction-item {
            background: var(--bg-panel-inner);
            border: var(--glass-border);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 8px;
            transition: background 0.2s ease;
        }

        .prediction-item:last-child {
            margin-bottom: 0;
        }

        .prediction-item:hover {
            background: rgba(40, 40, 55, 0.8);
        }

        .pred-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pred-text {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .pred-text strong {
            color: var(--text-primary);
            font-weight: 700;
            margin-left: 6px;
            font-size: 16px;
            font-family: var(--font-mono);
            letter-spacing: 0.5px;
        }

        .btn-excel {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: var(--success);
            padding: 6px 12px;
            border-radius: 8px;
            font-family: var(--font-main);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .btn-excel:hover {
            background: rgba(16, 185, 129, 0.2);
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
            transform: translateY(-3px) scale(1.02);
        }

        /* Telemetry & HUD Elements */
        .telemetry-row {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin: 15px 0;
        }
        .telemetry-item {
            flex: 1;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 8px;
            padding: 8px;
            text-align: center;
        }
        .telemetry-label {
            font-size: 8px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        .telemetry-value {
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-primary);
            font-weight: 700;
        }
        .power-bar-bg {
            height: 3px;
            background: rgba(255,255,255,0.1);
            border-radius: 2px;
            margin-top: 6px;
            overflow: hidden;
        }
        .power-bar-fill {
            height: 100%;
            background: var(--accent-color);
            box-shadow: 0 0 10px var(--accent-glow);
        }

        .confidence-meter-container {
            margin-top: 15px;
            padding: 10px;
            background: rgba(0,242,254,0.03);
            border-radius: 12px;
            border: 1px solid rgba(0,242,254,0.1);
        }
        .meter-label {
            font-size: 9px;
            color: var(--accent-color);
            letter-spacing: 1.5px;
            font-weight: 700;
            margin-bottom: 8px;
            text-align: center;
            text-transform: uppercase;
        }
        .meter-segments {
            display: flex;
            gap: 4px;
        }
        .meter-seg {
            height: 4px;
            flex: 1;
            background: rgba(255,255,255,0.05);
            border-radius: 1px;
        }
        .meter-seg.active {
            background: var(--accent-color);
            box-shadow: 0 0 8px var(--accent-glow);
        }

        /* Data Coverage Signal (GSM Style) */
        .signal-bars {
            display: inline-flex;
            align-items: flex-end;
            gap: 2px;
            margin-left: 10px;
            height: 12px;
            vertical-align: middle;
        }
        .signal-bars .bar {
            width: 3px;
            border-radius: 1px;
            background: rgba(255, 255, 255, 0.05); /* Spenta di base */
            transition: all 0.3s ease;
        }
        .signal-bars .bar:nth-child(1) { height: 5px; }
        .signal-bars .bar:nth-child(2) { height: 8px; }
        .signal-bars .bar:nth-child(3) { height: 11px; }

        /* Colori e Glow delle tacche */
        .signal-bars.green .bar { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
        
        .signal-bars.orange .bar:nth-child(1), 
        .signal-bars.orange .bar:nth-child(2) { background: #fb923c; box-shadow: 0 0 8px rgba(251, 146, 60, 0.6); }
        .signal-bars.orange .bar:nth-child(3) { background: rgba(255, 255, 255, 0.05); box-shadow: none; }

        .signal-bars.red .bar:nth-child(1) { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
        .signal-bars.red .bar:nth-child(2),
        .signal-bars.red .bar:nth-child(3) { background: rgba(255, 255, 255, 0.05); box-shadow: none; }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        /* Responsive originali rimossi per nuova implementazione PC-Safe in fondo al file */

        /* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
           LABORATORIO ANALISI AVANZATA (FUTURISTICO HUD)
           Creato il: 2026-03-14 - Versione 1.0 (BLINDATA)
           Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
        /* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
           LABORATORIO ANALISI AVANZATA (v1.1 FULL-SCREEN)
           Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
        .lab-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(2, 5, 10, 0.9);
            backdrop-filter: blur(15px);
            z-index: 10000;
            display: none; /* Attivato via JS */
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: overlayFade 0.4s ease forwards;
        }

        .lab-overlay.active { display: flex; }

        @keyframes overlayFade {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .lab-modal {
            width: 100%;
            max-width: 950px;
            height: 90vh;
            background: linear-gradient(145deg, rgba(10, 15, 25, 0.9) 0%, rgba(5, 8, 15, 0.98) 100%);
            border: 1.5px solid var(--accent-color);
            border-radius: 24px;
            position: relative;
            box-shadow: 0 0 60px rgba(0, 242, 254, 0.2), inset 0 0 40px rgba(0,0,0,0.8);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: modalEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            background-image: 
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
        }

        /* Scanline Animation */
        .lab-modal::before {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
            background-size: 100% 4px, 100% 100%;
            pointer-events: none;
            z-index: 10;
            opacity: 0.6;
        }

        /* Laser Line Scan */
        .lab-laser-line {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
            box-shadow: 0 0 15px var(--accent-color);
            z-index: 11;
            pointer-events: none;
            animation: laserScan 4s linear infinite;
            opacity: 0.5;
        }

        @keyframes laserScan {
            0% { top: 0%; opacity: 0; }
            5% { opacity: 0.5; }
            95% { opacity: 0.5; }
            100% { top: 100%; opacity: 0; }
        }

        @keyframes modalEntry {
            from { transform: scale(0.9) translateY(30px); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }

        .lab-modal-header {
            padding: 25px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255,255,255,0.02);
        }

        .lab-modal-title {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .lab-modal-title i {
            font-size: 24px;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-glow);
        }

        .lab-modal-title h2 {
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 0;
        }

        .lab-close-btn {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lab-close-btn:hover {
            background: #ef4444;
            color: white;
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
        }

        .lab-modal-body {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            position: relative;
        }

        .lab-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding-bottom: 15px;
        }

        .lab-tab {
            padding: 10px 24px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .lab-tab.active {
            color: var(--accent-color);
            background: rgba(0, 242, 254, 0.05);
            border-color: rgba(0, 242, 254, 0.4);
            box-shadow: 0 0 20px var(--accent-glow);
        }

        .lab-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 10px;
        }

        .lab-table th {
            text-align: left;
            color: var(--text-muted);
            padding: 0 15px;
            text-transform: uppercase;
            font-size: 10px;
            letter-spacing: 1.5px;
        }

        .lab-table td {
            background: rgba(255,255,255,0.02);
            padding: 16px 15px;
            border-top: 1px solid rgba(255,255,255,0.03);
            border-bottom: 1px solid rgba(255,255,255,0.03);
            font-size: 13px;
            transition: all 0.2s;
        }

        .lab-table tr:hover td {
            background: rgba(255,255,255,0.05);
            color: white;
        }

        .lab-table td:first-child { border-radius: 12px 0 0 12px; border-left: 1px solid rgba(255,255,255,0.03); }
        .lab-table td:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid rgba(255,255,255,0.03); }

        .dna-bar-container {
            width: 100%;
            height: 24px; /* Raddoppiato per leggibilità */
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            display: flex;
            overflow: hidden;
            margin: 15px 0 30px 0;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
        }

        .dna-segment {
            height: 100%;
            transition: width 1s ease-out;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 900;
            color: rgba(255,255,255,0.8);
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        }

        .dna-segment.home { background: #065f46; border-right: 1px solid rgba(255,255,255,0.1); }
        .dna-segment.draw { background: rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1); }
        .dna-segment.away { background: #92400e; } /* Oro più profondo */

        .hud-boot-loader {
            text-align: center;
            padding: 40px;
            color: var(--accent-color);
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 2px;
            font-size: 14px;
            text-transform: uppercase;
        }

        .hud-boot-loader i {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 0 0 20px var(--accent-glow);
        }

        .lab-table tr td:first-child { border-left: 1px solid rgba(255,255,255,0.05); border-radius: 12px 0 0 12px; }
        .lab-table tr td:last-child { border-right: 1px solid rgba(255,255,255,0.05); border-radius: 0 12px 12px 0; }

        .value-pill {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.4);
            padding: 6px 12px;
            border-radius: 6px;
            font-weight: 800;
            font-size: 11px;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
        }

        .lab-motivation {
            margin-top: 30px;
            padding: 25px;
            background: rgba(0, 242, 254, 0.04);
            border-left: 4px solid var(--accent-color);
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-secondary);
            font-style: italic;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
        }

        .lab-overlay::after {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
            background-size: 100% 4px, 4px 100%;
            pointer-events: none;
            z-index: 10001;
            opacity: 0.4;
        }

        .lab-loading {
            text-align: center;
            padding: 100px;
            color: var(--accent-color);
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* Status Dot v1.4 */
        .lab-status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 8px;
            vertical-align: middle;
            box-shadow: 0 0 10px rgba(255,255,255,0.2);
            animation: lab-blink 1.5s infinite ease-in-out;
        }
        .status-api { background-color: #f87171; box-shadow: 0 0 12px #f87171; }
        .status-cache { background-color: #10b981; box-shadow: 0 0 12px #10b981; }


        @keyframes lab-blink {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.8); }
        }

        /* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
           MOBILE & TABLET RESPONSIVE (PC-SAFE)
           Tutte le regole qui sotto si attivano solo su 
           schermi piccoli, garantendo stabilità su PC.
           Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

        /* Tablet & Piccoli Monitor (1024px) */
        @media (max-width: 1024px) {
            .app-container { grid-template-columns: 80px 1fr; }
            .logo-text, .nav-link span, .widget-title, .stake-levels, .sidebar-info { display: none; }
            .logo-container { justify-content: center; }
            .nav-link { justify-content: center; padding: 14px; }
            .nav-link i { font-size: 22px; margin: 0; }
        }


        /* Smartphone & Tablet Verticali (768px) */
        @media (max-width: 768px) {
            .app-container { display: flex; flex-direction: column; overflow-x: hidden; }
            .sidebar {
                position: fixed; bottom: 0; top: auto; height: 65px; width: 100%;
                flex-direction: row; padding: 0; border-right: none;
                border-top: var(--glass-border); z-index: 1000;
                background: rgba(10, 15, 28, 0.95);
                backdrop-filter: blur(20px);
                justify-content: flex-start;
                align-items: center;
            }
            .sidebar-actions { display: none !important; }
            .nav-menu { 
                flex-direction: row !important; 
                justify-content: flex-start !important; 
                width: 100%; 
                overflow-x: auto !important; 
                overflow-y: hidden;
                padding: 0 15px !important;
                gap: 5px !important;
                height: 100%;
                align-items: center;
                -webkit-overflow-scrolling: touch;
            }
            /* Nascondi scrollbar per pulizia visiva */
            .nav-menu::-webkit-scrollbar { display: none; }
            .nav-link { 
                flex-shrink: 0 !important; 
                padding: 10px 18px !important; 
                width: auto !important;
                height: auto;
                justify-content: center;
            }


            .main-content { padding: 10px 10px 80px 10px; width: 100%; box-sizing: border-box; }
            .page-title { font-size: 22px; text-align: center; margin-bottom: 15px; }
            .top-header { margin-bottom: 20px; padding-bottom: 10px; flex-direction: column; gap: 8px; }
            #matches-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
            
            /* Laboratorio Mobile */
            .lab-modal { 
                max-width: 100vw !important; width: 100vw !important; height: 100vh !important; 
                border-radius: 0 !important; border: none !important; 
                margin: 0 !important; left: 0 !important; top: 0 !important;
                position: fixed !important;
            }
            .lab-modal-body { 
                padding: 10px 8px !important; 
                overflow-x: auto !important; 
                max-width: 100vw !important;
                box-sizing: border-box !important;
                -webkit-overflow-scrolling: touch;
            }
            .lab-tabs { 
                gap: 6px; 
                overflow-x: auto; 
                padding-bottom: 5px; 
                flex-wrap: nowrap !important;
                -webkit-overflow-scrolling: touch;
            }
            .lab-tabs::-webkit-scrollbar { display: none; }
            .lab-tab { padding: 6px 10px; font-size: 9px; flex-shrink: 0; white-space: nowrap; }
            
            /* Trasformazione Tabelle Lab in Card Corretta */
            .lab-table { margin-bottom: 20px !important; width: 100% !important; border: none !important; border-collapse: separate !important; border-spacing: 0 8px !important; background: transparent !important; }
            .lab-table, .lab-table thead, .lab-table tbody, .lab-table th, .lab-table td, .lab-table tr { 
                display: block !important; width: 100% !important; box-sizing: border-box !important;
            }
            .lab-table thead { display: none !important; } 
            .lab-table tr { 
                margin-bottom: 15px !important; 
                border: 1px solid rgba(255,255,255,0.08) !important; 
                border-radius: 12px !important; 
                overflow: hidden !important; 
                background: rgba(255,255,255,0.03) !important; 
                box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
            }
            .lab-table td { 
                padding: 10px 14px !important; 
                position: relative; 
                border: none !important; 
                border-bottom: 1px solid rgba(255,255,255,0.04) !important;
                display: grid !important; 
                grid-template-columns: 1fr 1fr !important; 
                align-items: center !important;
                min-height: 40px;
            }
            .lab-table td:last-child { border-bottom: none !important; }
            
            .lab-table td::before {
                content: attr(data-label); 
                font-weight: 800; 
                font-size: 9px;
                color: var(--text-muted); 
                text-transform: uppercase; 
                text-align: left;
                letter-spacing: 0.5px;
                opacity: 0.7;
            }
            
            /* Dati allineati a destra in modo millimetrico */
            .lab-table td > * { 
                text-align: right !important; 
                justify-self: end !important;
                font-size: 11px !important; 
                font-weight: 700 !important;
                color: #ffffff !important;
                white-space: nowrap !important;
            }

            /* Fix per elementi larghi che causano scroll orizzontale */
            .dna-spectral-bar, .momentum-chart, .prob-comparison, .lab-modal-body > div { 
                width: 100% !important; 
                max-width: 100% !important; 
                box-sizing: border-box !important;
                overflow: hidden !important;
            }

            .main-content { overflow-x: hidden !important; }
            
            /* Fix specifici HUD */
            .lab-modal-header { padding: 18px !important; background: rgba(0,0,0,0.4) !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
            .lab-modal-title h2 { font-size: 12px !important; font-weight: 900 !important; letter-spacing: 1px; }
            
            /* Fix Badge SM in match cards per mobile */
            div[style*="position: absolute; right: 0; background:#ef4444;"] {
                position: static !important;
                margin-top: 5px !important;
                font-size: 7px !important;
            }
        }

        /* Smartphone Piccoli (< 480px) */
        @media (max-width: 480px) {
            .team-logo { width: 38px; height: 38px; }
            .team-name { font-size: 10px; }
            .score-display { min-width: 65px; font-size: 15px; padding: 4px 12px; }
            .match-card { min-height: 350px; padding: 15px; }
            .prediction-item { padding: 8px; }
            .pred-text strong { font-size: 12px; }
            .page-title { font-size: 22px; }
        }

        @keyframes hud-pulse {
            0%, 100% { opacity: 0.8; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.05); }
        }
        @keyframes power-flow {
            0% { stroke-dashoffset: 20; opacity: 0.4; }
            50% { opacity: 1; }
            100% { stroke-dashoffset: 0; opacity: 0.4; }
        }
        @keyframes lightning-flicker {
            0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.2; }
            20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 5px var(--accent-color)); }
        }

        /* Hide legacy loading message when boot HUD is active */
        body.loading-active #loading-msg {
            display: none !important;
        }

        /* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
            PREMIUM BOOT SEQUENCE (DEEP SPACE HUD)
            Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
        .boot-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: #05070a;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .boot-overlay.fade-out {
            opacity: 0;
            pointer-events: none;
            transform: scale(1.1);
            filter: blur(20px);
        }

        .radar-container {
            position: absolute;
            width: 600px; height: 600px;
            display: flex; align-items: center; justify-content: center;
            opacity: 0.4;
        }

        .radar-ring {
            position: absolute;
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            opacity: 0.8;
            box-shadow: 0 0 15px var(--accent-glow);
        }

        .r1 { width: 200px; height: 200px; animation: radar-pulse 4s ease-in-out infinite; }
        .r2 { width: 400px; height: 400px; animation: radar-pulse 4s ease-in-out infinite 1s; }
        .r3 { width: 600px; height: 600px; animation: radar-pulse 4s ease-in-out infinite 2s; }

        /* --- CRYSTAL PULSE DOTS (RADAR) --- */
.pulse-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 5px;
}
.pulse-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    animation: crystal-wave 1.4s infinite ease-in-out both;
    box-shadow: 0 0 5px var(--accent-glow);
}
.pulse-dots span:nth-child(1) { animation-delay: -0.32s; }
.pulse-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes crystal-wave {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

        @keyframes radar-pulse {
            0%, 100% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.05); opacity: 0.8; }
        }

        .radar-ping {
            position: absolute;
            width: 0; height: 0;
            border: 2px solid var(--accent-color);
            border-radius: 50%;
            animation: radar-ping 4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

        /* Nuovi stili per Error Reporting e Bypass */
        .boot-error-container {
            margin-top: 20px;
            padding: 12px 20px;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 8px;
            color: #f87171;
            font-size: 12px;
            max-width: 400px;
            text-align: center;
            display: none;
            animation: fadeIn 0.5s ease-out;
            z-index: 20001;
        }
        .boot-bypass-btn {
            margin-top: 15px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-secondary);
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            display: none;
            transition: all 0.2s ease;
        }
        .boot-bypass-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border-color: var(--accent-color);
        }

        .radar-scanner {
            position: absolute;
            width: 50%; height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-color));
            top: 50%; left: 50%;
            transform-origin: left center;
            z-index: 10;
            animation: radar-scan 4s linear infinite;
            filter: drop-shadow(0 0 10px var(--accent-color));
        }

        @keyframes radar-scan {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .radar-dot {
            position: absolute;
            width: 8px; height: 8px;
            background: var(--accent-color);
            border-radius: 50%;
            box-shadow: 0 0 15px var(--accent-color);
            z-index: 50;
            opacity: 0;
            animation: dot-ping 4s cubic-bezier(0, 0.2, 0.8, 1) forwards;
        }

        .radar-dot::after {
            content: "";
            position: absolute;
            top: 50%; left: 50%;
            width: 8px; height: 8px;
            border: 1.5px solid var(--accent-color);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            animation: sonar-ripple 4s cubic-bezier(0, 0.2, 0.8, 1) forwards;
        }

        @keyframes dot-ping {
            0% { opacity: 0; transform: scale(0.5); }
            10% { opacity: 1; transform: scale(1.2); }
            80% { opacity: 0.8; }
            100% { opacity: 0; transform: scale(1); filter: blur(4px); }
        }

        @keyframes sonar-ripple {
            0% { width: 8px; height: 8px; opacity: 1; }
            50% { width: 100px; height: 100px; opacity: 0.1; }
            100% { width: 150px; height: 150px; opacity: 0; }
        }

        @keyframes radar-ping {
            0% { width: 0; height: 0; opacity: 1; }
            100% { width: 800px; height: 800px; opacity: 0; }
        }

        .boot-content {
            position: relative; z-index: 2;
            display: flex; flex-direction: column; align-items: center; gap: 40px;
        }

        .boot-logo {
            display: flex; flex-direction: column; align-items: center; gap: 15px; position: relative;
        }

        .boot-logo .logo-icon {
            font-size: 64px; color: var(--accent-color);
            filter: drop-shadow(0 0 20px var(--accent-glow));
            animation: logo-float 3s ease-in-out infinite;
        }

        .boot-logo .logo-text { font-size: 42px; letter-spacing: 4px; margin: 0; }

        .logo-glow {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 150px; height: 150px;
            background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
            animation: logo-pulse 2s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        @keyframes logo-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; } }

        .boot-blips {
            height: 24px; font-family: var(--font-mono); font-size: 14px;
            color: var(--accent-color); letter-spacing: 2px;
            text-transform: uppercase; position: relative;
        }

        .blip-item {
            position: absolute; left: 50%; transform: translateX(-50%);
            white-space: nowrap; animation: blip-animate 0.8s ease-out forwards;
        }

        @keyframes blip-animate {
            0% { opacity: 0; transform: translate(-50%, 20px) scale(0.8); filter: blur(10px); }
            30% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
            100% { opacity: 0; transform: translate(-50%, -20px) scale(1.2); filter: blur(10px); }
        }

        .boot-status-hud { width: 300px; display: flex; flex-direction: column; gap: 12px; }
        .status-indicator { display: flex; align-items: center; gap: 12px; justify-content: center; }
        .status-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 1px; }

        .boot-progress-bar {
            width: 100%; height: 4px; background: rgba(255, 255, 255, 0.05);
            border-radius: 2px; overflow: hidden;
        }

        .progress-fill {
            width: 0%; height: 100%; background: var(--accent-color);
            box-shadow: 0 0 10px var(--accent-color);
            transition: width 0.3s ease;
        }

        .boot-blips { display: block; position: absolute; width: 600px; height: 600px; pointer-events: none; }
        .status-indicator { 
            display: flex; align-items: center; gap: 10px; justify-content: center; 
            margin-bottom: 20px; opacity: 0.8;
        }
        .status-dot { width: 8px; height: 8px; border-radius: 50%; }
        .status-cache { background: #10b981; box-shadow: 0 0 10px #10b981; }
        .status-api { background: #f43f5e; box-shadow: 0 0 10px #f43f5e; }
        .boot-footer { display: none; }
        .tech-id { display: none; }

/* ⚡ TACTICAL LIVE VFX (Step 10) */
.live-minute-container {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* Battito cardiaco del sistema accanto al minuto (Verde Tattico) */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #109a6a !important; /* Verde più scuro e riposante */
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 154, 106, 0.4);
    animation: rc-pulse 2s infinite;
}

@keyframes rc-pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px rgba(16, 154, 106, 0.4); }
    50% { transform: scale(1.5); opacity: 0.5; box-shadow: 0 0 12px rgba(16, 154, 106, 0.6); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px rgba(16, 154, 106, 0.4); }
}

/* Flash ORO quando cambia il risultato */
.goal-flash-gold {
    animation: gold-glow-flash 3s ease-out !important;
}

@keyframes gold-glow-flash {
    0% { background: rgba(245, 158, 11, 0.6) !important; box-shadow: 0 0 40px rgba(245, 158, 11, 1) !important; color: #fff !important; }
    20% { background: rgba(245, 158, 11, 0.3) !important; box-shadow: 0 0 25px rgba(245, 158, 11, 0.8) !important; }
    100% { background: rgba(0, 242, 254, 0.05); box-shadow: none; }
}

/* Transizione fluida per i numeri del risultato */
.score-display {
    transition: all 0.5s ease;
}
