/* ScoreProb Premium page (premium-v2, 8 Nov 2026). Everything is scoped to .pm; tokens follow the Model Performance page. */
body:has(.pm) { background: #f5f7fa; }
html[data-theme="dark"] body:has(.pm) { background: #0b1220; }

.pm {
    --surf: #ffffff; --surf2: #eef2f8; --line: #e3e8ef; --line2: #c9d2e2;
    --ink: #18212f; --ink2: #44526b; --muted: #5a6680;
    --acc: #2857d9; --acc-ink: #ffffff; --acc-soft: #e6edfc;
    --gold: #b7791f; --gold-soft: #fbf3e4;
    --up: #0a7a5a; --down: #b3261e; --track: #e3e8f1; --shadow: 0 1px 2px rgba(20, 30, 60, .07);
    --lock: linear-gradient(135deg, #10203a 0%, #1d3566 100%);
    max-width: 1200px; margin: 0 auto; padding: 0 32px 72px;
    color: var(--ink); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .pm {
    --surf: #111a29; --surf2: #16213a; --line: #243249; --line2: #3a4d6b;
    --ink: #ecf2ff; --ink2: #b4c0d3; --muted: #8f9db5;
    --acc: #5b87ff; --acc-ink: #0b1220; --acc-soft: #17284d;
    --gold: #e3a94a; --gold-soft: #2a2316;
    --up: #2bd3a0; --down: #ff8a7a; --track: #1f2c44; --shadow: 0 1px 0 rgba(0, 0, 0, .25);
    --lock: linear-gradient(135deg, #0c1730 0%, #18305e 100%);
}
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
.pm h1, .pm h2, .pm h3, .pm p, .pm dl, .pm dd, .pm ul, .pm ol { margin: 0; }
.pm a { color: inherit; }
.pm .is-up { color: var(--up); }
.pm .is-down { color: var(--down); }
.pm-muted { color: var(--muted); }

/* jump nav */
.pm-jump { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.pm-jump::-webkit-scrollbar { display: none; }
.pm-jump a { flex: none; font-size: 13px; font-weight: 600; color: var(--ink2); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surf); }
.pm-jump a:hover { border-color: var(--acc); }

/* buttons */
.pm-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink) !important; font-size: 15px; font-weight: 750; text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.pm-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(40, 87, 217, .25); }
.pm-btn.is-ghost { background: var(--surf); color: var(--ink) !important; border-color: var(--line2); }
.pm-btn.is-ghost:hover { border-color: var(--acc); box-shadow: none; }
.pm-btn.is-small { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.pm-btn:focus-visible, .pm-jump a:focus-visible, .pm summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* hero */
.pm-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: center; padding: 36px 0 6px; }
.pm-stack { display: flex; flex-direction: column; gap: 18px; }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surf); font-size: 13px; font-weight: 650; color: var(--ink2); }
.pm-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(10, 122, 90, .14); animation: pm-pulse 2.4s ease-in-out infinite; }
@keyframes pm-pulse { 50% { box-shadow: 0 0 0 7px rgba(10, 122, 90, 0); } }
.pm h1 { font-size: 50px; line-height: 1.05; letter-spacing: -.03em; font-weight: 850; text-wrap: balance; max-width: 15ch; }
.pm-lead { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 56ch; }
.pm-trust { display: flex; gap: 10px; align-items: flex-start; max-width: 58ch; font-size: 13.5px; color: var(--muted); }
.pm-trust svg { flex: none; margin-top: 1px; color: var(--up); }

.pm-card { background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.pm-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pm-h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.pm-cs { font-size: 14px; color: var(--muted); margin-top: 6px !important; }
.pm-note { font-size: 13px; color: var(--muted); margin-top: 12px !important; }

/* score card */
.pm-score { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; position: relative; overflow: hidden; }
.pm-score::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--acc), var(--up)); }
.pm-score-top { display: flex; flex-direction: column; gap: 2px; }
.pm-score-l { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-score-v { font-size: 56px; font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.pm-score-s { font-size: 14px; color: var(--ink2); }
.pm-spark { width: 100%; height: 64px; display: block; }
.pm-zero { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.pm-line { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pm-line.is-best { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .75; }
.pm-hit { display: flex; flex-direction: column; gap: 6px; }
.pm-hit-l { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink2); }
.pm-hit-l b { color: var(--ink); font-size: 16px; }
.pm-hit-s { font-size: 12.5px; color: var(--muted); text-align: right; }
.pm-bw { position: relative; }
.pm-bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--up)); }
.pm-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.pm-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pm-mini dt { font-size: 12px; color: var(--muted); }
.pm-mini dd { font-size: 17px; font-weight: 800; }

/* tiles */
.pm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.pm-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.pm-tl { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.pm-tv { font-size: 30px; font-weight: 850; letter-spacing: -.025em; line-height: 1.15; }
.pm-ts { font-size: 12.5px; color: var(--muted); }

/* sections */
.pm-sec { margin-top: 48px; scroll-margin-top: 70px; }
.pm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.pm-head h2 { font-size: 28px; font-weight: 850; letter-spacing: -.025em; line-height: 1.15; }
.pm-head p { font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 70ch; }
.pm-count { flex: none; font-size: 13px; font-weight: 800; color: var(--gold); background: var(--gold-soft); padding: 6px 12px; border-radius: 999px; }
.pm-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pm-empty { padding: 26px; border: 1px dashed var(--line2); border-radius: 16px; background: var(--surf); display: flex; flex-direction: column; gap: 6px; }
.pm-access { margin: 0 0 14px !important; padding: 12px 16px; border-radius: 12px; background: var(--acc-soft); font-size: 14px; font-weight: 600; }
.pm-access.is-member { background: rgba(10, 122, 90, .12); color: var(--up); }

/* open picks */
.pm-open { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pm-lock { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--lock); color: #eaf0ff; box-shadow: 0 10px 30px rgba(16, 32, 58, .18); overflow: hidden; }
.pm-lock::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 169, 74, .35), transparent 70%); pointer-events: none; }
.pm-lock-top { display: flex; justify-content: space-between; align-items: center; }
.pm-badge { font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.pm-padlock { color: #e3a94a; }
.pm-lock-dl { display: grid; gap: 6px; }
.pm-lock-dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pm-lock-dl dt { color: #a9b8d6; }
.pm-lock-dl dd { font-weight: 700; text-align: right; }
.pm-lock-dl code { font-size: 12px; color: #cfdcff; }
.pm-blur { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 14px; letter-spacing: -.5px; color: rgba(234, 240, 255, .35); filter: blur(1.5px); user-select: none; }
.pm-lock-p { font-size: 12.5px; color: #a9b8d6; }
.pm-lock .pm-btn { background: #e3a94a; border-color: #e3a94a; color: #10203a !important; }
.pm-lock .pm-btn:hover { box-shadow: 0 6px 18px rgba(227, 169, 74, .35); }

/* unlocked pick (filled in by sp-premium.js) */
.pm-pick { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surf); border: 1px solid var(--gold); box-shadow: 0 8px 24px rgba(183, 121, 31, .14); }
.pm-pick-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pm-pick-m { font-size: 17px; font-weight: 800; line-height: 1.3; }
.pm-pick-m a { text-decoration: none; }
.pm-pick-m a:hover { text-decoration: underline; }
.pm-pick-sel { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); }
.pm-pick-sel b { font-size: 16px; }
.pm-pick-sel strong { font-size: 22px; color: var(--gold); }
.pm-pick-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.pm-pick-price small { font-size: 11px; color: var(--muted); }
.pm-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-pick-grid div { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.pm-pick-grid b { font-size: 15px; color: var(--ink); }

/* tables */
.pm-table-wrap { overflow-x: auto; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pm-table-wrap.is-flat { border: 0; box-shadow: none; border-radius: 0; margin-top: 10px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surf2); }
.pm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table .r { text-align: right; white-space: nowrap; }
.pm-table.is-compact th, .pm-table.is-compact td { padding: 9px 8px; }
.pm-table.is-compact th { background: transparent; }
.pm-date { white-space: nowrap; color: var(--ink2); }
.pm-match { min-width: 220px; }
.pm-match a, .pm-match span { font-weight: 700; text-decoration: none; }
.pm-match a:hover { text-decoration: underline; }
.pm-match small { display: block; font-size: 12.5px; color: var(--muted); }
.pm-st { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surf2); color: var(--ink2); }
.pm-st.st-won { background: rgba(10, 122, 90, .13); color: var(--up); }
.pm-st.st-lost { background: rgba(179, 38, 30, .11); color: var(--down); }
.pm-st.st-pending { background: var(--gold-soft); color: var(--gold); }
.pm-u { font-weight: 800; }

.pm-table.is-folded tr.pm-more { display: none !important; }
.pm-more-btn { margin-top: 12px; }

/* chart */
.pm-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin: 8px 0 10px; }
.pm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pm-legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--acc); }
.pm-legend i.lg-best { border-top: 2px dashed var(--muted); }
.pm-chart { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.pm-chart svg { width: 100%; height: 240px; display: block; }
.pm-yax { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-align: right; min-width: 26px; }
.pm-xax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin: 6px 0 0 34px; }

/* gate */
.pm-prog { margin-top: 16px; }
.pm-prog-l { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; }
.pm-list { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink2); }

/* how it works */
.pm-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.pm-step { padding: 20px; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.pm-step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); font-weight: 850; }
.pm-step h3 { font-size: 16px; font-weight: 800; }
.pm-step p { font-size: 14px; color: var(--ink2); }

/* verify */
.pm-verify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pm-verify .pm-btn { margin-top: 16px; }
.pm-code { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: #0d1626; color: #d9e4ff; }
.pm-code-l { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8fa2c7; }
.pm-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; word-break: break-all; }

/* what you get */
.pm-what { padding: 28px; background: linear-gradient(160deg, var(--surf) 0%, var(--acc-soft) 160%); }
.pm-checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px !important; }
.pm-checks li { position: relative; padding-left: 28px; font-size: 15px; }
.pm-checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: var(--up); color: #fff; font-size: 12px; font-weight: 900; line-height: 1; }
html[data-theme="dark"] .pm-checks li::before { color: #0b1220; }
.pm-what-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; font-size: 13.5px; }

/* FAQ */
.pm-faq { display: grid; gap: 10px; }
.pm-faq details { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.pm-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 750; display: flex; justify-content: space-between; gap: 12px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.pm-faq details[open] summary::after { content: "−"; }
.pm-faq details p { padding: 0 0 16px; color: var(--ink2); font-size: 14.5px; }

/* responsible gambling */
.pm-rg { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surf); font-size: 13px; color: var(--muted); }
.pm-18 { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--down); color: var(--down); font-weight: 850; font-size: 13px; }

@media (max-width: 1000px) {
    .pm-hero { grid-template-columns: 1fr; gap: 26px; }
    .pm h1 { font-size: 40px; }
    .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-grid2, .pm-verify { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .pm { padding: 0 16px 56px; font-size: 14.5px; }
    .pm-hero { padding-top: 22px; }
    .pm h1 { font-size: 33px; }
    .pm-lead { font-size: 16px; }
    .pm-btns .pm-btn { flex: 1 1 100%; }
    .pm-score-v { font-size: 46px; }
    .pm-tiles { gap: 10px; margin-top: 24px; }
    .pm-tile { padding: 14px; }
    .pm-tv { font-size: 24px; }
    .pm-sec { margin-top: 38px; }
    .pm-head { flex-direction: column; align-items: flex-start; }
    .pm-head h2 { font-size: 23px; }
    .pm-steps, .pm-checks { grid-template-columns: 1fr; }
    .pm-card, .pm-what { padding: 18px; }
    .pm-chart svg { height: 180px; }

    /* results table becomes cards */
    #pm-results .pm-table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    #pm-results .pm-table thead { display: none; }
    #pm-results .pm-table, #pm-results .pm-table tbody { display: block; }
    #pm-results .pm-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; margin-bottom: 10px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; }
    #pm-results .pm-table td { padding: 0; border: 0; }
    #pm-results .pm-table td.r { text-align: left; }
    #pm-results .pm-date { grid-column: 1; font-size: 12.5px; }
    #pm-results .pm-match { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
    #pm-results .pm-table td:nth-child(7) { grid-column: 2; grid-row: 1; text-align: right; }
    #pm-results .pm-table td:nth-child(3) { font-size: 13px; color: var(--ink2); }
    #pm-results .pm-table td:nth-child(4), #pm-results .pm-table td:nth-child(5) { font-size: 13px; }
    #pm-results .pm-table td:nth-child(6)::before { content: "⚽ "; }
    #pm-results .pm-table td:nth-child(4), #pm-results .pm-table td:nth-child(6) { text-align: right; }
    #pm-results .pm-table td:nth-child(8) { grid-column: 2; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    .pm-chip i { animation: none; }
    .pm-btn { transition: none; }
}
