/* Variable block removed — now in design-tokens.css */
body.rb-style-page {
    color: var(--rb-text-primary);
}

body.rb-style-page,
body.rb-style-page .history-container,
body.rb-style-page .agents-dashboard-container {
    background: transparent;
    color: var(--rb-text-primary);
}

body.rb-style-page .rb-page-shell {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px 60px;
}

body.betbuilder-style-page .rb-page-shell {
    width: min(96vw, 1900px);
    max-width: 1900px;
    margin: 38px auto;
    padding: 0 20px 72px;
}

body.agents-style-page .rb-page-shell {
    width: min(96vw, 1900px);
    max-width: 1900px;
    margin: 38px auto;
    padding: 0 20px 72px;
}

body.rb-style-page .rb-page-header,
body.rb-style-page .rb-section,
body.rb-style-page .date-controls,
body.rb-style-page .dashboard-controls,
body.rb-style-page .filter-controls,
body.rb-style-page .filters-container,
body.rb-style-page .leaderboard-container,
body.rb-style-page .predictions-table-wrapper,
body.rb-style-page .table-responsive,
body.rb-style-page .leaderboard-table-wrapper,
body.rb-style-page .stats-tabs,
body.rb-style-page .picks-content {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

body.rb-style-page .rb-page-header {
    position: relative;
    padding: 32px 24px;
    margin-bottom: 24px;
    overflow: hidden;
    text-align: center;
}

body.rb-style-page .rb-page-header::before,
body.rb-style-page .rb-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 2px;
    background: var(--rb-brand);
}

body.rb-style-page .rb-page-header h1,
body.rb-style-page .rb-page-header .hero-title,
body.rb-style-page .rb-page-header .section-title {
    color: var(--rb-text-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: currentColor;
}

body.rb-style-page .rb-page-header p,
body.rb-style-page .rb-page-header .hero-subtitle,
body.rb-style-page .rb-page-header .subtitle {
    color: var(--rb-text-secondary);
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.7;
    font-size: 1rem;
}

body.rb-style-page .rb-feature-lock {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 28px 24px;
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    backdrop-filter: blur(12px);
    text-align: center;
}

body.rb-style-page .rb-feature-lock__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: var(--rb-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.rb-style-page .rb-feature-lock__title {
    margin: 0 0 12px;
    color: var(--rb-text-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

body.rb-style-page .rb-feature-lock__copy {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--rb-text-secondary);
    line-height: 1.7;
}

body.rb-style-page .rb-feature-lock__list {
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    max-width: 520px;
    display: grid;
    gap: 10px;
}

body.rb-style-page .rb-feature-lock__list li {
    padding: 12px 14px;
    border: 1px solid var(--rb-border);
    border-radius: 0;
    background: rgba(15, 23, 42, 0.35);
    color: var(--rb-text-primary);
}

body.rb-style-page .rb-feature-lock__actions {
    display: flex;
    justify-content: center;
}

body.rb-style-page .rb-section {
    position: relative;
    padding: 30px 24px;
    margin-bottom: 24px;
}

body.rb-style-page .section-header,
body.rb-style-page .leaderboard-header,
body.rb-style-page .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--rb-border);
}

body.rb-style-page .section-header::before {
    display: none;
}

body.rb-style-page .section-title,
body.rb-style-page .chart-header h3,
body.rb-style-page .leaderboard-header h3 {
    font-size: 22px;
    color: var(--rb-text-primary);
    font-weight: 700;
    margin: 0;
}

body.rb-style-page .chart-subtitle,
body.rb-style-page .leaderboard-header span,
body.rb-style-page .stat-label,
body.rb-style-page .league-country,
body.rb-style-page .match-count,
body.rb-style-page .potential-return,
body.rb-style-page .no-data-message,
body.rb-style-page .loading-state p {
    color: var(--rb-text-secondary);
}

body.rb-style-page .btn,
body.rb-style-page .hero-btn,
body.rb-style-page .refresh-btn,
body.rb-style-page .tab-btn,
body.rb-style-page .filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: auto;
    padding: 0.75rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--rb-text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    box-shadow: none;
}

body.rb-style-page .btn:hover,
body.rb-style-page .hero-btn:hover,
body.rb-style-page .refresh-btn:hover,
body.rb-style-page .tab-btn:hover,
body.rb-style-page .filter-tab:hover {
    background: transparent;
    color: var(--rb-brand);
    transform: none;
}

body.rb-style-page .secondary-btn,
body.rb-style-page .hero-btn.secondary,
body.rb-style-page .tab-btn:not(.active),
body.rb-style-page .filter-tab:not(.active),
body.rb-style-page .pagination .page-link,
body.rb-style-page .toggle-btn {
    background: transparent;
    border: 1px solid var(--rb-border);
    color: var(--rb-text-secondary);
}

body.rb-style-page .tab-btn.active,
body.rb-style-page .filter-tab.active,
body.rb-style-page .pagination .page-item.active .page-link,
body.rb-style-page .odd-box.recommended,
body.rb-style-page .match-bet-card.featured,
body.rb-style-page .hero-stat-card.featured {
    background: transparent;
    border-color: var(--rb-brand);
    color: var(--rb-brand);
    box-shadow: none;
}

body.rb-style-page select,
body.rb-style-page input[type="text"],
body.rb-style-page input[type="date"],
body.rb-style-page input[type="search"],
body.rb-style-page input[type="email"],
body.rb-style-page .filter-select,
body.rb-style-page .search-input,
body.rb-style-page .filter-input {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    background: var(--rb-bg-elevated);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--rb-text-primary);
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

body.rb-style-page select option {
    background: var(--rb-bg-elevated);
    color: var(--rb-text-primary);
}

body.rb-style-page select:focus,
body.rb-style-page input[type="text"]:focus,
body.rb-style-page input[type="date"]:focus,
body.rb-style-page input[type="search"]:focus,
body.rb-style-page input[type="email"]:focus,
body.rb-style-page .filter-select:focus,
body.rb-style-page .search-input:focus,
body.rb-style-page .filter-input:focus {
    border-color: var(--rb-brand);
    background: var(--rb-bg-overlay);
}

body.rb-style-page label {
    color: var(--rb-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

body.rb-style-page table,
body.rb-style-page .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

body.rb-style-page thead,
body.rb-style-page .table-dark thead {
    background: var(--rb-bg-tertiary);
}

body.rb-style-page th,
body.rb-style-page .table-dark thead th {
    padding: 12px;
    color: var(--rb-text-primary);
    border-bottom: 2px solid var(--rb-border);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

body.rb-style-page td,
body.rb-style-page .table-dark td {
    padding: 12px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

body.rb-style-page tbody tr,
body.rb-style-page .table-dark tbody tr {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.rb-style-page tbody tr:hover,
body.rb-style-page .table-dark tbody tr:hover {
    background: rgba(45, 212, 191, 0.1);
}

body.rb-style-page .loading-row,
body.rb-style-page .loading-state,
body.rb-style-page .no-data-message {
    padding: 36px 20px;
    text-align: center;
}

body.rb-style-page .loading-spinner,
body.rb-style-page .spinner {
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--rb-brand);
    border-radius: 50%;
}

body.rb-style-page .pagination {
    gap: 10px;
    margin-top: 24px;
}

body.rb-style-page .pagination .page-link {
    min-width: 42px;
    min-height: 42px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.rb-style-page .pagination .page-link:hover {
    background: rgba(45, 212, 191, 0.16);
    border-color: var(--rb-brand);
    color: var(--rb-text-primary);
}

body.rb-style-page .badge,
body.rb-style-page .confidence-badge,
body.rb-style-page .bet-type-badge,
body.rb-style-page .league-rank,
body.rb-style-page .league-accuracy {
    border-radius: 0;
    font-weight: 700;
}

body.rb-style-page .hero-badge,
body.rb-style-page .match-time,
body.rb-style-page .status-info,
body.rb-style-page .odds-group,
body.rb-style-page .market-box {
    background: var(--rb-bg-tertiary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
}

body.rb-style-page .hero-stat-card,
body.rb-style-page .league-card,
body.rb-style-page .match-bet-card,
body.rb-style-page .chart-card,
body.rb-style-page .combo-item,
body.rb-style-page .agent-card,
body.rb-style-page .recommendation-card,
body.rb-style-page .accuracy-stat-item {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    box-shadow: none;
}

body.rb-style-page .hero-stat-card:hover,
body.rb-style-page .league-card:hover,
body.rb-style-page .match-bet-card:hover,
body.rb-style-page .combo-item:hover,
body.rb-style-page .agent-card:hover,
body.rb-style-page .recommendation-card:hover,
body.rb-style-page .accuracy-stat-item:hover {
    border-color: var(--rb-brand);
    box-shadow: 0 0 0 1px var(--rb-brand);
    transform: none;
}

body.rb-style-page .status-badge.correct,
body.rb-style-page .profit-positive,
body.rb-style-page .positive {
    color: var(--rb-success);
}

body.rb-style-page .status-badge.incorrect,
body.rb-style-page .profit-negative,
body.rb-style-page .negative {
    color: var(--rb-danger);
}

body.rb-style-page .warning,
body.rb-style-page .pending {
    color: var(--rb-warning);
}

body.dashboard-style-page .dashboard-header,
body.betbuilder-style-page .dashboard-header,
body.history-style-page .dashboard-header,
body.leagues-style-page .leagues-header,
body.agents-style-page .agents-hero {
    margin-bottom: 24px;
}

body.dashboard-style-page .upgrade-prompt,
body.dashboard-style-page .no-matches {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border-strong);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

body.dashboard-style-page .upgrade-prompt h4,
body.dashboard-style-page .no-matches h3 {
    color: var(--rb-text-primary);
    margin-bottom: 12px;
}

body.dashboard-style-page .upgrade-prompt p,
body.dashboard-style-page .no-matches p {
    color: var(--rb-text-secondary);
    margin-bottom: 16px;
}

body.dashboard-style-page .date-controls {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px;
    margin-bottom: 24px;
}

body.dashboard-style-page .date-controls label {
    margin: 0;
}

body.dashboard-style-page #loading-indicator {
    margin: 20px 0;
}

body.dashboard-style-page .category-section,
body.dashboard-style-page .league-section {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 28px;
    overflow: visible;
    box-shadow: none;
}

body.dashboard-style-page .category-header,
body.dashboard-style-page .league-header {
    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid var(--rb-border);
    padding: 18px 20px;
}

body.dashboard-style-page .category-title,
body.dashboard-style-page .league-header h3 {
    color: var(--rb-text-primary);
}

body.dashboard-style-page .category-icon,
body.dashboard-style-page .collapse-arrow,
body.dashboard-style-page .league-country,
body.dashboard-style-page .prediction-label,
body.dashboard-style-page .odds-label {
    color: var(--rb-text-secondary);
}

body.dashboard-style-page .league-premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.16);
    border: 1px solid rgba(45, 212, 191, 0.32);
    color: var(--rb-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.dashboard-style-page .matches-list {
    padding: 8px 0;
}

body.dashboard-style-page .enhanced-match-row,
body.dashboard-style-page .match-row:not(.enhanced-match-row) {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dashboard-style-page .enhanced-match-row:hover,
body.dashboard-style-page .match-row:not(.enhanced-match-row):hover {
    background: rgba(45, 212, 191, 0.08);
}

body.dashboard-style-page .match-prediction,
body.dashboard-style-page .match-score,
body.dashboard-style-page .match-extras {
    color: var(--rb-text-primary);
}

body.dashboard-style-page .prediction-placeholder {
    background: var(--rb-bg-tertiary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    padding: 10px 12px;
}

body.dashboard-style-page .prediction-result.locked-preview {
    background: var(--rb-bg-surface);
    border: 2px solid rgba(45, 212, 191, 0.22);
    border-radius: 0;
    padding: 10px 12px;
    min-height: 64px;
}

body.dashboard-style-page .prediction-lock-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.dashboard-style-page .prediction-lock-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    opacity: 0.75;
    filter: blur(5px);
}

body.dashboard-style-page .prediction-lock-bars .bar {
    display: block;
    height: 10px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.3);
}

body.dashboard-style-page .prediction-lock-bars .bar-short {
    width: 56%;
}

body.dashboard-style-page .prediction-lock-bars .bar-medium {
    width: 72%;
}

body.dashboard-style-page .prediction-lock-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 118px;
}

body.dashboard-style-page .prediction-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.34);
    color: var(--rb-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.dashboard-style-page .prediction-lock-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: right;
}

body.leagues-style-page .leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 30px;
}

body.leagues-style-page .rb-page-shell {
    max-width: 1360px;
}

body.leagues-style-page .league-section {
    margin-bottom: 12px;
}

/* ── Section headers ── */
body.leagues-style-page .league-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rb-border);
}

body.leagues-style-page .league-section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    margin: 0;
}

body.leagues-style-page .league-section-icon {
    font-size: 1.4rem;
    line-height: 1;
}

body.leagues-style-page .league-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--rb-bg-tertiary);
    color: var(--rb-text-secondary);
    border: 1px solid var(--rb-border);
}

body.leagues-style-page .league-section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.leagues-style-page .league-section-dot-active {
    background: var(--rb-success);
    box-shadow: none;
}

body.leagues-style-page .league-section-dot-ended {
    background: var(--rb-text-muted, #64748b);
    opacity: 0.6;
}

/* ── World Cup highlight ── */
body.leagues-style-page .league-section-header-worldcup {
    border-bottom-color: rgba(218, 165, 32, 0.3);
}

body.leagues-style-page .league-section-header-worldcup h2 {
    background: #daa520;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.leagues-style-page .league-card-worldcup {
    border: 1px solid rgba(218, 165, 32, 0.25) !important;
    background: rgba(218, 165, 32, 0.06) !important;
}

body.leagues-style-page .league-card-worldcup:hover {
    border-color: rgba(218, 165, 32, 0.45) !important;
    box-shadow: none;
}

/* ── Ended league cards (dimmed) ── */
body.leagues-style-page .league-card-ended {
    opacity: 0.65;
}

body.leagues-style-page .league-card-ended:hover {
    opacity: 0.9;
}

body.leagues-style-page .league-card {
    padding: 24px;
    cursor: pointer;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.leagues-style-page .league-card-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    width: 100%;
}

body.leagues-style-page .league-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

body.leagues-style-page .league-meta-item {
    background: var(--rb-bg-tertiary);
    border: 1px solid var(--rb-border);
    border-radius: 0;
    padding: 10px;
    text-align: center;
    padding: 16px 14px;
}

body.leagues-style-page .league-meta-label,
body.leagues-style-page .league-detail-label {
    display: block;
    font-size: 0.72rem;
    color: var(--rb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

body.leagues-style-page .league-meta-value {
    color: var(--rb-text-primary);
    font-size: 0.95rem;
}

body.leagues-style-page .league-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--rb-border);
    white-space: nowrap;
}

body.leagues-style-page .league-status-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--rb-success);
    border-color: rgba(16, 185, 129, 0.3);
}

body.leagues-style-page .league-status-upcoming,
body.leagues-style-page .league-status-idle {
    background: rgba(45, 212, 191, 0.12);
    color: var(--rb-brand);
    border-color: rgba(45, 212, 191, 0.3);
}

body.leagues-style-page .league-status-paused {
    background: rgba(255, 215, 0, 0.12);
    color: var(--rb-warning);
    border-color: rgba(255, 215, 0, 0.3);
}

body.leagues-style-page .league-status-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: var(--rb-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

body.leagues-style-page .league-accuracy-badge,
body.leagues-style-page .league-inline-meta {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--rb-bg-tertiary);
    white-space: nowrap;
    border: 1px solid var(--rb-border);
    color: var(--rb-text-primary);
}

body.leagues-style-page .league-card .league-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 16px;
    gap: 12px;
    width: 100%;
}

body.leagues-style-page .league-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

body.leagues-style-page .league-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

body.leagues-style-page .league-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--rb-text-primary);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.leagues-style-page .league-logo-wrap.is-fallback-only img,
body.leagues-style-page .league-modal-logo-wrap.is-fallback-only img {
    display: none;
}

body.leagues-style-page .league-logo-wrap.is-fallback-only .league-logo-fallback,
body.leagues-style-page .league-modal-logo-wrap.is-fallback-only .league-modal-logo-fallback {
    display: flex;
}

body.leagues-style-page .league-info {
    width: 100%;
    text-align: center;
}

body.leagues-style-page .league-info h3 {
    margin: 0 0 4px;
    color: var(--rb-text-primary);
    font-size: 1.1rem;
    line-height: 1.3;
}

body.leagues-style-page .league-info .league-country {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rb-text-secondary);
}

body.leagues-style-page #leagueModal .modal-dialog {
    max-width: 1140px;
}

body.leagues-style-page .league-modal-content {
    background: var(--rb-bg-primary);
    color: var(--rb-text-primary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    overflow: hidden;
}

body.leagues-style-page .league-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 2px solid var(--rb-border);
    position: relative;
}

body.leagues-style-page .league-modal-header > .d-flex {
    align-items: center !important;
}

body.leagues-style-page .league-modal-body {
    padding: 28px;
}

body.leagues-style-page .league-modal-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

body.leagues-style-page .league-modal-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

body.leagues-style-page .league-modal-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--rb-text-primary);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.leagues-style-page .league-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    line-height: 1.3;
}

body.leagues-style-page .league-modal-country {
    color: var(--rb-text-secondary);
    font-size: 0.85rem;
}

body.leagues-style-page .league-modal-header .league-status-badge,
body.leagues-style-page .league-modal-header .league-inline-meta {
    font-size: 0.72rem;
    padding: 4px 10px;
}

body.leagues-style-page .league-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: var(--rb-text-primary);
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.leagues-style-page .league-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: none;
}

body.leagues-style-page .league-stat-card {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    padding: 20px;
    text-align: center;
    height: 100%;
}

body.leagues-style-page .league-stat-card-teal {
    border-color: rgba(45, 212, 191, 0.3);
}

body.leagues-style-page .league-stat-card-success {
    border-color: rgba(16, 185, 129, 0.3);
}

body.leagues-style-page .league-stat-card-warning {
    border-color: rgba(255, 215, 0, 0.3);
}

body.leagues-style-page .league-stat-card-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

body.leagues-style-page .league-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--rb-text-primary);
}

body.leagues-style-page .league-stat-label {
    color: var(--rb-text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.leagues-style-page .league-predictions-heading {
    font-weight: 700;
    color: var(--rb-text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rb-border);
    margin-bottom: 16px;
}

body.leagues-style-page .league-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--rb-border);
}

body.leagues-style-page .league-predictions-table {
    margin-bottom: 0;
}

body.leagues-style-page .league-date-text,
body.leagues-style-page .league-match-text {
    color: var(--rb-text-primary);
    font-weight: 600;
}

body.leagues-style-page .league-match-vs {
    color: var(--rb-text-secondary);
}

body.leagues-style-page .league-confidence-meter {
    position: relative;
    width: 100%;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    overflow: hidden;
}

body.leagues-style-page .league-confidence-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--rb-brand);
    transition: width 0.3s ease;
}

body.leagues-style-page .league-confidence-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rb-text-primary);
}

body.leagues-style-page .league-odds-badge {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--rb-warning);
    padding: 6px 12px;
}

body.leagues-style-page .league-prediction-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 0;
    border: 1px solid var(--rb-border);
    font-size: 0.78rem;
    font-weight: 700;
}

body.leagues-style-page .league-prediction-home {
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.35);
}

body.leagues-style-page .league-prediction-away {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

body.leagues-style-page .league-prediction-draw {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.3);
}

body.leagues-style-page .league-prediction-default {
    background: var(--rb-bg-tertiary);
    color: var(--rb-text-primary);
}

body.leagues-style-page .league-modal-empty {
    padding: 40px;
}

body.leagues-style-page .league-detail-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

body.leagues-style-page .league-detail-pill {
    background: var(--rb-bg-tertiary);
    border: 1px solid var(--rb-border);
    border-radius: 0;
    padding: 14px;
}

body.leagues-style-page .league-detail-pill strong {
    color: var(--rb-text-primary);
    font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════
   BET BUILDER — Horizontal carousel + futuristic cards
   ═══════════════════════════════════════════════════ */

body.betbuilder-style-page .bet-combinations-grid {
    display: block;
}

body.betbuilder-style-page .betbuilder-loading-copy {
    margin-top: 20px;
}

body.betbuilder-style-page .empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

body.betbuilder-style-page .empty-state-error {
    color: var(--rb-danger);
}

/* ── Carousel shell ── */
.bb-carousel-shell { position: relative; }

.bb-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}

.bb-nav-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--rb-border);
    background: var(--rb-bg-tertiary);
    color: var(--rb-text-primary);
    cursor: pointer;
    transition: all .2s;
}
.bb-nav-btn:hover:not(:disabled) { border-color: var(--rb-brand); color: var(--rb-brand); }
.bb-nav-btn:disabled { opacity: .3; cursor: default; }

.bb-counter {
    font-size: .88rem;
    font-weight: 700;
    color: var(--rb-text-secondary);
    letter-spacing: .04em;
    min-width: 56px;
    text-align: center;
}

.bb-carousel-viewport {
    overflow: hidden;
    border-radius: 0;
}

.bb-carousel-track {
    display: flex;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.bb-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 2px;
    box-sizing: border-box;
}

.bb-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.bb-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid var(--rb-border);
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.bb-dot.active { background: var(--rb-brand); border-color: var(--rb-brand); }
.bb-dot:hover { border-color: var(--rb-brand); }

/* ── Card — glass panel ── */
body.betbuilder-style-page .match-bet-card {
    background: var(--rb-bg-surface);
    border: 1px solid rgba(45,212,191,.15);
    border-radius: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* ── Card top (teams + AI ring) ── */
.bb-card-top {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.bb-match-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bb-league-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
}

.bb-league-name {
    font-size: .82rem;
    color: var(--rb-text-secondary);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-kickoff {
    font-size: .82rem;
    font-weight: 700;
    color: var(--rb-text-secondary);
    padding: 6px 12px;
    background: rgba(255,255,255,.04);
    border-radius: 0;
}

.bb-versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.bb-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.bb-team-away { justify-content: flex-end; text-align: right; }

.bb-team-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AI confidence ring */
.bb-ai-ring {
    position: relative;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) 0deg, var(--ring-color) var(--ring-deg), rgba(255,255,255,.08) var(--ring-deg), rgba(255,255,255,.08) 360deg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bb-ai-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(15,23,42,.95);
}
.bb-ai-pct {
    position: relative;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rb-text-primary);
    z-index: 1;
}
.bb-ai-pct small { font-size: .7rem; opacity: .7; }

/* ── Odds row ── */
.bb-odds-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.bb-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px;
    transition: background .2s;
    border-right: 1px solid rgba(255,255,255,.06);
}
.bb-odd:last-child { border-right: none; }

.bb-odd.pick {
    background: rgba(45,212,191,.1);
    box-shadow: inset 0 -2px 0 var(--rb-brand);
}

.bb-odd-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--rb-brand);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bb-odd-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rb-text-primary);
}

/* ── Profile strip (5-col stats bar) ── */
.bb-profile-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.bb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.bb-stat:last-child { border-right: none; }

.bb-stat-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rb-text-primary);
}

.bb-stat-lbl {
    font-size: .68rem;
    color: var(--rb-text-secondary);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
    line-height: 1.2;
}

/* ── Sections (signals, combos) ── */
.bb-section {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bb-section:last-child { border-bottom: none; }

.bb-section-title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--rb-text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

/* ── Signals ── */
.bb-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.bb-signal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
}

.bb-signal-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
    background: rgba(45,212,191,.12);
    font-size: .9rem;
}

.bb-signal-body { flex: 1; min-width: 0; }

.bb-signal-market {
    font-size: .78rem;
    color: var(--rb-text-secondary);
    margin-bottom: 2px;
}

.bb-signal-pick {
    font-size: .92rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-signal-ctx {
    font-size: .74rem;
    color: var(--rb-text-secondary);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-signal-odds {
    font-size: .88rem;
    font-weight: 700;
    color: var(--rb-brand);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

/* ── Combos ── */
.bb-combos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.bb-combo {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
    padding: 16px;
}

.bb-combo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bb-combo-tone {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 0;
    background: rgba(45,212,191,.12);
    border: 1px solid rgba(45,212,191,.18);
    color: var(--rb-brand);
    flex-shrink: 0;
}

.bb-combo-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-combo-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.bb-combo-sel {
    font-size: .78rem;
    font-weight: 600;
    color: var(--rb-text-primary);
    background: rgba(45,212,191,.08);
    border: 1px solid rgba(45,212,191,.12);
    border-radius: 0;
    padding: 5px 10px;
    white-space: nowrap;
}

.bb-combo-ctx {
    font-size: .74rem;
    color: var(--rb-text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.bb-combo-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.bb-combo-meta {
    display: block;
    font-size: .68rem;
    color: var(--rb-text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bb-combo-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--rb-text-primary);
}

.bb-combo-return { color: var(--rb-brand); }

/* ── Keep old classes for logo rendering ── */

body.betbuilder-style-page .league-logo-wrap,
body.betbuilder-style-page .team-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--rb-border);
}

body.betbuilder-style-page .league-logo-wrap {
    width: 24px;
    height: 24px;
}

body.betbuilder-style-page .team-logo-wrap {
    width: 34px;
    height: 34px;
}

body.betbuilder-style-page .league-logo,
body.betbuilder-style-page .team-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

body.betbuilder-style-page .league-logo-fallback,
body.betbuilder-style-page .team-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rb-text-primary);
}

body.betbuilder-style-page .team-logo-wrap.is-fallback-only img,
body.betbuilder-style-page .league-logo-wrap.is-fallback-only img,
body.betbuilder-style-page .player-bet-avatar.is-fallback-only img {
    display: none;
}

body.betbuilder-style-page .team-logo-wrap.is-fallback-only .team-logo-fallback,
body.betbuilder-style-page .league-logo-wrap.is-fallback-only .league-logo-fallback,
body.betbuilder-style-page .player-bet-avatar.is-fallback-only .player-bet-avatar-fallback {
    display: flex;
}

body.betbuilder-style-page .player-bet-avatar:not(.is-fallback-only) .player-bet-avatar-fallback {
    display: none;
}

body.betbuilder-style-page .match-time {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

body.betbuilder-style-page .match-teams-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

body.betbuilder-style-page .team-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 0;
}

body.betbuilder-style-page .team-block-away {
    justify-content: flex-end;
    text-align: right;
}

body.betbuilder-style-page .team-copy,
body.betbuilder-style-page .team-copy-away {
    min-width: 0;
    flex: 1 1 auto;
}

body.betbuilder-style-page .team-name {
    color: var(--rb-text-primary);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.betbuilder-style-page .prediction-section,
body.betbuilder-style-page .player-bet-section,
body.betbuilder-style-page .markets-section,
body.betbuilder-style-page .combo-item,
body.betbuilder-style-page .signal-card {
    background: var(--rb-bg-tertiary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    padding: 20px;
}

body.betbuilder-style-page .prediction-section,
body.betbuilder-style-page .player-bet-section,
body.betbuilder-style-page .markets-section {
    margin-bottom: 16px;
}

body.betbuilder-style-page .prediction-label,
body.betbuilder-style-page .combo-header,
body.betbuilder-style-page .market-label,
body.betbuilder-style-page .odd-label {
    color: var(--rb-brand);
    font-weight: 700;
}

body.betbuilder-style-page .bet-section-label,
body.betbuilder-style-page .combo-meta-label,
body.betbuilder-style-page .player-bet-meta-label {
    color: var(--rb-text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.betbuilder-style-page .prediction-odds,
body.betbuilder-style-page .markets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.betbuilder-style-page .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.betbuilder-style-page .odd-box,
body.betbuilder-style-page .market-box {
    padding: 16px 14px;
    text-align: center;
    cursor: pointer;
}

body.betbuilder-style-page .market-label {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

body.betbuilder-style-page .odd-value,
body.betbuilder-style-page .market-value,
body.betbuilder-style-page .stat-value,
body.betbuilder-style-page .total-odds {
    color: var(--rb-text-primary);
    font-weight: 700;
}

body.betbuilder-style-page .market-value {
    font-size: 1.18rem;
}

body.betbuilder-style-page .match-profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

body.betbuilder-style-page .profile-box {
    cursor: default;
    min-height: 118px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.betbuilder-style-page .signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

body.betbuilder-style-page .signal-card {
    padding: 18px;
}

body.betbuilder-style-page .signal-card-head,
body.betbuilder-style-page .signal-footer,
body.betbuilder-style-page .combo-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.betbuilder-style-page .signal-card-head {
    margin-bottom: 12px;
}

body.betbuilder-style-page .signal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.14);
    color: var(--rb-brand);
    font-weight: 800;
    flex-shrink: 0;
}

body.betbuilder-style-page .signal-market,
body.betbuilder-style-page .combo-label {
    color: var(--rb-text-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

body.betbuilder-style-page .signal-selection {
    color: var(--rb-text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

body.betbuilder-style-page .signal-context,
body.betbuilder-style-page .combo-context {
    color: var(--rb-text-secondary);
    font-size: 0.82rem;
}

body.betbuilder-style-page .signal-odds {
    color: var(--rb-brand);
    font-size: 0.92rem;
    font-weight: 700;
}

body.betbuilder-style-page .combo-topline {
    margin-bottom: 16px;
}

body.betbuilder-style-page .combo-tone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: var(--rb-brand);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

body.betbuilder-style-page .combo-label {
    flex: 1 1 auto;
    text-align: right;
}

body.betbuilder-style-page .combo-context {
    margin-top: 14px;
}

body.betbuilder-style-page .player-bets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.betbuilder-style-page .player-bet-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rb-border);
    border-radius: 0;
    padding: 14px;
}

body.betbuilder-style-page .player-bet-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 12px;
}

body.betbuilder-style-page .player-bet-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--rb-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.betbuilder-style-page .player-bet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.betbuilder-style-page .player-bet-avatar-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

body.betbuilder-style-page .player-bet-copy {
    min-width: 0;
    flex: 1;
}

body.betbuilder-style-page .player-bet-type {
    color: var(--rb-text-secondary);
    font-size: 0.74rem;
    margin-bottom: 3px;
}

body.betbuilder-style-page .player-bet-player {
    color: var(--rb-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.betbuilder-style-page .player-bet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rb-border);
}

body.betbuilder-style-page .player-bet-meta-value {
    color: var(--rb-text-primary);
    font-weight: 700;
}

body.betbuilder-style-page .player-bet-odds {
    text-align: right;
}

body.betbuilder-style-page .combo-list,
body.betbuilder-style-page .combo-selections {
    gap: 10px;
}

body.betbuilder-style-page .combo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.betbuilder-style-page .combo-selections {
    display: flex;
    flex-direction: column;
}

body.betbuilder-style-page .combo-selection,
body.betbuilder-style-page .stat-item,
body.betbuilder-style-page .player-name,
body.betbuilder-style-page .vs-badge,
body.betbuilder-style-page .match-time {
    color: var(--rb-text-secondary);
}

body.betbuilder-style-page .combo-selection {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.14);
    border-radius: 0;
    padding: 10px 12px;
    color: var(--rb-text-primary);
    font-weight: 600;
}

body.betbuilder-style-page .confidence-badge,
body.betbuilder-style-page .bet-type-badge {
    background: rgba(45, 212, 191, 0.16);
    border: 1px solid var(--rb-border-strong);
    color: var(--rb-text-primary);
}

body.betbuilder-style-page .confidence-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: center;
}

body.agents-style-page .agents-dashboard-container {
    min-height: auto;
    padding-bottom: 0;
}

body.agents-style-page .agents-hero,
body.agents-style-page .leaderboard-section,
body.agents-style-page .todays-picks-section,
body.agents-style-page .all-agents-section,
body.agents-style-page .charts-section,
body.agents-style-page .recent-predictions-section {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
    padding: 30px 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

body.agents-style-page .agents-hero::before {
    background: rgba(45, 212, 191, 0.07);
    animation: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

body.agents-style-page .hero-content {
    max-width: none;
}

body.agents-style-page .hero-badge {
    background: rgba(45, 212, 191, 0.12);
    border: 2px solid var(--rb-border-strong);
    color: var(--rb-brand);
}

body.agents-style-page .hero-title,
body.agents-style-page .section-title,
body.agents-style-page .combo-odds-value,
body.agents-style-page .agent-stat-value,
body.agents-style-page .pick-agent,
body.agents-style-page .pick-conf,
body.agents-style-page .pick-odds,
body.agents-style-page .agent-name {
    color: var(--rb-text-primary);
}

body.agents-style-page .hero-title {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

body.agents-style-page .hero-stats-grid,
body.agents-style-page .charts-grid,
body.agents-style-page .agent-combos-grid,
body.agents-style-page .agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

body.agents-style-page .hero-stat-card {
    padding: 24px;
}

body.agents-style-page .stat-icon,
body.agents-style-page .gradient-purple,
body.agents-style-page .gradient-green,
body.agents-style-page .gradient-gold,
body.agents-style-page .gradient-blue {
    background: rgba(45, 212, 191, 0.14);
    color: var(--rb-brand);
    border-radius: 0;
}

body.agents-style-page .glass,
body.agents-style-page .chart-card,
body.agents-style-page .modal-container {
    background: var(--rb-bg-secondary);
    border: 2px solid var(--rb-border);
    box-shadow: none;
}

body.agents-style-page .rank-1,
body.agents-style-page .rank-2,
body.agents-style-page .rank-3,
body.agents-style-page .rank-other,
body.agents-style-page .combo-type-badge,
body.agents-style-page .agent-type-badge {
    background: rgba(45, 212, 191, 0.12);
    color: var(--rb-brand);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

body.agents-style-page .action-btn,
body.agents-style-page .refresh-btn {
    border-radius: 0;
}

body.agents-style-page .hero-btn.primary {
    background: var(--rb-brand);
    color: var(--rb-bg-primary);
    box-shadow: none;
}

body.agents-style-page .hero-btn.primary:hover {
    background: var(--rb-brand-dark);
    color: var(--rb-bg-primary);
    box-shadow: none;
}

body.agents-style-page .hero-btn.secondary {
    background: var(--rb-bg-tertiary);
    border: 2px solid var(--rb-border);
    color: var(--rb-text-primary);
}

body.agents-style-page .hero-btn.secondary:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: var(--rb-border-strong);
    color: var(--rb-text-primary);
}

body.agents-style-page .agent-combo-card,
body.agents-style-page .combo-safe .combo-header,
body.agents-style-page .combo-medium .combo-header,
body.agents-style-page .combo-rambo .combo-header,
body.agents-style-page .combo-header {
    background: var(--rb-bg-secondary);
    border-color: var(--rb-border);
    box-shadow: none;
}

body.agents-style-page .combo-header::before,
body.agents-style-page .combo-safe .combo-header::before,
body.agents-style-page .combo-medium .combo-header::before,
body.agents-style-page .combo-rambo .combo-header::before {
    height: 2px;
    background: var(--rb-brand);
}

body.agents-style-page .combo-pick-item,
body.agents-style-page .pick-prediction,
body.agents-style-page .criteria-item {
    background: var(--rb-bg-tertiary);
    border: 1px solid var(--rb-border);
}

body.agents-style-page .pick-number,
body.agents-style-page .combo-stat.highlight,
body.agents-style-page .combo-stat.profit,
body.agents-style-page .agent-confidence-chip {
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--rb-brand);
}

body.agents-style-page .leaderboard-tabs,
body.agents-style-page .hero-actions,
body.agents-style-page .picks-filters,
body.agents-style-page .agents-filters,
body.agents-style-page .predictions-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

body.agents-style-page .leaderboard-table-wrapper,
body.agents-style-page .predictions-table-wrapper {
    overflow-x: auto;
}

body.agents-style-page .leaderboard-table th,
body.agents-style-page .predictions-table th {
    white-space: nowrap;
}

body.agents-style-page .modal-overlay {
    background: rgba(2, 6, 23, 0.72);
}

body.agents-style-page .modal-container {
    max-width: 1080px;
}

body.agents-style-page .result-badge {
    width: auto;
    height: auto;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.75rem;
}

body.agents-style-page .agent-recent-name {
    color: var(--rb-brand);
    font-weight: 700;
}

body.agents-style-page .agent-odds-value {
    color: var(--rb-text-primary);
    font-weight: 700;
}

body.agents-style-page .agent-modal-section,
body.agents-style-page .agent-detail-card {
    background: var(--rb-bg-tertiary);
    border: 1px solid var(--rb-border);
    border-radius: 0;
    padding: 18px;
}

body.agents-style-page .agent-modal-section {
    margin-bottom: 18px;
}

body.agents-style-page .agent-modal-heading {
    color: var(--rb-text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
}

body.agents-style-page .agent-modal-copy,
body.agents-style-page .agent-modal-note,
body.agents-style-page .agent-performance-label,
body.agents-style-page .agent-detail-label,
body.agents-style-page .agent-pick-list-meta {
    color: var(--rb-text-secondary);
}

body.agents-style-page .agent-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body.agents-style-page .agent-detail-value {
    color: var(--rb-text-primary);
    font-size: 1.45rem;
    font-weight: 800;
}

body.agents-style-page .agent-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.agents-style-page .agent-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 0;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: var(--rb-text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

body.agents-style-page .agent-modal-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body.agents-style-page .agent-performance-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.agents-style-page .agent-performance-item strong {
    color: var(--rb-text-primary);
    font-size: 1.05rem;
}

body.agents-style-page .agent-modal-section-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

body.agents-style-page .agent-history-table-wrap {
    overflow-x: auto;
}

body.agents-style-page .agent-history-table {
    width: 100%;
    border-collapse: collapse;
}

body.agents-style-page .agent-history-table th,
body.agents-style-page .agent-history-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.agents-style-page .agent-history-table thead {
    background: rgba(255, 255, 255, 0.04);
}

body.agents-style-page .agent-history-table tr:hover {
    background: rgba(45, 212, 191, 0.08);
}

body.agents-style-page .agent-empty-state {
    color: var(--rb-text-secondary);
    padding: 10px 0;
}

body.agents-style-page .agent-pick-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agents-style-page .agent-pick-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rb-border);
    border-radius: 0;
}

body.agents-style-page .agent-pick-list-main {
    min-width: 0;
    flex: 1;
}

body.agents-style-page .agent-pick-list-match {
    color: var(--rb-text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

body.agents-style-page .agent-pick-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

body.history-style-page #dashboard {
    padding-top: 32px;
}

body.history-style-page .history-container .rb-page-shell {
    margin-top: 72px;
}

body.history-style-page .history-container .rb-page-shell > .rb-feature-lock:first-child {
    margin-top: 96px;
}

body.history-style-page .dashboard-header.rb-page-header {
    margin-top: 16px;
}

body.history-style-page .dashboard-controls,
body.history-style-page .filter-controls {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

body.history-style-page .view-toggle,
body.history-style-page .month-picker,
body.history-style-page .action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

body.history-style-page .action-buttons {
    margin-left: auto;
}

body.history-style-page .accuracy-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 190px));
    justify-content: center;
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto 24px;
}

body.history-style-page .accuracy-stat-item {
    min-height: 132px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--rb-bg-tertiary);
    border: 2px solid var(--rb-border);
    border-radius: 0;
}

body.history-style-page .accuracy-stat-item:hover {
    transform: none;
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.18);
}

body.history-style-page .accuracy-stat-item .stat-label {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    line-height: 1.35;
    text-align: center;
}

body.history-style-page .accuracy-stat-item .stat-value {
    color: var(--rb-text-primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

body.history-style-page .accuracy-stat-item.highlight {
    border-color: var(--rb-brand);
    box-shadow: 0 0 0 1px var(--rb-brand);
}

body.history-style-page .prediction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    max-width: 176px;
    padding: 8px 14px;
    border-radius: 0;
    border: 1px solid var(--rb-border);
    background: var(--rb-bg-tertiary);
    color: var(--rb-text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    white-space: normal;
    box-shadow: none;
}

body.history-style-page .prediction-badge-home {
    background: rgba(45, 212, 191, 0.14);
    border-color: rgba(45, 212, 191, 0.4);
    color: #8ef2e8;
}

body.history-style-page .prediction-badge-draw {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffe58a;
}

body.history-style-page .prediction-badge-away {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.38);
    color: #c4dbff;
}

body.history-style-page .prediction-badge-neutral {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--rb-border);
    color: var(--rb-text-primary);
}

body.history-style-page .table-dark td:nth-child(4) {
    white-space: normal;
}

body.history-style-page .backfill-btn {
    background: rgba(255, 215, 0, 0.12);
    border: 2px solid rgba(255, 215, 0, 0.28);
    color: var(--rb-text-primary);
}

body.history-style-page .backfill-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.38);
    color: var(--rb-text-primary);
}

body.history-style-page .table-responsive {
    padding: 0;
    overflow-x: auto;
}

body.history-style-page .table-dark {
    min-width: 1100px;
}

body.history-style-page .table-dark tbody tr:nth-of-type(odd) {
    background: transparent;
}

body.history-style-page .loading-indicator p {
    color: var(--rb-text-secondary);
}

@media (max-width: 991px) {
    body.rb-style-page .rb-page-shell {
        margin: 32px auto;
        padding: 0 16px 40px;
    }

    body.agents-style-page .rb-page-shell {
        max-width: 100%;
        padding: 0 16px 56px;
    }

    body.rb-style-page .section-header,
    body.rb-style-page .leaderboard-header,
    body.rb-style-page .chart-header,
    body.history-style-page .dashboard-controls,
    body.history-style-page .filter-controls,
    body.dashboard-style-page .date-controls {
        flex-direction: column;
        align-items: stretch;
    }

    body.history-style-page .action-buttons {
        margin-left: 0;
    }

    body.history-style-page .accuracy-stats-row {
        grid-template-columns: repeat(2, minmax(175px, 190px));
    }

    body.history-style-page .history-container .rb-page-shell > .rb-feature-lock:first-child {
        margin-top: 78px;
    }

    body.betbuilder-style-page .prediction-odds,
    body.betbuilder-style-page .markets-grid,
    body.betbuilder-style-page .player-bets-grid,
    body.betbuilder-style-page .signal-grid {
        grid-template-columns: 1fr;
    }

    body.betbuilder-style-page .match-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.leagues-style-page .league-card-meta,
    body.leagues-style-page .league-detail-strip,
    body.agents-style-page .agent-detail-grid,
    body.agents-style-page .agent-modal-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.rb-style-page .rb-page-header,
    body.rb-style-page .rb-section,
    body.agents-style-page .agents-hero,
    body.agents-style-page .leaderboard-section,
    body.agents-style-page .todays-picks-section,
    body.agents-style-page .all-agents-section,
    body.agents-style-page .charts-section,
    body.agents-style-page .recent-predictions-section {
        padding: 24px 18px;
    }

    body.agents-style-page .hero-stats-grid,
    body.agents-style-page .charts-grid,
    body.agents-style-page .agent-combos-grid,
    body.agents-style-page .agents-grid,
    body.leagues-style-page .leagues-grid,
    body.betbuilder-style-page .bet-combinations-grid {
        grid-template-columns: 1fr;
    }

    body.betbuilder-style-page .match-profile-grid {
        grid-template-columns: 1fr;
    }

    body.betbuilder-style-page .signal-footer,
    body.betbuilder-style-page .combo-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    body.betbuilder-style-page .combo-label {
        text-align: left;
    }

    body.history-style-page .accuracy-stats-row {
        grid-template-columns: 1fr;
    }

    body.history-style-page .prediction-badge {
        min-width: 0;
        width: 100%;
        max-width: 168px;
    }

    body.history-style-page .history-container .rb-page-shell > .rb-feature-lock:first-child {
        margin-top: 72px;
    }

    body.dashboard-style-page .enhanced-match-row,
    body.dashboard-style-page .match-row:not(.enhanced-match-row) {
        gap: 12px;
    }
}

/* Premium Markets Container and Dropdown Styles */
.match-container {
    width: 100%;
    display: block;
}

.btn-expand-markets {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-expand-markets:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: var(--rb-brand);
}

.btn-expand-markets .expand-icon {
    color: var(--rb-brand);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-expand-markets.expanded .expand-icon {
    transform: rotate(180deg);
}

.match-markets-dropdown {
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 20px;
    margin: 8px 0;
    max-width: 100%;
}

.markets-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.market-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 16px;
    transition: all 0.3s ease;
}

.market-card:hover {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.market-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--rb-brand);
}

.market-source {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.market-prediction {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.market-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.market-confidence {
    color: rgba(255, 255, 255, 0.7);
}

.market-odds {
    background: rgba(45, 212, 191, 0.1);
    padding: 4px 8px;
    border-radius: 0;
    color: var(--rb-brand);
    font-weight: 600;
}

.no-markets-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .markets-grid {
        grid-template-columns: 1fr;
    }

    .btn-expand-markets {
        min-width: 35px;
        padding: 6px 10px;
    }
}

/* ============================================================
   DASHBOARD STATS & CHARTS
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE ANALYTICS CARD — full-width glassmorphism card
   Inspired by modern dark-UI cards with glow border effect
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE CARD — Gradient glow card with bar chart
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE CARD — 4 stat boxes in a row, text only
   ═══════════════════════════════════════════════════════════════ */

.perf-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rb-border);
    border: 1px solid var(--rb-border);
    margin-bottom: 16px;
}

.perf-card__stat {
    background: var(--rb-bg-surface);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perf-card__stat-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rb-text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.perf-card__stat-value.positive { color: var(--rb-success); }
.perf-card__stat-value.negative { color: var(--rb-danger); }

.perf-card__stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--rb-text-tertiary);
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .perf-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 7-day accuracy table ─────────────────────────────────────── */

/* ── Chart Panels ──────────────────────────────────────────────── */
.perf-charts-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1px;
    background: var(--rb-border);
    border: 1px solid var(--rb-border);
    margin-bottom: 16px;
}

.perf-chart-panel {
    background: var(--rb-bg-surface);
    display: flex;
    flex-direction: column;
}

.perf-chart-panel__header {
    padding: 12px 16px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.perf-chart-panel__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.perf-chart-panel__subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--rb-text-tertiary);
}

.perf-chart-panel__body {
    position: relative;
    padding: 8px 12px 12px;
    height: 180px;
    flex: 1;
}

.perf-chart-panel__body--doughnut {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 4px 12px 12px;
}

@media (max-width: 768px) {
    .perf-charts-row {
        grid-template-columns: 1fr;
    }
    .perf-chart-panel__body {
        height: 160px;
    }
    .perf-chart-panel__body--doughnut {
        height: 160px;
    }
}

/* ── Legacy ──────────────────────────────────────────────────── */

@media (max-width: 992px) {
    .perf-card__charts {
        grid-template-columns: 1fr;
    }
    .chart-wrapper-doughnut {
        max-width: 180px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .perf-card__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .perf-card__content {
        padding: 16px;
    }
    .perf-card__stat-value {
        font-size: 1.3rem;
    }
    .perf-card__charts {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Chart wrapper sizes (used inside perf-card) */
.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
}

.chart-wrapper-doughnut {
    height: 180px;
    max-width: 220px;
    margin: 0 auto;
}

/* Confidence Bar in Match Cards */
.confidence-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.confidence-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    overflow: hidden;
    min-width: 40px;
}

.confidence-bar-fill {
    height: 100%;
    border-radius: 0;
    transition: width 0.4s ease;
}

.confidence-bar-fill.high { background: var(--rb-success); }
.confidence-bar-fill.medium { background: #f59e0b; }
.confidence-bar-fill.low { background: var(--rb-danger); }

.confidence-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 32px;
    text-align: right;
}

.confidence-text.high { color: var(--rb-success); }
.confidence-text.medium { color: #f59e0b; }
.confidence-text.low { color: var(--rb-danger); }

/* Responsive - Stats & Charts */
@media (max-width: 992px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }
    .chart-wrapper-doughnut {
        max-width: 180px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 16px 12px;
    }
    .stat-card .stat-value {
        font-size: 1.6rem;
    }
    .dashboard-charts-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .chart-wrapper {
        height: 160px;
    }
}
