

/* First-starter MKT indicator - desktop Brain Market Edge */

@media (min-width: 901px) {

    #brainMarketPanel .market-table th:nth-child(11),
    #brainMarketPanel .market-table td:nth-child(11) {
        text-align: center !important;
        vertical-align: middle !important;
    }

    #brainMarketPanel .market-table td:nth-child(11) .first-starter-edge-mkt {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
        transform: none !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

}




    /* ------------------------------------------------------------
       Brain Bets page becomes the home for all four strategies.
       ------------------------------------------------------------ */

    #strategyHubV1 {
        width: 100%;
        margin: 0 0 26px;
    }

    .strategy-hub-header {
        margin-bottom: 18px;
    }

    .strategy-hub-eyebrow {
        color: var(--lime);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .strategy-hub-title {
        margin: 5px 0 0;
        font-size: clamp(28px, 4vw, 44px);
        line-height: 1;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .strategy-hub-intro {
        max-width: 760px;
        margin: 10px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.55;
    }

    .strategy-hub-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin-top: 20px;
    }

    .strategy-hub-selector button {
        min-height: 52px;
        padding: 10px 12px;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 12px;
        background: rgba(255,255,255,0.025);
        color: var(--muted);
        cursor: pointer;
        font: inherit;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.025em;
        transition:
            border-color 0.15s ease,
            background 0.15s ease,
            color 0.15s ease;
    }

    .strategy-hub-selector button:hover {
        border-color: rgba(183,255,59,0.38);
        color: var(--text);
    }

    .strategy-hub-selector button.active {
        border-color: rgba(183,255,59,0.72);
        background: rgba(183,255,59,0.10);
        color: var(--lime);
    }

    .strategy-hub-product {
        margin-top: 14px;
        padding: 20px;
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 16px;
        background: rgba(255,255,255,0.022);
    }

    .strategy-hub-product-name {
        margin: 0;
        font-size: 25px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .strategy-hub-tagline {
        margin-top: 4px;
        color: var(--lime);
        font-size: 12px;
        font-weight: 850;
    }

    .strategy-hub-blurb {
        max-width: 820px;
        margin: 10px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

    .strategy-hub-proof-grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(0, 1fr);
        gap: 12px;
        margin-top: 18px;
    }

    .strategy-hub-proof {
        padding: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 13px;
        background: rgba(0,0,0,0.13);
    }

    .strategy-hub-proof-label {
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .strategy-hub-proof-pot {
        margin-top: 5px;
        color: var(--lime);
        font-size: 30px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .strategy-hub-proof-note {
        margin-top: 7px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.45;
    }

    .strategy-hub-live-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .strategy-hub-live-stat {
        min-width: 0;
    }

    .strategy-hub-live-stat-label {
        display: block;
        color: var(--muted);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .strategy-hub-live-stat-value {
        display: block;
        margin-top: 4px;
        font-size: 15px;
        font-weight: 900;
    }

    .strategy-hub-tabs {
        display: flex;
        gap: 8px;
        margin-top: 18px;
    }

    .strategy-hub-tabs button,
    .strategy-hub-range button {
        min-height: 36px;
        padding: 7px 13px;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 9px;
        background: rgba(255,255,255,0.025);
        color: var(--muted);
        cursor: pointer;
        font: inherit;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.05em;
    }

    .strategy-hub-tabs button.active,
    .strategy-hub-range button.active {
        border-color: rgba(183,255,59,0.60);
        background: rgba(183,255,59,0.09);
        color: var(--lime);
    }

    .strategy-hub-range {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    .strategy-hub-content {
        margin-top: 14px;
    }

    .strategy-hub-empty,
    .strategy-hub-lock,
    .strategy-hub-loading {
        padding: 28px 18px;
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 12px;
        background: rgba(0,0,0,0.12);
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
        text-align: center;
    }

    .strategy-hub-lock strong {
        display: block;
        margin-bottom: 5px;
        color: var(--text);
        font-size: 14px;
    }

    .strategy-hub-table-wrap {
        overflow-x: auto;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
    }

    .strategy-hub-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 780px;
    }

    .strategy-hub-table th {
        padding: 10px 11px;
        background: rgba(255,255,255,0.035);
        color: var(--muted);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.055em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .strategy-hub-table td {
        padding: 11px;
        border-top: 1px solid rgba(255,255,255,0.06);
        font-size: 11px;
        white-space: nowrap;
    }

    .strategy-hub-horse {
        color: var(--text);
        font-weight: 900;
    }

    .strategy-hub-price {
        color: var(--lime);
        font-weight: 900;
    }

    .strategy-hub-win {
        color: var(--lime);
        font-weight: 900;
    }

    .strategy-hub-loss {
        font-weight: 850;
    }

    .strategy-hub-history-summary {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .strategy-hub-history-stat {
        padding: 11px 8px;
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 10px;
        background: rgba(0,0,0,0.12);
        text-align: center;
    }

    .strategy-hub-history-stat span:first-child {
        display: block;
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .strategy-hub-history-stat span:last-child {
        display: block;
        margin-top: 4px;
        font-size: 13px;
        font-weight: 900;
    }

    .strategy-hub-disclaimer {
        margin-top: 12px;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.5;
    }

    /*
     * Hide the existing Brain Bets content only while one of the
     * automatic strategies is selected.
     *
     * The Strategy Hub itself remains visible.
     */

    #brainBets.strategy-hub-auto-selected
        > .shell
        > :not(#strategyHubV1) {
        display: none !important;
    }

    /*
     * Analyst historical/comparison statistics remain hidden.
     * Analyst betting functionality is not deleted.
     */

    #analystHistorySection,
    #brainAnalystComparison,
    #brainVsAnalystFinal {
        display: none !important;
    }

    @media (max-width: 850px) {

        .strategy-hub-selector {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .strategy-hub-proof-grid {
            grid-template-columns: 1fr;
        }

        .strategy-hub-history-summary {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 520px) {

        .strategy-hub-selector {
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }

        .strategy-hub-selector button {
            min-height: 46px;
            padding: 8px;
            font-size: 10px;
        }

        .strategy-hub-product {
            padding: 15px;
        }

        .strategy-hub-history-summary {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }




/* ==========================================================
   STRATEGY HUB - VISUAL TIDY V1
   PRESENTATION ONLY
   ========================================================== */

#strategyHubV1 {
    width: 100%;
    margin: 0 auto;
}


/* ----------------------------------------------------------
   HUB INTRO
   ---------------------------------------------------------- */

#strategyHubV1 .strategy-hub-v1-kicker {
    margin-bottom: 5px !important;
}

#strategyHubV1 .strategy-hub-v1-title {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    line-height: 1.05 !important;
}

#strategyHubV1 .strategy-hub-v1-subtitle {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    line-height: 1.45 !important;
}


/* ----------------------------------------------------------
   FOUR STRATEGY SELECTORS
   ---------------------------------------------------------- */

#strategyHubSelector {
    gap: 8px !important;
    margin-bottom: 12px !important;
}

#strategyHubSelector [data-strategy] {
    min-height: 43px !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
}

#strategyHubSelector [data-strategy].active {
    box-shadow:
        inset 0 0 0 1px rgba(160, 255, 0, 0.14) !important;
}


/* ----------------------------------------------------------
   MAIN PRODUCT CARD
   ---------------------------------------------------------- */

#strategyHubProduct {
    margin-top: 12px !important;
    padding: 22px 24px 24px !important;
    border-radius: 13px !important;
    min-height: 0 !important;
}

#strategyHubProduct .strategy-v21-head {
    padding: 0 !important;
}

#strategyHubProduct .strategy-v21-name {
    font-size: 27px !important;
    line-height: 1.1 !important;
    margin: 0 0 4px !important;
}

#strategyHubProduct .strategy-v21-tagline {
    margin: 0 0 10px !important;
    line-height: 1.25 !important;
}

#strategyHubProduct .strategy-v21-blurb {
    max-width: 860px !important;
    margin: 0 0 14px !important;
    line-height: 1.55 !important;
}


/* ----------------------------------------------------------
   PERFORMANCE BOXES
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-stats {
    gap: 8px !important;
    margin: 12px 0 !important;
    max-width: 590px !important;
}

#strategyHubProduct .strategy-v21-stat {
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
}

#strategyHubProduct .strategy-v21-stat-label {
    margin-bottom: 5px !important;
    line-height: 1.1 !important;
}

#strategyHubProduct .strategy-v21-stat-value {
    line-height: 1.05 !important;
}


/* ----------------------------------------------------------
   UPCOMING / HISTORY BUTTONS
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-modes {
    gap: 7px !important;
    margin: 12px 0 18px !important;
}

#strategyHubProduct [data-v21-mode],
#strategyHubProduct [data-v21-days] {
    min-height: 32px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    line-height: 1.1 !important;
}


/* ----------------------------------------------------------
   SECTION LABEL
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-section {
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}


/* ----------------------------------------------------------
   DATE GROUPS
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-date-group {
    margin: 0 0 13px !important;
}

#strategyHubProduct .strategy-v21-date {
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
}


/* ----------------------------------------------------------
   TABLES
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-table-wrap {
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

#strategyHubProduct table {
    margin: 0 !important;
}

#strategyHubProduct th {
    padding: 8px 10px !important;
    line-height: 1.15 !important;
}

#strategyHubProduct td {
    padding: 8px 10px !important;
    line-height: 1.2 !important;
}

#strategyHubProduct tbody tr {
    height: auto !important;
}


/* ----------------------------------------------------------
   EMPTY / LOADING STATES
   ---------------------------------------------------------- */

#strategyHubProduct .strategy-v21-empty,
#strategyHubProduct .strategy-v21-loading {
    padding: 16px !important;
    min-height: 0 !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    #strategyHubSelector {
        gap: 6px !important;
    }

    #strategyHubSelector [data-strategy] {
        min-height: 40px !important;
        padding: 8px 9px !important;
    }

    #strategyHubProduct {
        padding: 18px 14px 20px !important;
    }

    #strategyHubProduct .strategy-v21-name {
        font-size: 24px !important;
    }

    #strategyHubProduct .strategy-v21-stats {
        max-width: none !important;
    }

    #strategyHubProduct th,
    #strategyHubProduct td {
        padding: 7px 8px !important;
    }
}




/* ==========================================================
   STRATEGY TABLE ALIGNMENT V1
   PRESENTATION ONLY
   ========================================================== */

#strategyHubProduct .strategy-v21-table-wrap {
    width: 100% !important;
}

#strategyHubProduct .strategy-v21-table-wrap table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}


/* RACE */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(1),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(1) {
    width: 22% !important;
    text-align: left !important;
}


/* NUMBER */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(2),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(2) {
    width: 9% !important;
    text-align: left !important;
}


/* RUNNER */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(3),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(3) {
    width: 26% !important;
    text-align: left !important;
}


/* PRICE */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(4),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(4) {
    width: 13% !important;
    text-align: left !important;
}


/* BOOKMAKER */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(5),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(5) {
    width: 17% !important;
    text-align: left !important;
}


/* STAKE */
#strategyHubProduct .strategy-v21-table-wrap th:nth-child(6),
#strategyHubProduct .strategy-v21-table-wrap td:nth-child(6) {
    width: 13% !important;
    text-align: left !important;
}


/* Keep text neat */
#strategyHubProduct .strategy-v21-table-wrap th,
#strategyHubProduct .strategy-v21-table-wrap td {
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

#strategyHubProduct .strategy-v21-table-wrap td:nth-child(3) {
    font-weight: 800 !important;
}


/* Mobile can scroll rather than crush columns */
@media (max-width: 700px) {

    #strategyHubProduct .strategy-v21-table-wrap {
        overflow-x: auto !important;
    }

    #strategyHubProduct .strategy-v21-table-wrap table {
        min-width: 680px !important;
    }
}




/* AUTOMATIC
   TIME | RACE | NO | RUNNER | PRICE | BOOKMAKER | STAKE */

#strategyHubProduct .strategy-v21-auto-table th:nth-child(1),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(1) {
    width: 11% !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(2),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(2) {
    width: 19% !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(3),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(3) {
    width: 8% !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(4),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(4) {
    width: 24% !important;
    font-weight: 800 !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(5),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(5) {
    width: 12% !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(6),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(6) {
    width: 15% !important;
}

#strategyHubProduct .strategy-v21-auto-table th:nth-child(7),
#strategyHubProduct .strategy-v21-auto-table td:nth-child(7) {
    width: 11% !important;
}


/* BRAIN UPCOMING
   TIME | RACE | NO | RUNNER | TYPE | BRAIN | PRICE | EDGE */

#strategyHubProduct .strategy-v21-brain-table th:nth-child(1),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(1) {
    width: 10% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(2),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(2) {
    width: 16% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(3),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(3) {
    width: 7% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(4),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(4) {
    width: 23% !important;
    font-weight: 800 !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(5),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(5) {
    width: 12% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(6),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(6) {
    width: 11% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(7),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(7) {
    width: 11% !important;
}

#strategyHubProduct .strategy-v21-brain-table th:nth-child(8),
#strategyHubProduct .strategy-v21-brain-table td:nth-child(8) {
    width: 10% !important;
}


/* BRAIN HISTORY */

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(1),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(1) {
    width: 21% !important;
}

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(2),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(2) {
    width: 9% !important;
}

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(3),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(3) {
    width: 28% !important;
    font-weight: 800 !important;
}

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(4),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(4) {
    width: 14% !important;
}

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(5),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(5) {
    width: 14% !important;
}

#strategyHubProduct .strategy-v21-brain-history-table th:nth-child(6),
#strategyHubProduct .strategy-v21-brain-history-table td:nth-child(6) {
    width: 14% !important;
}

@media (max-width: 700px) {

    #strategyHubProduct .strategy-v21-auto-table {
        min-width: 760px !important;
    }

    #strategyHubProduct .strategy-v21-brain-table {
        min-width: 900px !important;
    }

    #strategyHubProduct .strategy-v21-brain-history-table {
        min-width: 700px !important;
    }
}




/* ==========================================================
   BRAIN HISTORY - LIVE PERFORMANCE
   ========================================================== */

.brain-history-live-performance {
    margin:
        14px
        0
        18px;
}

.brain-history-live-title {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    color: rgba(255,255,255,.68);
}

.brain-history-live-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.brain-history-live-stat {
    padding:
        10px
        11px;
    border:
        1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background:
        rgba(255,255,255,.025);
}

.brain-history-live-label {
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    color: rgba(255,255,255,.48);
}

.brain-history-live-value {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    color: rgba(255,255,255,.94);
}

.brain-history-live-value.positive {
    color: #b9ff42;
}

.brain-history-live-value.negative {
    color: #ff7777;
}

.brain-history-live-note {
    margin-top: 6px;
    font-size: 9px;
    color: rgba(255,255,255,.40);
}

@media (max-width: 900px) {

    .brain-history-live-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {

    .brain-history-live-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

