/* Cockpit Hub Stylesheet */
/* ============================================================
   COCKPIT — Component Styles
   Uses only CSS vars from themes.css — no hardcoded colours
   ============================================================ */
:root {
    --cockpit-play:  #22c55e;
    --cockpit-lean:  #f59e0b;
    --cockpit-skip:  #6b7280;
    --cockpit-ev-pos: #22c55e;
    --cockpit-ev-neg: #ef4444;
    --cockpit-card-bg: var(--surface, rgba(255,255,255,.04));
    --cockpit-card-border: var(--border-subtle, rgba(255,255,255,.08));
    --cockpit-card-radius: 14px;
    --cockpit-shadow: 0 2px 16px rgba(0,0,0,.25);
    --cockpit-glow-play: 0 0 12px rgba(34,197,94,.30);
    --cockpit-glow-ev: 0 0 8px rgba(34,197,94,.25);
}
/* Layout */
.ck-page { padding: 1.25rem 1.5rem 3rem; max-width: 1600px; margin: 0 auto; }
.ck-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem 1rem;
}
.ck-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: start;
}
.ck-view-switcher {
    grid-column: 2;
    justify-self: center;
}
.ck-header-spacer {
    grid-column: 3;
    justify-self: end;
}
.ck-title { display: flex; align-items: center; gap: .5rem; }
.ck-title h1 { font-size: 1.35rem; font-weight: 700; color: var(--text-main); margin: 0; }
.ck-title .ck-icon-main { font-size: 24px; color: var(--primary); }
.ck-subtitle { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.ck-header-actions { display: inline-flex; align-items: center; gap: .4rem; }
.ck-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .75rem; border-radius: 7px; border: 1px solid var(--border-subtle); background: var(--surface); color: var(--text-main); font-size: .76rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s ease; height: 32px; box-sizing: border-box; }
.ck-btn:hover { background: var(--sidebar-link-hover-bg); border-color: var(--primary); color: var(--primary); }
.ck-btn.primary { background: var(--primary); color: #000; border-color: var(--primary); }
.ck-btn.primary:hover { opacity: .85; color: #000; }
.ck-btn .material-symbols-outlined { font-size: 16px; }

.ck-filters { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; padding: .55rem .85rem; background: rgba(13,19,31,0.65); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; }
.ck-filters-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.ck-filters:not(.ck-play-toolbar-card) {
    gap: .32rem;
    padding: .45rem .65rem;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-filter-group {
    padding: .12rem .35rem;
    gap: .25rem;
    min-height: 26px;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-filter-label {
    font-size: .60rem;
    padding-right: .32rem;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-pill {
    padding: .14rem .36rem;
    font-size: .69rem;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-select {
    font-size: .70rem;
    padding: .12rem .35rem;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-filters-row > .ck-select {
    max-width: 145px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    box-sizing: border-box;
    padding: .14rem .45rem;
}
.ck-filters:not(.ck-play-toolbar-card) .ck-filters-row > .ck-select:hover,
.ck-filters:not(.ck-play-toolbar-card) .ck-filters-row > .ck-select:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.22);
}
.ck-filter-group { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .5rem; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: 7px; transition: all .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.12); min-height: 28px; box-sizing: border-box; }
.ck-filter-group:hover { background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.18); }
.ck-filter-label { font-size: .62rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; padding-right: .45rem; border-right: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; line-height: 1; }
.ck-pill-group { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.ck-pill { padding: .18rem .45rem; border-radius: 6px; border: 1px solid var(--cockpit-card-border); background: transparent; color: var(--text-muted); font-size: .71rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s ease; white-space: nowrap; font-family: inherit; outline: none; line-height: 1.25; }
.ck-pill:hover, .ck-pill.active { background: var(--primary); color: #000 !important; border-color: var(--primary); font-weight: 700; }

/* Cockpit Date Stepper */
.ck-date-stepper { display: inline-flex; align-items: center; gap: 2px; background: rgba(0,0,0,.3); padding: 1px 3px; border-radius: 6px; border: 1px solid var(--cockpit-card-border); height: 24px; box-sizing: border-box; }
.ck-stepper-btn { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; border-radius: 5px; cursor: pointer; transition: all .15s ease; font-family: inherit; padding: 0; }
.ck-stepper-btn:hover { color: #38bdf8; background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.3); }
.ck-stepper-date { background: transparent; border: none; color: #fff; font-size: .74rem; font-weight: 600; font-family: inherit; padding: .1rem .2rem; text-align: center; outline: none; cursor: pointer; width: 82px; }
.ck-stepper-date::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; cursor: pointer; }
.ck-stepper-date::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.ck-filter-sep { width: 1px; height: 18px; background: var(--cockpit-card-border); }
.ck-select { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); border-radius: 6px; padding: .18rem .45rem; font-size: .73rem; font-weight: 600; cursor: pointer; transition: all .15s ease; outline: none; height: 25px; box-sizing: border-box; }
.ck-select:hover, .ck-select:focus { border-color: var(--primary); background: rgba(0,0,0,0.45); }
.ck-prob-slider-wrap { display: flex; align-items: center; gap: .35rem; }
.ck-prob-slider-wrap input[type=range] { width: 65px; height: 4px; accent-color: var(--primary); cursor: pointer; }
.ck-prob-slider-label { font-size: .71rem; color: var(--primary); font-weight: 700; min-width: 28px; }

/* Settlement Summary Bar */
.ck-settlement-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; background:rgba(15,23,42,.6); border:1px solid var(--cockpit-card-border); border-radius:10px; padding:.6rem 1rem; margin-bottom:1rem; }
.ck-settlement-stats { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; font-size:.8rem; }
.ck-settle-pill { display:inline-flex; align-items:center; gap:.35rem; font-weight:700; }
.ck-settle-pill.won { color:var(--cockpit-play); }
.ck-settle-pill.lost { color:#f87171; }
.ck-settle-pill.pending { color:var(--text-muted); }
.ck-settle-rate { font-weight:800; color:#38bdf8; }
.ck-settle-yield { font-weight:800; }
.ck-settle-yield.pos { color:var(--cockpit-play); }
.ck-settle-yield.neg { color:#f87171; }

/* Settlement Badges on Pick Cards */
.ck-settle-badge { display:inline-flex; align-items:center; gap:.25rem; font-size:.65rem; font-weight:800; padding:.15rem .45rem; border-radius:6px; letter-spacing:.03em; white-space:nowrap; flex-shrink:0; line-height:1; }
.ck-settle-badge.won { background:rgba(34,197,94,.18); color:var(--cockpit-play); border:1px solid rgba(34,197,94,.4); }
.ck-settle-badge.lost { background:rgba(239,68,68,.18); color:#f87171; border:1px solid rgba(239,68,68,.4); }
.ck-settle-badge.pending { background:rgba(255,255,255,.06); color:var(--text-muted); border:1px solid rgba(255,255,255,.1); }

/* Result row on card */
.ck-pick-result-row { display:flex; align-items:center; justify-content:space-between; margin-top:.4rem; padding:.3rem .5rem; background:rgba(0,0,0,.25); border-radius:6px; font-size:.72rem; border:1px solid rgba(255,255,255,.05); }
.ck-result-score { font-weight:700; color:#fff; }
.ck-result-actual { color:var(--text-muted); }

/* Top section (full width Top Picks) */
.ck-top-section { display:block; margin-bottom:1.5rem; }

/* Section headers */
.ck-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:.875rem; }
.ck-section-head-left { display:flex; align-items:center; gap:.5rem; }
.ck-section-head h2 { font-size:.95rem; font-weight:700; color:var(--text-main); margin:0; }
.ck-section-head .material-symbols-outlined { font-size:20px; color:var(--primary); }
.ck-count-badge { background:var(--primary); color:#000; font-size:.65rem; font-weight:800; padding:.15rem .45rem; border-radius:20px; }

/* Quick Tag Filter Tabs & Outcome Filter Tabs */
.ck-tag-filter-tabs, .ck-outcome-filter-tabs { display:inline-flex; align-items:center; gap:.25rem; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:8px; padding:3px; }
.ck-tag-tab, .ck-outcome-tab { background:transparent; border:none; color:var(--text-muted); font-size:.72rem; font-weight:700; padding:.25rem .6rem; border-radius:6px; cursor:pointer; transition:all .15s ease; display:inline-flex; align-items:center; gap:4px; line-height:1; }
.ck-tag-tab:hover, .ck-outcome-tab:hover { color:#fff; background:rgba(255,255,255,.08); }
.ck-tag-tab.active, .ck-outcome-tab.active { background:rgba(255,255,255,.12); color:#fff; font-weight:800; }
.ck-tag-tab.lock { color:#c084fc; }
.ck-tag-tab.lock.active { color:#e9d5ff; background:rgba(192,132,252,.18); border:1px solid rgba(192,132,252,.35); box-shadow:0 0 10px rgba(192,132,252,.15); }
.ck-tag-tab.banker { color:#38bdf8; }
.ck-tag-tab.banker.active { color:#0284c7; background:rgba(56,189,248,.18); border:1px solid rgba(56,189,248,.35); box-shadow:0 0 10px rgba(56,189,248,.15); }
.ck-tag-tab.play { color:#4ade80; }
.ck-tag-tab.play.active { color:#22c55e; background:rgba(34,197,94,.18); border:1px solid rgba(34,197,94,.35); box-shadow:0 0 10px rgba(34,197,94,.15); }
.ck-tag-tab.lean { color:#fbbf24; }
.ck-tag-tab.lean.active { color:#f59e0b; background:rgba(245,158,11,.18); border:1px solid rgba(245,158,11,.35); box-shadow:0 0 10px rgba(245,158,11,.15); }
.ck-tag-tab.skip { color:#94a3b8; }
.ck-tag-tab.skip.active { color:#cbd5e1; background:rgba(148,163,184,.18); border:1px solid rgba(148,163,184,.35); box-shadow:0 0 10px rgba(148,163,184,.15); }
.ck-outcome-tab.won.active { color:#4ade80; background:rgba(34,197,94,.18); }
.ck-outcome-tab.lost.active { color:#f87171; background:rgba(239,68,68,.18); }
.ck-outcome-tab.pending.active { color:#94a3b8; background:rgba(148,163,184,.18); }

/* Sample Window Pills in Stat Bar */
.ck-sw-pills { display:inline-flex; align-items:center; gap:.25rem; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:6px; padding:2px; margin-top:2px; }
.ck-sw-btn { background:transparent; border:none; color:var(--text-muted); font-size:.72rem; font-weight:700; padding:2px 7px; border-radius:4px; cursor:pointer; transition:all .15s ease; }
.ck-sw-btn:hover { color:#fff; background:rgba(255,255,255,.1); }
.ck-sw-btn.active { color:#000; background:var(--primary); font-weight:800; box-shadow:0 1px 4px rgba(0,240,255,.25); }

/* Pick Cards Grid */
.ck-picks-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.875rem; }
.ck-pick-card { background:var(--cockpit-card-bg); border:1px solid var(--cockpit-card-border); border-radius:var(--cockpit-card-radius); padding:1rem; position:relative; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; cursor:default; border-left:4px solid #64748b; }
.ck-pick-card:hover { transform:translateY(-2px); box-shadow:var(--cockpit-shadow); border-color:var(--primary); }

/* Status-based Card Coloring (Green for Won, Red for Lost, Slate Grey for Pending/Scheduled) */
.ck-pick-card.status-pending { border-left:4px solid #64748b; border-color:var(--cockpit-card-border); background:var(--cockpit-card-bg); }
.ck-pick-card.status-pending:hover { border-color:#94a3b8; }

.ck-pick-card.status-won { border-left:4px solid var(--cockpit-play); border-color:rgba(34,197,94,.35); background:linear-gradient(145deg, rgba(34,197,94,.08) 0%, var(--cockpit-card-bg) 60%); box-shadow:0 2px 10px rgba(34,197,94,.04); }
.ck-pick-card.status-won:hover { border-color:var(--cockpit-play); box-shadow:0 4px 18px rgba(34,197,94,.2); }

.ck-pick-card.status-lost { border-left:4px solid #ef4444; border-color:rgba(239,68,68,.35); background:linear-gradient(145deg, rgba(239,68,68,.08) 0%, var(--cockpit-card-bg) 60%); box-shadow:0 2px 10px rgba(239,68,68,.04); }
.ck-pick-card.status-lost:hover { border-color:#ef4444; box-shadow:0 4px 18px rgba(239,68,68,.2); }

.ck-settle-pill.ck-filter-outcome-btn { cursor:pointer; transition:all .15s ease; border:1px solid transparent; }
.ck-settle-pill.ck-filter-outcome-btn:hover { transform:scale(1.04); }
.ck-settle-pill.ck-filter-outcome-btn.active-filter { border-color:currentColor; box-shadow:0 0 8px currentColor; }
/* Card top row */
.ck-pick-top { display:flex; align-items:center; justify-content:space-between; gap:.4rem; margin-bottom:.5rem; min-width:0; }
.ck-pick-top-right { display:inline-flex; align-items:center; gap:.35rem; flex-shrink:0; white-space:nowrap; margin-left:auto; }
.ck-league-badge { display:flex; align-items:center; gap:.3rem; font-size:.7rem; font-weight:700; color:var(--text-muted); min-width:0; overflow:hidden; flex:1 1 auto; }
.ck-league-badge span:first-child { flex-shrink:0; }
.ck-league-badge span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-kickoff { font-size:.7rem; color:var(--text-muted); background:var(--surface-variant,rgba(255,255,255,.06)); padding:.15rem .45rem; border-radius:6px; white-space:nowrap; flex-shrink:0; line-height:1.2; }
/* Team names */
.ck-teams { font-size:.9rem; font-weight:700; color:var(--text-main); margin-bottom:.5rem; line-height:1.3; }
.ck-teams .vs { color:var(--text-muted); font-weight:400; margin:0 .2rem; }
/* Market line */
.ck-market { font-size:.8rem; color:var(--primary); font-weight:600; margin-bottom:.5rem; }
/* Prob bar */
.ck-prob-bar-wrap { position:relative; background:rgba(255,255,255,.08); border-radius:4px; height:8px; margin-bottom:.5rem; overflow:hidden; }
.ck-prob-bar { height:100%; border-radius:4px; transition:width .4s ease; }
.ck-prob-label { position:absolute; right:0; top:-16px; font-size:.7rem; font-weight:700; color:var(--text-main); }
/* Bottom row: odds + EV + tag */
.ck-pick-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.35rem; margin-top:.6rem; }
.ck-odds-info { font-size:.75rem; color:var(--text-muted); }
.ck-odds-val { font-weight:700; color:var(--text-main); font-size:.85rem; margin-right:.2rem; }
.ck-bm-name { opacity:.7; font-size:.68rem; }
/* EV badge */
.ck-ev { font-size:.78rem; font-weight:700; padding:.2rem .45rem; border-radius:6px; }
.ev-pos { color:var(--cockpit-ev-pos); background:rgba(34,197,94,.12); box-shadow:var(--cockpit-glow-ev); }
.ev-neg { color:var(--cockpit-ev-neg); background:rgba(239,68,68,.08); }
.ck-ev-null { color:var(--text-muted); font-size:.75rem; }
/* Historical WR badge */
.ck-hist-wr { display:inline-flex; align-items:center; justify-content:center; height:28px; box-sizing:border-box; margin:0; padding:0 .5rem; font-size:.71rem; font-weight:700; border-radius:6px; cursor:help; white-space:nowrap; transition:transform .15s ease; line-height:1; letter-spacing:0.01em; }
.ck-hist-wr:hover { transform:translateY(-1px); }
.ck-hist-wr.wr-pos { color:var(--cockpit-ev-pos); background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.25); }
.ck-hist-wr.wr-mid { color:#38bdf8; background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.25); }
.ck-hist-wr.wr-neg { color:#f59e0b; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.25); }
/* Historical League WR badge */
.ck-hist-league-wr { display:inline-flex; align-items:center; justify-content:center; gap:3px; height:28px; box-sizing:border-box; margin:0; padding:0 .45rem; font-size:.70rem; font-weight:700; border-radius:6px; cursor:help; white-space:nowrap; transition:transform .15s ease; line-height:1; }
.ck-hist-league-wr:hover { transform:translateY(-1px); }
.ck-hist-league-wr .ck-hl-tag { font-size:.60rem; text-transform:uppercase; opacity:.85; letter-spacing:.02em; padding-right:1px; }
.ck-hist-league-wr.wr-pos { color:#34d399; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.25); }
.ck-hist-league-wr.wr-mid { color:#38bdf8; background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.25); }
.ck-hist-league-wr.wr-neg { color:#fbbf24; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.25); }
/* Tag */
.ck-tag { font-size:.65rem; font-weight:800; padding:.2rem .5rem; border-radius:20px; text-transform:uppercase; letter-spacing:.05em; }
.tag-play { background:rgba(34,197,94,.15); color:var(--cockpit-play); border:1px solid rgba(34,197,94,.3); }
.tag-lean { background:rgba(245,158,11,.12); color:var(--cockpit-lean); border:1px solid rgba(245,158,11,.3); }
.tag-skip { background:rgba(107,114,128,.1); color:var(--cockpit-skip); border:1px solid rgba(107,114,128,.2); }
/* V1/V2 detail toggle */
.ck-detail-toggle { font-size:.68rem; color:var(--text-muted); cursor:pointer; margin-top:.5rem; display:inline-block; }
.ck-detail-toggle:hover { color:var(--primary); }
.ck-detail-body { display:none; margin-top:.5rem; padding-top:.5rem; border-top:1px solid var(--cockpit-card-border); font-size:.72rem; color:var(--text-muted); }
.ck-detail-body.open { display:block; }
.ck-v-row { display:flex; justify-content:space-between; margin-bottom:.2rem; }
/* Safety warning */
.ck-safety-warn { font-size:.66rem; color:var(--cockpit-lean); margin-top:.35rem; display:flex; align-items:center; gap:.2rem; }

/* Coupons */
.ck-coupons-col { display:flex; flex-direction:column; gap:.875rem; }
.ck-coupon-card { background:var(--cockpit-card-bg); border:1px solid var(--cockpit-card-border); border-radius:var(--cockpit-card-radius); padding:1rem 1.1rem; transition:border-color .15s; }
.ck-coupon-card:hover { border-color:var(--primary); }
.ck-coupon-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:.65rem; }
.ck-coupon-label { font-size:.85rem; font-weight:700; color:var(--text-main); }
.ck-coupon-picks-badge { font-size:.65rem; font-weight:700; color:var(--text-muted); background:var(--surface-variant,rgba(255,255,255,.06)); padding:.15rem .4rem; border-radius:20px; }
.ck-coupon-stats { display:grid; grid-template-columns:1fr 1fr; gap:.5rem .75rem; margin-bottom:.65rem; }
.ck-coupon-stat { text-align:center; background:rgba(255,255,255,.03); border-radius:8px; padding:.4rem .3rem; }
.ck-coupon-stat-val { font-size:1.1rem; font-weight:800; color:var(--primary); display:block; }
.ck-coupon-stat-lbl { font-size:.62rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.ck-coupon-desc { font-size:.72rem; color:var(--text-muted); margin-bottom:.65rem; }
.ck-coupon-actions { display:flex; gap:.5rem; align-items:center; }
.ck-yield-badge { font-size:.75rem; font-weight:700; padding:.2rem .5rem; border-radius:6px; }
.yield-pos { color:var(--cockpit-ev-pos); background:rgba(34,197,94,.12); }
.yield-neg { color:var(--cockpit-ev-neg); background:rgba(239,68,68,.08); }
.yield-null { color:var(--text-muted); }
/* Coupon picks accordion */
details.ck-coupon-detail summary { font-size:.72rem; color:var(--primary); cursor:pointer; padding:.35rem 0; list-style:none; display:flex; align-items:center; gap:.25rem; }
details.ck-coupon-detail summary::-webkit-details-marker { display:none; }
details.ck-coupon-detail summary::before { content:'▶'; font-size:.6rem; transition:transform .15s; }
details.ck-coupon-detail[open] summary::before { transform:rotate(90deg); }
.ck-coupon-pick-row { font-size:.73rem; color:var(--text-muted); padding:.25rem .35rem; border-left:2px solid var(--cockpit-card-border); margin:.2rem 0; display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; }
.ck-coupon-pick-row .ck-prob-inline { font-weight:700; color:var(--primary); }
.ck-prob-clickable { cursor:pointer; padding:1px 6px; border-radius:5px; background:rgba(0,218,243,0.1); border:1px solid rgba(0,218,243,0.28); display:inline-flex; align-items:center; gap:3px; transition:all .15s ease; color:#00daf3 !important; }
.ck-prob-clickable:hover { background:rgba(0,218,243,0.28); border-color:#00daf3; color:#fff !important; transform:translateY(-1px); box-shadow:0 0 8px rgba(0,218,243,0.4); }

/* Match Feed */
.ck-feed-section { margin-bottom:1.5rem; }
.ck-feed-controls { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.75rem; }
.ck-feed-table-wrap { border:1px solid var(--cockpit-card-border); border-radius:12px; overflow:hidden; }
.ck-feed-match { border-bottom:1px solid var(--cockpit-card-border); }
.ck-feed-match:last-child { border-bottom:none; }
.ck-feed-match-head { display:flex; align-items:center; gap:.6rem; padding:.6rem .875rem; background:rgba(255,255,255,.03); }
.ck-feed-league { font-size:.72rem; font-weight:700; color:var(--text-muted); }
.ck-feed-kickoff { font-size:.72rem; color:var(--text-muted); margin-left:auto; }
.ck-feed-teams { font-size:.85rem; font-weight:700; color:var(--text-main); }
.ck-feed-rows { padding:0; }
.ck-feed-row { display:grid; grid-template-columns:160px 70px 90px 70px 70px 70px; align-items:center; padding:.35rem .875rem; border-top:1px solid rgba(255,255,255,.04); font-size:.75rem; gap:.25rem; }
.ck-feed-row:hover { background:rgba(255,255,255,.03); }
.ck-feed-col-head { display:grid; grid-template-columns:160px 70px 90px 70px 70px 70px; padding:.3rem .875rem; font-size:.65rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; border-top:1px solid var(--cockpit-card-border); gap:.25rem; }
.ck-feed-prob-inline { display:flex; align-items:center; gap:.3rem; }
.ck-feed-prob-bar { height:6px; border-radius:3px; min-width:4px; }
.ck-feed-label { color:var(--text-muted); }
.ck-feed-sel { font-weight:600; color:var(--text-main); }
.ck-feed-odds { font-weight:700; color:var(--primary); }
.ck-feed-empty { padding:1.5rem; text-align:center; color:var(--text-muted); font-size:.85rem; }

/* Signal Stats bar */
.ck-stats-bar { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; padding:.75rem 1rem; background:var(--surface); border:1px solid var(--cockpit-card-border); border-radius:12px; margin-bottom:1.5rem; }
.ck-stat-item { display:flex; flex-direction:column; }
.ck-stat-item-lbl { font-size:.65rem; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); }
.ck-stat-item-val { font-size:.9rem; font-weight:700; color:var(--text-main); }
.ck-stat-sep { width:1px; height:28px; background:var(--cockpit-card-border); }

/* Empty state */
.ck-empty { text-align:center; padding:3rem 1rem; color:var(--text-muted); }
.ck-empty .material-symbols-outlined { font-size:48px; opacity:.3; display:block; margin-bottom:.75rem; }
.ck-empty p { font-size:.9rem; }

/* Model Matrix Button & Modal */
.ck-pick-actions { margin-top:.6rem; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.ck-pick-actions-right { display:inline-flex; align-items:center; gap:.4rem; }
.ck-matrix-btn { display:inline-flex; align-items:center; justify-content:center; gap:.35rem; margin:0; padding:0 .55rem; height:28px; box-sizing:border-box; border-radius:6px; border:1px solid rgba(0,218,243,0.3); background:rgba(0,218,243,0.08); color:#00daf3; font-size:.7rem; font-weight:700; cursor:pointer; transition:all .15s ease; text-transform:uppercase; letter-spacing:.04em; line-height:1; }
.ck-matrix-btn:hover { background:rgba(0,218,243,0.2); border-color:#00daf3; color:#fff; transform:translateY(-1px); }
.ck-modal-backdrop { position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; padding:1rem; background:rgba(0,0,0,0.85); backdrop-filter:blur(8px); }
.ck-modal-card { background:#0d131f; border:1px solid rgba(255,255,255,0.15); border-radius:18px; padding:1.35rem 1.4rem; width:100%; max-width:540px; position:relative; box-shadow:0 25px 50px rgba(0,0,0,0.7), 0 0 30px rgba(0,218,243,0.12); animation:ckModalIn .2s ease-out; }
@keyframes ckModalIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.ck-modal-close { position:absolute; top:0.85rem; right:0.85rem; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:#ffffff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:all .18s cubic-bezier(0.4, 0, 0.2, 1); z-index:10; padding:0; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.ck-modal-close .material-symbols-outlined { font-size:20px; line-height:1; }
.ck-modal-close:hover { background:rgba(239,68,68,0.25); border-color:rgba(239,68,68,0.5); color:#ef4444; transform:scale(1.08); }
.ck-modal-sub { font-size:.65rem; font-weight:800; color:rgba(0,218,243,0.85); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.3rem; padding-right:2rem; }
.ck-modal-title { font-size:1.35rem; font-weight:900; color:#fff; margin-bottom:.65rem; line-height:1.2; }
.ck-modal-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.15rem; flex-wrap:wrap; gap:.5rem; }
.ck-modal-bar-left { display:flex; align-items:center; gap:.5rem; }
.ck-modal-bookie { background:#ff4713; color:#fff; font-weight:800; font-size:.65rem; text-transform:uppercase; padding:.2rem .5rem; border-radius:4px; letter-spacing:.05em; }
.ck-modal-odds { color:#00E5FF; font-weight:800; font-size:.95rem; }
.ck-modal-analiza { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .75rem; border-radius:8px; border:1px solid rgba(0,218,243,0.4); background:rgba(0,218,243,0.12); color:#00daf3; font-size:.72rem; font-weight:800; text-decoration:none; text-transform:uppercase; letter-spacing:.05em; transition:all .15s ease; }
.ck-modal-analiza:hover { background:rgba(0,218,243,0.25); border-color:#00daf3; color:#fff; }

/* Inverted Compact Matrix (STD / MIX / MIX.E + L5 L10 L20 + Form Squares) */
.ck-inv-head { display:flex; align-items:center; justify-content:space-between; padding:0 .35rem .45rem; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:.55rem; font-size:.68rem; font-weight:800; color:rgba(255,255,255,0.5); text-transform:uppercase; letter-spacing:.06em; }
.ck-inv-head-cols { display:flex; align-items:center; gap:.4rem; width:156px; justify-content:space-between; text-align:center; }
.ck-inv-head-cols span { width:48px; text-align:center; color:rgba(0,218,243,0.85); font-weight:900; letter-spacing:.05em; }

.ck-inv-body { display:flex; flex-direction:column; gap:.55rem; }
.ck-inv-card { background:rgba(255,255,255,0.025); border:1px solid rgba(255,255,255,0.06); border-radius:12px; padding:.55rem .75rem; display:flex; flex-direction:column; gap:.4rem; transition:all .15s ease; }
.ck-inv-card:hover { border-color:rgba(0,218,243,0.3); background:rgba(255,255,255,0.035); }
.ck-inv-card-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:.25rem; border-bottom:1px solid rgba(255,255,255,0.04); }
.ck-inv-badge-wrap { display:flex; align-items:center; gap:.45rem; overflow:hidden; }
.ck-inv-pill { font-size:.68rem; font-weight:900; padding:.15rem .45rem; border-radius:5px; background:rgba(0,218,243,0.14); color:#00daf3; border:1px solid rgba(0,218,243,0.35); letter-spacing:.04em; flex-shrink:0; }
.ck-inv-sub { font-size:.65rem; font-weight:600; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ck-inv-rates { display:flex; align-items:center; gap:.4rem; width:156px; justify-content:space-between; flex-shrink:0; }
.ck-inv-rate { width:48px; text-align:center; font-size:.75rem; font-weight:900; padding:.15rem 0; border-radius:5px; letter-spacing:.02em; }
.ck-inv-rate.high { background:rgba(16,185,129,0.2); color:#34d399; border:1px solid rgba(16,185,129,0.35); }
.ck-inv-rate.med { background:rgba(0,218,243,0.2); color:#00daf3; border:1px solid rgba(0,218,243,0.35); }
.ck-inv-rate.low { background:rgba(255,255,255,0.05); color:rgba(255,255,255,0.5); border:1px solid rgba(255,255,255,0.1); }

.ck-inv-teams { display:flex; flex-direction:column; gap:.35rem; }
.ck-inv-row { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.ck-inv-team { display:inline-flex; align-items:center; gap:.35rem; font-size:.72rem; font-weight:700; color:rgba(255,255,255,0.85); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; flex-shrink:0; }
.ck-inv-venue { font-size:.58rem; font-weight:800; padding:.05rem .28rem; border-radius:3px; background:rgba(255,255,255,0.08); color:var(--text-muted); text-transform:uppercase; flex-shrink:0; }
.ck-inv-squares { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.ck-inv-sq { width:25px; height:25px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:900; color:#fff; cursor:default; user-select:none; transition:transform .12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .12s ease; }
.ck-inv-sq:hover { transform:scale(1.15) translateY(-1px); z-index:2; }
.ck-inv-sq.hit { background:#00c076; background:linear-gradient(135deg, #00c076 0%, #059669 100%); border:1px solid rgba(0,192,118,0.5); box-shadow:0 1px 4px rgba(0,192,118,0.25); }
.ck-inv-sq.miss { background:#ef4444; background:linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border:1px solid rgba(239,68,68,0.5); box-shadow:0 1px 4px rgba(239,68,68,0.25); }
.ck-inv-divider { width:1.5px; height:16px; background:rgba(255,255,255,0.2); margin:0 2px; border-radius:1px; }
.ck-inv-empty { font-size:.68rem; color:var(--text-muted); font-style:italic; }

.ck-inv-legend { display:flex; align-items:center; gap:.75rem; font-size:.65rem; color:var(--text-muted); font-weight:700; margin-top:.75rem; padding-top:.6rem; border-top:1px solid rgba(255,255,255,0.06); }
.ck-inv-legend-item { display:flex; align-items:center; gap:.3rem; }
.ck-legend-dot { width:8px; height:8px; border-radius:3px; }
.ck-legend-dot.hit { background:#00c076; }
.ck-legend-dot.miss { background:#ef4444; }

.ck-consensus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.ck-consensus-badge.consensus-full {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

.ck-h2h-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.ck-h2h-badge.h2h-high {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}
.ck-h2h-badge.h2h-med {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.4);
}
.ck-h2h-badge.h2h-low {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}
.ck-h2h-modal-card {
    border-left: 3px solid #3b82f6 !important;
}
.ck-h2h-pill {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* View Switcher */
.ck-view-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}
.ck-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    outline: none;
    text-decoration: none;
}
.ck-view-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.ck-view-tab.active {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
}
.ck-view-tab .material-symbols-outlined {
    font-size: 18px;
}
.ck-tab-badge {
    padding: 0.12rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}
.ck-view-tab.active .ck-tab-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #000;
}

.ck-view-content {
    display: none;
}
.ck-view-content.active {
    display: block;
}

/* Schedule / Terminarz view styles */
.ck-schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.ck-sched-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ck-sched-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cockpit-card-border);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}
.ck-sched-summary-pill .material-symbols-outlined {
    color: var(--primary);
}
.ck-sched-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ck-sched-search-wrap,
.ck-picks-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.ck-sched-search-wrap .material-symbols-outlined,
.ck-picks-search-wrap .material-symbols-outlined {
    position: absolute;
    left: 0.6rem;
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
.ck-sched-search,
.ck-picks-search {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 8px;
    padding: 0.35rem 0.75rem 0.35rem 2rem;
    color: #fff;
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
    min-width: 180px;
    transition: all 0.15s ease;
}
.ck-sched-search:focus,
.ck-picks-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.ck-sched-status-pills {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}
.ck-sched-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ck-sched-status-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.ck-sched-status-btn.active {
    color: #fff;
    background: var(--surface-light, rgba(255, 255, 255, 0.12));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ck-sched-status-btn.hide-fin.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
}

.ck-sched-prob-group, .ck-sched-tag-group, .ck-sched-res-group, .ck-sched-odds-group, .ck-sched-cat-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 8px;
    padding: 2px;
}
.ck-sched-prob-btn, .ck-sched-tag-btn, .ck-sched-res-btn, .ck-sched-odds-btn, .ck-sched-cat-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ck-sched-prob-btn:hover, .ck-sched-tag-btn:hover, .ck-sched-res-btn:hover, .ck-sched-odds-btn:hover, .ck-sched-cat-filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.ck-sched-prob-btn.active, .ck-sched-tag-btn.active, .ck-sched-res-btn.active, .ck-sched-cat-filter-btn.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 800;
}
.ck-sched-prob-btn.active, .ck-sched-cat-filter-btn.active {
    background: var(--primary);
    color: #000;
}
.ck-sched-odds-btn.active {
    background: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
html:not(.dark) .ck-sched-odds-btn.active,
body.light-theme .ck-sched-odds-btn.active,
[data-theme="terra"] .ck-sched-odds-btn.active,
[data-theme="algorithmic"] .ck-sched-odds-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
}
.ck-sched-tag-btn.lock.active {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.18);
    border: 1px solid rgba(192, 132, 252, 0.35);
}
.ck-sched-tag-btn.banker.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.ck-sched-tag-btn.play.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.ck-sched-tag-btn.lean.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.ck-sched-res-btn.won.active {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.18);
}
.ck-sched-res-btn.lost.active {
    color: #f87171;
    background: rgba(239, 68, 68, 0.18);
}

.ck-sched-cat-group {
    margin-bottom: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}
.ck-sched-cat-group:last-child {
    margin-bottom: 0;
}
.ck-sched-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ck-sched-cat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-main);
}
.ck-sched-cat-title .material-symbols-outlined {
    font-size: 15px;
    opacity: 0.9;
}
.ck-sched-cat-group[data-cat="1x2_dc"] .ck-sched-cat-title { color: #38bdf8; }
.ck-sched-cat-group[data-cat="goals"] .ck-sched-cat-title { color: #34d399; }
.ck-sched-cat-group[data-cat="fouls"] .ck-sched-cat-title { color: #fb923c; }
.ck-sched-cat-group[data-cat="corners"] .ck-sched-cat-title { color: #22d3ee; }
.ck-sched-cat-group[data-cat="cards"] .ck-sched-cat-title { color: #facc15; }
.ck-sched-cat-group[data-cat="shots"] .ck-sched-cat-title { color: #c084fc; }
.ck-sched-cat-group[data-cat="shots_on_target"] .ck-sched-cat-title { color: #f43f5e; }

.ck-sched-cat-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.ck-sched-league-group {
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--cockpit-card-border);
    border-radius: 14px;
    overflow: hidden;
}
.ck-sched-league-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--cockpit-card-border);
}
.ck-sched-league-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}
.ck-sched-league-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.ck-sched-matches-list {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ck-sched-match-card {
    border: 1px solid var(--cockpit-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.15s ease;
}
.ck-sched-match-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.ck-sched-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--cockpit-card-border, rgba(255, 255, 255, 0.05));
    flex-wrap: wrap;
    gap: 0.6rem;
}
.ck-sched-match-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.ck-match-status {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.ck-match-status.finished {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.ck-match-status.live {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.ck-match-status.scheduled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ck-sched-match-teams {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: -0.01em;
}
.ck-sched-match-teams .vs {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.42rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ck-sched-match-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.ck-sched-analiza-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 218, 243, 0.35);
    background: rgba(0, 218, 243, 0.08);
    color: #00daf3;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s ease;
}
.ck-sched-analiza-link:hover {
    background: rgba(0, 218, 243, 0.22);
    border-color: #00daf3;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 218, 243, 0.25);
}
.ck-sched-no-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.15rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: rgba(0, 0, 0, 0.02);
}
.ck-sched-no-tips .material-symbols-outlined {
    font-size: 16px;
    opacity: 0.7;
}

.ck-sched-tips-container {
    overflow-x: auto;
}
.ck-sched-tips-table {
    display: flex;
    flex-direction: column;
}
.ck-sched-col-head {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 100px 125px 75px 175px 110px 80px;
    min-width: 860px;
    padding: 0.45rem 1.15rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}
.ck-sched-tip-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 100px 125px 75px 175px 110px 80px;
    min-width: 860px;
    align-items: center;
    padding: 0.5rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    gap: 0.5rem;
    transition: background 0.15s ease;
}
.ck-scope-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.22rem 1.15rem;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ck-scope-pill {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 5px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.ck-scope-pill-total { color: #0284c7; background: rgba(2, 132, 199, 0.12); }
.ck-scope-pill-home { color: #d97706; background: rgba(217, 119, 6, 0.12); }
.ck-scope-pill-away { color: #9333ea; background: rgba(147, 51, 234, 0.12); }
.ck-scope-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}
.ck-sched-tip-row:first-child {
    border-top: none;
}
.ck-sched-tip-row:hover {
    background: rgba(255, 255, 255, 0.025);
}
.ck-sched-tip-row.status-won {
    background: rgba(34, 197, 94, 0.035);
}
.ck-sched-tip-row.status-lost {
    background: rgba(239, 68, 68, 0.035);
}
.ck-sched-tip-market {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-main);
}
.ck-sched-odds-col {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.ck-sched-odds-val {
    font-weight: 800;
    color: #fff;
    font-size: 0.85rem;
}
.ck-sched-bm-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.ck-sched-res-col {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ck-sched-actual-val {
    font-size: 0.68rem;
    color: var(--text-muted);
}

@media(max-width: 960px) {
    .ck-sched-tip-row, .ck-sched-col-head {
        grid-template-columns: 1fr 90px 110px 75px;
        min-width: 0;
    }
    .ck-sched-tip-row > :nth-child(5), .ck-sched-tip-row > :nth-child(6), .ck-sched-tip-row > :nth-child(7),
    .ck-sched-col-head > :nth-child(5), .ck-sched-col-head > :nth-child(6), .ck-sched-col-head > :nth-child(7) {
        display: none;
    }
}

@media(max-width:768px) {
    .ck-picks-grid { grid-template-columns:1fr; }
    .ck-feed-row, .ck-feed-col-head { grid-template-columns:1fr 55px 70px 55px; }
    .ck-feed-row > :nth-child(5), .ck-feed-row > :nth-child(6),
    .ck-feed-col-head > :nth-child(5), .ck-feed-col-head > :nth-child(6) { display:none; }
    .ck-play-compact-actions {
        width: 100%;
        justify-content: space-between;
    }
    .ck-play-compact-search {
        flex: 1 1 auto;
        min-width: 70px;
    }
}

/* ============================================================
   TABLET & COMPACT RESPONSIVENESS (<= 1150px)
   ============================================================ */
@media (max-width: 1279px) {
    .ck-page { padding: 0.85rem 0.85rem 2.5rem; }
    .ck-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1rem;
        margin-bottom: 0.9rem;
    }
    .ck-header-brand {
        flex: 0 0 auto;
    }
    .ck-header-spacer {
        display: none;
    }
    .ck-view-switcher {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 4px;
        box-sizing: border-box;
    }
    .ck-view-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.46rem 0.35rem;
        font-size: 0.81rem;
        font-weight: 600;
        gap: 0.35rem;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        text-align: center;
        overflow: hidden;
    }
    .ck-view-tab .material-symbols-outlined {
        font-size: 18px;
        flex-shrink: 0;
    }
    .ck-view-tab span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ck-view-tab .ck-tab-badge {
        font-size: 0.70rem;
        font-weight: 700;
        padding: 0.1rem 0.38rem;
        border-radius: 999px;
        letter-spacing: -0.01em;
        flex-shrink: 0;
    }
    .ck-tab-text-full { display: none !important; }
    .ck-tab-text-short { display: inline !important; }

    /* Balanced & Legible Filters on Tablet */
    .ck-filters {
        padding: 0.6rem 0.85rem;
        gap: 0.45rem;
        margin-bottom: 1rem;
    }
    .ck-filters-row {
        gap: 0.45rem;
    }
    .ck-filter-group {
        padding: 0.2rem 0.5rem;
        min-height: 29px;
        gap: 0.35rem;
        border-radius: 7px;
    }
    .ck-filter-label {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        padding-right: 0.38rem;
    }
    .ck-pill {
        padding: 0.2rem 0.46rem;
        font-size: 0.74rem;
        font-weight: 600;
        border-radius: 6px;
    }
    .ck-select {
        padding: 0.16rem 0.45rem;
        font-size: 0.74rem;
        height: 27px;
        max-width: 155px;
    }
    .ck-date-stepper {
        padding: 1px 3px;
        height: 26px;
    }
    .ck-stepper-btn {
        width: 20px;
        height: 20px;
    }
    .ck-stepper-date {
        width: 91px;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.08rem 0.18rem;
    }

    /* Tablet Play Toolbar Responsive */
    .ck-play-toolbar {
        gap: 0.5rem;
    }
    .ck-play-row {
        gap: 0.45rem;
    }
    .ck-capsule {
        height: 36px;
        padding: 3px 4px;
        gap: 3px;
    }
    .ck-capsule-item {
        height: 28px;
        padding: 0.25rem 0.55rem;
        font-size: 0.72rem;
    }
    .ck-capsule-input {
        width: 42px;
        height: 26px;
        font-size: 0.72rem;
    }
    .ck-capsule-search {
        flex: 1 1 200px;
        height: 36px;
    }
    .ck-capsule-search-input {
        font-size: 0.74rem;
    }
    .ck-play-sort-wrap {
        height: 28px !important;
        font-size: 0.72rem !important;
        padding: 0.15rem 0.45rem !important;
    }
}

/* Light Theme Contrast & Legibility Boost */
html:not(.dark) .ck-filter-label,
body.light-theme .ck-filter-label,
[data-theme="terra"] .ck-filter-label,
[data-theme="algorithmic"] .ck-filter-label {
    color: #334155 !important;
    font-weight: 700 !important;
}
html:not(.dark) .ck-pill,
body.light-theme .ck-pill,
[data-theme="terra"] .ck-pill,
[data-theme="algorithmic"] .ck-pill {
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.14);
}
html:not(.dark) .ck-play-wr-60 { color: #d97706 !important; font-weight: 700; }
html:not(.dark) .ck-play-wr-70 { color: #0284c7 !important; font-weight: 700; }
html:not(.dark) .ck-play-wr-80 { color: #7e22ce !important; font-weight: 700; }
html:not(.dark) .ck-play-wr-90 { color: #15803d !important; font-weight: 700; }
html.dark .ck-play-wr-60 { color: #fbbf24 !important; }
html.dark .ck-play-wr-70 { color: #38bdf8 !important; }
html.dark .ck-play-wr-80 { color: #c084fc !important; }
html.dark .ck-play-wr-90 { color: #22c55e !important; }

@media(min-width:1280px) {
    .ck-tab-text-full { display: inline; }
    .ck-tab-text-short { display: none; }
}

@media (max-width: 380px) {
    .ck-view-switcher {
        gap: 2px;
        padding: 2px;
    }
    .ck-view-tab {
        padding: 0.32rem 0.1rem;
        font-size: 0.66rem;
        gap: 0.15rem;
    }
    .ck-view-tab .material-symbols-outlined {
        font-size: 13px;
    }
    .ck-view-tab .ck-tab-badge {
        font-size: 0.56rem;
        padding: 0.04rem 0.2rem;
    }
}

/* ================================================================
   PLAY TOOLBAR: FLOATING CAPSULES ARCHITECTURE
   (Matches .ck-view-switcher aesthetic: no outer container, clean islands)
================================================================ */
.ck-play-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    width: 100%;
}

.ck-play-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    width: 100%;
    flex-wrap: wrap;
}

.ck-play-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.ck-play-group-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.ck-play-group-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Floating Capsule (Matches .ck-view-switcher aesthetic) */
.ck-capsule {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--cockpit-card-border, rgba(255, 255, 255, 0.1));
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: all 0.15s ease;
    height: 33px;
    max-width: 100%;
    flex: 0 0 auto;
}

html:not(.dark) .ck-capsule,
body.light-theme .ck-capsule,
[data-theme="terra"] .ck-capsule,
[data-theme="algorithmic"] .ck-capsule {
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.ck-capsule-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ck-capsule-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0.26rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 1px;
    line-height: 1;
    white-space: nowrap;
}
.ck-capsule-label svg {
    display: block;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Signal Tag Pills inside Capsule */
.ck-play-tag-skip { color: #94a3b8 !important; }
.ck-play-tag-lean { color: #d97706 !important; }
.ck-play-tag-play { color: #16a34a !important; }
html.dark .ck-play-tag-skip { color: #94a3b8 !important; }
html.dark .ck-play-tag-lean { color: #fbbf24 !important; }
html.dark .ck-play-tag-play { color: #4ade80 !important; }

.ck-capsule-item.active.ck-play-tag-skip,
.ck-capsule-item.active.ck-play-tag-lean,
.ck-capsule-item.active.ck-play-tag-play {
    color: #ffffff !important;
}

html:not(.dark) .ck-capsule-label,
body.light-theme .ck-capsule-label,
[data-theme="terra"] .ck-capsule-label,
[data-theme="algorithmic"] .ck-capsule-label {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted, #64748b);
}

/* Capsule Item / Pill (Matches .ck-view-tab aesthetic) */
.ck-capsule-item {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.14rem 0.44rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1.2;
    height: 25px;
}

.ck-capsule-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

html:not(.dark) .ck-capsule-item,
body.light-theme .ck-capsule-item,
[data-theme="terra"] .ck-capsule-item,
[data-theme="algorithmic"] .ck-capsule-item {
    color: var(--text-muted, #64748b);
}

html:not(.dark) .ck-capsule-item:hover,
body.light-theme .ck-capsule-item:hover,
[data-theme="terra"] .ck-capsule-item:hover,
[data-theme="algorithmic"] .ck-capsule-item:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-surface-hover, #f1f5f9);
}

.ck-capsule-item.active {
    background: var(--primary);
    color: #000000 !important;
    font-weight: 800;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.25);
}

html:not(.dark) .ck-capsule-item.active,
body.light-theme .ck-capsule-item.active,
[data-theme="algorithmic"] .ck-capsule-item.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 74, 198, 0.25);
}

[data-theme="terra"] .ck-capsule-item.active {
    background: var(--primary, #782e1c);
    color: #ffffff !important;
    border-color: var(--primary, #782e1c);
    box-shadow: 0 2px 8px rgba(120, 46, 28, 0.25);
}

/* Tab/Capsule Badge inside items */
.ck-capsule-item .ck-tab-badge {
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.70rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    line-height: 1;
}

html:not(.dark) .ck-capsule-item .ck-tab-badge,
body.light-theme .ck-capsule-item .ck-tab-badge,
[data-theme="terra"] .ck-capsule-item .ck-tab-badge,
[data-theme="algorithmic"] .ck-capsule-item .ck-tab-badge {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted, #64748b);
}

.ck-capsule-item.active .ck-tab-badge {
    background: rgba(0, 0, 0, 0.25);
    color: #000000;
}

html:not(.dark) .ck-capsule-item.active .ck-tab-badge,
body.light-theme .ck-capsule-item.active .ck-tab-badge,
[data-theme="terra"] .ck-capsule-item.active .ck-tab-badge,
[data-theme="algorithmic"] .ck-capsule-item.active .ck-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Algo dot indicator */
.ck-algo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Min Odds Input inside Capsule */
.ck-capsule-input {
    width: 46px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    background: var(--bg-surface, #f8fafc);
    color: var(--text-main, #0f172a);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 0 3px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.15s ease;
}
.ck-capsule-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 74, 198, 0.15);
}
html.dark .ck-capsule-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html.dark .ck-capsule-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary);
}

/* Last N settled picks input inside WR Range capsule */
.ck-capsule-last-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px !important;
    cursor: pointer;
}
.ck-wr-last-num {
    width: 32px;
    height: 20px;
    padding: 0 2px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.ck-wr-last-num::-webkit-inner-spin-button,
.ck-wr-last-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ck-wr-last-num:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
}
.ck-wr-last-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    user-select: none;
    letter-spacing: 0.02em;
}
html.dark .ck-wr-last-num {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}
html.dark .ck-wr-last-num:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
}
.ck-capsule-last-pill.active .ck-wr-last-num {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}


/* Date Stepper inside Capsule */
.ck-capsule-icon-btn {
    width: 26px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.ck-capsule-icon-btn:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-surface-hover, #f1f5f9);
}
html.dark .ck-capsule-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.ck-capsule-date-input {
    width: 78px;
    height: 25px;
    border: none;
    background: transparent;
    color: var(--text-main, #0f172a);
    font-size: 0.74rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0;
    margin: 0;
    outline: none;
    cursor: pointer;
    text-align: center;
    position: relative;
}
.ck-capsule-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
html.dark .ck-capsule-date-input {
    color: #ffffff;
    color-scheme: dark;
}

/* Search Capsule */
.ck-capsule-search {
    flex: 0 0 auto;
    width: 190px;
    height: 33px;
    padding: 0 9px 0 7px;
    gap: 4px;
    overflow: hidden;
    box-sizing: border-box;
}
.ck-capsule-search .ck-search-icon {
    font-size: 15px;
    color: var(--text-muted, #64748b);
    pointer-events: none;
    flex-shrink: 0;
}
.ck-capsule-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-main, #0f172a) !important;
    font-family: inherit;
    padding: 0 2px 0 0;
    height: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.ck-capsule-search-input::-webkit-search-decoration,
.ck-capsule-search-input::-webkit-search-cancel-button,
.ck-capsule-search-input::-webkit-search-results-button,
.ck-capsule-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
.ck-capsule-search-input::placeholder {
    color: var(--text-muted, #64748b);
    opacity: 0.85;
}
html.dark .ck-capsule-search-input {
    color: #ffffff !important;
}

/* Actions Capsule (Future & Sort) */
.ck-capsule-actions {
    height: 33px;
    gap: 2px;
}

.ck-play-sort-wrap {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    height: 25px !important;
    padding: 0.14rem 0.44rem !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text-muted, #64748b) !important;
    box-sizing: border-box !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}
.ck-play-sort-wrap:hover {
    color: var(--text-main, #0f172a) !important;
    background: var(--bg-surface-hover, #f1f5f9) !important;
}
html.dark .ck-play-sort-wrap {
    color: var(--text-muted) !important;
}
html.dark .ck-play-sort-wrap:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.ck-play-sort-wrap:focus-within {
    border-color: var(--primary) !important;
}
.ck-play-sort-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    pointer-events: none;
    color: inherit;
}
.ck-sort-arrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    pointer-events: none;
    color: inherit;
    stroke: currentColor;
    transition: transform 0.15s ease;
}
.ck-play-sort-select {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    z-index: 2;
}

/* Capsule Native Select (League, Market, Bookmaker dropdowns) */
.ck-capsule-select {
    height: 25px;
    border: none;
    background: transparent;
    color: var(--text-main, #0f172a);
    font-size: 0.73rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0 1.1rem 0 0.35rem;
    outline: none;
    cursor: pointer;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    transition: all 0.15s ease;
    max-width: 116px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ck-capsule-select:hover {
    background-color: var(--bg-surface-hover, #f1f5f9);
    color: var(--text-main, #0f172a);
}
html.dark .ck-capsule-select {
    color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
html.dark .ck-capsule-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.ck-capsule-select option,
.ck-capsule-select optgroup {
    background: #ffffff;
    color: #0f172a;
}
html.dark .ck-capsule-select option,
html.dark .ck-capsule-select optgroup {
    background: #0f172a;
    color: #ffffff;
}

/* Responsive Play Toolbar & Capsules */
@media (max-width: 1520px) {
    .ck-capsule {
        height: 30px;
        padding: 2px;
        gap: 2px;
    }
    .ck-capsule-item {
        height: 24px;
        padding: 0.12rem 0.38rem;
        font-size: 0.70rem;
    }
    .ck-capsule-label {
        font-size: 0.62rem;
        padding: 0 0.22rem;
    }
    .ck-capsule-date-input {
        width: 74px;
        height: 24px;
        font-size: 0.70rem;
    }
    .ck-capsule-select {
        height: 24px;
        font-size: 0.70rem;
        max-width: 110px;
        padding: 0 1.05rem 0 0.3rem;
    }
    .ck-play-sort-wrap {
        height: 24px !important;
        font-size: 0.70rem !important;
        padding: 0.12rem 0.38rem !important;
    }
    .ck-capsule-search {
        height: 30px;
        width: 180px;
    }
    .ck-capsule-search-input {
        font-size: 0.72rem;
    }
    .ck-capsule-actions {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .ck-play-toolbar {
        gap: 0.5rem;
    }
    .ck-play-row {
        gap: 0.5rem;
    }
    .ck-play-group {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
    }
    .ck-capsule {
        height: 34px;
        padding: 3px;
        gap: 3px;
        max-width: 100%;
        box-sizing: border-box;
        flex: 0 0 auto;
    }
    .ck-capsule-label {
        font-size: 0.62rem;
        padding: 0 0.35rem;
        margin-right: 1px;
    }
    .ck-capsule-date .ck-capsule-label {
        padding: 0 0.35rem;
    }
    .ck-capsule-item {
        height: 26px;
        padding: 0.22rem 0.42rem;
        font-size: 0.72rem;
        gap: 0.25rem;
        border-radius: 6px;
    }
    .ck-capsule-item .ck-tab-badge {
        font-size: 0.62rem;
        padding: 0.08rem 0.32rem;
    }
    .ck-capsule-date-input {
        font-size: 0.72rem;
        height: 26px;
        padding: 0 2px;
    }
    .ck-capsule-icon-btn {
        width: 24px;
        height: 26px;
    }
    .ck-capsule-pills {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ck-capsule-pills::-webkit-scrollbar {
        display: none;
    }
    .ck-capsule-search {
        flex: 1 1 140px;
        width: auto !important;
        max-width: none;
        height: 34px;
    }
    .ck-capsule-actions {
        height: 34px;
    }
    .ck-play-sort-wrap {
        height: 26px !important;
        padding: 0.15rem 0.45rem !important;
        font-size: 0.72rem !important;
    }
}

@media (max-width: 480px) {
    .ck-play-toolbar {
        gap: 0.45rem;
    }
    .ck-play-row {
        gap: 0.45rem;
    }
    .ck-play-group {
        gap: 0.45rem;
    }
    .ck-capsule-item {
        padding: 0.2rem 0.36rem;
        font-size: 0.69rem;
    }
    .ck-capsule-item .ck-tab-badge {
        font-size: 0.58rem;
        padding: 0.05rem 0.25rem;
    }
}

@media(max-width:640px) {
    .ck-modal-backdrop { padding: 0.5rem; }
    .ck-modal-card {
        padding: 1.1rem 0.85rem;
        border-radius: 14px;
        max-height: 92vh;
        overflow-y: auto;
    }
    .ck-modal-title { font-size: 1.15rem; padding-right: 2.2rem; }
    .ck-modal-sub { padding-right: 2.2rem; }
    .ck-inv-head-cols { width: 126px; gap: 3px; }
    .ck-inv-head-cols span { width: 38px; font-size: 0.62rem; }
    .ck-inv-rates { width: 126px; gap: 3px; }
    .ck-inv-rate { width: 38px; font-size: 0.68rem; padding: 0.12rem 0; }
    .ck-inv-team { max-width: 105px; font-size: 0.68rem; }
    .ck-inv-squares { gap: 2.5px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .ck-inv-squares::-webkit-scrollbar { display: none; }
    .ck-inv-sq { width: 20px; height: 20px; font-size: 0.65rem; border-radius: 4px; flex-shrink: 0; }
    .ck-inv-divider { height: 14px; margin: 0 1px; }
}

/* Statistics View Components */
.ck-stats-container { display: flex; flex-direction: column; gap: 1.5rem; }
.ck-stats-toolbar { background: var(--surface); border: 1px solid var(--cockpit-card-border); border-radius: 12px; padding: 0.85rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ck-stats-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ck-stats-kpi-card { background: var(--surface); border: 1px solid var(--cockpit-card-border); border-radius: 14px; padding: 1.25rem; position: relative; overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease; }
.ck-stats-kpi-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.ck-stats-kpi-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.4rem; display: flex; align-items: center; justify-content: space-between; }
.ck-stats-kpi-val { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.1; display: flex; align-items: baseline; gap: 0.35rem; }
.ck-stats-kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; }
.ck-stats-kpi-val.pos { color: #22c55e; }
.ck-stats-kpi-val.neg { color: #ef4444; }
.ck-stats-section-title { font-size: 1rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; }
.ck-stats-section-title .material-symbols-outlined { color: var(--primary); font-size: 20px; }
.ck-table-card { background: var(--surface); border: 1px solid var(--cockpit-card-border); border-radius: 14px; overflow: hidden; }
.ck-stats-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; text-align: left; }
.ck-stats-table th { background: rgba(0,0,0,0.25); padding: 0.75rem 1rem; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--cockpit-card-border); }
.ck-stats-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-main); }
.ck-stats-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.ck-stats-table tr:last-child td { border-bottom: none; }
.ck-algo-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 700; font-size: 0.75rem; background: rgba(255, 255, 255, 0.07); }
.ck-algo-badge.all { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.ck-algo-badge.v6 { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.ck-algo-badge.std { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.ck-algo-badge.mix { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.ck-algo-badge.mix_e { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.ck-markets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1280px) { .ck-markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ck-markets-grid { grid-template-columns: 1fr; } }
.ck-market-card { background: var(--surface); border: 1px solid var(--cockpit-card-border); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ck-market-card-header { display: flex; align-items: center; justify-content: space-between; }
.ck-market-card-title { font-size: 0.95rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.ck-scope-rows { display: flex; flex-direction: column; gap: 0.65rem; }
.ck-scope-row { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 0.5rem 0.75rem; }
.ck-scope-row-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.35rem; }
.ck-scope-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.ck-scope-stats { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; }
.ck-progress-track { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; position: relative; }
.ck-progress-bar { height: 100%; background: #22c55e; border-radius: 3px; transition: width 0.4s ease; }
.ck-tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.65rem; }
@media (min-width: 1024px) {
    .ck-tiers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
}
.ck-tier-card { background: var(--surface); border: 1px solid var(--cockpit-card-border); border-radius: 14px; padding: 0.85rem 0.95rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 0.45rem; }
.ck-tier-card.lock { border-left: 4px solid #c084fc; }
.ck-tier-card.banker { border-left: 4px solid #38bdf8; }
.ck-tier-card.play { border-left: 4px solid #22c55e; }
.ck-tier-card.lean { border-left: 4px solid #f59e0b; }
.ck-tier-card.skip { border-left: 4px solid #6b7280; }

/* ============================================================
   LIGHT THEME ADAPTATIONS (Cockpit)
   Applies when html:not(.dark), body.light-theme, or terra/algorithmic
   ============================================================ */
html:not(.dark) .ck-view-switcher,
body.light-theme .ck-view-switcher,
[data-theme="terra"] .ck-view-switcher,
[data-theme="algorithmic"] .ck-view-switcher {
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
html:not(.dark) .ck-view-tab,
body.light-theme .ck-view-tab,
[data-theme="terra"] .ck-view-tab,
[data-theme="algorithmic"] .ck-view-tab {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-view-tab:hover,
body.light-theme .ck-view-tab:hover,
[data-theme="terra"] .ck-view-tab:hover,
[data-theme="algorithmic"] .ck-view-tab:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-surface-hover, #f1f5f9);
}
html:not(.dark) .ck-view-tab.active,
body.light-theme .ck-view-tab.active,
[data-theme="terra"] .ck-view-tab.active,
[data-theme="algorithmic"] .ck-view-tab.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 74, 198, 0.25);
}
html:not(.dark) .ck-tab-badge,
body.light-theme .ck-tab-badge,
[data-theme="terra"] .ck-tab-badge,
[data-theme="algorithmic"] .ck-tab-badge {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-view-tab.active .ck-tab-badge,
body.light-theme .ck-view-tab.active .ck-tab-badge,
[data-theme="terra"] .ck-view-tab.active .ck-tab-badge,
[data-theme="algorithmic"] .ck-view-tab.active .ck-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Light Filter Bar Container */
html:not(.dark) .ck-filters,
body.light-theme .ck-filters,
[data-theme="terra"] .ck-filters,
[data-theme="algorithmic"] .ck-filters {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-filter-group,
body.light-theme .ck-filter-group,
[data-theme="terra"] .ck-filter-group,
[data-theme="algorithmic"] .ck-filter-group {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-filter-group:hover,
body.light-theme .ck-filter-group:hover,
[data-theme="terra"] .ck-filter-group:hover,
[data-theme="algorithmic"] .ck-filter-group:hover {
    background: var(--bg-surface-hover, #f1f5f9);
    border-color: rgba(0, 0, 0, 0.18);
}
html:not(.dark) .ck-filter-label,
body.light-theme .ck-filter-label,
[data-theme="terra"] .ck-filter-label,
[data-theme="algorithmic"] .ck-filter-label {
    color: var(--text-muted, #64748b);
    border-right-color: var(--border-color, rgba(0, 0, 0, 0.08));
}
html:not(.dark) .ck-pill,
body.light-theme .ck-pill,
[data-theme="terra"] .ck-pill,
[data-theme="algorithmic"] .ck-pill {
    color: var(--text-muted, #64748b);
    border-color: var(--border-color, rgba(0, 0, 0, 0.1));
}
html:not(.dark) .ck-pill:hover,
body.light-theme .ck-pill:hover,
[data-theme="terra"] .ck-pill:hover,
[data-theme="algorithmic"] .ck-pill:hover {
    color: var(--text-main, #0f172a);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}
html:not(.dark) .ck-pill.active,
body.light-theme .ck-pill.active,
[data-theme="terra"] .ck-pill.active,
[data-theme="algorithmic"] .ck-pill.active {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}
html:not(.dark) .ck-date-stepper,
body.light-theme .ck-date-stepper,
[data-theme="terra"] .ck-date-stepper,
[data-theme="algorithmic"] .ck-date-stepper {
    background: var(--bg-base, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
}
html:not(.dark) .ck-stepper-btn,
body.light-theme .ck-stepper-btn,
[data-theme="terra"] .ck-stepper-btn,
[data-theme="algorithmic"] .ck-stepper-btn {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-stepper-btn:hover,
body.light-theme .ck-stepper-btn:hover,
[data-theme="terra"] .ck-stepper-btn:hover,
[data-theme="algorithmic"] .ck-stepper-btn:hover {
    background: var(--bg-surface-hover, #e2e8f0);
    color: var(--primary);
}
html:not(.dark) .ck-stepper-date,
body.light-theme .ck-stepper-date,
[data-theme="terra"] .ck-stepper-date,
[data-theme="algorithmic"] .ck-stepper-date {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-stepper-date::-webkit-calendar-picker-indicator,
body.light-theme .ck-stepper-date::-webkit-calendar-picker-indicator,
[data-theme="terra"] .ck-stepper-date::-webkit-calendar-picker-indicator,
[data-theme="algorithmic"] .ck-stepper-date::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.65;
}
html:not(.dark) .ck-select,
body.light-theme .ck-select,
[data-theme="terra"] .ck-select,
[data-theme="algorithmic"] .ck-select {
    background: var(--bg-base, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-select:hover,
html:not(.dark) .ck-select:focus,
body.light-theme .ck-select:hover,
body.light-theme .ck-select:focus {
    background: #ffffff;
    border-color: var(--primary);
}
html:not(.dark) .ck-filter-sep,
body.light-theme .ck-filter-sep,
[data-theme="terra"] .ck-filter-sep,
[data-theme="algorithmic"] .ck-filter-sep {
    background: var(--border-color, rgba(0, 0, 0, 0.08));
}

/* Settlement Bar (Top Picks) */
html:not(.dark) .ck-settlement-bar,
body.light-theme .ck-settlement-bar,
[data-theme="terra"] .ck-settlement-bar,
[data-theme="algorithmic"] .ck-settlement-bar {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-settle-rate,
body.light-theme .ck-settle-rate,
[data-theme="terra"] .ck-settle-rate,
[data-theme="algorithmic"] .ck-settle-rate {
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-settle-pill.won,
body.light-theme .ck-settle-pill.won {
    color: #16a34a;
}
html:not(.dark) .ck-settle-pill.lost,
body.light-theme .ck-settle-pill.lost {
    color: #dc2626;
}
html:not(.dark) .ck-settle-pill.pending,
body.light-theme .ck-settle-pill.pending {
    color: var(--text-muted, #64748b);
}

/* Pick Cards Grid (Top Picks) */
html:not(.dark) .ck-pick-card,
body.light-theme .ck-pick-card,
[data-theme="terra"] .ck-pick-card,
[data-theme="algorithmic"] .ck-pick-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-pick-card:hover,
body.light-theme .ck-pick-card:hover,
[data-theme="terra"] .ck-pick-card:hover,
[data-theme="algorithmic"] .ck-pick-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}
html:not(.dark) .ck-pick-card.status-pending,
body.light-theme .ck-pick-card.status-pending {
    border-left: 4px solid #94a3b8;
}
html:not(.dark) .ck-pick-card.status-won,
body.light-theme .ck-pick-card.status-won {
    border-left: 4px solid #16a34a;
    border-color: rgba(22, 163, 74, 0.35);
    background: #ffffff;
}
html:not(.dark) .ck-pick-card.status-lost,
body.light-theme .ck-pick-card.status-lost {
    border-left: 4px solid #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
    background: #ffffff;
}
html:not(.dark) .ck-pick-result-row,
body.light-theme .ck-pick-result-row,
[data-theme="terra"] .ck-pick-result-row,
[data-theme="algorithmic"] .ck-pick-result-row {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-result-score,
body.light-theme .ck-result-score {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-result-actual,
body.light-theme .ck-result-actual {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-bm-name,
body.light-theme .ck-bm-name {
    color: var(--text-muted, #64748b);
    font-weight: 600;
    opacity: 0.9;
}
html:not(.dark) .ck-kickoff,
body.light-theme .ck-kickoff {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-prob-bar-wrap,
body.light-theme .ck-prob-bar-wrap {
    background: rgba(0, 0, 0, 0.08);
}
html:not(.dark) .ck-consensus-badge,
body.light-theme .ck-consensus-badge {
    background: rgba(99, 102, 241, 0.10);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.25);
}
html:not(.dark) .ck-consensus-badge.consensus-full,
body.light-theme .ck-consensus-badge.consensus-full {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.15);
}
html:not(.dark) .ck-h2h-badge,
body.light-theme .ck-h2h-badge {
    background: rgba(59, 130, 246, 0.10);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.25);
}
html:not(.dark) .ck-h2h-badge.h2h-high,
body.light-theme .ck-h2h-badge.h2h-high {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.15);
}
html:not(.dark) .ck-h2h-badge.h2h-med,
body.light-theme .ck-h2h-badge.h2h-med {
    background: rgba(234, 179, 8, 0.12);
    color: #854d0e;
    border-color: rgba(234, 179, 8, 0.3);
}
html:not(.dark) .ck-h2h-badge.h2h-low,
body.light-theme .ck-h2h-badge.h2h-low {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.25);
}
html:not(.dark) .ck-h2h-pill,
body.light-theme .ck-h2h-pill {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
html:not(.dark) .ck-matrix-btn,
body.light-theme .ck-matrix-btn {
    background: rgba(0, 74, 198, 0.06);
    border-color: rgba(0, 74, 198, 0.25);
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-matrix-btn:hover,
body.light-theme .ck-matrix-btn:hover {
    background: rgba(0, 74, 198, 0.14);
    border-color: var(--primary, #004ac6);
    color: var(--primary, #004ac6);
}

/* SMART COUPONS (Right column on Top Picks) */
html:not(.dark) .ck-coupon-card,
body.light-theme .ck-coupon-card,
[data-theme="terra"] .ck-coupon-card,
[data-theme="algorithmic"] .ck-coupon-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-coupon-card:hover,
body.light-theme .ck-coupon-card:hover,
[data-theme="terra"] .ck-coupon-card:hover,
[data-theme="algorithmic"] .ck-coupon-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
html:not(.dark) .ck-coupon-label,
body.light-theme .ck-coupon-label {
    color: var(--text-main, #0f172a);
    font-weight: 700;
}
html:not(.dark) .ck-coupon-picks-badge,
body.light-theme .ck-coupon-picks-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-coupon-desc,
body.light-theme .ck-coupon-desc {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-coupon-stat,
body.light-theme .ck-coupon-stat {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-coupon-stat-val,
body.light-theme .ck-coupon-stat-val {
    color: var(--primary, #004ac6);
    font-weight: 800;
}
html:not(.dark) .ck-coupon-stat-lbl,
body.light-theme .ck-coupon-stat-lbl {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-yield-badge.yield-pos,
body.light-theme .ck-yield-badge.yield-pos {
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
html:not(.dark) .ck-yield-badge.yield-neg,
body.light-theme .ck-yield-badge.yield-neg {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
html:not(.dark) .ck-coupon-pick-row,
body.light-theme .ck-coupon-pick-row {
    color: var(--text-main, #0f172a);
    border-left: 2px solid var(--primary);
}
html:not(.dark) details.ck-coupon-detail summary,
body.light-theme details.ck-coupon-detail summary {
    color: var(--primary, #004ac6);
    font-weight: 600;
}
html:not(.dark) .ck-prob-clickable,
body.light-theme .ck-prob-clickable {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
}
html:not(.dark) .ck-prob-clickable:hover,
body.light-theme .ck-prob-clickable:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.18);
    border-color: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
}

/* Tag & Outcome Filter Tabs */
html:not(.dark) .ck-tag-filter-tabs,
html:not(.dark) .ck-outcome-filter-tabs,
body.light-theme .ck-tag-filter-tabs,
body.light-theme .ck-outcome-filter-tabs {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
html:not(.dark) .ck-tag-tab:hover,
html:not(.dark) .ck-outcome-tab:hover,
body.light-theme .ck-tag-tab:hover,
body.light-theme .ck-outcome-tab:hover {
    color: var(--text-main, #0f172a);
    background: rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-tag-tab.active,
html:not(.dark) .ck-outcome-tab.active,
body.light-theme .ck-tag-tab.active,
body.light-theme .ck-outcome-tab.active {
    background: #ffffff;
    color: var(--text-main, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
html:not(.dark) .ck-tag-tab.lock.active,
body.light-theme .ck-tag-tab.lock.active {
    color: #7e22ce;
    background: rgba(147, 51, 234, 0.14);
    border-color: rgba(147, 51, 234, 0.30);
}
html:not(.dark) .ck-tag-tab.banker.active,
body.light-theme .ck-tag-tab.banker.active {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.14);
    border-color: rgba(2, 132, 199, 0.30);
}
html:not(.dark) .ck-tag-tab.play.active,
body.light-theme .ck-tag-tab.play.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(22, 163, 74, 0.30);
}
html:not(.dark) .ck-tag-tab.lean.active,
body.light-theme .ck-tag-tab.lean.active {
    color: #b45309;
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217, 119, 6, 0.30);
}
html:not(.dark) .ck-tag-tab.skip.active,
body.light-theme .ck-tag-tab.skip.active {
    color: #4b5563;
    background: rgba(107, 114, 128, 0.14);
    border-color: rgba(107, 114, 128, 0.30);
}
html:not(.dark) .ck-outcome-tab.won.active,
body.light-theme .ck-outcome-tab.won.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.14);
}
html:not(.dark) .ck-outcome-tab.lost.active,
body.light-theme .ck-outcome-tab.lost.active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.14);
}
html:not(.dark) .ck-sw-pills,
body.light-theme .ck-sw-pills {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
html:not(.dark) .ck-sw-btn,
body.light-theme .ck-sw-btn {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-sw-btn:hover,
body.light-theme .ck-sw-btn:hover {
    color: var(--text-main, #0f172a);
    background: rgba(0, 0, 0, 0.05);
}
html:not(.dark) .ck-sw-btn.active,
body.light-theme .ck-sw-btn.active {
    background: var(--primary);
    color: #ffffff;
}

html:not(.dark) .ck-count-badge,
body.light-theme .ck-count-badge,
[data-theme="corpo"] .ck-count-badge,
[data-theme="algorithmic"] .ck-count-badge,
[data-theme="terra"] .ck-count-badge {
    background: var(--primary);
    color: #ffffff !important;
}

[data-theme="corpo"] .ck-count-badge,
.theme-corpo .ck-count-badge {
    background: #5b2146 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(91, 33, 70, 0.35);
}

html:not(.dark) .ck-btn.primary,
body.light-theme .ck-btn.primary,
[data-theme="corpo"] .ck-btn.primary {
    background: var(--primary);
    color: #ffffff !important;
}

html:not(.dark) .ck-pill:hover,
html:not(.dark) .ck-pill.active,
body.light-theme .ck-pill:hover,
body.light-theme .ck-pill.active,
[data-theme="corpo"] .ck-pill.active {
    background: var(--primary);
    color: #ffffff !important;
}

/* Schedule & Predictions View */
html:not(.dark) .ck-schedule-toolbar,
body.light-theme .ck-schedule-toolbar {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-sched-summary-pill,
body.light-theme .ck-sched-summary-pill {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-sched-search,
body.light-theme .ck-sched-search,
html:not(.dark) .ck-picks-search,
body.light-theme .ck-picks-search {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-sched-search::placeholder,
body.light-theme .ck-sched-search::placeholder,
html:not(.dark) .ck-picks-search::placeholder,
body.light-theme .ck-picks-search::placeholder {
    color: var(--text-muted, #94a3b8);
}
html:not(.dark) .ck-sched-search-wrap .material-symbols-outlined,
body.light-theme .ck-sched-search-wrap .material-symbols-outlined,
html:not(.dark) .ck-picks-search-wrap .material-symbols-outlined,
body.light-theme .ck-picks-search-wrap .material-symbols-outlined {
    color: var(--text-muted, #94a3b8);
}
html:not(.dark) .ck-sched-league-group,
body.light-theme .ck-sched-league-group {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-sched-league-head,
body.light-theme .ck-sched-league-head {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-sched-league-badge,
body.light-theme .ck-sched-league-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-sched-match-card,
body.light-theme .ck-sched-match-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
html:not(.dark) .ck-sched-match-card:hover,
body.light-theme .ck-sched-match-card:hover {
    border-color: rgba(0, 0, 0, 0.16) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
}
html:not(.dark) .ck-sched-no-tips,
body.light-theme .ck-sched-no-tips {
    background: var(--bg-surface, #f8fafc) !important;
    color: var(--text-muted, #64748b) !important;
    border-top: 1px dashed var(--border-color, rgba(0, 0, 0, 0.08)) !important;
}
html:not(.dark) .ck-sched-analiza-link,
body.light-theme .ck-sched-analiza-link {
    background: rgba(0, 74, 198, 0.06) !important;
    border-color: rgba(0, 74, 198, 0.25) !important;
    color: var(--primary, #004ac6) !important;
}
html:not(.dark) .ck-sched-analiza-link:hover,
body.light-theme .ck-sched-analiza-link:hover {
    background: var(--primary, #004ac6) !important;
    border-color: var(--primary, #004ac6) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 74, 198, 0.25) !important;
}
.ck-count-badge-tips {
    background: rgba(0, 240, 255, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
}
html:not(.dark) .ck-count-badge-tips,
body.light-theme .ck-count-badge-tips {
    background: rgba(0, 74, 198, 0.08) !important;
    color: var(--primary, #004ac6) !important;
    border: 1px solid rgba(0, 74, 198, 0.2) !important;
}
html:not(.dark) .ck-sched-match-head,
body.light-theme .ck-sched-match-head {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-sched-match-teams,
body.light-theme .ck-sched-match-teams {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-match-status.scheduled,
body.light-theme .ck-match-status.scheduled {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
html:not(.dark) .ck-match-status.finished,
body.light-theme .ck-match-status.finished {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.30);
}
html:not(.dark) .ck-match-status.live,
body.light-theme .ck-match-status.live {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.30);
}
html:not(.dark) .ck-sched-col-head,
body.light-theme .ck-sched-col-head {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-sched-cat-group,
body.light-theme .ck-sched-cat-group {
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
html:not(.dark) .ck-sched-cat-header,
body.light-theme .ck-sched-cat-header {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-sched-cat-group[data-cat="1x2_dc"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="1x2_dc"] .ck-sched-cat-title { color: #0284c7; }
html:not(.dark) .ck-sched-cat-group[data-cat="goals"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="goals"] .ck-sched-cat-title { color: #059669; }
html:not(.dark) .ck-sched-cat-group[data-cat="fouls"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="fouls"] .ck-sched-cat-title { color: #c2410c; }
html:not(.dark) .ck-sched-cat-group[data-cat="corners"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="corners"] .ck-sched-cat-title { color: #0891b2; }
html:not(.dark) .ck-sched-cat-group[data-cat="cards"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="cards"] .ck-sched-cat-title { color: #a16207; }
html:not(.dark) .ck-sched-cat-group[data-cat="shots"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="shots"] .ck-sched-cat-title { color: #7e22ce; }
html:not(.dark) .ck-sched-cat-group[data-cat="shots_on_target"] .ck-sched-cat-title,
body.light-theme .ck-sched-cat-group[data-cat="shots_on_target"] .ck-sched-cat-title { color: #be123c; }
html:not(.dark) .ck-sched-cat-badge,
body.light-theme .ck-sched-cat-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-scope-subgroup,
body.light-theme .ck-scope-subgroup {
    background: #ffffff;
}
html:not(.dark) .ck-scope-subgroup.ck-scope-total,
body.light-theme .ck-scope-subgroup.ck-scope-total {
    border-left-color: rgba(2, 132, 199, 0.4) !important;
}
html:not(.dark) .ck-scope-bar.ck-scope-bar-total,
body.light-theme .ck-scope-bar.ck-scope-bar-total {
    background: rgba(2, 132, 199, 0.06) !important;
    border-bottom-color: rgba(2, 132, 199, 0.15) !important;
}
html:not(.dark) .ck-scope-subgroup.ck-scope-home,
body.light-theme .ck-scope-subgroup.ck-scope-home {
    border-left-color: rgba(217, 119, 6, 0.4) !important;
}
html:not(.dark) .ck-scope-bar.ck-scope-bar-home,
body.light-theme .ck-scope-bar.ck-scope-bar-home {
    background: rgba(217, 119, 6, 0.06) !important;
    border-bottom-color: rgba(217, 119, 6, 0.15) !important;
}
html:not(.dark) .ck-scope-subgroup.ck-scope-away,
body.light-theme .ck-scope-subgroup.ck-scope-away {
    border-left-color: rgba(147, 51, 234, 0.4) !important;
}
html:not(.dark) .ck-scope-bar.ck-scope-bar-away,
body.light-theme .ck-scope-bar.ck-scope-bar-away {
    background: rgba(147, 51, 234, 0.06) !important;
    border-bottom-color: rgba(147, 51, 234, 0.15) !important;
}
html:not(.dark) .ck-sched-tip-row,
body.light-theme .ck-sched-tip-row {
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    background: #ffffff;
}
html:not(.dark) .ck-sched-tip-row:hover,
body.light-theme .ck-sched-tip-row:hover {
    background: var(--bg-surface-hover, #f8fafc);
}
html:not(.dark) .ck-sched-tip-row.status-won,
body.light-theme .ck-sched-tip-row.status-won {
    background: rgba(34, 197, 94, 0.04);
}
html:not(.dark) .ck-sched-tip-row.status-lost,
body.light-theme .ck-sched-tip-row.status-lost {
    background: rgba(239, 68, 68, 0.04);
}
html:not(.dark) .ck-sched-odds-val,
body.light-theme .ck-sched-odds-val {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-sched-bm-badge,
body.light-theme .ck-sched-bm-badge {
    color: var(--text-muted, #64748b);
    font-weight: 600;
    opacity: 0.9;
}
html:not(.dark) .ck-sched-analiza-link,
body.light-theme .ck-sched-analiza-link {
    color: var(--primary, #004ac6);
    background: rgba(0, 74, 198, 0.06);
    border-color: rgba(0, 74, 198, 0.25);
}
html:not(.dark) .ck-sched-analiza-link:hover,
body.light-theme .ck-sched-analiza-link:hover {
    color: var(--primary, #004ac6);
    background: rgba(0, 74, 198, 0.14);
}

/* Statistics View */
html:not(.dark) .ck-stats-toolbar,
body.light-theme .ck-stats-toolbar {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-stats-kpi-card,
body.light-theme .ck-stats-kpi-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-stats-kpi-card:hover,
body.light-theme .ck-stats-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.15);
}
html:not(.dark) .ck-stats-kpi-val,
body.light-theme .ck-stats-kpi-val {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-stats-kpi-val.pos,
body.light-theme .ck-stats-kpi-val.pos {
    color: #16a34a;
}
html:not(.dark) .ck-stats-kpi-val.neg,
body.light-theme .ck-stats-kpi-val.neg {
    color: #dc2626;
}
html:not(.dark) .ck-stats-kpi-lbl,
body.light-theme .ck-stats-kpi-lbl {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-stats-kpi-sub,
body.light-theme .ck-stats-kpi-sub {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-tier-card,
body.light-theme .ck-tier-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
html:not(.dark) .ck-tier-card.lock,
body.light-theme .ck-tier-card.lock {
    border-left: 4px solid #9333ea;
}
html:not(.dark) .ck-tier-card.banker,
body.light-theme .ck-tier-card.banker {
    border-left: 4px solid #0284c7;
}
html:not(.dark) .ck-tier-card.play,
body.light-theme .ck-tier-card.play {
    border-left: 4px solid #16a34a;
}
html:not(.dark) .ck-tier-card.lean,
body.light-theme .ck-tier-card.lean {
    border-left: 4px solid #d97706;
}
html:not(.dark) .ck-tier-card.skip,
body.light-theme .ck-tier-card.skip {
    border-left: 4px solid #64748b;
}
html:not(.dark) .ck-progress-track,
body.light-theme .ck-progress-track {
    background: rgba(0, 0, 0, 0.08);
}
html:not(.dark) .ck-table-card,
body.light-theme .ck-table-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-stats-table th,
body.light-theme .ck-stats-table th {
    background: var(--bg-surface, #f8fafc);
    color: var(--text-muted, #64748b);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
html:not(.dark) .ck-stats-table td,
body.light-theme .ck-stats-table td {
    color: var(--text-main, #0f172a);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
}
html:not(.dark) .ck-stats-table tr:hover td,
body.light-theme .ck-stats-table tr:hover td {
    background: var(--bg-surface-hover, #f8fafc);
}
html:not(.dark) .ck-algo-badge.all,
body.light-theme .ck-algo-badge.all {
    background: rgba(2, 132, 199, 0.10);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}
html:not(.dark) .ck-algo-badge.v6,
body.light-theme .ck-algo-badge.v6 {
    background: rgba(147, 51, 234, 0.10);
    color: #7e22ce;
    border: 1px solid rgba(147, 51, 234, 0.25);
}
html:not(.dark) .ck-algo-badge.std,
body.light-theme .ck-algo-badge.std {
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
html:not(.dark) .ck-algo-badge.mix,
body.light-theme .ck-algo-badge.mix {
    background: rgba(217, 119, 6, 0.10);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}
html:not(.dark) .ck-algo-badge.mix_e,
body.light-theme .ck-algo-badge.mix_e {
    background: rgba(219, 39, 119, 0.10);
    color: #be185d;
    border: 1px solid rgba(219, 39, 119, 0.25);
}
html:not(.dark) .ck-market-card,
body.light-theme .ck-market-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .ck-market-card-title,
body.light-theme .ck-market-card-title {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-scope-row,
body.light-theme .ck-scope-row {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-scope-name,
body.light-theme .ck-scope-name {
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-scope-stats,
body.light-theme .ck-scope-stats {
    color: var(--text-main, #0f172a);
}

/* Breakdown Matrix Modal */
html:not(.dark) .ck-modal-card,
body.light-theme .ck-modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 74, 198, 0.08);
}
html:not(.dark) .ck-modal-title,
body.light-theme .ck-modal-title {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-modal-close,
body.light-theme .ck-modal-close,
[data-theme="terra"] .ck-modal-close,
[data-theme="algorithmic"] .ck-modal-close {
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
html:not(.dark) .ck-modal-close:hover,
body.light-theme .ck-modal-close:hover,
[data-theme="terra"] .ck-modal-close:hover,
[data-theme="algorithmic"] .ck-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    transform: scale(1.08);
}
html:not(.dark) .ck-modal-sub,
body.light-theme .ck-modal-sub {
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-modal-odds,
body.light-theme .ck-modal-odds {
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-modal-analiza,
body.light-theme .ck-modal-analiza {
    background: rgba(0, 74, 198, 0.08);
    border-color: rgba(0, 74, 198, 0.25);
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-modal-analiza:hover,
body.light-theme .ck-modal-analiza:hover {
    background: rgba(0, 74, 198, 0.16);
    border-color: var(--primary, #004ac6);
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-inv-head,
body.light-theme .ck-inv-head {
    border-bottom-color: var(--border-color, rgba(0, 0, 0, 0.08));
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-inv-head-cols span,
body.light-theme .ck-inv-head-cols span {
    color: var(--primary, #004ac6);
}
html:not(.dark) .ck-inv-card,
body.light-theme .ck-inv-card {
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
html:not(.dark) .ck-inv-card:hover,
body.light-theme .ck-inv-card:hover {
    border-color: rgba(0, 74, 198, 0.35);
    background: var(--bg-surface-hover, #f1f5f9);
}
html:not(.dark) .ck-inv-card-head,
body.light-theme .ck-inv-card-head {
    border-bottom-color: var(--border-color, rgba(0, 0, 0, 0.06));
}
html:not(.dark) .ck-inv-pill,
body.light-theme .ck-inv-pill {
    background: rgba(0, 74, 198, 0.08);
    color: var(--primary, #004ac6);
    border-color: rgba(0, 74, 198, 0.25);
}
html:not(.dark) .ck-inv-team,
body.light-theme .ck-inv-team {
    color: var(--text-main, #0f172a);
}
html:not(.dark) .ck-inv-venue,
body.light-theme .ck-inv-venue {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted, #64748b);
}
html:not(.dark) .ck-inv-rate.low,
body.light-theme .ck-inv-rate.low {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted, #64748b);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
html:not(.dark) .ck-inv-rate.med,
body.light-theme .ck-inv-rate.med {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}
html:not(.dark) .ck-inv-rate.high,
body.light-theme .ck-inv-rate.high {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
html:not(.dark) .ck-inv-divider,
body.light-theme .ck-inv-divider {
    background: rgba(0, 0, 0, 0.12);
}
html:not(.dark) .ck-inv-legend,
body.light-theme .ck-inv-legend {
    border-top-color: var(--border-color, rgba(0, 0, 0, 0.08));
}

/* ============================================================
   COCKPIT BETSLIP / COUPON BUILDER COMPONENT STYLES
   ============================================================ */
.ck-slip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818cf8;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}
.ck-slip-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #c7d2fe;
    transform: translateY(-1px) scale(1.08);
}
.ck-slip-btn.in-slip {
    background: rgba(34, 197, 94, 0.22) !important;
    border-color: #22c55e !important;
    color: #4ade80 !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}
.ck-slip-btn .ck-slip-btn-icon {
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
}
html:not(.dark) .ck-slip-btn,
body.light-theme .ck-slip-btn {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #4f46e5;
}
html:not(.dark) .ck-slip-btn:hover,
body.light-theme .ck-slip-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: #4f46e5;
    color: #3730a3;
}
html:not(.dark) .ck-slip-btn.in-slip,
body.light-theme .ck-slip-btn.in-slip {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}
.ck-pick-card.in-slip {
    border-color: rgba(99, 102, 241, 0.5) !important;
}

/* Floating BetSlip Trigger Capsule */
.ck-floating-betslip {
    position: fixed;
    bottom: 24px;
    right: 28px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45), 0 0 1px 1px rgba(255, 255, 255, 0.2) inset;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.ck-floating-betslip:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 38px rgba(79, 70, 229, 0.55);
}
.ck-slip-float-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.ck-slip-count {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ck-slip-float-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ck-slip-float-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    font-weight: 800;
}
.ck-slip-float-odds {
    font-size: 0.95rem;
    font-weight: 900;
    font-family: ui-monospace, monospace;
    color: #a5f3fc;
}

/* BetSlip Drawer */
.ck-betslip-drawer {
    position: fixed;
    bottom: 84px;
    right: 28px;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 110px);
    background: var(--bg-card, rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}
.ck-betslip-drawer.minimized {
    display: none;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}
.ck-betslip-head {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ck-betslip-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ck-betslip-head-left h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main, #ffffff);
}
.ck-betslip-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ck-betslip-btn-sm {
    background: transparent;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ck-betslip-btn-sm:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}
.ck-betslip-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.ck-betslip-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.ck-betslip-config-bar {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ck-betslip-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ck-betslip-input {
    flex: 1;
    background: var(--bg-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-main, #ffffff);
    font-size: 0.8rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.15s ease;
}
.ck-betslip-input:focus {
    border-color: #6366f1;
}
.ck-betslip-select {
    background: var(--bg-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--text-main, #ffffff);
    font-size: 0.78rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.ck-betslip-picks-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 290px;
}
.ck-slip-leg-item {
    background: var(--bg-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.07));
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    transition: all 0.15s ease;
}
.ck-slip-leg-item:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(255, 255, 255, 0.05);
}
.ck-slip-leg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.ck-slip-leg-teams {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}
.ck-slip-leg-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}
.ck-slip-leg-market {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.ck-slip-leg-odds-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ck-slip-leg-odds {
    font-size: 0.86rem;
    font-weight: 900;
    font-family: ui-monospace, monospace;
    color: #4ade80;
}
.ck-slip-leg-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}
.ck-slip-leg-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}
.ck-betslip-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ck-betslip-footer {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ck-betslip-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    background: var(--bg-surface, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}
.ck-betslip-stat-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ck-betslip-stat-val {
    font-size: 0.95rem;
    font-weight: 900;
    font-family: ui-monospace, monospace;
    color: var(--text-main, #ffffff);
}
.ck-betslip-stat-val.odds { color: #fbbf24; }
.ck-betslip-stat-val.prob { color: #38bdf8; }
.ck-betslip-stat-val.yield { color: #4ade80; }

.ck-betslip-stake-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ck-betslip-stake-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ck-stake-chip {
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ck-stake-chip:hover, .ck-stake-chip.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}
.ck-betslip-stake-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ck-betslip-stake-input {
    width: 60px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    background: var(--bg-surface, rgba(255, 255, 255, 0.05));
    color: var(--text-main, #fff);
    font-size: 0.8rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    text-align: right;
    outline: none;
}
.ck-betslip-payout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.ck-betslip-payout-val {
    font-size: 0.95rem;
    font-weight: 900;
    font-family: ui-monospace, monospace;
    color: #4ade80;
}

.ck-betslip-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ck-betslip-publish-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}
.ck-betslip-publish-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
@keyframes ck-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Modal */
.ck-betslip-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ck-betslip-success-card {
    background: var(--bg-card, #0f172a);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 20px;
    padding: 1.75rem 2rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.ck-betslip-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 2px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.ck-betslip-link-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-surface, rgba(0, 0, 0, 0.3));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 4px 6px 4px 12px;
    gap: 6px;
}
.ck-betslip-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main, #ffffff);
    font-size: 0.78rem;
    font-family: ui-monospace, monospace;
    outline: none;
}
.ck-betslip-copy-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}
.ck-betslip-copy-btn:hover {
    background: #4f46e5;
}

/* Light / Terra / Algorithmic Adaptations for BetSlip */
[data-theme="terra"] .ck-slip-btn {
    background: rgba(148, 68, 46, 0.12);
    border-color: rgba(148, 68, 46, 0.35);
    color: #782e1c;
}
[data-theme="terra"] .ck-slip-btn:hover {
    background: rgba(148, 68, 46, 0.22);
    border-color: #94442e;
    color: #94442e;
}
[data-theme="terra"] .ck-slip-btn.in-slip {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #14532d !important;
}
[data-theme="terra"] .ck-floating-betslip {
    background: linear-gradient(135deg, #94442e 0%, #782e1c 100%);
    box-shadow: 0 10px 30px rgba(148, 68, 46, 0.45);
}
[data-theme="terra"] .ck-betslip-drawer {
    background: #fcf9f5;
    border-color: rgba(136, 114, 109, 0.3);
    color: #1c1c1a;
}
[data-theme="terra"] .ck-slip-leg-item {
    background: #ffffff;
    border-color: rgba(136, 114, 109, 0.2);
}
[data-theme="terra"] .ck-betslip-stats-grid {
    background: #ffffff;
    border-color: rgba(136, 114, 109, 0.2);
}
[data-theme="terra"] .ck-betslip-success-card {
    background: #fcf9f5;
    border-color: rgba(136, 114, 109, 0.3);
    color: #1c1c1a;
}

[data-theme="algorithmic"] .ck-floating-betslip {
    background: linear-gradient(135deg, #004ac6 0%, #00328a 100%);
    box-shadow: 0 10px 30px rgba(0, 74, 198, 0.45);
}
[data-theme="algorithmic"] .ck-betslip-drawer {
    background: #ffffff;
    border-color: rgba(0, 74, 198, 0.2);
    color: #0f172a;
}
[data-theme="algorithmic"] .ck-slip-leg-item {
    background: #f8fafc;
    border-color: rgba(0, 74, 198, 0.15);
}
[data-theme="algorithmic"] .ck-betslip-stats-grid {
    background: #f8fafc;
    border-color: rgba(0, 74, 198, 0.15);
}
[data-theme="algorithmic"] .ck-betslip-success-card {
    background: #ffffff;
    border-color: rgba(0, 74, 198, 0.25);
    color: #0f172a;
}

/* Play Tab Styles */
.ck-algo-section {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ck-algo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.ck-algo-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ck-algo-section-title-wrap h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}
.ck-algo-pill-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ck-play-algo-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.ck-algo-total {
    background: var(--bg-surface-hover, rgba(255,255,255,0.06)) !important;
    color: var(--text-main, #ffffff) !important;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1)) !important;
}

/* Unified Multi-Colored Data Pill */
.ck-data-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 9999px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    background: var(--surface-container-low, rgba(15, 23, 42, 0.6));
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    line-height: 1;
    font-size: 0.72rem;
    font-weight: 700;
}
.ck-data-pill .ck-pill-segment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.ck-data-pill .ck-pill-segment .lbl {
    opacity: 0.75;
    font-size: 0.68rem;
    font-weight: 600;
}
.ck-data-pill .ck-pill-segment .val {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ck-data-pill .ck-pill-total {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #ffffff);
}
.ck-data-pill .ck-pill-won {
    background: rgba(34, 197, 94, 0.20);
    color: var(--cockpit-play, #22c55e);
    border-left: 1px solid rgba(34, 197, 94, 0.35);
}
.ck-data-pill .ck-pill-lost {
    background: rgba(239, 68, 68, 0.20);
    color: #f87171;
    border-left: 1px solid rgba(239, 68, 68, 0.35);
}

/* Light theme overrides for .ck-data-pill */
html:not(.dark) .ck-data-pill,
body.light-theme .ck-data-pill,
[data-theme="terra"] .ck-data-pill,
[data-theme="algorithmic"] .ck-data-pill,
[data-theme="corpo"] .ck-data-pill {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
html:not(.dark) .ck-data-pill .ck-pill-total,
body.light-theme .ck-data-pill .ck-pill-total,
[data-theme="terra"] .ck-data-pill .ck-pill-total,
[data-theme="algorithmic"] .ck-data-pill .ck-pill-total,
[data-theme="corpo"] .ck-data-pill .ck-pill-total {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}
html:not(.dark) .ck-data-pill .ck-pill-won,
body.light-theme .ck-data-pill .ck-pill-won,
[data-theme="terra"] .ck-data-pill .ck-pill-won,
[data-theme="algorithmic"] .ck-data-pill .ck-pill-won,
[data-theme="corpo"] .ck-data-pill .ck-pill-won {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
    border-left-color: rgba(34, 197, 94, 0.3);
}
html:not(.dark) .ck-data-pill .ck-pill-lost,
body.light-theme .ck-data-pill .ck-pill-lost,
[data-theme="terra"] .ck-data-pill .ck-pill-lost,
[data-theme="algorithmic"] .ck-data-pill .ck-pill-lost,
[data-theme="corpo"] .ck-data-pill .ck-pill-lost {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
    border-left-color: rgba(239, 68, 68, 0.3);
}

.ck-algo-rates-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.ck-algo-rate-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
