
        /* Giữ nguyên CSS từ file của bạn */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background: #f0f4f9;
            padding: 12px;
            font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
        }

        .dashboard {
            max-width: 100%;
            margin: 0 auto;
        }

        .header {
            background: linear-gradient(135deg, #0b2b44, #1a4a6f);
            color: white;
            padding: 16px 20px;
            border-radius: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .title h1 {
            font-size: 1.4rem;
            letter-spacing: -0.3px;
        }

        .title p {
            font-size: 0.7rem;
            opacity: 0.8;
        }

        .status {
            background: rgba(255,255,255,0.12);
            padding: 6px 14px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
        }

        .led-green {
            width: 10px;
            height: 10px;
            background-color: #2ecc71;
            border-radius: 50%;
            box-shadow: 0 0 6px #2ecc71;
            animation: pulse 1.2s infinite;
        }

        @keyframes pulse {
            0% { opacity: 0.5; transform: scale(0.8);}
            100% { opacity: 1; transform: scale(1.2);}
        }

        .clock {
            font-family: monospace;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .grid-2col {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .card {
            background: white;
            border-radius: 24px;
            padding: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            transition: all 0.2s ease;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 14px;
            border-left: 4px solid #1e6f9f;
            padding-left: 12px;
            color: #1a3e50;
        }

        .live-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
        }

        .live-table th {
            text-align: left;
            padding: 10px 6px;
            color: #5a6e85;
            font-weight: 500;
            border-bottom: 1px solid #e9ecef;
        }

        .live-table td {
            padding: 12px 6px;
            border-bottom: 1px solid #f0f2f5;
            vertical-align: middle;
        }

        .surface-badge {
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            display: inline-block;
            margin-top: 4px;
        }

        .follow-btn {
            background: #1e6f9f;
            border: none;
            color: white;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            width: auto;
            white-space: nowrap;
        }

        .follow-btn:active {
            transform: scale(0.96);
            background: #0f4e72;
        }

        .chart-container {
            overflow-x: auto;
        }

        canvas#dualAxisChart {
            width: 100%;
            height: 220px;
        }

        .radar-card {
            padding: 12px;
        }

        .radar-canvas {
            width: 100%;
            height: auto;
            min-height: 200px;
        }

        .opportunity-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.75rem;
        }

        .opportunity-table th,
        .opportunity-table td {
            padding: 10px 5px;
            text-align: left;
            border-bottom: 1px solid #e9ecef;
        }

        .value-positive {
            color: #27ae60;
            font-weight: 700;
        }

        .value-negative {
            color: #e67e22;
        }

        .signal-active {
            background: #eafaf1;
            font-weight: 600;
            color: #2e7d32;
            border-radius: 20px;
            padding: 2px 8px;
            display: inline-block;
        }

        .decision-box {
            background: linear-gradient(135deg, #f8faff, #f1f4fc);
            border-radius: 20px;
            padding: 16px;
            text-align: center;
            border: 1px solid #e2e8f0;
        }

        .action-text {
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: -0.3px;
        }

        .action-desc {
            color: #4a627a;
            margin-top: 6px;
            font-size: 0.8rem;
        }

        .momentum-area {
            margin: 12px 0;
        }

        .momentum-value {
            font-size: 1.6rem;
            font-weight: 700;
            text-align: center;
        }

        .progress-bar {
            background: #e2e8f0;
            border-radius: 30px;
            height: 10px;
            overflow: hidden;
            margin: 12px 0;
        }

        .progress-fill {
            background: #2c7da0;
            width: 50%;
            height: 100%;
            border-radius: 30px;
            transition: width 0.2s ease;
        }

        button {
            background: #1e6f9f;
            border: none;
            color: white;
            padding: 12px 20px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            font-size: 0.95rem;
            transition: 0.2s;
            margin: 8px 0;
        }

        button:active {
            transform: scale(0.98);
            background: #0f4e72;
        }

        .auto-check {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 12px 0;
            padding: 8px;
            background: #f8fafc;
            border-radius: 40px;
        }

        .auto-check label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #2c3e50;
        }

        .log-box {
            background: #1e2a3a;
            color: #cbd5e6;
            border-radius: 20px;
            padding: 12px;
            height: 240px;
            overflow-y: auto;
            font-family: monospace;
            font-size: 0.7rem;
        }

        .log-entry {
            border-bottom: 1px solid #334155;
            padding: 6px 0;
            word-break: break-word;
        }

        .accuracy-bars {
            display: flex;
            gap: 8px;
            justify-content: space-between;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .acc-item {
            flex: 1;
            min-width: 70px;
            text-align: center;
            font-size: 0.7rem;
        }

        .acc-bar {
            background: #e9ecef;
            height: 6px;
            border-radius: 10px;
            margin-top: 6px;
            overflow: hidden;
        }

        .acc-fill {
            background: #27ae60;
            height: 100%;
            width: 0%;
            border-radius: 10px;
        }

        .toast {
            position: fixed;
            top: 16px;
            right: 16px;
            left: 16px;
            background: #e67e22;
            color: white;
            padding: 12px 20px;
            border-radius: 40px;
            box-shadow: 0 6px 14px rgba(0,0,0,0.2);
            z-index: 1000;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 500;
            animation: slideIn 0.2s ease-out;
        }

        @keyframes slideIn {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            justify-content: center;
            align-items: center;
            z-index: 1100;
            padding: 12px;
        }

        .modal-content {
            background: white;
            width: 100%;
            max-width: 100%;
            max-height: 85vh;
            border-radius: 28px;
            overflow-y: auto;
            padding: 20px;
            position: relative;
        }

        .close-modal {
            position: sticky;
            top: 0;
            float: right;
            font-size: 28px;
            cursor: pointer;
            color: #666;
            background: white;
            padding: 0 8px;
            border-radius: 50%;
            margin-bottom: 10px;
        }

        .compare-title {
            font-size: 1.2rem;
            margin-bottom: 16px;
            text-align: center;
            font-weight: 600;
            padding-right: 24px;
        }

        .compare-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.7rem;
        }

        .compare-table th,
        .compare-table td {
            padding: 8px 4px;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
        }

        .feature-name {
            text-align: left;
            font-weight: 500;
        }

        .bar-container {
            background-color: #e9ecef;
            border-radius: 10px;
            height: 6px;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .bar-home {
            background-color: #2a5298;
            height: 100%;
            width: 0%;
            float: left;
        }

        .bar-away {
            background-color: #e67e22;
            height: 100%;
            width: 0%;
            float: left;
        }

        footer {
            text-align: center;
            margin-top: 20px;
            font-size: 0.65rem;
            color: #6b7a8a;
            padding: 12px;
        }

        .log-box::-webkit-scrollbar {
            width: 4px;
        }

        .log-box::-webkit-scrollbar-track {
            background: #2d3e50;
            border-radius: 10px;
        }

        .log-box::-webkit-scrollbar-thumb {
            background: #5a6e85;
            border-radius: 10px;
        }

        .opportunity-table tr,
        .live-table tr,
        .follow-btn {
            cursor: pointer;
        }

        .opportunity-table tr:active,
        .live-table tr:active {
            background: #f8f9fc;
        }

        .top-row {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        @media (min-width: 768px) {
            body {
                padding: 20px;
            }
            .grid-2col {
                display: grid;
                grid-template-columns: 1fr 320px;
                gap: 20px;
            }
            .top-row {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 20px;
            }
            .top-row .card:first-child {
                min-width: 0;
            }
            .radar-canvas {
                min-height: 220px;
            }
            canvas#dualAxisChart {
                height: 250px;
            }
            .toast {
                left: auto;
                right: 24px;
                max-width: 320px;
            }
            .action-text {
                font-size: 2rem;
            }
        }
    
