/* ====================================================================== */
/* BASE — reset, layout, navegação, botões, badges, formulários, tabelas, toast/modal */
/* ====================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    /* Cores */
    --primary: #10b981;
    --primary-rgb: 16,185,129;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-glow: rgba(16,185,129,0.12);
    --bg-body: #0a0f1a;
    --bg-surface: #111827;
    --bg-elevated: #1a2233;
    --bg-card: linear-gradient(160deg, #141d2e 0%, #111827 100%);
    --border: #1e293b;
    --border-subtle: rgba(255,255,255,0.05);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Tipografia */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-xs: 10px;
    --fs-sm: 12px;
    --fs-base: 13px;
    --fs-md: 15px;
    --fs-lg: 20px;
    --fs-xl: 28px;
    --fs-display: 36px;
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.04em;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.1);

    /* Espaçamento */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
}
        body {
            font-family: var(--font-body);
            background: var(--bg-body);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            font-size: var(--fs-base);
            line-height: var(--lh-normal);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: var(--bg-surface); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        @keyframes pulse-live {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes live-gradient {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* ===== SKELETON LOADING ===== */
        @keyframes shimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .skeleton {
            background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(255,255,255,0.04) 37%, var(--bg-elevated) 63%);
            background-size: 800px 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: var(--radius-sm);
        }
        .skeleton-line {
            height: 12px;
            border-radius: 6px;
        }
        .skeleton-line.w60 { width: 60%; }
        .skeleton-line.w40 { width: 40%; }
        .skeleton-line.w80 { width: 80%; }
        .skeleton-line.h16 { height: 16px; }
        .skeleton-line.h20 { height: 20px; }
        .skeleton-circle {
            border-radius: 50%;
        }

        /* Skeleton: stat card */
        .skeleton-stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .skeleton-stat-card .sk-icon { width: 32px; height: 32px; }
        .skeleton-stat-card .sk-value { width: 60%; height: 24px; margin-top: 4px; }
        .skeleton-stat-card .sk-label { width: 40%; height: 10px; }

        /* Skeleton: live card */
        .skeleton-live-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-height: 260px;
        }
        .skeleton-live-card .sk-header { display: flex; justify-content: space-between; align-items: center; }
        .skeleton-live-card .sk-header .skeleton-line { width: 25%; height: 10px; }
        .skeleton-live-card .sk-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .skeleton-live-card .sk-team { flex: 1; display: flex; flex-direction: column; gap: 6px; }
        .skeleton-live-card .sk-team.right { align-items: flex-end; }
        .skeleton-live-card .sk-team-name { width: 80%; height: 14px; }
        .skeleton-live-card .sk-team-sub { width: 50%; height: 10px; }
        .skeleton-live-card .sk-score { width: 36px; height: 28px; border-radius: 8px; }
        .skeleton-live-card .sk-divider { height: 1px; background: var(--border); margin: 4px 0; }
        .skeleton-live-card .sk-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .skeleton-live-card .sk-line-item { height: 18px; border-radius: 4px; }

        /* Skeleton: match card */
        .skeleton-match-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .skeleton-match-card .sk-top { display: flex; justify-content: space-between; }
        .skeleton-match-card .sk-teams { display: flex; align-items: center; justify-content: space-between; }
        .skeleton-match-card .sk-team { flex: 1; display: flex; flex-direction: column; gap: 5px; }
        .skeleton-match-card .sk-team.right { align-items: flex-end; }
        .skeleton-match-card .sk-preds { display: flex; gap: 12px; }

        /* Skeleton: list row */
        .skeleton-row {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .skeleton-row .sk-avatar { width: 28px; height: 28px; flex-shrink: 0; }
        .skeleton-row .sk-content { flex: 1; display: flex; flex-direction: column; gap: 5px; }
        .skeleton-row .sk-right { width: 60px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

        /* Skeleton grids */
        .skeleton-grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 1.5rem;
        }
        .skeleton-grid-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }
        .skeleton-grid-matches {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 10px;
        }
        .skeleton-stack {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        @media (max-width: 768px) {
            .skeleton-grid-4, .skeleton-grid-cards { grid-template-columns: repeat(2, 1fr); }
            .skeleton-grid-matches { grid-template-columns: 1fr; }
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: 220px;
            min-height: 100vh;
            background: var(--bg-body);
            border-right: 1px solid var(--border);
            padding: 1.5rem 0;
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            flex-shrink: 0;
            z-index: 100;
        }
        .sidebar-brand {
            padding: 0 1.25rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid var(--border-subtle);
            margin-bottom: 1.5rem;
        }
        .sidebar-brand-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .sidebar-brand-icon svg { width: 34px; height: 34px; }
        .sidebar-brand h1 { 
            font-family: var(--font-display);
            font-size: var(--fs-md); font-weight: 800; color: var(--text-primary);
            letter-spacing: var(--ls-tight);
        }
        .sidebar-brand h1 span { color: var(--primary); }
        .sidebar-brand small { 
            font-size: var(--fs-xs); color: var(--text-muted); display: block; 
            margin-top: -2px; letter-spacing: var(--ls-wide); text-transform: uppercase;
        }

        .sidebar-nav { flex: 1; padding: 0 0.75rem; }
        .sidebar-nav .nav-section-label {
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 16px 14px 6px;
            opacity: 0.6;
        }
        .sidebar-nav .nav-section-label:first-child {
            padding-top: 0;
        }
        .sidebar-nav .nav-item {
            display: flex; align-items: center; gap: 12px;
            padding: 9px 14px; border-radius: var(--radius-sm);
            color: var(--text-secondary); font-size: 13px; font-weight: 500;
            cursor: pointer; transition: all 0.2s ease; margin-bottom: 1px;
        }
        .sidebar-nav .nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); transform: translateX(2px); }
        .sidebar-nav .nav-item.active { 
            background: rgba(var(--primary-rgb),0.08); color: var(--primary);
            box-shadow: inset 3px 0 0 var(--primary);
            font-weight: 600;
        }
        .sidebar-nav .nav-item i { font-size: 16px; width: 22px; text-align: center; opacity: 0.8; }
        .sidebar-nav .nav-item.active i { opacity: 1; }
        .sidebar-nav .nav-item .badge {
            margin-left: auto; font-size: 9px;
            background: var(--primary); color: var(--bg-body);
            padding: 2px 7px; border-radius: var(--radius-pill); font-weight: 700;
            min-width: 20px; text-align: center;
        }
        .sidebar-nav .nav-item .badge.live { background: #ef4444; color: #fff; animation: pulse-live 1.5s infinite; }

        .sidebar-footer {
            padding: 12px 14px;
            margin: 0 10px;
            border-top: 1px solid var(--border-subtle);
            font-size: var(--fs-sm);
        }
        .sidebar-footer .user-info { display: flex; align-items: center; gap: 10px; }
        .sidebar-footer .user-avatar {
            width: 30px; height: 30px; border-radius: 50%;
            background: rgba(var(--primary-rgb), 0.15); display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 11px; color: var(--primary);
            flex-shrink: 0;
        }
        .sidebar-footer .user-name { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
        .sidebar-footer .user-plan { font-size: 10px; color: var(--text-muted); }
        .sidebar-footer .logout-btn {
            color: var(--text-muted); background: none; border: none; cursor: pointer;
            font-size: 11px; display: flex; align-items: center; gap: 4px;
            padding: 2px 0; margin-top: 2px; transition: color 0.2s;
        }
        .sidebar-footer .logout-btn:hover { color: #ef4444; }

        .main-content {
            flex: 1;
            padding: 1.5rem 2rem;
            overflow-y: auto;
            max-height: 100vh;
        }
        .page { display: none; }
        .page.active { display: block; animation: fadeIn 0.3s ease; will-change: opacity, transform; }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 12px;
        }
        .page-header h2 { 
            font-family: var(--font-display);
            font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary);
            letter-spacing: var(--ls-tight);
        }
        .page-header .subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
        .page-header .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
        .page-header-actions {
            display: flex; gap: 8px; align-items: center;
        }

        /* Common utility classes for inline styles */
        .section-label {
            font-size: 11px; font-weight: 600; color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 0.06em;
        }
        .filter-row {
            display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px;
        }
        .card-surface {
            background: var(--bg-surface); border: 1px solid var(--border);
            border-radius: var(--radius-md); padding: 20px;
        }
        .form-input {
            width: 100%; padding: 10px 12px;
            background: var(--bg-body); border: 1px solid var(--border);
            border-radius: 8px; color: var(--text-primary); font-size: 13px;
        }
        .form-input:focus { outline: none; border-color: var(--primary); }
        .form-label {
            display: block; font-size: 11px; color: var(--text-secondary);
            margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
        }

        /* Profile & detail card sections */
        .detail-card {
            background: var(--bg-surface); border: 1px solid var(--border);
            border-radius: 12px; padding: 1.25rem;
        }
        .detail-card-sm {
            background: var(--bg-body); border: 1px solid var(--border);
            border-radius: 6px; padding: 10px; text-align: center;
        }
        .detail-card-sm .detail-val {
            font-size: 16px; font-weight: 700; color: var(--primary);
        }
        .detail-card-sm .detail-lbl {
            font-size: 9px; color: var(--text-secondary); margin-top: 2px;
        }
        .inline-badge {
            font-size: 10px; padding: 2px 10px; border-radius: var(--radius-pill);
            background: var(--bg-body); color: var(--text-secondary); border: 1px solid var(--border);
        }
        .result-row {
            background: var(--bg-body); border: 1px solid var(--border);
            border-radius: 6px; padding: 6px 12px; display: flex;
            justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-secondary);
        }
        .result-row .result-date { color: var(--text-muted); min-width: 40px; }
        .bet-history-card {
            cursor: default; background: var(--bg-surface); border: 1px solid var(--border);
            border-radius: 8px; padding: 10px 16px; margin-bottom: 6px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            margin-bottom: 1.5rem;
        }

        .welcome-banner {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem 2rem;
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }
        .welcome-banner::before {
            content: '';
            position: absolute;
            top: -50%; right: -20%;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05), transparent 70%);
            pointer-events: none;
        }
        .welcome-banner h1 { 
            font-family: var(--font-display);
            font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary);
            letter-spacing: var(--ls-tight);
        }
        .welcome-banner p { font-size: var(--fs-base); color: var(--text-secondary); margin-top: 4px; }
        .welcome-banner .badge-ai {
            display: inline-flex; align-items: center; gap: 4px;
            background: var(--primary); color: var(--bg-body);
            padding: 4px 14px; border-radius: var(--radius-pill);
            font-size: var(--fs-xs); font-weight: 700; margin-top: 8px;
            letter-spacing: var(--ls-wide); text-transform: uppercase;
        }

        /* ===== DASHBOARD HUB ===== */
        .dash-actions {
            display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px;
        }
        .dash-hub {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 12px;
            margin-bottom: 8px;
        }
        .dash-hub-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            min-height: 120px;
        }
        .dash-hub-head {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 10px; gap: 8px;
        }
        .dash-hub-head .section-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
        .dash-link {
            font-size: 11px; color: var(--primary); text-decoration: none; white-space: nowrap;
        }
        .dash-link:hover { text-decoration: underline; }
        .dash-empty {
            font-size: 12px; color: var(--text-muted); padding: 12px 0; text-align: center;
        }
        .dash-row {
            padding: 8px 0;
            border-bottom: 1px solid var(--border-subtle);
            cursor: pointer;
            transition: background 0.15s ease;
        }
        .dash-row:last-child { border-bottom: none; }
        .dash-row:hover { background: rgba(var(--primary-rgb), 0.04); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
        .dash-row-main {
            display: flex; align-items: center; gap: 8px; min-width: 0;
        }
        .dash-row-meta {
            display: flex; align-items: center; gap: 8px; margin-top: 2px;
            font-size: 11px; color: var(--text-secondary);
        }
        .dash-players {
            font-size: 12px; font-weight: 600; color: var(--text-primary);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
        }
        .dash-vs { color: var(--text-muted); font-weight: 400; font-size: 10px; }
        .dash-score { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
        .dash-elapsed { color: #ef4444; font-weight: 600; font-size: 10px; }
        .dash-time {
            font-size: 11px; font-weight: 700; color: var(--primary);
            min-width: 36px; font-variant-numeric: tabular-nums;
        }
        .dash-league {
            font-size: 10px; color: var(--text-muted); margin-top: 2px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .dash-live-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: #ef4444; flex-shrink: 0;
            box-shadow: 0 0 0 0 rgba(239,68,68,0.5);
            animation: pulse-live 1.5s ease infinite;
        }
        .dash-pick {
            font-size: 9px; font-weight: 700; padding: 1px 6px;
            border-radius: var(--radius-pill); background: rgba(var(--primary-rgb),0.12);
            color: var(--primary);
        }
        .dash-alert-val { color: var(--primary); font-weight: 700; }
        .dash-ago { color: var(--text-muted); }
        .stat-card .stat-icon i { font-size: 18px; color: var(--primary); opacity: 0.85; }

        /* ===== ONBOARDING ===== */
        .dash-onboarding {
            background: var(--bg-card);
            border: 1px solid rgba(var(--primary-rgb), 0.25);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            margin-bottom: 8px;
            grid-column: 1 / -1;
        }
        .dash-onboard-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .dash-onboard-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .dash-onboard-title i { color: var(--primary); }
        .dash-onboard-bar {
            height: 3px;
            background: var(--border);
            border-radius: 99px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        .dash-onboard-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 99px;
            transition: width 0.4s ease;
        }
        .dash-onboard-steps {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .dash-onboard-step {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 8px;
            border-radius: 8px;
            transition: background 0.15s ease;
        }
        .dash-onboard-step:hover {
            background: rgba(var(--primary-rgb), 0.04);
        }
        .dash-onboard-step.done {
            opacity: 0.55;
        }
        .dash-onboard-check {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 14px;
            background: var(--bg-body);
            border: 1px solid var(--border);
            color: var(--text-muted);
        }
        .dash-onboard-step.done .dash-onboard-check {
            background: var(--primary);
            color: var(--bg-body);
            border-color: var(--primary);
        }
        .dash-onboard-info {
            flex: 1;
            min-width: 0;
        }
        .dash-onboard-step-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }
        .dash-onboard-step-desc {
            font-size: 10px;
            color: var(--text-muted);
        }

        /* Projeção de gols */
        .goals-box {
            margin-top: 14px;
            padding: 12px 14px 10px;
            background: var(--bg-body);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        /* Painel de análise detalhada */
        .analysis-header {
            display: flex; justify-content: space-between; align-items: flex-start;
            gap: 12px; margin-bottom: 14px; padding-bottom: 14px;
            border-bottom: 1px solid var(--border);
        }
        .locked-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .locked-hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 10px; }

        .quota-banner {
            display: flex; justify-content: space-between; align-items: center; gap: 10px;
            margin-bottom: 14px; padding: 10px 14px;
            background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-md);
            font-size: var(--fs-sm); color: var(--text-secondary);
        }
        .quota-banner strong { color: #f59e0b; }
        .quota-link {
            color: #10b981; font-weight: 700; text-decoration: none; font-size: var(--fs-xs);
            white-space: nowrap;
        }
        .quota-link:hover { text-decoration: underline; }

        .btn-close-analysis {
            background: none; border: none; color: #6B7280;
            font-size: 18px; cursor: pointer; padding: 4px 8px;
        }
        .btn-close-analysis:hover {             color: var(--text-primary); }

        .league-filter, .status-filter {
            display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
        }
        .filter-btn {
            font-size: var(--fs-xs); font-weight: 500; padding: 5px 14px;
            border-radius: var(--radius-pill); border: 1px solid var(--border);
            background: transparent; color: var(--text-secondary); cursor: pointer;
            transition: all 0.2s;
        }
        .filter-btn:hover { border-color: var(--primary); color: var(--text-primary); }
        .filter-btn.active { background: var(--primary); color: var(--bg-body); border-color: var(--primary); font-weight: 700; }
        .filter-btn .count { font-size: var(--fs-xs); color: var(--text-muted); margin-left: 4px; }
        .filter-btn.active .count { color: var(--bg-body); }

        .tabs-container {
            display: flex; gap: 4px; margin-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        .tab {
            font-size: var(--fs-base); padding: 8px 18px; cursor: pointer;
            border: none; background: none; color: var(--text-secondary);
            border-bottom: 2px solid transparent; margin-bottom: -1px;
            transition: all 0.15s; font-weight: 500;
        }
        .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        .match-card-future {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md); padding: 14px 18px;
            transition: all 0.25s ease; cursor: pointer;
            box-shadow: var(--shadow-sm);
        }
        .match-card-future:hover { border-color: var(--primary); box-shadow: var(--shadow-md), var(--shadow-glow); transform: translateY(-2px); }
        .match-card-future .mf-top {
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 4px; margin-bottom: 4px;
        }
        .match-card-future .mf-time { font-size: var(--fs-xs); font-weight: 500; color: var(--text-secondary); }
        .match-card-future .mf-league { font-size: var(--fs-xs); color: var(--text-secondary); background: var(--bg-body); padding: 2px 10px; border-radius: var(--radius-pill); }
        .match-card-future .mf-status {
            font-size: 9px; font-weight: 700; padding: 2px 10px;
            border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
        }
        .match-card-future .mf-status.scheduled { color: #60a5fa; background: #1d4ed820; }
        .match-card-future .mf-status.live { color: #ef4444; background: #ef444420; }
        .match-card-future .mf-status.finished { color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
        .match-card-future .mf-teams {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px; margin: 4px 0;
        }
        .match-card-future .mf-team { flex: 1; min-width: 0; }
        .match-card-future .mf-team.right { text-align: right; }
        .match-card-future .mf-team-name { font-size: var(--fs-md); font-weight: 600; color: var(--text-primary); }
        .match-card-future .mf-team-country { font-size: var(--fs-xs); color: var(--text-secondary); }
        .match-card-future .mf-vs { font-size: var(--fs-xs); color: var(--border); font-weight: 700; padding: 0 6px; }
        .match-card-future .mf-vs-live { font-size: 16px; font-weight: 700; color: var(--primary); padding: 0 6px; }
        .match-card-future .mf-predictions {
            display: flex; flex-wrap: wrap; gap: 4px 14px;
            margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
        }
        .match-card-future .mf-pred { font-size: var(--fs-xs); color: var(--text-secondary); }
        .match-card-future .mf-pred .label { color: var(--text-muted); }
        .match-card-future .mf-pred .value { font-weight: 600; }
        .match-card-future .mf-pred .value.green { color: var(--primary); }
        .match-card-future .mf-pred .value.yellow { color: #f59e0b; }
        .match-card-future .mf-pred .value.gray { color: var(--text-secondary); }

        .empty { text-align: center; padding: 2.5rem; color: var(--text-muted); font-size: var(--fs-base); }

        /* ===== EMPTY / ERROR / LOADING STATES ===== */
        .empty-state, .error-state, .loading-state {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            text-align: center; padding: 3rem 1.5rem; gap: 8px;
        }
        .empty-state-icon, .error-state-icon, .loading-state-icon {
            width: 56px; height: 56px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; margin-bottom: 4px;
        }
        .empty-state .empty-state-icon {
            background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
        }
        .error-state .error-state-icon {
            background: rgba(239, 68, 68, 0.1); color: #ef4444;
        }
        .loading-state .loading-state-icon {
            background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
        }
        .empty-state-title, .error-state-title, .loading-state-title {
            font-family: var(--font-display);
            font-size: var(--fs-md); font-weight: 700;
            color: var(--text-primary); letter-spacing: var(--ls-tight);
        }
        .empty-state-desc, .error-state-desc, .loading-state-desc {
            font-size: 13px; color: var(--text-secondary); max-width: 300px; line-height: 1.5;
        }
        .empty-state-action, .error-state-action {
            margin-top: 8px;
        }
        .empty-state-action a, .empty-state-action button,
        .error-state-action a, .error-state-action button {
            font-size: 13px; font-weight: 600; cursor: pointer; border: none;
        }
        .empty-state-action a { color: var(--primary); text-decoration: none; }
        .empty-state-action a:hover { text-decoration: underline; }
        .error-state-action .btn-retry {
            background: rgba(239, 68, 68, 0.1); color: #ef4444;
            padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px;
        }
        .error-state-action .btn-retry:hover { background: rgba(239, 68, 68, 0.2); }

        /* Compact variant for inline/small containers */
        .empty-state-sm, .error-state-sm, .loading-state-sm {
            padding: 1.5rem 1rem; gap: 4px;
        }
        .empty-state-sm .empty-state-icon, .error-state-sm .error-state-icon, .loading-state-sm .loading-state-icon {
            width: 40px; height: 40px; font-size: 18px;
        }
        .empty-state-sm .empty-state-title, .error-state-sm .error-state-title, .loading-state-sm .loading-state-title {
            font-size: 13px;
        }
        .empty-state-sm .empty-state-desc, .error-state-sm .error-state-desc, .loading-state-sm .loading-state-desc {
            font-size: 12px;
        }

        /* Loading spinner (grande) */
        .spinner-lg {
            width: 28px; height: 28px;
            border: 3px solid var(--border); border-top-color: var(--primary);
            border-radius: 50%; animation: spin 0.8s linear infinite;
        }
        .spinner {
            display: inline-block; width: 16px; height: 16px;
            border: 2px solid var(--border); border-top-color: var(--primary);
            border-radius: 50%; animation: spin 0.8s linear infinite;
        }
        .text-muted { color: var(--text-secondary); }
        .text-sm { font-size: var(--fs-sm); }
        .btn {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: var(--fs-sm); padding: 6px 16px; border-radius: var(--radius-sm);
            cursor: pointer; border: none; font-weight: 500; transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .btn:active { transform: scale(0.97); }
        .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .btn-primary { background: var(--primary); color: var(--bg-body); box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.2); }
        .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.3); }
        .btn-primary:active { transform: translateY(0) scale(0.97); }
        .btn-ghost { background: var(--bg-surface); color: var(--text-secondary); border: 1px solid var(--border); }
        .btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border); }
        .btn-ghost:active { transform: scale(0.97); }
        .btn-green { background: var(--primary); color: var(--bg-body); box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.2); }
        .btn-green:hover { background: var(--primary-dark); transform: translateY(-1px); }
        .btn-green:active { transform: translateY(0) scale(0.97); }
        .btn-red { background: #ef4444; color: #fff; }
        .btn-red:hover { background: #dc2626; }
        .btn-red:active { transform: scale(0.97); }
        .btn-sm { font-size: var(--fs-xs); padding: 4px 10px; }
        .btn-premium { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-body); }
        .btn-premium:hover { opacity: 0.9; transform: translateY(-1px); }
        .btn-premium:active { transform: translateY(0) scale(0.97); }
        .btn-ad { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-weight: 700; }
        .btn-ad:hover { opacity: 0.9; transform: translateY(-1px); }
        .btn-ad:active { transform: translateY(0) scale(0.97); }

        /* Focus-visible global */
        input:focus-visible, select:focus-visible, textarea:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 1px;
        }

        .ad-modal-overlay {
            display: none;
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            align-items: center; justify-content: center;
        }
        .ad-modal-overlay.active { display: flex; }
        .ad-modal-box {
            background: var(--bg-surface); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 2rem;
            max-width: 520px; width: 90%; text-align: center;
            box-shadow: var(--shadow-lg);
        }
        .ad-modal-box .ad-icon { font-size: 48px; margin-bottom: 12px; }
        .ad-modal-box h3 { color: var(--text-primary); margin-bottom: 8px; }
        .ad-modal-box p { color: var(--text-secondary); font-size: var(--fs-base); margin-bottom: 16px; }
        .ad-container {
            background: var(--bg-body); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 16px;
            min-height: 150px;
        }

        .h2h-selector {
            display: flex; gap: 12px; flex-wrap: wrap;
            margin-bottom: 1.5rem; align-items: flex-end;
        }
        .h2h-selector .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
        .h2h-selector label { display: block; font-size: var(--fs-xs); color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
        .h2h-selector select {
            width: 100%; padding: 10px 12px; background: var(--bg-body);
            border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: var(--fs-base);
        }
        .h2h-selector select:focus { outline: none; border-color: var(--primary); }

        .players-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
        .players-table th {
            font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide);
            padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border);
        }
        .players-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
        .players-table .player-name { font-weight: 600; color: var(--text-primary); cursor: pointer; }
        .players-table .player-name:hover { color: var(--primary); }
        .players-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
        .players-table th.sortable:hover { color: var(--primary); }
        .players-table th .sort-icon { font-size: 8px; margin-left: 2px; opacity: 0.4; }
        .players-table th.sort-asc .sort-icon,
        .players-table th.sort-desc .sort-icon { opacity: 1; color: var(--primary); }
        .players-search input {
            width: 100%; max-width: 280px; padding: 10px 12px;
            background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-sm);
            color: var(--text-primary); font-size: var(--fs-base);
        }
        .players-search input:focus { outline: none; border-color: var(--primary); }
        .players-search input::placeholder {             color: var(--text-muted); }

        .bet-form {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px; margin-bottom: 1rem;
        }
        .bet-form select, .bet-form input {
            padding: 10px 12px; background: var(--bg-body);
            border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: var(--fs-base);
        }
        .bet-form select:focus, .bet-form input:focus { outline: none; border-color: var(--primary); }
        #bet-form.bet-form-prefilled {
            outline: 1px solid rgba(var(--primary-rgb), 0.45);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
            border-radius: var(--radius-md);
            transition: box-shadow 0.3s ease;
        }
        .bets-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
        .bets-table th {
            font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide);
            padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border);
        }
        .bets-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
        .bets-table .status-won { color: var(--primary); }
        .bets-table .status-lost { color: #ef4444; }
        .bets-table .status-pending { color: #f59e0b; }

        .profile-stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 14px; text-align: center;
            transition: all 0.25s ease;
            box-shadow: var(--shadow-sm);
        }
        .profile-stat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md), var(--shadow-glow); }

        #custom-toast {
            position: fixed; bottom: 20px; right: 20px;
            padding: 12px 20px; border-radius: var(--radius-md); font-size: var(--fs-base); font-weight: 500;
            z-index: 99999; max-width: 400px;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1); transform: translateY(100px); opacity: 0;
            background: var(--bg-surface);
            border: 1px solid var(--border); color: var(--text-primary);
            box-shadow: var(--shadow-lg);
        }

        /* ===== MENU MOBILE ===== */
        .mobile-menu-toggle {
            display: none;
            background: var(--bg-surface);
            border: 1px solid var(--border);
            color: var(--text-primary);
            font-size: 20px;
            cursor: pointer;
            padding: 10px;
            position: fixed;
            top: 12px;
            left: 12px;
            z-index: 1000;
            border-radius: var(--radius-sm);
            -webkit-tap-highlight-color: transparent;
            transition: background 0.2s;
        }
        .mobile-menu-toggle:active { background: var(--bg-elevated); }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 98;
            backdrop-filter: blur(2px);
        }

        .sidebar-overlay.active {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        /* Mobile-specific rules are in responsive.css */
            
            .pricing-card.featured:hover {
                transform: none;
            }
            
            .comparison-table {
                font-size: 10px;
                padding: 0.5rem;
            }
            
            .comparison-table th,
            .comparison-table td {
                padding: 4px 6px;
            }
            
            #profile-stats {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            #profile-account-info {
                font-size: 12px;
            }
            
            #unlock-timer {
                font-size: 11px;
                padding: 8px 12px;
            }
            
            #unlock-timer .time-left {
                font-size: 14px;
            }
        }

        /* ===== GAMIFICAÇÃO — SIDEBAR ===== */
        .sidebar-gamification {
            padding: 0 14px 8px;
            margin: 0 10px 4px;
            border-top: 1px solid var(--border-subtle);
            padding-top: 10px;
        }
        .sidebar-level-badge {
            background: linear-gradient(135deg, rgba(var(--primary-rgb),0.08), rgba(var(--primary-rgb),0.02));
            border: 1px solid rgba(var(--primary-rgb),0.15);
            border-radius: 10px;
            padding: 10px 12px;
            text-align: center;
        }
        .sidebar-level-number {
            font-family: var(--font-display);
            font-size: 15px;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 6px;
        }
        .sidebar-xp-bar {
            height: 3px;
            background: var(--border);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 4px;
        }
        .sidebar-xp-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
            border-radius: 2px;
            transition: width 0.5s ease;
        }
        .sidebar-xp-text {
            font-size: 10px;
            color: var(--text-muted);
        }
        .sidebar-streak-badge {
            text-align: center;
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: 6px;
            font-weight: 500;
        }
        .sidebar-streak-best {
            color: var(--text-muted);
            margin-left: 4px;
            font-size: 9px;
        }

        /* ===== GAMIFICAÇÃO — PERFIL ===== */
        .gamification-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }
        .gamification-level-circle {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.3);
        }
        .gamification-level-num {
            font-family: var(--font-display);
            font-size: var(--fs-lg);
            font-weight: 800;
            color: var(--bg-body);
            line-height: 1;
        }
        .gamification-level-label {
            font-size: var(--fs-xs);
            font-weight: 600;
            color: var(--bg-body);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .gamification-xp-bar {
            height: 6px;
            background: var(--border);
            border-radius: 3px;
            overflow: hidden;
        }
        .gamification-xp-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
            border-radius: 3px;
            transition: width 0.5s ease;
        }

        /* ===== CONQUISTAS ===== */
        .achievements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 8px;
        }
        .achievement-card {
            background: var(--bg-body);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px;
            text-align: center;
            transition: all 0.25s ease;
        }
        .achievement-card.earned {
            border-color: rgba(var(--primary-rgb),0.3);
            box-shadow: 0 2px 12px rgba(var(--primary-rgb),0.08);
        }
        .achievement-card.earned:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.15);
        }
        .achievement-card.locked {
            opacity: 0.5;
        }
        .achievement-icon {
            font-size: 24px;
            margin-bottom: 6px;
        }
        .achievement-name {
            font-size: var(--fs-xs);
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
        }
        .achievement-desc {
            font-size: var(--fs-xs);
            color: var(--text-secondary);
            margin-bottom: 4px;
        }
        .achievement-xp {
            font-size: var(--fs-xs);
            font-weight: 700;
            color: var(--primary);
        }

        /* ===== LEADERBOARD ===== */
        .leaderboard-my-rank {
            background: linear-gradient(135deg, rgba(var(--primary-rgb),0.08), rgba(var(--primary-rgb),0.02));
            border: 1px solid rgba(var(--primary-rgb),0.2);
            border-radius: var(--radius-lg);
            padding: 24px;
            text-align: center;
            margin-bottom: 20px;
        }
        .leaderboard-my-rank-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .leaderboard-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .leaderboard-row {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            transition: all 0.25s ease;
            box-shadow: var(--shadow-sm);
        }
        .leaderboard-row:hover {
            border-color: #2a3343;
            transform: translateX(2px);
        }
        .leaderboard-row.highlight {
            border-color: rgba(var(--primary-rgb),0.4);
            background: linear-gradient(135deg, rgba(var(--primary-rgb),0.06) 0%, #0e1525 100%);
            box-shadow: 0 2px 12px rgba(var(--primary-rgb),0.08);
        }
        .leaderboard-rank {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-secondary);
            min-width: 40px;
            text-align: center;
        }
        .leaderboard-info {
            flex: 1;
            min-width: 0;
        }
        .leaderboard-name {
            font-size: var(--fs-base);
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .leaderboard-meta {
            font-size: var(--fs-xs);
            color: var(--text-muted);
            margin-top: 2px;
        }
        .leaderboard-xp {
            font-size: var(--fs-base);
            font-weight: 700;
            color: var(--primary);
            white-space: nowrap;
        }
