/* ====================================================================== */
/* PAINEL DE ANÁLISE DETALHADA */
/* ====================================================================== */
.stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 18px 20px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
        }
        .stat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .stat-card .stat-glow {
            position: absolute;
            top: -50%; right: -50%;
            width: 100%; height: 100%;
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05), transparent 70%);
            pointer-events: none;
        }
        .stat-card .stat-icon { font-size: 20px; margin-bottom: 4px; opacity: 0.7; }
        .stat-card .stat-val { 
            font-family: var(--font-display);
            font-size: var(--fs-xl); font-weight: 800; color: var(--text-primary);
            letter-spacing: var(--ls-tight); line-height: var(--lh-tight);
        }
        .stat-card .stat-val .accent { color: var(--primary); }
        .stat-card .stat-change { font-size: var(--fs-sm); font-weight: 600; margin-left: 8px; }
        .stat-card .stat-change.up { color: var(--primary); }
        .stat-card .stat-change.down { color: #ef4444; }
        .stat-card .stat-lbl { 
            font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 2px; font-weight: 500;
        }
        .stat-card .stat-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
        .stat-card .stat-profit { color: var(--primary); }
        .stat-card .stat-loss { color: #ef4444; }

        .analysis-container {
            margin-top: 1.5rem;
            display: none;
        }
        .analysis-container.active { display: block; }
        .analysis-panel {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-top: 1rem;
            box-shadow: var(--shadow-sm);
        }
        .analysis-panel .prob-row { display: flex; gap: 10px; margin: 12px 0; }
        .analysis-panel .prob-box {
            flex: 1; background: var(--bg-body); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 12px; text-align: center;
        }
        .analysis-panel .prob-val { font-size: var(--fs-lg); font-weight: 700; color: var(--primary); }
        .analysis-panel .prob-lbl { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 2px; }
        .analysis-header .ah-teams {
            font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text-primary);
        }
        .analysis-header .ah-teams .vs-sep { color: var(--text-muted); font-weight: 300; margin: 0 8px; }
        .analysis-header .ah-league { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 4px; }
        .analysis-header .ah-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

        .analysis-summary { font-size: var(--fs-base); color: var(--text-secondary); line-height: var(--lh-normal); margin-bottom: 14px; }

        .analysis-score {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm);
            padding: 12px; margin-bottom: 16px;
        }
        .analysis-score .score-val { font-size: var(--fs-lg); font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
        .analysis-score .score-lbl { font-size: var(--fs-xs); color: var(--text-secondary); }

        .analysis-section { margin-bottom: 16px; }
        .analysis-section:last-of-type { margin-bottom: 0; }
        .analysis-divider { height: 1px; background: var(--border); margin: 16px 0; }

        .section-title {
            display: flex; align-items: center; gap: 8px;
            font-size: var(--fs-xs); font-weight: 700; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: var(--ls-wide); margin-bottom: 10px;
        }
        .section-title .tag-premium {
            background: var(--primary); color: var(--bg-body); padding: 1px 8px;
            border-radius: var(--radius-pill); font-size: 8px; font-weight: 800;
        }

        .prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .prob-tile {
            background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm);
            padding: 14px 8px; text-align: center;
        }
        .prob-tile .p-val { font-size: var(--fs-lg); font-weight: 800; line-height: 1; }
        .prob-tile .p-lbl { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 5px; }
        .prob-bar-track {
            display: flex; height: 4px; border-radius: var(--radius-pill); overflow: hidden;
            background: var(--border); margin-top: 8px;
        }
        .prob-bar-seg { height: 100%; }

        .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
        .stat-tile {
            background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm);
            padding: 10px; text-align: center;
        }
        .stat-tile.accent { border-width: 2px; }
        .stat-tile .st-lbl { font-size: var(--fs-xs); color: var(--text-secondary); text-transform: uppercase; letter-spacing: var(--ls-wide); }
        .stat-tile .st-val { font-size: var(--fs-md); font-weight: 800; margin-top: 3px; }
        .stat-tile .st-conf { font-size: var(--fs-xs); margin-top: 2px; font-weight: 600; }
        .stat-tile .st-extra { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 3px; }

        .player-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .player-lines .pl-card { background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
        .player-lines .pl-name {
            font-size: var(--fs-xs); font-weight: 700; color: var(--text-primary);
            margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
        }
        .player-lines .pl-row { display: flex; justify-content: space-between; font-size: var(--fs-xs); padding: 3px 0; }
        .player-lines .pl-row .pl-tag { color: var(--text-secondary); }
        .player-lines .pl-row .pl-pct { font-weight: 700; color: var(--text-primary); }

        .callout { border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 10px; border: 1px solid; }
        .callout-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); }
        .callout-body { font-size: var(--fs-sm); margin-top: 3px; }
        .callout.best { background: rgba(var(--primary-rgb), 0.07); border-color: rgba(var(--primary-rgb), 0.31); }
        .callout.best .callout-title { color: var(--primary); }
        .callout.best .callout-body { color: #FFFFFF; }
        .callout.warn { background: #f59e0b12; border-color: #f59e0b50; }
        .callout.warn .callout-title { color: #f59e0b; }
        .callout.warn .callout-body { color: #cbd5e1; }

        .locked-box { background: var(--bg-body); border: 1px dashed var(--primary); border-radius: var(--radius-md); padding: 22px 16px; text-align: center; }
        .locked-box .lock-icon { font-size: 32px; margin-bottom: 4px; }
        .locked-box h4 { color: var(--text-primary); font-size: var(--fs-md); font-weight: 700; }
        .locked-box p { color: var(--text-secondary); font-size: var(--fs-sm); margin: 6px 0 14px; }

        .analysis-footer {
            display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
            font-size: var(--fs-xs); color: var(--text-muted); margin-top: 16px; padding-top: 14px;
            border-top: 1px solid var(--border);
        }
