/* Dashboard 2.0 UX Refinement */
.bets-table-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
}

.table-header-pro h3 {
    letter-spacing: 0.5px;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.bankroll-focus-section {
    background: rgba(0, 255, 136, 0.02);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bankroll-focus-section .chart-container {
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.1));
}

.kpi-grid-3x4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Typography & Utilities */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-bold {
    font-weight: 700;
}

.x-small {
    font-size: 0.7rem;
}

.d-block {
    display: block;
}

/* Predictor Dashboard Styles */
.predictor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.predictor-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.predictor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.predictor-card.featured-pick {
    border: 1px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}

.predictor-card.featured-pick::before {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #1a1a1a;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
    z-index: 5;
}

.header-left {
    display: flex;
    align-items: center;
}

.confidence-bar-outer {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.match-title {
    margin: 0;
    font-size: 1.15rem;
}

.mini-badge {
    font-size: 0.6rem;
}

.accent-color {
    color: var(--primary-color);
}

.risk-text {
    font-size: 0.8rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.btn-premium {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.confidence-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.confidence-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.confidence-bar {
    width: 60px;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 1s ease-out;
}

.match-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
}

.pick-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item .value {
    font-weight: 600;
}

.detail-item.highlight .value {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.probs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.prob-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 8px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.prob-box.valor {
    background: rgba(0, 255, 136, 0.04);
    border-color: rgba(0, 255, 136, 0.1);
}

.prob-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.prob-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.valor .prob-value {
    color: var(--primary-color);
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    transition: border-color 0.3s;
}

.kpi-card:hover {
    border-color: var(--primary-color);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.kpi-trend {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.reasoning {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blur & Lock Overlay - Refined for Selective Interaction */
.selective-blur {
    filter: blur(8px) grayscale(0.5);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 18, 15, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 20;
    pointer-events: auto;
    /* Permite click en el botón de upgrade */
}

.lock-content {
    max-width: 240px;
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.lock-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lock-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Performance Stats Styling */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card.premium {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 128, 255, 0.1) 100%);
    border-color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.chart-bar {
    transition: height 1s ease-out;
}

/* Modal Base & Predictor Specifics */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background: #0d120f;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: block;
}

#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999;
}

#modalOverlay.active {
    display: block;
}

.breakdown-modal {
    padding: 0;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.01);
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.stat-highlight-box {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.glow-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.quant-secondary-stats {
    text-align: right;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.quant-secondary-stats small {
    color: var(--text-muted);
}

.quant-main-stat .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.insight-section {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-points {
    list-style: none;
    padding: 0;
}

.analysis-points li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.analysis-points li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Value Badges */
.value-tag-container {
    display: flex;
    align-items: center;
}

.value-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-high {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.tag-normal {
    background: rgba(0, 128, 255, 0.15);
    color: #0080ff;
    border: 1px solid rgba(0, 128, 255, 0.3);
}

.tag-low {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

/* Authority Banner */
.authority-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.auth-stat {
    text-align: center;
}

.auth-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.auth-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Featured Badge */
.featured-badge {
    background: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
}

/* Prob Comparison Bars */
.prob-comparison {
    margin: 1.25rem 0;
}

.comp-bar-wrapper {
    margin-bottom: 8px;
}

.comp-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.comp-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.comp-fill {
    height: 100%;
    border-radius: 2px;
}

.comp-fill.ai {
    background: var(--primary-color);
}

.comp-fill.market {
    background: rgba(255, 255, 255, 0.2);
}

.modal-dashboard-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.stat-highlight-quant {
    background: rgba(0, 255, 136, 0.05) !important;
}

.quant-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-box {
    padding: 15px !important;
}

.institutional-insight {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 3px solid #ffd700;
    padding: 1rem;
}

.insight-title {
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.institutional-insight ul {
    margin: 0;
    font-size: 0.8rem;
}

/* --- PROFESSIONAL DASHBOARD 2.0 --- */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 50px;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.professional-filters {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-grid-3x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.kpi-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.kpi-trend {
    font-size: 0.7rem;
    color: #64748b;
}

.highlight-green {
    border-left: 3px solid #00ff88;
}

.highlight-red {
    border-left: 3px solid #f72585;
}

/* Charts */
.charts-section-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-main-full {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.charts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.chart-container {
    height: 300px;
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chart-header h3 {
    font-size: 0.9rem;
    margin: 0;
}

/* Table Pro */
.table-wrapper-pro {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

#betsTablePro {
    width: 100%;
    border-collapse: collapse;
}

#betsTablePro th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#betsTablePro td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

.match-info {
    display: flex;
    flex-direction: column;
}

.match-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.match-league {
    font-size: 0.75rem;
    color: #64748b;
}

.odds-tag {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.text-success {
    color: #00ff88 !important;
}

.text-danger {
    color: #f72585 !important;
}

.font-bold {
    font-weight: 700;
}

.loading {
    color: rgba(255, 255, 255, 0.1) !important;
    filter: blur(4px);
}

/* --- BET BUILDER 2.0 (REACTIVE) --- */
.bet-builder-app {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.builder-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.builder-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
}

.step-num {
    background: var(--primary-color);
    color: #0c1a12;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Fixture Grid */
.fixture-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.fixture-choice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.fixture-choice-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
}

.fixture-choice-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.fixture-choice-card .teams {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.fixture-choice-card .vs {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 0 4px;
}

.fixture-choice-card .meta {
    font-size: 0.75rem;
    color: #64748b;
}

/* Market Grid */
.market-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.m-tab {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.m-tab.active {
    background: var(--primary-color);
    color: #0c1a12;
    border-color: var(--primary-color);
}

.market-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.market-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.market-btn:hover {
    border-color: var(--accent-color);
    background: rgba(76, 201, 240, 0.05);
}

.market-btn .m-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.market-btn .m-odds {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

/* Sidebar Slip */
.builder-sidebar {
    position: sticky;
    top: 100px;
}

.bet-slip-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.slip-header {
    padding: 20px;
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slip-selections {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.3;
}

.slip-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.remove-item {
    position: absolute;
    right: 8px;
    top: 8px;
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 1.1rem;
}

.item-meta {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 2px;
}

.item-main {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.badge-mini {
    font-size: 0.6rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 1px 6px;
    border-radius: 4px;
}

.item-odds {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
}

.slip-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.odds-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.odds-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
}

.text-accent {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 900;
}

.stake-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stake-input-group label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.stake-input-group input {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.profit-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* AI Analysis Block */
.ai-analysis-block {
    background: rgba(114, 9, 183, 0.1);
    border: 1px solid rgba(114, 9, 183, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.analysis-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c084fc;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.diagnostic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.diag-item {
    display: flex;
    flex-direction: column;
}

.d-label {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.d-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.alert-warning-mini {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 0.65rem;
    padding: 6px;
    border-radius: 6px;
    margin-top: 10px;
}

/* --- BET BUILDER 2.0: TRADING SOFTWARE STYLE --- */
.bet-builder-app-professional {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.builder-columns {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

/* Common Card Style */
.selection-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.step-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-badge {
    background: var(--primary-color);
    color: #0c1a12;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* League Selector */
.card-body-pro {
    padding: 15px 20px;
}

.searchable-select-pro+.ts-wrapper {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
}

/* Fixture Grid */
.fixture-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.fixture-choice-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixture-choice-card-v2:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.fixture-choice-card-v2.selected {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.f-teams {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
}

.f-teams .vs {
    color: #64748b;
    font-size: 0.7rem;
    margin: 0 5px;
    font-weight: 400;
}

.f-meta {
    display: flex;
    gap: 8px;
}

.badg-date,
.badg-time {
    font-size: 0.65rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Market Selection */
.market-nav-pro {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.m-tab-pro {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.m-tab-pro.active {
    background: var(--primary-color);
    color: #0c1a12;
}

.market-group-title {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.market-odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.market-btn-pro {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.15s;
}

.market-btn-pro:hover {
    border-color: var(--accent-color);
    background: rgba(76, 201, 240, 0.05);
}

.m-lbl {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.m-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* SIDEBAR SLIP */
.bet-slip-sidebar {
    position: sticky;
    top: 90px;
}

.bet-slip-container-pro {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.slip-header-pro {
    padding: 15px 20px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.1);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.slip-body-pro {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.slip-item-pro {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    margin-bottom: 8px;
}

.slip-item-pro .remove-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 1rem;
}

.item-match {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.item-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sel-name {
    font-size: 0.85rem;
    color: #fff;
}

.sel-odds {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Slip Footer */
.slip-footer-pro {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-line .label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.summary-line .value {
    font-size: 1.1rem;
}

.stake-input-pro {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
}

/* AI Diagnostic */
.ai-diagnostic-card {
    background: rgba(114, 9, 183, 0.1);
    border: 1px solid rgba(114, 9, 183, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.ai-header {
    font-size: 0.7rem;
    font-weight: 900;
    color: #c084fc;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.diagnostic-grid-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.diag-col {
    display: flex;
    flex-direction: column;
}

.d-lbl {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.d-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.btn-confirm-bet {
    background: var(--primary-color);
    color: #0c1a12;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.btn-confirm-bet:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Institutional Footer in Modal */
.modal-institutional-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Decision Support Engine - New Hierarchy (Hybrid 2.0) */
.decision-block {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.decision-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.decision-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.decision-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 800;
}

.featured-label {
    background: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.decision-item {
    display: flex;
    flex-direction: column;
}

.decision-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.decision-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.risk-description {
    font-size: 0.8rem;
    color: #ccc;
    font-style: italic;
    margin-top: 4px;
}

.stake-badge {
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 900;
    display: inline-block;
}

/* Layer 2: Quant Validation */
.quant-validation-layer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.quant-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quant-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.insight-point {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 5px;
}

.insight-point::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

/* Auth Label Redesign */

/* AI Strategic Diagnostic Reports */
.ai-dashboard-report {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-report-card {
    background: rgba(114, 9, 183, 0.03);
    border: 1px solid rgba(114, 9, 183, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.ai-report-card:hover {
    background: rgba(114, 9, 183, 0.05);
    border-color: rgba(114, 9, 183, 0.3);
    transform: translateY(-2px);
}

.report-card-title {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.report-card-body {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Dashboard Extras */
.badge-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.odds-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
    font-weight: 800;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* --- PERFORMANCE PAGE (ROI TRACK RECORD) --- */
.performance-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

.chart-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 250px;
    padding: 0 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chart-bar {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(to top, var(--primary-color), #4cc9f0);
    border-radius: 4px 4px 0 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 2px;
}

.chart-bar:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.chart-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.transparency-note {
    background: rgba(76, 201, 240, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 3rem;
}

.transparency-note h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transparency-note p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.back-nav {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-color);
}

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

    .chart-wrapper {
        gap: 10px;
    }

    .chart-bar {
        max-width: 40px;
    }
}

/* --- PHASE 37 HYBRID UI ENHANCEMENTS --- */
.predictor-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.15), 0 0 10px rgba(0, 204, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.edge-meter-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Hybrid Modal Refinement */
.hybrid-block {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
}

.summary-block {
    border-left: 2px solid #00ff88;
}

.metrics-block {
    border-left: 2px solid #00ccff;
}

.context-block {
    border-left: 2px solid #a0aec0;
}

.stat-circle {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.stat-circle:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stake-box {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

.hybrid-insights li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hybrid-insights li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* High Density Layout Fixes */
.predictor-grid {
    gap: 16px !important;
}

.match-title {
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.league-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* --- Modern Minimalist Buttons for Predictor --- */
.btn-pred-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
}

.btn-pred-core:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-pred-primary {
    background: rgba(0, 255, 136, 0.05);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.2);
}
.btn-pred-primary:not(:disabled):hover {
    background: rgba(0, 255, 136, 0.12);
    border-color: #00ff88;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
}

.btn-pred-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}
.btn-pred-secondary:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-pred-action {
    background: transparent;
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.05);
}
.btn-pred-action:not(:disabled):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-pred-gold {
    background: rgba(255, 215, 0, 0.05); 
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.2);
}
.btn-pred-gold:not(:disabled):hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: #ffd700;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

/* --- Optimized Conversion Buttons (Cards) --- */
.btn-pred-hero {
    background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
    color: #000000 !important;
    border: none;
    border-radius: 12px;
    height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 750;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 2; /* 2 parts of the flex container */
}

.btn-pred-hero:not(:disabled):hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
    background: linear-gradient(135deg, #ffd700 0%, #f0b90b 100%);
}

.btn-pred-hero:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-pred-ghost {
    background: transparent;
    color: #f0b90b !important;
    border: 2px solid #f0b90b;
    border-radius: 12px;
    height: 48px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1; /* 1 part of the flex container */
    white-space: nowrap;
}

.btn-pred-ghost:not(:disabled):hover {
    background: rgba(240, 185, 11, 0.1);
    color: #ffd700 !important;
    border-color: #ffd700;
}

.btn-pred-ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}