/* Tip724 AI Prediction Lab — scoped styles */
.ai-page {
    --ai-bg: #081421;
    --ai-panel: #0d1d2d;
    --ai-panel2: #102437;
    --ai-line: rgba(150, 180, 205, .16);
    --ai-muted: #8ea4b8;
    --ai-green: #39d99a;
    --ai-cyan: #4fd7e8;
    color: #eaf3fb;
    background: #07131f;
    min-height: 80vh;
    padding-bottom: 72px;
    margin-bottom: -80px !important;
}

.ai-reset-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 12px;
            padding: 11px 16px;
            border: 1px solid rgba(148, 163, 184, .35);
            border-radius: 10px;
            background: transparent;
            color: inherit;
            text-decoration: none;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s ease, border-color .2s ease;
            font-size: 16px;
        }

        .ai-reset-button:hover {
            background: rgba(148, 163, 184, .12);
            border-color: rgba(148, 163, 184, .7);
        }

.ai-page * {
    box-sizing: border-box
}

.ai-container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto
}

.ai-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 32px 0 20px;
    background: radial-gradient(ellipse at 78% 18%, rgba(44, 194, 161, .17), transparent 36%), linear-gradient(125deg, #07121f 0%, #0b2031 55%, #0b1b2b 100%);
    border-bottom: 1px solid var(--ai-line)
}

.ai-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .23;
    background-image: linear-gradient(rgba(84, 146, 174, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(84, 146, 174, .13) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, black, transparent 85%)
}

.ai-hero-inner {
    position: relative;
    z-index: 1
}

.ai-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--ai-green)
}

.ai-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #b9d3e8;
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.ai-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ai-green);
    box-shadow: 0 0 0 5px rgba(57, 217, 154, .12);
    animation: aiPulse 1.8s infinite
}

.ai-hero h1 {
    margin: 18px 0 14px;
    max-width: 760px;
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.05;
    font-weight: bold;
    font-family: 'yt_bold';
}

.ai-hero h1 em {
    font-style: normal;
    color: var(--ai-green)
}

.ai-hero p {
    max-width: 650px;
    color: #a9bbcb;
    line-height: 1.75;
    font-size: 16px;
    margin: 0
}

.ai-hero-pills {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 25px
}

.ai-hero-pills span {
    border: 1px solid rgba(127, 171, 190, .22);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 1.1px;
    font-weight: 800;
    color: #c5d6e3;
    background: rgba(255, 255, 255, .025)
}

.ai-orbit {
    position: absolute;
    border: 1px solid rgba(57, 217, 154, .14);
    border-radius: 50%;
    pointer-events: none
}

.ai-orbit-one {
    width: 350px;
    height: 350px;
    right: 8%;
    top: -130px
}

.ai-orbit-two {
    width: 500px;
    height: 500px;
    right: 2%;
    top: -205px
}

.ai-main {
    padding-top: 30px
}

.ai-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start
}

.ai-builder-main {
    display: grid;
    gap: 18px
}

.ai-panel {
    background: linear-gradient(145deg, rgba(15, 33, 49, .98), rgba(10, 25, 39, .98));
    border: 1px solid var(--ai-line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12)
}

.ai-section-head {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 22px
}

.ai-step {
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(57, 217, 154, .32);
    border-radius: 9px;
    color: var(--ai-green);
    background: rgba(57, 217, 154, .07);
    font-weight: 800;
    font-size: 13px
}

.ai-section-head h2,
.ai-summary-panel h2 {
    margin: 4px 0 0;
    font-size: 21px;
    line-height: 1.25;
    color: #f1f7fc
}

.ai-field-label {
    display: block;
    color: #d6e3ed;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px
}

.ai-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(145, 173, 195, .23);
    border-radius: 7px;
    background: #081724;
    color: #edf5fb;
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
    outline: none
}

.ai-input:focus {
    border-color: var(--ai-green);
    box-shadow: 0 0 0 3px rgba(57, 217, 154, .08)
}

.ai-input option {
    background: #081724;
    color: #edf5fb
}

.ai-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #71889b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin: 19px 0
}

.ai-or:before,
.ai-or:after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--ai-line)
}

.ai-team-fields,
.ai-date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.ai-team-fields label,
.ai-date-fields label {
    display: grid;
    gap: 8px;
    color: #d6e3ed;
    font-size: 12px;
    font-weight: 700
}

.ai-date-fields {
    margin-top: 14px
}

.ai-help {
    color: #7f96a9;
    font-size: 11px;
    line-height: 1.6;
    margin: 13px 0 0
}

.ai-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.ai-choice {
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(145, 173, 195, .17);
    background: rgba(5, 17, 28, .45);
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
    transition: border-color .2s, background .2s
}

.ai-choice:hover {
    border-color: rgba(57, 217, 154, .45)
}

.ai-choice:has(input:checked) {
    border-color: rgba(57, 217, 154, .55);
    background: rgba(57, 217, 154, .055)
}

.ai-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.ai-check {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid #496173;
    border-radius: 5px;
    display: grid;
    place-items: center
}

.ai-choice input:checked+.ai-check {
    border-color: var(--ai-green);
    background: var(--ai-green)
}

.ai-choice input:checked+.ai-check:after {
    content: "✓";
    font-size: 12px;
    color: #062116;
    font-weight: 900
}

.ai-choice-copy {
    display: grid;
    gap: 5px;
    min-width: 0
}

.ai-choice-copy strong {
    font-size: 12px;
    line-height: 1.35;
    color: #e3edf5
}

.ai-choice-copy small {
    font-size: 9px;
    color: #8299ac;
    letter-spacing: .6px
}

.ai-inline-actions {
    display: flex;
    gap: 16px;
    margin-top: 13px
}

.ai-text-button {
    border: 0;
    background: none;
    color: var(--ai-green);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 3px 0
}

.ai-feature-list {
    display: grid;
    gap: 9px
}

.ai-feature-choice {
    padding: 12px 14px
}

.ai-feature-weight {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    color: var(--ai-green);
    border: 1px solid rgba(57, 217, 154, .22);
    border-radius: 5px;
    padding: 5px 7px
}

.ai-score-control {
    margin-top: 23px;
    border-top: 1px solid var(--ai-line);
    padding-top: 18px
}

.ai-score-control>div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #d7e5ee;
    font-size: 12px;
    font-weight: 700
}

.ai-score-control>div:first-child strong {
    font-size: 19px;
    color: var(--ai-green)
}

.ai-score-control>div:first-child small {
    font-size: 10px;
    color: #8ba1b4
}

.ai-score-control input {
    width: 100%;
    accent-color: var(--ai-green);
    margin: 18px 0 5px
}

.ai-range-labels {
    display: flex;
    justify-content: space-between;
    color: #71889b;
    font-size: 10px
}

.ai-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px
}

.ai-summary-panel {
    padding: 24px 21px
}

.ai-summary-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    color: var(--ai-green);
    font-size: 23px;
    background: rgba(57, 217, 154, .09);
    border: 1px solid rgba(57, 217, 154, .22);
    margin-bottom: 17px
}

.ai-summary-panel h2 {
    margin: 7px 0 9px
}

.ai-summary-panel>p {
    color: #8ea4b8;
    font-size: 12px;
    line-height: 1.65;
    margin: 0 0 18px
}

.ai-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--ai-line);
    font-size: 11px;
    color: #91a7b9
}

.ai-summary-row strong {
    color: #e8f3fa
}

.ai-generate {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #36d895, #61e5b1);
    color: #062116;
    padding: 15px 13px;
    margin-top: 18px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(57, 217, 154, .14);
    transition: transform .2s, filter .2s
}

.ai-generate:hover {
    transform: translateY(-2px);
    filter: brightness(1.04)
}

.ai-generate:disabled {
    opacity: .7;
    cursor: wait;
    transform: none
}

.ai-generate-icon {
    font-size: 21px
}

.ai-generate>span:nth-child(2) {
    display: grid;
    gap: 5px;
    font-weight: 900;
    font-size: 16px
}

.ai-generate small {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: .75
}

.ai-arrow {
    margin-left: auto;
    font-size: 20px
}

.ai-disclaimer {
    font-size: 10px;
    color: #72899b;
    line-height: 1.6;
    margin-top: 14px
}

.ai-process-panel {
    padding: 21px
}

.ai-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px
}

.ai-pipeline>i {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--ai-green);
    box-shadow: 0 0 0 4px rgba(57, 217, 154, .08)
}

.ai-pipeline div {
    display: grid;
    gap: 5px
}

.ai-pipeline strong {
    font-size: 11px;
    color: #dce9f2
}

.ai-pipeline small {
    font-size: 10px;
    color: #7f96a9
}

.ai-scanning {
    margin: 30px 0;
    padding: 40px 24px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(57, 217, 154, .08), transparent 65%), #0b1b2a;
    border: 1px solid rgba(57, 217, 154, .24);
    border-radius: 12px
}

.ai-scanning[hidden] {
    display: none
}

.ai-scanner {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    position: relative
}

.ai-scanner-core {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(57, 217, 154, .12);
    color: var(--ai-green);
    font-size: 25px;
    animation: aiCore 1.5s infinite
}

.ai-scan-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(57, 217, 154, .5);
    border-radius: 50%;
    animation: aiRing 2s infinite
}

.ai-ring-two {
    animation-delay: 1s
}

.ai-scanning h2 {
    font-size: 22px;
    margin: 10px 0;
    color: #eef8ff
}

.ai-scanning p {
    color: #91a8ba;
    font-size: 12px;
    margin: 0 0 22px
}

.ai-progress {
    height: 5px;
    max-width: 500px;
    margin: auto;
    background: #1b3041;
    border-radius: 10px;
    overflow: hidden
}

.ai-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--ai-green), var(--ai-cyan));
    transition: width .3s;
    border-radius: 10px
}

.ai-progress-meta {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 9px auto 0;
    color: #7f96a9;
    font-size: 9px;
    letter-spacing: 1px
}

.ai-progress-meta strong {
    color: var(--ai-green)
}

.ai-results-section {
    margin-top: 38px;
    scroll-margin-top: 20px
}

.ai-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.ai-results-heading h2 {
    font-size: 27px;
    margin: 7px 0;
    color: #f1f7fc
}

.ai-results-heading p {
    margin: 0;
    color: #8da4b7;
    font-size: 12px
}

.ai-results-count {
    display: grid;
    text-align: center;
    min-width: 75px;
    padding: 10px;
    border: 1px solid var(--ai-line);
    border-radius: 8px;
    background: #0d1d2d
}

.ai-results-count strong {
    font-size: 24px;
    color: var(--ai-green)
}

.ai-results-count span {
    font-size: 10px;
    color: #8ca3b6
}

.ai-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.ai-result-card {
    background: linear-gradient(145deg, #102336, #0a1a29);
    border: 1px solid var(--ai-line);
    border-radius: 10px;
    padding: 18px;
    min-width: 0;
    transition: transform .2s, border-color .2s
}

.ai-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(57, 217, 154, .4)
}

.ai-result-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #8da4b6;
    font-size: 16px;
    gap: 10px
}

.ai-score {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(57, 217, 154, .7);
    color: var(--ai-green);
    position: relative
}

.ai-score strong {
    font-size: 17px;
    line-height: 1
}

.ai-score small {
    font-size: 6px;
    letter-spacing: .5px;
    margin-top: 4px
}

.ai-result-league {
    font-size: 12px;
    color: #8098ab;
    margin-top: 10px
}

.ai-result-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin: 16px 0
}

.ai-result-teams strong {
    font-size: 18px;
    line-height: 1.35;
    color: #edf5fb;
    overflow-wrap: anywhere
}

.ai-result-teams strong:last-child {
    text-align: right
}

.ai-result-teams span {
    font-size: 9px;
    color: #617b90;
    font-weight: 800
}

.ai-result-pick {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    padding: 12px;
    border-radius: 7px;
    background: rgba(57, 217, 154, .06);
    border: 1px solid rgba(57, 217, 154, .15)
}

.ai-result-pick small {
    font-size: 9px;
    color: #8ba2b5;
    grid-column: 1/-1
}

.ai-result-pick strong {
    font-size: 13px;
    color: var(--ai-green);
    overflow-wrap: anywhere
}

.ai-result-pick span {
    font-size: 10px;
    color: #8ba2b5;
    align-self: center
}

.ai-result-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 15px 0
}

.ai-result-stats div {
    display: grid;
    gap: 4px
}

.ai-result-stats small {
    font-size: 8px;
    color: #7f96a9;
    letter-spacing: .4px
}

.ai-result-stats strong {
    font-size: 13px;
    color: #e5f0f7
}

.ai-result-stats span {
    font-size: 9px;
    color: #7f96a9
}

.ai-result-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ai-line);
    padding-top: 13px;
    color: #b9cad7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700
}

.ai-result-link span {
    color: var(--ai-green);
    font-size: 17px
}

.ai-results-note {
    color: #71899b;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 18px
}

.ai-empty {
    padding: 28px;
    text-align: center;
    border: 1px dashed rgba(145, 173, 195, .25);
    border-radius: 10px;
    background: rgba(13, 29, 45, .65)
}

.ai-empty strong {
    font-size: 15px;
    color: #e6f0f7
}

.ai-empty p {
    font-size: 12px;
    color: #8ea4b8;
    line-height: 1.6
}

@keyframes aiPulse {
    50% {
        box-shadow: 0 0 0 8px rgba(57, 217, 154, 0)
    }
}

@keyframes aiCore {
    50% {
        transform: scale(.85);
        filter: brightness(1.4)
    }
}

@keyframes aiRing {
    0% {
        transform: scale(.55);
        opacity: 1
    }

    100% {
        transform: scale(1.35);
        opacity: 0
    }
}

@media(max-width:900px) {
    .ai-builder {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 14px
    }

    .ai-panel {
        padding: 20px
    }

    .ai-market-grid {
        grid-template-columns: 1fr
    }

    .ai-side {
        top: 10px
    }
}

@media(max-width:700px) {
    .ai-hero {
        padding: 20px 0 30px
    }

    .ai-container {
        width: min(100% - 24px, 1160px)
    }

    .ai-builder {
        grid-template-columns: 1fr
    }

    .ai-side {
        position: static;
        grid-row: 1
    }

    .ai-summary-panel {
        padding: 20px
    }

    .ai-summary-icon {
        display: none
    }

    .ai-summary-panel>p {
        margin-bottom: 12px
    }

    .ai-process-panel {
        display: none
    }

    .ai-market-grid {
        grid-template-columns: 1fr 1fr
    }

    .ai-panel {
        padding: 17px
    }

    .ai-results-grid {
        grid-template-columns: 1fr
    }

    .ai-results-heading h2 {
        font-size: 23px
    }

    .ai-result-teams strong {
        font-size: 16px
    }

    .ai-hero h1 {
        letter-spacing: -.8px
    }

    .ai-orbit {
        opacity: .45
    }
}

@media(max-width:430px) {

    .ai-market-grid,
    .ai-team-fields,
    .ai-date-fields {
        grid-template-columns: 1fr
    }

    .ai-hero-pills span {
        font-size: 8px
    }

    .ai-feature-choice {
        padding: 11px
    }

    .ai-feature-weight {
        font-size: 9px
    }

    .ai-results-heading {
        align-items: center
    }

    .ai-result-stats {
        gap: 13px
    }
}

@media(prefers-reduced-motion:reduce) {

    .ai-page *,
    .ai-page *:before,
    .ai-page *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }
}

/* Grouped match card: selected prediction markets stacked vertically */
.ai-result-picks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px
}

.ai-result-picks .ai-result-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 11px 12px;
    border-radius: 7px;
    background: rgba(57, 217, 154, .06);
    border: 1px solid rgba(57, 217, 154, .15)
}

.ai-result-picks .ai-result-pick small {
    grid-column: 1/-1;
    font-size: 9px;
    color: #8ba2b5
}

.ai-result-picks .ai-result-pick strong {
    font-size: 13px;
    color: var(--ai-green);
    overflow-wrap: anywhere
}

.ai-result-picks .ai-result-pick span {
    font-size: 10px;
    color: #8ba2b5;
    align-self: center
}