/* =====================================================
   GLOBAL PAGE STYLING
===================================================== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
}

.page-hero {
    --page-hero-photo: url("../images/botd-download-bg.png");
    position: relative;
    width: 100%;
    max-width: 1320px;
    min-height: 308px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    padding: 34px 36px;
    background:
        linear-gradient(135deg, rgba(7, 28, 67, 0.92) 0%, rgba(19, 74, 153, 0.9) 54%, rgba(56, 142, 226, 0.82) 100%);
    border: 1px solid rgba(108, 168, 242, 0.3);
    box-shadow: 0 26px 56px rgba(8, 29, 68, 0.22);
    color: #f8fbff;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(105deg, rgba(6, 18, 44, 0.86) 8%, rgba(8, 35, 78, 0.7) 44%, rgba(16, 62, 126, 0.4) 100%),
        var(--page-hero-photo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.62;
    z-index: -2;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.34) 0%, rgba(125, 211, 252, 0) 72%);
    z-index: -1;
}

.page-hero-grid {
    display: grid;
    min-height: 100%;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 300px);
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-hero--no-info .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.page-hero--no-info .page-hero-copy {
    max-width: 720px;
}

.page-hero-copy {
    min-width: 0;
    max-width: 760px;
    padding-right: clamp(0px, 10vw, 160px);
    text-align: left;
}

.page-hero-player {
    position: absolute;
    right: 120px;
    bottom: -18px;
    width: clamp(500px, 50vw, 820px);
    max-height: 118%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: center;
    opacity: 0.72;
    isolation: isolate;
    transform: translateX(-220px);
}

.page-hero-player::before {
    content: "";
    position: absolute;
    inset: -16% -20% -8% -28%;
    background:
        radial-gradient(circle at 32% 24%, rgba(19, 74, 153, 0.38) 0%, rgba(19, 74, 153, 0.12) 42%, rgba(19, 74, 153, 0) 66%),
        linear-gradient(90deg, rgba(8, 35, 78, 0.98) 0%, rgba(8, 35, 78, 0.52) 22%, rgba(8, 35, 78, 0.1) 52%, rgba(8, 35, 78, 0) 68%),
        linear-gradient(0deg, rgba(7, 28, 67, 0.94) 0%, rgba(7, 28, 67, 0.28) 34%, rgba(7, 28, 67, 0) 60%);
    z-index: 2;
    mix-blend-mode: multiply;
}

.page-hero-player img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    filter:
        saturate(0.9)
        contrast(1.04)
        brightness(0.86)
        drop-shadow(0 22px 34px rgba(4, 16, 42, 0.28));
    mix-blend-mode: screen;
    mask-image:
        radial-gradient(circle at 52% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.78) 56%, rgba(0, 0, 0, 0.22) 74%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 16%, rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0.34) 84%, rgba(0, 0, 0, 0) 100%);
    mask-mode: match-source;
    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-image:
        radial-gradient(circle at 52% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 44%, rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.34) 78%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 14%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0.46) 86%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
}

.page-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.14);
    border: 1px solid rgba(191, 219, 254, 0.28);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero .page-hero-title {
    margin: 16px 0 12px;
    font-size: clamp(2.5rem, 4vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: #ffffff;
    text-align: left;
    position: relative;
    z-index: 3;
    text-shadow: 0 14px 34px rgba(4, 16, 42, 0.22);
}

.page-hero-description {
    max-width: 640px;
    margin: 0;
    color: rgba(227, 238, 252, 0.94);
    font-size: 1.03rem;
    line-height: 1.72;
}

.page-hero-info-card {
    display: grid;
    gap: 8px;
    width: min(100%, 300px);
    min-height: 210px;
    align-content: center;
    justify-items: center;
    justify-self: end;
    padding: 22px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(191, 219, 254, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 42px rgba(6, 20, 50, 0.18);
    backdrop-filter: blur(8px);
    text-align: center;
}

.page-hero-info-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.24);
    background: rgba(219, 234, 254, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero-info-value {
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    margin-top: 8px;
}

.page-hero-info-subtext {
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.94rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .page-hero {
        min-height: 0;
        padding: 28px 24px;
        border-radius: 24px;
    }

    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero-copy {
        max-width: none;
        padding-right: 0;
    }

    .page-hero-info-card {
        width: 100%;
        min-height: 0;
        max-width: none;
        justify-self: stretch;
    }

    .page-hero-player {
        right: 92px;
        width: clamp(340px, 40vw, 520px);
        opacity: 0.68;
        transform: translateX(-80px);
    }

    .page-hero-player img {
        max-height: 450px;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 22px 18px;
    }

    .page-hero-title {
        margin-top: 12px;
    }

    .page-hero-description {
        font-size: 0.98rem;
    }

    .page-hero-info-card {
        padding: 20px 18px;
    }

    .page-hero-player {
        display: none;
    }
}

/* Bet Tracker */
.bet-tracker-shell {
    display: grid;
    gap: 18px;
    color: #f7fbff;
}

.bet-tracker-hero,
.bet-tracker-panel {
    background: linear-gradient(135deg, #121e2f 0%, #1b2d47 100%);
    border: 1px solid #2d4564;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.bet-tracker-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.bet-tracker-kicker {
    color: #65f2aa;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.bet-tracker-hero h1,
.bet-tracker-panel h2 {
    margin: 4px 0 8px;
    color: #fff;
}

.bet-tracker-hero p {
    margin: 0;
    color: #a9bdd8;
    max-width: 680px;
}

.bet-tracker-hero-metrics,
.bet-tracker-bankroll-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.bet-tracker-hero-metrics div,
.bet-tracker-bankroll-card {
    background: #16263d;
    border: 1px solid #34506f;
    border-radius: 8px;
    padding: 14px;
}

.bet-tracker-hero-metrics span,
.bet-tracker-bankroll-card span {
    color: #9bb5d6;
    display: block;
    font-size: 0.82rem;
}

.bet-tracker-hero-metrics strong,
.bet-tracker-bankroll-card strong {
    color: #fff;
    display: block;
    font-size: 1.45rem;
    margin-top: 4px;
}

.is-positive {
    color: #65f2aa !important;
}

.is-negative {
    color: #ff7b8a !important;
}

.bet-tracker-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #2d4564;
}

.bet-tracker-tab {
    background: transparent;
    border: 0;
    color: #b8cef0;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 16px;
}

.bet-tracker-tab.is-active {
    color: #fff;
    border-bottom: 3px solid #65f2aa;
}

.bet-tracker-panel {
    display: none;
    padding: 20px;
}

.bet-tracker-panel.is-active {
    display: block;
}

.bet-tracker-panel-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bet-tracker-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
}

.bet-tracker-form label {
    color: #9bb5d6;
    display: grid;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    position: relative;
}

.bet-tracker-form input,
.bet-tracker-form select,
.bet-tracker-table input,
.bet-tracker-table select,
.bet-tracker-actions select {
    background: #0f1b2b;
    border: 1px solid #395778;
    border-radius: 6px;
    color: #fff;
    min-height: 38px;
    padding: 8px 10px;
}

.bet-tracker-check {
    align-items: center;
    display: flex !important;
    gap: 10px !important;
}

.bet-tracker-primary,
.bet-tracker-secondary {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    text-decoration: none;
}

.bet-tracker-primary {
    background: #18b978;
    border: 1px solid #2ee997;
    color: #06140f;
}

.bet-tracker-secondary {
    background: #223754;
    border: 1px solid #49698f;
    color: #dbeafe;
}

.bet-tracker-suggestions {
    background: #0f1b2b;
    border: 1px solid #395778;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    display: grid;
    left: 0;
    max-height: 260px;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
}

.bet-tracker-suggestions:empty {
    display: none;
}

.bet-tracker-suggestions button {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #223754;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    text-align: left;
}

.bet-tracker-suggestions span {
    color: #9bb5d6;
    display: block;
    font-size: 0.78rem;
}

.bet-tracker-bankroll-card div {
    color: #a9bdd8;
    margin-top: 8px;
}

.bet-tracker-actions {
    display: flex;
    gap: 10px;
}

.bet-tracker-table-wrap {
    overflow-x: auto;
}

.bet-tracker-table {
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1280px;
    width: 100%;
}

.bet-tracker-table th,
.bet-tracker-table td {
    border-bottom: 1px solid #2d4564;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.bet-tracker-table th {
    color: #9bb5d6;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.bet-tracker-table td span {
    color: #9bb5d6;
    display: block;
    font-size: 0.78rem;
    margin-top: 4px;
}

.bet-tracker-table input,
.bet-tracker-table select {
    width: 100%;
}

.bet-tracker-table th:nth-child(1),
.bet-tracker-table td:nth-child(1) {
    width: 150px;
}

.bet-tracker-table th:nth-child(2),
.bet-tracker-table td:nth-child(2) {
    width: 280px;
}

.bet-tracker-table th:nth-child(3),
.bet-tracker-table td:nth-child(3) {
    width: 180px;
}

.bet-tracker-table th:nth-child(4),
.bet-tracker-table td:nth-child(4),
.bet-tracker-table th:nth-child(5),
.bet-tracker-table td:nth-child(5),
.bet-tracker-table th:nth-child(6),
.bet-tracker-table td:nth-child(6),
.bet-tracker-table th:nth-child(7),
.bet-tracker-table td:nth-child(7) {
    width: 95px;
}

.bet-tracker-table th:nth-child(8),
.bet-tracker-table td:nth-child(8) {
    width: 150px;
}

.bet-tracker-table th:nth-child(9),
.bet-tracker-table td:nth-child(9) {
    width: 210px;
}

.bet-tracker-table th:nth-child(10),
.bet-tracker-table td:nth-child(10) {
    width: 100px;
}

.bet-tracker-inline-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.bet-tracker-inline-actions select {
    min-width: 115px;
}

.bet-tracker-mini-check {
    align-items: center;
    color: #9bb5d6;
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.bet-tracker-empty {
    color: #9bb5d6;
    padding: 22px;
    text-align: center;
}

.value-bets-track-button,
.fv-track-button {
    background: #18b978;
    border: 1px solid #2ee997;
    border-radius: 6px;
    color: #06140f;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 8px 10px;
    white-space: nowrap;
}

.value-bets-track-form,
.fv-track-form {
    display: flex;
    gap: 6px;
}

.value-bets-track-form input,
.fv-track-form input {
    background: #0f1b2b;
    border: 1px solid #395778;
    border-radius: 6px;
    color: #fff;
    max-width: 110px;
    padding: 7px 8px;
}

@media (max-width: 900px) {
    .bet-tracker-hero,
    .bet-tracker-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .bet-tracker-hero-metrics,
    .bet-tracker-bankroll-grid,
    .bet-tracker-form {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   NAVBAR
===================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5000;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border-bottom: 1px solid #cadef7;
  box-shadow: 0 12px 28px rgba(18, 58, 115, 0.08);
}

.site-nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px 14px;
  min-height: 0;
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  overflow: visible;
}

.site-nav-top-row,
.site-nav-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  min-width: 0;
}

.site-nav-top-row {
  justify-content: space-between;
}

.site-nav-bottom-row {
  justify-content: space-between;
}

/* Brand (left) */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  color: #123a73;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.site-brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(18, 58, 115, 0.14);
}

.site-brand-text {
  display: inline-block;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  align-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: visible;
}

.site-nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 1 auto;
}

.nav-search {
  position: relative;
  width: 280px;
  min-width: 220px;
  z-index: 20;
  flex: 0 1 auto;
}

.site-nav-button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-search-box {
  position: relative;
}

.nav-search-input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 16px;
  border: 1px solid #8eb8f1;
  border-radius: 999px;
  background: #ffffff;
  color: #123a73;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(18, 58, 115, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-search-input::placeholder {
  color: #5a7aa7;
}

.nav-search-input:focus {
  border-color: #1d75df;
  box-shadow: 0 0 0 3px rgba(29, 117, 223, 0.16);
  background: #ffffff;
}

.nav-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #1d75df;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.site-login-button {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #138449;
  background: linear-gradient(180deg, #1fc86f 0%, #169d58 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 12px 22px rgba(22, 157, 88, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-join-button {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d4aa10;
  background: linear-gradient(180deg, #ffe47d 0%, #ffcb31 100%);
  color: #4a3900;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 12px 22px rgba(212, 170, 16, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-join-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(212, 170, 16, 0.22);
  filter: brightness(1.02);
}

.site-login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(22, 157, 88, 0.22);
  filter: brightness(1.02);
}

.premium-lock-modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 20px;
  background: rgba(4, 16, 34, 0.6);
  z-index: 6000;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.premium-lock-modal.is-visible {
  display: flex;
}

.premium-lock-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 24px 60px rgba(7, 26, 56, 0.28);
  color: #163356;
}

.premium-lock-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #e2ecfb;
  color: #163356;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.premium-lock-kicker {
  margin: 0 0 10px;
  color: #0f5ed7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.premium-lock-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.08;
}

.premium-lock-card p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.premium-lock-note {
  color: #4b6187;
}

.premium-lock-target {
  margin-bottom: 0;
  font-size: 13px;
  color: #6a7c99;
}

.fixture-row-link-locked {
  cursor: pointer;
}

.premium-preview-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.premium-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0a2f6b 0%, #0f5ed7 62%, #b8d8ff 100%);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(10, 37, 84, 0.18);
}

.premium-preview-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.premium-preview-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.premium-preview-subtitle,
.premium-preview-summary {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240, 247, 255, 0.95);
}

.premium-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.premium-preview-primary,
.premium-preview-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.premium-preview-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #03120a;
}

.premium-preview-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.premium-preview-panel {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 247, 255, 0.98) 100%);
  color: #163356;
}

.premium-preview-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.premium-preview-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.premium-preview-note {
  margin: 18px 0 0;
  color: #556b8f;
  font-size: 14px;
  line-height: 1.7;
}

.value-bets-public-hero {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef5ff 0%, #dcecff 56%, #cde2ff 100%);
  color: #163356;
  box-shadow: 0 18px 40px rgba(10, 37, 84, 0.08);
}

.value-bets-public-kicker {
  margin: 0 0 10px;
  color: #0f5ed7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.value-bets-public-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.value-bets-public-hero p {
  max-width: 860px;
  margin: 14px 0 0;
  line-height: 1.75;
}

.value-bets-teaser-grid {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.value-bets-teaser-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(10, 37, 84, 0.08);
}

.value-bets-teaser-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.value-bets-teaser-market {
  color: #0f5ed7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value-bets-teaser-bookmaker {
  color: #56709a;
  font-size: 13px;
  font-weight: 700;
}

.value-bets-teaser-card h3 {
  margin: 0;
  color: #163356;
  font-size: 1.45rem;
}

.value-bets-teaser-meta {
  margin: 8px 0 0;
  color: #587093;
  font-size: 14px;
}

.value-bets-teaser-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.value-bets-teaser-stat {
  padding: 14px;
  border-radius: 16px;
  background: #eff5ff;
}

.value-bets-teaser-stat span {
  display: block;
  color: #587093;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value-bets-teaser-stat strong {
  display: block;
  margin-top: 8px;
  color: #163356;
  font-size: 1.1rem;
}

.value-bets-teaser-alt {
  margin-top: 18px;
}

.value-bets-teaser-alt h4 {
  margin: 0 0 10px;
  color: #163356;
  font-size: 15px;
}

.value-bets-teaser-alt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-bets-teaser-alt-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #24456f;
  font-size: 13px;
  font-weight: 700;
}

.inplay-locked-value,
.inplay-locked-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 94, 215, 0.08);
  color: #0f5ed7;
  font-size: 13px;
  font-weight: 800;
}

.inplay-locked-form {
  min-width: 92px;
}

.fixture-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 400px;
  max-height: 540px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid #9fc4f6;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(18, 58, 115, 0.18);
  z-index: 5950;
}

.fixture-search-dropdown.visible {
  display: block;
}

.fixture-search-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid #d7e7fb;
  color: #123a73;
}

.fixture-search-item:last-child {
  border-bottom: none;
}

.fixture-search-item:hover {
  background: #edf5ff;
}

.fixture-search-content {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.fixture-search-meta {
  color: #4f6f99;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-search-name {
  margin-top: 4px;
  color: #123a73;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.fixture-search-empty {
  padding: 14px;
  color: #4f6f99;
  font-size: 13px;
  text-align: left;
}

/* Individual links */
.site-nav-links a,
.site-nav-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #75aef7;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f9ff 0%, #e6f1ff 100%);
  color: #123a73;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(18, 58, 115, 0.05);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-nav-spacer {
  display: none;
}

.site-nav-links a:hover,
.site-nav-group-toggle:hover {
  border-color: #4f90eb;
  background: linear-gradient(180deg, #ecf5ff 0%, #dbeaff 100%);
  color: #0f2e5d;
  transform: translateY(-1px);
}

.site-nav-links a.active,
.site-nav-group-toggle.active,
.site-nav-group.open .site-nav-group-toggle {
  color: #ffffff;
  border-color: #0f5ed7;
  background: linear-gradient(180deg, #1d75df 0%, #0f5ed7 100%);
  box-shadow: 0 8px 18px rgba(15, 94, 215, 0.18);
}

.site-nav-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.site-nav-group-toggle {
  gap: 6px;
  cursor: pointer;
}

.site-nav-caret {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.site-nav-group.open .site-nav-caret {
  transform: rotate(180deg);
}

.site-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #9fc4f6;
  box-shadow: 0 20px 42px rgba(18, 58, 115, 0.18);
  z-index: 5900;
}

.site-nav-group.open .site-nav-dropdown {
  display: grid;
  gap: 6px;
}

.site-nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #b6d2f7;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff 0%, #eaf3ff 100%);
  color: #123a73;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a.active {
  border-color: #0f5ed7;
  background: linear-gradient(180deg, #1d75df 0%, #0f5ed7 100%);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 94, 215, 0.16);
}

/* =====================================================
   RESPONSIVE NAV
===================================================== */

@media (max-width: 900px) {
  .site-nav-inner {
    padding: 10px 14px 14px;
    gap: 10px;
  }

  .site-nav-top-row,
  .site-nav-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav-links {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .site-nav-spacer {
    display: none;
  }

  .site-nav-group {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav-group-toggle {
    justify-content: center;
    width: min(100%, 320px);
  }

  .site-nav-dropdown {
    position: static;
    width: min(100%, 320px);
    min-width: 0;
    margin-top: 8px;
  }

  .site-brand {
    font-size: 22px;
    gap: 8px;
    text-align: center;
    white-space: normal;
  }

  .site-brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .site-nav-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .nav-search {
    width: min(100%, 420px);
    min-width: 0;
    flex: 1 1 100%;
  }

  .site-nav-button-row {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .fixture-search-dropdown {
    width: 100%;
    left: 0;
    right: auto;
  }

  .site-join-button,
  .site-login-button {
    flex: 0 0 auto;
  }

  .premium-preview-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .value-bets-teaser-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   MAIN PAGE CONTAINER
===================================================== */

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* =====================================================
   FIXTURES PAGE
===================================================== */

.fixtures-container {
    margin-top: 20px;
}


/* =====================================================
   FIXTURE DETAILS PAGE WIDTH
===================================================== */

.fixture-details-page {
    width: 100%;
}

/* =====================================================
   FIXTURE DETAILS PAGE LAYOUT
===================================================== */

.detail-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.stats-panel,
.betting-panel {
    flex: 1;
    min-width: 0;
}

.betting-panel.full-width {
    flex: 1 1 100%;
    width: 100%;
}

.stats-panel table,
.betting-panel table {
    width: 100%;
    border-collapse: collapse;
}

/* =====================================================
   FIXTURE DETAILS TABLE STYLING
===================================================== */

.fixture-details-page table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f4f4f4;
    margin-bottom: 20px;
    table-layout: auto;
}

.fixture-details-page table th,
.fixture-details-page table td {
    border: 1px solid #d0d0d0;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

.fixture-details-page table thead,
.basic-stats-table thead,
.value-bets-table thead,
.probability-rankings-table thead,
.bb-table thead,
.fv-table thead,
.fvr-table thead,
.fhg-table thead,
.results-table thead,
.bet-tracker-table thead,
.inplay-table thead,
.inplay-form-history-table thead,
.historic-fixture-table thead,
.odds-hover-table thead {
    background: var(--fpp-table-header-gradient);
    color: var(--fpp-table-header-text);
}

.fixture-details-page table thead th,
.basic-stats-table thead th,
.value-bets-table thead th,
.probability-rankings-table thead th,
.bb-table thead th,
.fv-table thead th,
.fvr-table thead th,
.fhg-table thead th,
.results-table thead th,
.bet-tracker-table thead th,
.inplay-table thead th,
.inplay-form-history-table thead th,
.historic-fixture-table thead th,
.odds-hover-table thead th {
    background: transparent;
    color: var(--fpp-table-header-text);
    text-shadow: 0 1px 0 rgba(7, 27, 67, 0.24);
}

.fixture-details-page table thead th + th,
.basic-stats-table thead th + th,
.value-bets-table thead th + th,
.probability-rankings-table thead th + th,
.bb-table thead th + th,
.fv-table thead th + th,
.fvr-table thead th + th,
.fhg-table thead th + th,
.results-table thead th + th,
.bet-tracker-table thead th + th,
.inplay-table thead th + th,
.inplay-form-history-table thead th + th,
.historic-fixture-table thead th + th,
.odds-hover-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.fixture-details-page table tbody td:first-child,
.fixture-details-page table thead th:first-child {
    text-align: center;
}

.fixture-details-page h3 {
    margin: 0 0 10px 0;
}

/* =====================================================
   FIXTURE HEADER AND BACK TO FIXTURES LINK
===================================================== */
.fixture-header{
    margin-bottom:20px;
    text-align:center;
    position:relative;
}

.back-link{
    display:inline-block;
    margin-bottom:10px;
    font-size:14px;
    text-decoration:none;
    color:#1e88e5;
}

.fixture-title{
    margin:0 0 6px 0;
    font-size:30px;
    font-weight:700;
}

.fixture-meta{
    color:#666;
    font-size:15px;
    margin-bottom:6px;
}

.fixture-predictability{
    font-size:14px;
    color:#444;
    font-weight:600;
}

.kelly-popup-trigger{
    position:absolute;
    top:8px;
    right:8px;
    width:46px;
    height:46px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg, #0b63ce 0%, #1a7ff3 100%);
    box-shadow:0 12px 24px rgba(11, 99, 206, 0.22);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.kelly-popup-trigger:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 28px rgba(11, 99, 206, 0.28);
    filter:brightness(1.03);
}

.kelly-popup-trigger svg{
    width:22px;
    height:22px;
    stroke:#ffffff;
    fill:none;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* =====================================================
   SEASON STATS BUTTONS
===================================================== */

.detail-tabs{
    display:flex;
    justify-content:center;
    gap:6px;
    margin:20px 0 25px 0;
    flex-wrap:wrap;
}

.detail-tab-button{
    padding:8px 16px;
    border:none;
    background:#f3f3f3;
    color:#333;
    font-size:14px;
    font-weight:600;
    border-radius:6px;
    cursor:pointer;
    transition:all 0.2s ease;
}

.detail-tab-button:hover{
    background:#e1e1e1;
}

.detail-tab-button.active{
    background:#1e88e5;
    color:white;
}

/* =====================================================
   STATS SOURCE BUTTONS (Season / Last 25)
===================================================== */

.stats-source-tabs{
    display:flex;
    justify-content:flex-start;
    gap:6px;
    margin-bottom:12px;
}

.stats-source-tab{
    padding:8px 16px;
    border:none;
    background:#f3f3f3;
    color:#333;
    font-size:14px;
    font-weight:600;
    border-radius:6px;
    cursor:pointer;
    transition:all 0.2s ease;
}

.stats-source-tab:hover{
    background:#e1e1e1;
}

.stats-source-tab.active{
    background:#1e88e5;
    color:white;
}

/* =====================================================
   TOP BUTTON BAR
===================================================== */

.detail-top-bar{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    margin:20px 0 25px 0;
}

.detail-top-bar .stats-source-tabs{
    grid-column:1;
    justify-self:start;
    display:flex;
    gap:6px;
    margin:0;
}

.detail-top-bar .detail-tabs{
    grid-column:2;
    justify-self:center;
    display:flex;
    gap:6px;
    margin:0;
    flex-wrap:nowrap;
}

.stats-source-tab,
.detail-tab-button{
    height:36px;
    display:inline-flex;
    align-items:center;
    box-sizing:border-box;
}

/* =====================================================
   H2H MODAL
===================================================== */

.h2h-modal{
    display:none;
    position:fixed;
    inset:0;
    align-items:flex-start;
    justify-content:center;
    padding:92px 20px 24px;
    background:rgba(7, 26, 56, 0.58);
    z-index:2000;
    overflow:auto;
    pointer-events:auto;
    box-sizing:border-box;
}

.kelly-popup{
    display:none;
    position:fixed;
    inset:0;
    z-index:2050;
    pointer-events:none;
}

.kelly-popup.visible{
    display:block;
}

.kelly-popup-content{
    position:fixed;
    top:110px;
    right:38px;
    width:min(430px, calc(100vw - 32px));
    background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border:1px solid #d7e3f3;
    border-radius:20px;
    box-shadow:0 24px 50px rgba(12, 31, 63, 0.26);
    overflow:hidden;
    pointer-events:auto;
}

.kelly-popup-handle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    background:linear-gradient(135deg, #0a2f6b 0%, #0b63ce 100%);
    color:#ffffff;
    cursor:move;
}

.kelly-popup-title-group{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.kelly-popup-title{
    font-size:16px;
    font-weight:800;
}

.kelly-popup-subtitle{
    font-size:12px;
    opacity:0.84;
}

.kelly-popup-close{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:rgba(255, 255, 255, 0.14);
    color:#ffffff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.kelly-popup-close:hover{
    background:rgba(255, 255, 255, 0.24);
}

.kelly-popup-body{
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.kelly-popup-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
}

.kelly-popup-field{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.kelly-popup-field span,
.kelly-popup-fraction-head span{
    font-size:12px;
    font-weight:700;
    color:#334155;
}

.kelly-popup-field input,
.kelly-popup-fraction-head input{
    height:42px;
    border:1px solid #c6d5e6;
    border-radius:12px;
    padding:0 12px;
    font-size:14px;
    box-sizing:border-box;
    background:#ffffff;
}

.kelly-popup-field input:focus,
.kelly-popup-fraction-head input:focus{
    outline:none;
    border-color:#7db6ff;
    box-shadow:0 0 0 3px rgba(11, 99, 206, 0.12);
}

.kelly-popup-input-wrap{
    position:relative;
}

.kelly-popup-input-wrap input{
    width:100%;
    padding-right:36px;
}

.kelly-popup-suffix{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.kelly-popup-fraction{
    border:1px solid #d7e3f3;
    border-radius:16px;
    padding:12px;
    background:#f8fbff;
}

.kelly-popup-fraction-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}

.kelly-popup-fraction-head input{
    width:58px;
    text-align:center;
    padding:0 8px;
}

.kelly-popup-range{
    width:100%;
}

.kelly-popup-scale{
    display:grid;
    grid-template-columns:repeat(10, 1fr);
    gap:4px;
    margin-top:8px;
    font-size:10px;
    color:#48627f;
    text-align:center;
}

.kelly-popup-actions{
    display:flex;
    justify-content:center;
}

.kelly-popup-reset{
    height:38px;
    padding:0 18px;
    border:1px solid #c6d5e6;
    border-radius:999px;
    background:#ffffff;
    color:#0b63ce;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.kelly-popup-summary{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
}

.kelly-popup-summary > div{
    padding:12px;
    border:1px solid #e5edf7;
    border-radius:14px;
    background:#ffffff;
    text-align:center;
}

.kelly-popup-summary span{
    display:block;
    margin-bottom:6px;
    color:#4b5b70;
    font-size:11px;
    font-weight:700;
}

.kelly-popup-summary strong{
    color:#0f172a;
    font-size:20px;
    font-weight:800;
}

.kelly-popup-summary-text{
    padding:14px 16px;
    border-radius:14px;
    border:1px solid #dfeaf7;
    background:#f8fbff;
    color:#475569;
    font-size:13px;
    line-height:1.55;
    text-align:center;
}

@media (max-width: 720px) {
    .kelly-popup-trigger{
        top:0;
        right:0;
        width:42px;
        height:42px;
    }

    .kelly-popup-content{
        top:84px;
        right:16px;
        left:16px;
        width:auto;
    }

    .kelly-popup-grid,
    .kelly-popup-summary{
        grid-template-columns:1fr;
    }
}

.h2h-modal-content{
    position:relative;
    top:auto;
    right:auto;
    left:auto;
    width:min(1100px, calc(100vw - 40px));
    max-width:1100px;
    max-height:calc(100vh - 120px);
    margin:0 auto;
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0, 0, 0, 0.2);
    display:flex;
    flex-direction:column;
    pointer-events:auto;
}

.h2h-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    border-bottom:1px solid #e0e0e0;
    background:#f8f8f8;
}

.h2h-modal-header h2{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#222;
}

.h2h-modal-body{
    padding:20px;
    flex:1 1 auto;
    overflow-y:auto;
    overscroll-behavior:contain;
}

.h2h-summary-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:16px;
    margin-bottom:20px;
    padding:12px 0 18px 0;
    border-bottom:1px solid #e0e0e0;
}

.h2h-summary-grid div{
    font-size:14px;
    color:#222;
    text-align:left;
    line-height:1.5;
}

.h2h-summary-grid strong{
    display:block;
    font-size:12px;
    color:#666;
    margin-bottom:4px;
    text-transform:uppercase;
    letter-spacing:0.3px;
}

.h2h-match-card{
    background:#07142b;
    color:white;
    border-radius:12px;
    padding:18px 22px;
    margin-bottom:14px;
}

.h2h-match-date{
    font-size:13px;
    font-weight:600;
    opacity:0.9;
    text-align:center;
}

.h2h-match-league{
    font-size:12px;
    opacity:0.7;
    margin-bottom:12px;
    text-align:center;
}

.h2h-match-score-row{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
}

.h2h-team{
    font-size:14px;
    font-weight:600;
}

.h2h-team-left{
    text-align:left;
}

.h2h-team-right{
    text-align:right;
}

.h2h-score-block{
    text-align:center;
}

.h2h-score{
    font-size:20px;
    font-weight:700;
}

.h2h-ht-score{
    font-size:11px;
    opacity:0.7;
}

/* =====================================================
   H2H SIDE TEAM STATS
===================================================== */

.h2h-team-side{
    display:flex;
    align-items:center;
    gap:12px;
}

.h2h-team-side-left{
    justify-content:flex-start;
}

.h2h-team-side-right{
    justify-content:flex-end;
}

.h2h-side-icons{
    display:flex;
    align-items:center;
    gap:10px;
}

/* numbers next to icons */

.icon-stat-text{
    font-size:16px;
    font-weight:700;
    color:#ffffff;
}

/* icons */

.icon-card-yellow,
.icon-card-red,
.icon-corner-flag{
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:2px;
}

.icon-card-yellow{
    background:#f4d03f;
}

.icon-card-red{
    background:#e74c3c;
}

.icon-corner-flag{
    position:relative;
    display:inline-block;
    width:12px;
    height:12px;
}

/* flag pole */
.icon-corner-flag::before{
    content:"";
    position:absolute;
    left:3px;
    bottom:0;
    width:2px;
    height:12px;
    background:#ffffff;
}

/* flag */
.icon-corner-flag::after{
    content:"";
    position:absolute;
    left:5px;
    top:2px;
    width:7px;
    height:5px;
    background:#ffffff;
    clip-path:polygon(0 0, 100% 30%, 0 100%);
}

/* =====================================================
   TEAM TEXT SIZE
===================================================== */

.h2h-team{
    font-size:16px;
    font-weight:700;
}

/* =====================================================
   SCORE SIZE
===================================================== */

.h2h-score{
    font-size:22px;
    font-weight:800;
}

.h2h-ht-score{
    font-size:12px;
    opacity:0.7;
}

/* =====================================================
   H2H SUMMARY SECTIONS
===================================================== */

.h2h-summary-section{
    margin-bottom:20px;
}

.h2h-summary-title{
    font-size:18px;
    font-weight:700;
    color:#444;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:0.5px;
    text-align:center;
}

/* base grid */

.h2h-summary-grid{
    display:grid;
    gap:16px;
}

/* column layouts */

.h2h-summary-grid-3{
    grid-template-columns:repeat(3,1fr);
}

.h2h-summary-grid-4{
    grid-template-columns:repeat(4,1fr);
}

.h2h-summary-grid-5{
    grid-template-columns:repeat(5,1fr);
}

/* stat boxes */

.h2h-summary-grid div{
    background:#f6f7f9;
    border-radius:8px;
    padding:16px 16px;
    text-align:center;
    font-size:20px;
    font-weight:700;
}

/* labels */

.h2h-summary-grid strong{
    display:block;
    font-size:14px;
    color:#666;
    margin-bottom:6px;
    font-weight:700;
}

/* =====================================================
   H2H HEADER + FILTER BAR
===================================================== */

.h2h-modal-header{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding:18px 22px;
    border-bottom:1px solid #e6e6e6;
    background:#f8f8f8;
}

.h2h-modal-header h2{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#222;
}

.h2h-close{
    position:absolute;
    top:12px;
    right:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border:none;
    border-radius:999px;
    background:rgba(255, 255, 255, 0.96);
    box-shadow:0 8px 18px rgba(12, 30, 64, 0.12);
    font-size:26px;
    cursor:pointer;
    color:#17314f;
    line-height:1;
    z-index:10;
    transform:none;
}

.h2h-close:hover{
    color:#0b63ce;
}

.h2h-modal-topbar{
    position:sticky;
    top:0;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px 68px 14px 18px;
    border-bottom:1px solid #e6e6e6;
    background:#f8f8f8;
}

.h2h-filter-bar{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    width:100%;
    padding:0;
    border-bottom:none;
    background:transparent;
}

.h2h-filter-btn{
    padding:10px 20px;
    border:none;
    background:#f0f0f0;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.15s ease;
}

.h2h-filter-btn:hover{
    background:#e4e4e4;
}

.h2h-filter-btn.active{
    background:#1e88e5;
    color:white;
}

/* =====================================================
   BOOKMAKER BUTTONS
===================================================== */

.bookmaker-tabs{
    grid-column:3;
    justify-self:end;
    display:flex;
    gap:6px;
}

.bookmaker-button{
    padding:8px 16px;
    border:none;
    background:#f3f3f3;
    color:#333;
    font-size:14px;
    font-weight:600;
    border-radius:6px;
    cursor:pointer;
    transition:all 0.2s ease;
}

.bookmaker-button:hover{
    background:#e1e1e1;
}

.bookmaker-button.active{
    background:#1e88e5;
    color:white;
}

/* =====================================================
   FIXTURE DETAILS PREMIUM REFRESH
===================================================== */

.fixture-details-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    gap: 18px;
    padding: 6px 0 28px;
}

.fixture-header {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px 22px 18px;
    margin-bottom: 0;
    text-align: center;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(103, 200, 255, 0.22), transparent 24%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.16), transparent 22%),
        linear-gradient(135deg, #081f4d 0%, #0d4ea2 56%, #9bc7ff 100%);
    box-shadow: 0 28px 60px rgba(9, 29, 68, 0.2);
    color: #ffffff;
}

.fixture-header-topline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.fixture-header-utility {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    grid-column: 2;
}

.fixture-header-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    grid-column: 3;
    margin-left: 0;
}

.fixture-header-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
}

.fixture-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fixture-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fbff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fixture-header .fixture-predictability-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.fixture-header .fixture-predictability-badge.is-high,
.fixture-header .fixture-predictability-badge.is-very-good,
.fixture-header .fixture-predictability-badge.is-good {
    color: #d8ffec;
}

.fixture-header .fixture-predictability-badge.is-medium,
.fixture-header .fixture-predictability-badge.is-moderate {
    color: #fff0c2;
}

.fixture-header .fixture-predictability-badge.is-poor,
.fixture-header .fixture-predictability-badge.is-low {
    color: #ffd7d1;
}

.fixture-header .fixture-predictability-badge.is-unknown,
.fixture-header .fixture-predictability-badge.is-none {
    color: #e9f2ff;
}

.fixture-header .back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: #f5faff;
    font-weight: 800;
    font-size: 14px;
    order: 0;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fixture-header .back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.fixture-header .fixture-grid-link {
    margin-left: 0;
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.22);
}

.fixture-grid-link-hero {
    margin: 0;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.2);
}

.fixture-header .fixture-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #ffffff;
    max-width: 100%;
}

.fixture-header .fixture-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 0;
    color: rgba(237, 245, 255, 0.9);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.fixture-header .fixture-meta span:nth-child(2) {
    font-size: 0;
}

.fixture-header .fixture-meta span:nth-child(2)::before {
    content: "\2022";
    font-size: 16px;
    opacity: 0.9;
}

.fixture-header .kelly-popup-trigger {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(8, 26, 58, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.fixture-header .kelly-popup-trigger:hover {
    box-shadow: none;
    filter: brightness(1.06);
}

.detail-top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 18px;
    margin: 0;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid #dce8f8;
    box-shadow: 0 18px 40px rgba(12, 30, 64, 0.08);
    align-items: start;
}

.detail-top-bar .stats-source-tabs {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
}

.detail-top-bar .detail-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
}

.bookmaker-tabs {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
}

.stats-source-tabs,
.detail-tabs,
.bookmaker-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.stats-source-tab,
.detail-tab-button,
.bookmaker-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d7e4f5;
    border-radius: 999px;
    background: #f8fbff;
    color: #284161;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(12, 30, 64, 0.04);
}

.stats-source-tab:hover,
.detail-tab-button:hover,
.bookmaker-button:hover {
    background: #eef5ff;
    border-color: #c7daf5;
}

.stats-source-tab.active,
.detail-tab-button.active,
.bookmaker-button.active {
    background: linear-gradient(135deg, #0d5ed7 0%, #0a4dac 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(13, 94, 215, 0.18);
}

.fixture-details-page {
    width: 100%;
}

.detail-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 0;
    width: 100%;
}

.stats-panel,
.betting-panel {
    min-width: 0;
}

.stats-panel,
.betting-panel {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dce8f8;
    box-shadow: 0 20px 40px rgba(12, 30, 64, 0.08);
}

.betting-panel.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.stats-panel table,
.betting-panel table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.fixture-details-page table {
    width: 100%;
    margin-bottom: 18px;
    table-layout: auto;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce8f8;
    box-shadow: 0 14px 34px rgba(12, 30, 64, 0.06);
}

.fixture-details-page table:last-child {
    margin-bottom: 0;
}

.fixture-details-page table th,
.fixture-details-page table td {
    border: none;
    border-bottom: 1px solid #e6eef9;
    padding: 16px 18px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
}

.fixture-details-page table tbody tr:last-child td,
.fixture-details-page table tbody tr:last-child th {
    border-bottom: none;
}

.fixture-details-page table thead th {
    background: transparent;
    color: var(--fpp-table-header-text);
    font-weight: 800;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
}

.fixture-details-page table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.fixture-details-page table thead tr:not(.table-title) th {
    font-size: 15px;
    letter-spacing: 0.03em;
}

.fixture-details-page .table-title th {
    padding: 16px 18px;
    font-size: 22px;
    letter-spacing: 0.03em;
    text-align: center;
}

.fixture-details-page table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.fixture-details-page table tbody tr:hover td {
    background: #f1f7ff;
}

.fixture-details-page table tbody td:first-child,
.fixture-details-page table thead th:first-child {
    text-align: center;
}

.fixture-details-page table td[style*="background-color"] {
    background: linear-gradient(135deg, #dff7e8 0%, #b8ebc8 100%) !important;
    color: #135c2f;
    font-weight: 800;
}

.h2h-modal-content {
    border-radius: 26px;
    border: 1px solid #dce8f8;
    box-shadow: 0 26px 60px rgba(12, 30, 64, 0.22);
}

.h2h-modal-topbar {
    border-bottom: 1px solid #e2ebf8;
    background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
}

.h2h-filter-bar {
    border-bottom: none;
    background: transparent;
}

.h2h-filter-btn {
    border: 1px solid #d7e4f5;
    border-radius: 999px;
    background: #ffffff;
    color: #284161;
    font-weight: 800;
}

.h2h-filter-btn.active {
    background: linear-gradient(135deg, #0d5ed7 0%, #0a4dac 100%);
    color: #ffffff;
}

.h2h-match-card {
    border-radius: 20px;
    border: 1px solid #e1ebf8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(12, 30, 64, 0.06);
}

@media (max-width: 900px) {
    .h2h-modal {
        padding: 76px 12px 16px;
    }

    .h2h-modal-content {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 92px);
    }

    .h2h-modal-topbar {
        padding: 14px 60px 14px 14px;
    }

    .h2h-modal-body {
        padding: 16px;
    }

    .h2h-summary-grid-4,
    .h2h-summary-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h2h-match-score-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .h2h-team-side-left,
    .h2h-team-side-right {
        justify-content: space-between;
    }

    .h2h-team-right,
    .h2h-team-left {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .h2h-modal {
        padding: 68px 10px 14px;
    }

    .h2h-modal-content {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 82px);
    }

    .h2h-summary-grid-3,
    .h2h-summary-grid-4,
    .h2h-summary-grid-5 {
        grid-template-columns: 1fr;
    }

    .h2h-filter-bar {
        justify-content: stretch;
    }

    .h2h-filter-btn {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .detail-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .fixture-details-shell {
        padding-top: 0;
    }

    .fixture-header,
    .detail-top-bar,
    .stats-panel,
    .betting-panel {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .fixture-header-topline {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .fixture-header-utility {
        grid-column: 1;
        justify-self: start;
    }

    .fixture-header-actions {
        grid-column: 2;
        justify-self: end;
    }

    .fixture-header .fixture-grid-link,
    .fixture-header .back-link {
        width: fit-content;
    }

    .fixture-header .fixture-title {
        font-size: 2.3rem;
    }

    .detail-top-bar {
        grid-template-columns: 1fr;
    }

    .detail-top-bar .stats-source-tabs,
    .detail-top-bar .detail-tabs,
    .bookmaker-tabs {
        grid-column: 1;
        justify-self: stretch;
    }

    .detail-top-bar .stats-source-tabs {
        grid-row: 1;
    }

    .bookmaker-tabs {
        grid-row: 2;
        justify-self: start;
    }

    .detail-top-bar .detail-tabs {
        grid-row: 3;
    }

    .fixture-details-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =====================================================
   FIXTURES PAGE
===================================================== */

.fixtures-page-wrap {
    --fixtures-content-width: 1100px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 6px 18px;
    text-align: center;
}

.fixtures-page-wrap h1 {
    margin-bottom: 8px;
    font-size: 18px;
}

.fixtures-page-wrap h2 {
    margin: 8px 0 10px 0;
    font-size: 15px;
}


/* =====================================================
   DATE NAVIGATION
===================================================== */

.date-buttons {
    width: min(var(--fixtures-content-width), 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 14px;
}

.date-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 44px;
    padding: 0 18px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    color: var(--fpp-button-text-on-light);
    border: 1px solid rgba(31, 111, 229, 0.42);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: var(--fpp-button-shadow-secondary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.date-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.date-button.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    color: #ffffff;
    box-shadow: var(--fpp-button-shadow-primary);
}


/* =====================================================
   COUNTRY / LEAGUE / FIXTURE ALIGNMENT
===================================================== */

.fixtures-country,
.fixtures-league,
.country-leagues,
.league-fixtures,
.fixtures-list,
.fixture-row {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    box-sizing: border-box;
}

.fixtures-country {
    margin-bottom: 14px;
}

.fixtures-country[hidden] {
    display: none !important;
}

.country-leagues {
    margin-top: 10px;
}

.fixtures-league {
    margin-bottom: 6px;
}

.league-fixtures {
    margin-top: 6px;
}

.fixtures-list {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* =====================================================
   COUNTRY BUTTON
===================================================== */

.country-toggle {
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(238, 246, 255, 0.99) 100%);
    color: #173a70;
    border: 1px solid rgba(154, 181, 221, 0.66);
    border-radius: 999px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(11, 36, 82, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fixtures-country.is-zebra-even .country-toggle {
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.99) 0%, rgba(241, 247, 255, 0.99) 100%);
}

.fixtures-country.is-zebra-odd .country-toggle {
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.99) 0%, rgba(232, 243, 255, 0.99) 100%);
}

.fixtures-country.is-starred .country-toggle {
    border-color: rgba(198, 150, 43, 0.38);
    box-shadow: 0 18px 30px rgba(18, 53, 112, 0.1), 0 0 0 1px rgba(198, 150, 43, 0.08);
}

.country-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 124, 205, 0.52);
    box-shadow: 0 18px 28px rgba(11, 36, 82, 0.1);
}

.country-toggle:focus-visible,
.league-toggle:focus-visible,
.country-star-button:focus-visible,
.date-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.14);
}

.country-toggle.open {
    border-color: rgba(34, 98, 194, 0.42);
    box-shadow: 0 20px 34px rgba(15, 52, 112, 0.12);
}

.country-toggle-copy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
    text-align: left;
}

.country-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(227, 239, 255, 0.95);
    border: 1px solid rgba(122, 163, 224, 0.32);
    color: #1d4f99;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.country-toggle-summary {
    color: #5c6f8d;
    font-size: 0.9rem;
    font-weight: 700;
}

.toggle-arrow {
    color: #1f5fbd;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease;
}

.country-toggle.open .toggle-arrow,
.league-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.country-toggle-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.country-star-button {
    flex: 0 0 auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #4a6fa6;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.country-star-button:hover {
    transform: translateY(-1px);
    color: #1f5fbd;
}

.country-star-button[aria-pressed="true"] {
    color: #c79624;
    text-shadow: 0 4px 12px rgba(199, 150, 36, 0.18);
}

.country-star-icon {
    font-size: 1.25rem;
    line-height: 1;
}


/* =====================================================
   LEAGUE BUTTON
===================================================== */

.league-toggle {
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    background: linear-gradient(180deg, rgba(238, 246, 255, 0.98) 0%, rgba(224, 237, 252, 0.98) 100%);
    color: #21426f;
    border: 1px solid rgba(120, 168, 236, 0.52);
    border-radius: 18px;

    padding: 10px 14px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.league-toggle-title {
    min-width: 0;
    text-align: left;
}

.league-toggle-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.league-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(63, 123, 215, 0.42);
    box-shadow: 0 14px 24px rgba(11, 36, 82, 0.08);
}

.league-toggle.open {
    border-color: rgba(39, 100, 194, 0.38);
    box-shadow: 0 16px 26px rgba(11, 36, 82, 0.1);
}

@media (max-width: 768px) {
    .fixtures-page-wrap .page-league-filter-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .fixtures-page-wrap .page-league-filter-current {
        text-align: left;
    }

    .country-toggle {
        width: 100%;
        padding: 12px 14px;
    }

    .country-toggle-copy {
        gap: 8px;
    }

    .date-button {
        min-width: 100px;
        min-height: 42px;
        font-size: 0.82rem;
    }

    .league-toggle {
        width: 100%;
        padding: 10px 12px;
    }

    .league-toggle-actions {
        gap: 8px;
    }

    .fixtures-pagination,
    .basic-stats-pagination,
    .value-bets-pagination {
        width: 100%;
        gap: 10px;
    }

    .fixtures-pagination-button,
    .basic-stats-pagination-button,
    .value-bets-pagination-button {
        width: calc(50% - 8px);
    }
}

.league-toggle:hover {
    background: linear-gradient(180deg, #dceafb 0%, #cfe0f5 100%);
}

.league-toggle.open {
    background: linear-gradient(180deg, #dceafb 0%, #cfe0f5 100%);
    color: #27405f;
    border: 1px solid #7eb6ef;
}

.fixtures-pagination,
.basic-stats-pagination,
.value-bets-pagination {
    width: min(var(--fixtures-content-width), 100%);
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fixtures-pagination[hidden],
.basic-stats-pagination[hidden],
.value-bets-pagination[hidden] {
    display: none !important;
}

.fixtures-pagination-button,
.basic-stats-pagination-button,
.value-bets-pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--fpp-button-border-strong);
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--fpp-button-shadow-primary);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.fixtures-pagination-button:hover:not(:disabled),
.basic-stats-pagination-button:hover:not(:disabled),
.value-bets-pagination-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-primary-hover);
}

.fixtures-pagination-button:disabled,
.basic-stats-pagination-button:disabled,
.value-bets-pagination-button:disabled {
    border-color: rgba(109, 153, 222, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    color: #24579e;
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
}

.fixtures-pagination-label,
.basic-stats-pagination-label,
.value-bets-pagination-label {
    color: #4c6389;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}


/* =====================================================
   FIXTURE ROW
===================================================== */

.fixture-row {
    display: block;
    margin-bottom: 4px;
}

.fixture-row-link {
    display: grid;
    grid-template-columns: minmax(240px, 274px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.99) 0%, rgba(239, 246, 255, 0.99) 100%);
    border: 1px solid rgba(115, 154, 214, 0.34);
    text-decoration: none;
    text-align: left;
    box-shadow: 0 16px 28px rgba(17, 39, 78, 0.1);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.fixture-row-link:hover {
    transform: translateY(-1px);
    border-color: rgba(112, 154, 215, 0.46);
    box-shadow: 0 20px 36px rgba(17, 39, 78, 0.14);
}

.fixture-row-main {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.96) 0%, rgba(234, 243, 255, 0.96) 100%);
    border-right: 1px solid rgba(144, 174, 220, 0.28);
    display: grid;
    align-content: center;
}

.fixture-row-side {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.fixture-row-meta {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 7px;
}

.fixture-row-time,
.fixture-predictability-badge {
    display: inline-block;
    color: #2b5fa6;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.fixture-predictability-badge.is-high {
    color: #2b5fa6;
}

.fixture-predictability-badge.is-good {
    color: #2b5fa6;
}

.fixture-predictability-badge.is-poor {
    color: #2b5fa6;
}

.fixture-predictability-badge.is-medium,
.fixture-predictability-badge.is-moderate {
    color: #2b5fa6;
}

.fixture-predictability-badge.is-unknown {
    color: #2b5fa6;
}

.fixture-row-name {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.fixture-row-team {
    color: #163562;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
}

.fixture-team-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(238, 245, 255, 0.96) 100%);
}

.fixture-team-stats-values {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px 10px 8px;
}

.fixture-team-stats-values-paired {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fixture-stat-chip {
    min-height: 38px;
    padding: 5px 5px 6px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(232, 241, 255, 0.98) 0%, rgba(221, 234, 252, 0.98) 100%);
    border: 1px solid rgba(145, 178, 224, 0.26);
    display: grid;
    gap: 3px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.fixture-stat-chip span {
    color: #345782;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.12;
    text-align: center;
    justify-self: center;
}

.fixture-stat-chip strong {
    color: #184279;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.fixture-stat-chip-paired {
    align-content: stretch;
    justify-items: stretch;
    gap: 4px;
}

.fixture-stat-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
}

.fixture-stat-pair strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 17px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}


/* =====================================================
   DROPDOWN ARROWS
===================================================== */

.toggle-arrow {
    font-size: 0;
}

.toggle-arrow::before {
    content: "▼";
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 1200px) {
    .fixture-row-link {
        grid-template-columns: 1fr;
    }

    .fixture-row-main {
        border-right: none;
        border-bottom: 1px solid rgba(118, 146, 180, 0.16);
    }

    .fixture-row-side {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .fixtures-page-wrap {
        padding: 12px 8px 16px;
    }

    .fixture-team-stats-grid {
        grid-template-columns: 1fr;
    }

    .fixture-team-stats-values {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fixture-row-team {
        font-size: 0.95rem;
    }

    .fixture-row-side {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .fixture-stats-team-headings {
        grid-template-columns: 1fr;
        padding: 8px 8px 3px;
    }

    .fixture-team-stats-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 3px 8px 8px;
    }

    .fixture-row-main,
    .fixture-team-stats-grid {
        padding: 0;
    }

    .country-toggle {
        font-size: 14px;
    }

    .league-toggle {
        font-size: 12px;
    }

    .fixture-row-main {
        padding: 12px 14px;
    }

    .fixture-row-side {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fixture-row-meta {
        grid-auto-flow: column;
        justify-content: flex-start;
        align-items: center;
    }

    .fixture-row-team {
        font-size: 0.92rem;
    }
}

/* ===== BETSLIP RESULTS ===== */

.betslip-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.betslip-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;

    /* KEY CHANGES */
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.bet-card {
    display: flex;
    justify-content: space-between;
    background-color: #e7f3ff;
    padding: 15px;
    margin: 10px 0; /* <-- changed */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    align-items: center;
    width: 100%; /* <-- changed */
    box-sizing: border-box;
}

.betslip-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.betslip-results-container {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.bet-info {
    display: flex;
    flex-direction: column;
    color: #444;
    width: 70%;
    text-align: left;
}

.fixture-name {
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 5px;
}

.bet-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.bet-details {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.bet-odds-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
}

.bet-probability {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.actual-odds {
    color: #000;
    font-weight: bold;
    font-size: 18px;
    margin-left: 8px;
}

.summary-line {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.summary-actual-odds {
    color: #000;
    font-weight: bold;
    font-size: 20px;
}

.value-percentage {
    color: #ff5733;
    font-weight: bold;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.no-betslip {
    text-align: center;
    color: #dc3545;
    font-size: 18px;
}

/* ===== BETSLIP GENERATOR ===== */

.betslip-generator-container {
    max-width: 1920px;
    width: min(99vw, 1920px);
    margin: 26px auto 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.betslip-generator-container h1 {
    text-align: center;
    font-size: 40px;
    line-height: 1.05;
    color: #163356;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.betslip-builder-shell {
    position: relative;
}

.betslip-builder-hero {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.betslip-builder-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(44px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #14345d;
    text-shadow: 0 10px 28px rgba(18, 59, 118, 0.08);
}

.betslip-builder-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #314969;
    line-height: 1.7;
    font-size: 17px;
}

.betslip-generator-container form {
    position: relative;
}

.betslip-generator-container form::before {
    content: none;
}

.betslip-container .settings input:not([type="checkbox"]),
.betslip-container .probability-container input[type="number"],
#max_betslips,
#target_odds,
#items_per_slip,
#time_duration {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.betslip-container .market-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #dce8f8;
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: 0 10px 24px rgba(17, 61, 122, 0.05);
}

.betslip-market-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
    padding: 18px;
    border: 1px solid #dde7f5;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(13, 57, 122, 0.06);
}

.betslip-market-section:first-of-type {
    margin-top: 0;
}

.betslip-market-section h2 {
    margin: 0;
    font-size: 24px;
    color: #143d7a;
    letter-spacing: -0.02em;
}

.betslip-container .market-name {
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1454b8;
}

.betslip-container .probability-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0;
}

.betslip-container .probability-container input[type="number"] {
    width: 78px;
    padding: 10px 8px;
    font-size: 13px;
    border: 1px solid #d4dfef;
    border-radius: 10px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    background: #ffffff;
}

.betslip-container .toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    vertical-align: middle;
}

.betslip-container .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.betslip-container .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 10px;
}

.betslip-container .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.betslip-container input:checked + .slider {
    background-color: #4CAF50;
}

.betslip-container input:checked + .slider:before {
    transform: translateX(14px);
}

.betslip-container .form-footer {
    text-align: center;
    margin-top: 20px;
}

.betslip-container button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.betslip-container button:hover {
    background-color: #0056b3;
}

.betslip-container .country-section {
    margin-bottom: 20px;
}

.betslip-container .country-section label {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.betslip-container .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.betslip-container .arrow.rotate {
    transform: rotate(180deg);
}

.betslip-container .league-dropdown {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
    display: none;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
}

.betslip-container .league-dropdown label {
    display: block;
    font-size: 16px;
    color: #555;
    padding: 5px 0;
}

.betslip-container .country-checkbox,
.betslip-container .league-checkbox {
    margin-right: 10px;
}

.betslip-container .country-section label:hover,
.betslip-container .league-dropdown label:hover {
    color: #007bff;
    text-decoration: underline;
}

.betslip-container .predictability-indicator {
    font-size: 14px;
    margin-left: 5px;
}

.betslip-container .predictability-indicator.is-high {
    color: green;
}

.betslip-container .predictability-indicator.is-good {
    color: #c8a100;
}

.betslip-container .predictability-indicator.is-medium {
    color: orange;
}

.betslip-container .predictability-indicator.is-poor {
    color: red;
}

.betslip-container .predictability-filters {
    margin-top: 8px;
}

.betslip-container .predictability-filters h3 {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: left;
}

.betslip-container .predictability-filters .predictability-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
    font-size: 16px;
}

.betslip-container .predictability-filters input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    position: relative;
    top: 0;
}

.betslip-container .predictability-filters label {
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

.betslip-container .predictability-bullet {
    font-size: 16px;
    font-weight: bold;
}

/* ===== BETSLIP GENERATOR 2-COLUMN LAYOUT ===== */

.betslip-generator-page {
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) minmax(0, 2.32fr) minmax(800px, 1.34fr);
    gap: 32px;
    align-items: start;
}

.betslip-builder-page {
    grid-template-columns: minmax(0, 1.45fr) minmax(620px, 1.15fr);
    gap: 30px;
    max-width: 1520px;
    margin: 0 auto;
}

.betslip-left-column,
.betslip-right-column {
    min-width: 0;
}

.betslip-left-column {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: grid;
    gap: 20px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.betslip-right-column {
    display: contents;
}

.betslip-builder-main-column,
.betslip-builder-side-column {
    display: grid;
    gap: 22px;
    align-content: start;
}

.betslip-builder-main-column {
    grid-column: 1;
    grid-row: auto;
}

.betslip-builder-side-column {
    grid-column: 2;
    grid-row: auto;
}

.betslip-builder-league-stack {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid #dbe5f5;
    border-radius: 24px;
    background:
        radial-gradient(circle at top center, rgba(43, 111, 214, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-left-column .settings {
    display: grid;
    gap: 0;
    padding: 22px;
    border: 1px solid #d8e4f6;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(42, 109, 214, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-builder-settings-card {
    gap: 20px;
}

.betslip-builder-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5edf9;
}

.betslip-builder-card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.betslip-builder-card-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #14345d;
}

.betslip-builder-card-head p {
    margin: 0;
    color: #4c6488;
    line-height: 1.6;
    text-align: left;
}

.betslip-builder-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}

.betslip-builder-field {
    display: grid;
    gap: 6px;
}

.betslip-builder-field-span,
.betslip-builder-value-toggle {
    grid-column: 1 / -1;
}

.betslip-builder-value-toggle {
    justify-self: start;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid #d7e4f6;
    border-radius: 14px;
    background: #f8fbff;
}

.betslip-left-column .settings > label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4f678d;
}

.betslip-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: #163356;
}

.betslip-left-column .settings .betslip-inline-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.betslip-generator-classic-page > .betslip-left-column {
    display: contents;
}

.betslip-generator-classic-page > .betslip-left-column > .settings {
    grid-column: 2;
    grid-row: 1;
}

.betslip-generator-classic-page > .betslip-left-column > .classic-probability-column {
    grid-column: 3;
    grid-row: 1 / span 999;
    display: grid;
    gap: 14px;
    align-content: start;
}

.betslip-generator-classic-page > .betslip-left-column > .form-footer {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 10px;
}

.betslip-generator-classic-page > .betslip-left-column > .classic-probability-column > .market-group {
    margin-bottom: 0;
}

.betslip-generator-classic-page > .betslip-right-column {
    display: contents;
}

.betslip-generator-classic-page > .betslip-right-column > .competitions-panel {
    grid-column: 1;
    grid-row: 1 / span 999;
}

.betslip-builder-note {
    margin-top: 0;
    padding: 18px 20px;
    border: 1px solid #d6e5ff;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    box-shadow: 0 16px 34px rgba(13, 57, 122, 0.08);
    grid-column: 3;
    grid-row: 1;
}

.betslip-builder-side-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #d9e4f5;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-builder-note {
    grid-column: auto;
    grid-row: auto;
    padding: 0 0 18px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e5edf9;
    background: transparent;
    box-shadow: none;
}

.betslip-builder-note h3 {
    margin: 0 0 8px;
    color: #143d7a;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.betslip-builder-note p {
    margin: 0;
    color: #314969;
    line-height: 1.6;
}

.betslip-builder-action-panel {
    display: grid;
    gap: 16px;
}

.betslip-builder-action-copy h3 {
    margin: 0 0 8px;
    color: #143d7a;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.betslip-builder-action-copy p {
    margin: 0;
    color: #4d6589;
    line-height: 1.6;
}

.betslip-builder-form-footer {
    margin-top: 0;
}

.betslip-builder-form-footer button {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 32px rgba(20, 84, 184, 0.2);
}

.betslip-builder-premium-page {
    grid-template-columns: minmax(390px, 0.84fr) minmax(0, 1.36fr) minmax(660px, 1.34fr);
    gap: 24px;
    max-width: 1880px;
    margin: 0 auto;
    align-items: start;
}

.betslip-builder-sidebar,
.betslip-builder-market-column,
.betslip-builder-season-column {
    min-width: 0;
    display: grid;
    gap: 22px;
    align-content: start;
}

.betslip-builder-market-column {
    gap: 0;
}

.betslip-builder-settings-card {
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid #d8e4f6;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-builder-market-board {
    display: grid;
    gap: 16px;
    padding: 18px 16px 18px;
    border: 1px solid #d7e5f8;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 20px 40px rgba(13, 57, 122, 0.08);
}

.betslip-builder-market-board-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 20px;
    align-items: center;
    padding: 6px 2px 14px;
    border-bottom: 1px solid #e5edf9;
}

.betslip-builder-market-board-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #14345d;
}

.betslip-builder-market-board-actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.betslip-builder-market-board-copy {
    margin: 0;
    color: #4c6488;
    line-height: 1.55;
    text-align: right;
}

.betslip-builder-inline-submit {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2571dc 0%, #2a7aed 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(20, 84, 184, 0.2);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.betslip-builder-inline-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(20, 84, 184, 0.24);
    filter: brightness(1.02);
}

.betslip-builder-market-panel {
    border: 1px solid #d7e5f8;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
    overflow: hidden;
}

.betslip-builder-market-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 16px;
    list-style: none;
    cursor: pointer;
}

.betslip-builder-market-summary::-webkit-details-marker {
    display: none;
}

.betslip-builder-market-summary h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #134183;
}

.betslip-builder-panel-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5578ab;
}

.betslip-builder-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2a6fdb;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.betslip-builder-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px 16px;
}

.betslip-builder-market-column .market-group {
    margin-bottom: 0;
}

.betslip-builder-settings-card .betslip-builder-field label {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f678d;
}

.betslip-builder-settings-card input[type="number"] {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #cfdbed;
    border-radius: 14px;
    background: #ffffff;
    font-size: 17px;
    font-weight: 600;
    color: #15355c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.betslip-builder-settings-card .probability-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.betslip-builder-settings-card .betslip-builder-value-toggle {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.betslip-builder-season-column .season-stats-panel {
    margin-top: 0;
    padding: 0;
    border-radius: 28px;
    border: 1px solid #d7e4f6;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-builder-season-column .season-stats-summary {
    padding: 18px 18px 16px;
}

.betslip-builder-season-column .season-stats-panel-body {
    padding: 18px;
}

.betslip-builder-season-column .season-stats-grid {
    gap: 14px;
}

.betslip-builder-season-column .season-stats-section {
    gap: 12px;
    padding: 14px;
}

.betslip-builder-season-column .season-stats-row {
    grid-template-columns: minmax(110px, 1fr) minmax(156px, auto);
    gap: 12px;
    padding: 12px 14px;
}

.betslip-builder-season-column .season-stats-market-label {
    font-size: 14px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

.betslip-builder-season-column .season-stats-range {
    gap: 8px;
}

.betslip-builder-season-column .season-stats-range input[type="number"] {
    width: 74px;
    padding: 8px 10px;
    font-size: 12px;
}

@media (max-width: 1620px) {
    .betslip-builder-premium-page {
        grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.34fr) minmax(580px, 1.18fr);
    }

    .betslip-builder-market-board-head {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    }
}

@media (max-width: 1320px) {
    .betslip-builder-premium-page {
        grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr);
    }

    .betslip-builder-season-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1080px) {
    .betslip-builder-premium-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .betslip-builder-market-board-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .betslip-builder-market-board-actions {
        justify-items: stretch;
    }

    .betslip-builder-market-board-copy {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .betslip-builder-market-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .betslip-builder-market-summary {
        align-items: start;
        flex-direction: column;
    }
}

.betslip-generator-shell {
    width: min(calc(100% - 24px), 1920px);
    margin: 28px auto 40px;
    padding: 0 12px 20px;
}

.betslip-generator-premium-hero {
    max-width: 980px;
    margin: 0 auto 24px;
    text-align: center;
}

.betslip-generator-kicker,
.betslip-generator-card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.betslip-generator-premium-hero h1 {
    margin: 0;
    font-size: clamp(48px, 5vw, 64px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #14345d;
    text-shadow: 0 14px 32px rgba(18, 59, 118, 0.08);
}

.betslip-generator-intro {
    max-width: 760px;
    margin: 16px auto 0;
    text-align: center;
    color: #4d6589;
    line-height: 1.72;
    font-size: 17px;
}

.betslip-generator-preview-banner {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.betslip-generator-premium-page {
    display: block;
}

.betslip-generator-shell .value-bets-subnav {
    margin-bottom: 18px;
}

.betslip-generator-top-actions {
    width: min(100%, 1180px);
    margin: 0 auto 24px;
}

.betslip-generator-premium-column {
    display: grid;
    gap: 28px;
    align-items: start;
}

.betslip-generator-controls-panel,
.betslip-generator-market-section {
    width: min(100%, 1180px);
    margin: 0 auto;
    border: 1px solid rgba(194, 213, 239, 0.92);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.98) 100%);
    box-shadow: 0 22px 48px rgba(16, 42, 92, 0.12);
    overflow: hidden;
}

.betslip-generator-section-summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 84px;
    padding: 20px 28px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(135deg, var(--fpp-block-header-start) 0%, var(--fpp-block-header-mid) 56%, var(--fpp-block-header-end) 100%);
    border-bottom: 1px solid rgba(7, 27, 67, 0.28);
    box-shadow:
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2);
}

.betslip-generator-section-summary::-webkit-details-marker {
    display: none;
}

.betslip-generator-section-title {
    color: var(--fpp-block-header-text);
    font-size: clamp(1.18rem, 1.9vw, 1.52rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.betslip-generator-section-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.96);
    border-bottom: 2px solid rgba(255, 255, 255, 0.96);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.betslip-generator-market-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid #1f5fbd;
    border-bottom: 2px solid #1f5fbd;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.betslip-generator-controls-panel[open] .betslip-generator-section-caret,
.betslip-generator-market-section[open] .betslip-generator-section-caret,
.betslip-generator-market-panel[open] .betslip-generator-market-caret {
    transform: rotate(225deg);
}

.betslip-generator-controls-body {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.betslip-generator-preset-card,
.betslip-generator-settings-card,
.betslip-generator-market-board {
    border: 1px solid #dbe5f5;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.betslip-generator-market-board {
    padding: 22px;
    display: grid;
    gap: 18px;
    align-content: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.betslip-generator-preset-card {
    display: grid;
    justify-items: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.betslip-generator-preset-card .page-league-filter {
    width: min(100%, 1000px);
    margin: 0 auto;
}

.betslip-generator-market-section-head {
    margin-bottom: 0;
}

.betslip-generator-settings-card {
    gap: 0;
    padding: 22px 24px;
}

.betslip-generator-settings-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5edf9;
}

.betslip-generator-settings-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #14345d;
}

.betslip-generator-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    align-items: start;
}

.betslip-generator-field {
    min-width: 0;
}

.betslip-generator-field--toggle {
    grid-column: 1 / -1;
    justify-self: center;
}

.betslip-generator-premium-column .settings > label,
.betslip-generator-field > label {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f678d;
}

.betslip-generator-premium-column .settings input:not([type="checkbox"]),
.betslip-generator-premium-column .probability-range input[type="number"] {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 18px;
    border-radius: 14px;
    border: 1px solid #d4dfef;
    background: #ffffff;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.betslip-generator-premium-column .probability-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.betslip-generator-premium-column .settings label[style] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    margin-top: 6px !important;
    padding: 14px 16px;
    border: 1px solid #d7e4f6;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 16px;
    font-weight: 700;
    color: #163356;
}

.betslip-generator-premium-column .settings label[style] input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 !important;
}

.betslip-generator-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.betslip-generator-inline-submit {
    min-width: 200px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--fpp-button-border-strong);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    color: var(--fpp-button-text-on-dark);
    box-shadow: var(--fpp-button-shadow-primary);
}

.betslip-generator-inline-submit:hover {
    box-shadow: var(--fpp-button-shadow-primary-hover);
    filter: brightness(1.01);
}

.betslip-generator-market-panel {
    border: 1px solid #d7e4f6;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.betslip-generator-market-panel > summary {
    list-style: none;
}

.betslip-generator-market-panel > summary::-webkit-details-marker {
    display: none;
}

.betslip-generator-market-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(238, 246, 255, 0.99) 100%);
    border-bottom: 1px solid rgba(154, 181, 221, 0.34);
    box-shadow: 0 10px 24px rgba(11, 36, 82, 0.05);
    color: #173a70;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.betslip-generator-panel-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4f99;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(227, 239, 255, 0.95);
    border: 1px solid rgba(122, 163, 224, 0.32);
}

.betslip-generator-market-summary h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #173a70;
}

.betslip-generator-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(227, 239, 255, 0.95);
    color: #173a70;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(122, 163, 224, 0.32);
}

.betslip-generator-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid #e5edf9;
}

.betslip-generator-market-board .market-group {
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 18px;
}

.betslip-generator-market-board .market-name {
    font-size: 17px;
    line-height: 1.35;
}

.betslip-generator-market-board .probability-container {
    gap: 10px;
}

.betslip-generator-market-board .probability-container input[type="number"] {
    width: 84px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 12px;
}

@media (max-width: 1400px) {
    .betslip-generator-market-board .market-group {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .betslip-generator-market-grid {
        grid-template-columns: 1fr;
    }

    .betslip-generator-market-board .probability-container {
        grid-column: 1 / 2;
        justify-self: start;
    }

    .betslip-generator-market-board .toggle-switch {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

@media (max-width: 1080px) {
    .betslip-generator-settings-grid {
        grid-template-columns: 1fr;
    }

    .betslip-generator-preset-card,
    .betslip-generator-settings-card,
    .betslip-generator-market-board,
    .betslip-generator-form-footer {
        grid-column: auto;
        grid-row: auto;
    }

    .betslip-generator-market-board {
        padding: 18px;
    }

    .betslip-generator-market-summary {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 720px) {
    .betslip-generator-shell {
        width: calc(100% - 16px);
        padding: 0 4px 18px;
    }

    .betslip-generator-shell .value-bets-subnav {
        margin-bottom: 18px;
    }

    .betslip-generator-top-actions {
        margin-bottom: 20px;
    }

    .betslip-generator-premium-hero h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .betslip-generator-premium-column .probability-range {
        grid-template-columns: 1fr;
    }

    .betslip-generator-market-board .market-group {
        grid-template-columns: 1fr;
    }

    .betslip-generator-market-board .probability-container,
    .betslip-generator-market-board .toggle-switch {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .betslip-generator-market-summary {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .betslip-generator-panel-count {
        grid-column: 1 / 2;
        justify-self: start;
    }

    .betslip-generator-market-caret {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

.season-stats-panel {
    margin-top: 0;
    border: 1px solid #d7e4f6;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(13, 57, 122, 0.08);
    overflow: hidden;
    grid-column: auto;
    grid-row: auto;
}

.season-stats-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
}

.season-stats-summary::-webkit-details-marker {
    display: none;
}

.season-stats-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.season-stats-summary h3 {
    margin: 0;
    font-size: 20px;
    color: #143d7a;
}

.season-stats-summary-copy {
    max-width: 240px;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    color: #4f678d;
}

.season-stats-panel-body {
    padding: 0 24px 24px;
    border-top: 1px solid #e7effb;
}

.season-stats-master-toggle {
    margin-top: 16px;
}

.season-stats-panel-intro {
    margin: 12px 0 16px;
    color: #445d82;
    line-height: 1.6;
}

.season-stats-grid {
    display: grid;
    gap: 16px;
    transition: opacity 0.2s ease;
}

.season-stats-grid.is-disabled {
    opacity: 0.55;
}

.betslip-builder-shell .value-bets-subnav {
    margin-bottom: 18px;
}

.betslip-builder-shell .betslip-builder-premium-page {
    display: block;
    max-width: none;
    margin: 0;
    gap: 0;
}

.betslip-builder-shell .betslip-generator-top-actions {
    width: min(100%, 1180px);
    margin: 0 auto 24px;
}

.betslip-builder-shell .betslip-generator-premium-column {
    display: grid;
    gap: 28px;
    align-items: start;
}

.betslip-builder-shell .betslip-generator-controls-panel,
.betslip-builder-shell .betslip-generator-market-section {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.betslip-builder-shell .betslip-builder-season-stats-section .season-stats-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.betslip-builder-shell .betslip-builder-season-stats-section .season-stats-summary {
    padding: 18px 24px;
}

.betslip-builder-shell .betslip-builder-season-stats-section .season-stats-panel-body {
    padding: 0 24px 24px;
}

.betslip-builder-shell .betslip-generator-market-board {
    padding: 22px;
}

.betslip-builder-shell .betslip-generator-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.betslip-builder-shell .betslip-generator-market-board .market-group {
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 18px;
}

.betslip-builder-shell .betslip-generator-market-board .probability-container {
    gap: 10px;
}

.betslip-builder-shell .betslip-generator-market-board .probability-container input[type="number"] {
    width: 84px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 12px;
}

.betslip-builder-shell .betslip-builder-season-stats-panel .season-stats-panel-body {
    padding: 24px;
}

.betslip-builder-shell .season-stats-master-toggle {
    margin-top: 0;
    justify-content: center;
}

.betslip-builder-shell .season-stats-grid {
    margin-top: 18px;
}

.betslip-builder-shell .season-stats-market-panel .season-stats-section {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 18px;
    gap: 12px;
    border-top: 1px solid #e7effb;
}

.betslip-builder-shell .season-stats-market-panel .season-stats-row {
    grid-template-columns: minmax(120px, 1fr) minmax(156px, auto);
    gap: 12px;
    padding: 12px 14px;
}

.season-stats-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid #e3edf9;
    border-radius: 16px;
    background: #ffffff;
}

.betslip-market-section-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6eef9;
}

.betslip-market-section-kicker {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5b76a0;
}

.betslip-market-section-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf5ff;
    color: #2b6fd6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.season-stats-section h4 {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    color: #163356;
}

.season-stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dce8f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 8px 20px rgba(17, 61, 122, 0.05);
    min-width: 0;
}

.season-stats-market-label {
    font-size: 14px;
    font-weight: 600;
    color: #21416c;
    line-height: 1.35;
    min-width: 0;
}

.season-stats-range {
    display: flex;
    gap: 10px;
    min-width: 0;
    flex-shrink: 0;
}

.season-stats-range input[type="number"] {
    width: 74px;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d5dfed;
    border-radius: 10px;
    background: #f8fbff;
    text-align: center;
}

.inplay-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 32px 42px;
    box-sizing: border-box;
}

.inplay-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.inplay-page-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.inplay-page h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.04;
    color: #163356;
}

.inplay-page-intro {
    margin: 0;
    max-width: 980px;
    color: #4a5f80;
    font-size: 16px;
    line-height: 1.6;
}

.inplay-status-panel {
    min-width: 280px;
    padding: 18px 20px;
    border: 1px solid #dbe6f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 16px 32px rgba(13, 57, 122, 0.08);
}

.inplay-status-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    color: #254468;
}

.inplay-status-row + .inplay-status-row {
    border-top: 1px solid #e6eef9;
}

.inplay-status-label {
    color: #5a7091;
}

.inplay-error-banner,
.inplay-loading-state,
.inplay-empty-state {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dbe6f7;
}

.inplay-error-banner {
    color: #9b1c1c;
    background: #fff5f5;
    border-color: #f1c0c0;
}

.inplay-loading-state,
.inplay-empty-state {
    color: #355075;
    background: #f7fbff;
}

.inplay-grid {
    display: grid;
    gap: 20px;
}

.inplay-card {
    padding: 22px;
    border: 1px solid #dce7f6;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(42, 109, 214, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(13, 57, 122, 0.08);
}

.inplay-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.inplay-card-competition {
    margin: 0 0 8px;
    color: #5d7395;
    font-size: 13px;
}

.inplay-card-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #163356;
}

.inplay-status-pill,
.inplay-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.inplay-status-pill {
    color: #0f5b12;
    background: #e8f7eb;
    border: 1px solid #bfe4c5;
}

.inplay-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.inplay-chip {
    color: #2d4a71;
    background: #edf5ff;
    border: 1px solid #d7e6fb;
}

.inplay-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid #dce7f6;
    border-radius: 18px;
    background: #ffffff;
}

.inplay-team-score {
    display: grid;
    gap: 6px;
}

.inplay-team-score:last-child {
    text-align: right;
}

.inplay-team-name {
    color: #264469;
    font-weight: 700;
}

.inplay-team-score strong {
    font-size: 34px;
    line-height: 1;
    color: #163356;
}

.inplay-score-meta {
    display: grid;
    gap: 6px;
    text-align: center;
    color: #566c8f;
    font-weight: 700;
}

.inplay-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.inplay-section {
    padding: 16px 18px;
    border: 1px solid #dce7f6;
    border-radius: 18px;
    background: #ffffff;
}

.inplay-section h3,
.inplay-odds-block h4 {
    margin: 0 0 14px;
    color: #163356;
    font-size: 17px;
}

.inplay-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.inplay-stat-grid div,
.inplay-odds-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #3b5377;
}

.inplay-stat-grid strong,
.inplay-odds-item strong {
    color: #17365e;
}

.inplay-odds-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.inplay-odds-block {
    padding: 16px 18px;
    border: 1px solid #dce7f6;
    border-radius: 18px;
    background: #ffffff;
}

.inplay-odds-list {
    display: grid;
    gap: 10px;
}

.inplay-odds-empty {
    margin: 0;
    color: #6b7f9d;
}

@media (max-width: 1200px) {
    .inplay-page-header {
        flex-direction: column;
    }

    .inplay-status-panel {
        min-width: 0;
        width: 100%;
    }

    .inplay-odds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .inplay-page {
        padding: 22px 16px 34px;
    }

    .inplay-page h1 {
        font-size: 34px;
    }

    .inplay-card-title {
        font-size: 22px;
    }

    .inplay-section-grid,
    .inplay-stat-grid,
    .inplay-odds-grid {
        grid-template-columns: 1fr;
    }

    .inplay-scoreboard {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .inplay-team-score:last-child,
    .inplay-score-meta {
        text-align: left;
    }
}

.competitions-panel {
    background: #ffffff;
    border: 1px solid #dbe6f6;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(13, 57, 122, 0.08);
    overflow: hidden;
    grid-column: 1;
    grid-row: 1 / span 4;
    position: sticky;
    top: 20px;
}

.competitions-panel-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    padding: 18px 24px;
}

.competitions-panel-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.competitions-panel-body {
    max-height: 700px;
    overflow-y: auto;
    padding: 18px 24px 24px 24px;
}

@media (max-width: 1100px) {
    .betslip-generator-page {
        grid-template-columns: 1fr;
    }

    .betslip-builder-page {
        grid-template-columns: 1fr;
    }

    .betslip-generator-classic-page > .betslip-left-column {
        display: grid;
        gap: 20px;
    }

    .betslip-generator-classic-page > .betslip-right-column {
        display: grid;
        gap: 18px;
    }

    .betslip-left-column {
        grid-column: auto;
        grid-row: auto;
    }

    .betslip-right-column {
        display: grid;
        gap: 18px;
    }

    .betslip-builder-main-column,
    .betslip-builder-side-column {
        grid-column: auto;
    }

    .competitions-panel-body {
        max-height: 420px;
    }

    .season-stats-summary {
        grid-template-columns: 1fr;
    }

    .season-stats-summary-copy {
        max-width: none;
        text-align: left;
    }

    .betslip-market-section {
        grid-template-columns: 1fr;
    }

    .betslip-builder-card-head {
        grid-template-columns: 1fr;
    }

    .betslip-builder-card-head p {
        text-align: left;
    }

    .betslip-container .market-group {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .betslip-builder-note,
    .season-stats-panel,
    .competitions-panel,
    .form-footer {
        grid-column: auto;
        grid-row: auto;
        position: static;
        top: auto;
    }

    .betslip-generator-classic-page > .betslip-left-column > .settings,
    .betslip-generator-classic-page > .betslip-left-column > .classic-probability-column,
    .betslip-generator-classic-page > .betslip-left-column > .form-footer,
    .betslip-generator-classic-page > .betslip-right-column > .competitions-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .season-stats-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .betslip-generator-container h1 {
        font-size: 32px;
    }

    .betslip-builder-hero h1 {
        font-size: 38px;
    }

    .betslip-left-column .settings {
        padding: 18px;
    }

    .betslip-builder-league-stack,
    .betslip-builder-side-card {
        padding: 18px;
    }

    .betslip-builder-settings-grid {
        grid-template-columns: 1fr;
    }

    .season-stats-row {
        grid-template-columns: 1fr;
    }

    .season-stats-range {
        width: 100%;
    }

    .season-stats-range input[type="number"] {
        width: 100%;
        flex: 1;
    }

    .betslip-container .market-group {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .betslip-market-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .betslip-container .probability-container {
        width: 100%;
    }

    .betslip-container .probability-container input[type="number"] {
        flex: 1;
        width: 100%;
    }
}

/* ===== COMPETITIONS HEADER UPGRADE ===== */

.competitions-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selected-leagues-count {
    font-size: 14px;
    font-weight: bold;
    color: #0b63cf;
    background: #edf5ff;
    padding: 5px 11px;
    border-radius: 20px;
}

.competitions-header-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competitions-search {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d2dceb;
    font-size: 14px;
    background: #fbfdff;
}

.competitions-search:focus {
    outline: none;
    border-color: #007bff;
}

.competitions-header-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.competitions-action-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg, #f6faff 0%, #ebf3ff 100%);
    color: #1950a5;
    transition: all 0.2s ease;
}

.competitions-action-btn:hover {
    background: #007bff;
    color: #fff;
}

.form-footer {
    margin-top: 0;
    grid-column: 3;
    grid-row: 2;
}

.form-footer button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a67d1, #1f7ef0);
    box-shadow: 0 16px 28px rgba(10, 103, 209, 0.28);
}

.form-footer button:hover {
    background: linear-gradient(135deg, #095cb9, #156cd3);
    transform: translateY(-1px);
}

/* =====================================================
   PROBABILITY RANKINGS PAGE
===================================================== */

.probability-rankings-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 16px 40px;
    display: grid;
    gap: 18px;
}

.probability-rankings-table-card {
    margin-top: 0;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5f1;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

.probability-rankings-date-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.probability-rankings-preset-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.probability-rankings-date-tab {
    min-width: 124px;
}

.probability-rankings-date-tab:hover,
.probability-rankings-date-tab.is-active {
    background: linear-gradient(135deg, #1968db 0%, #2b7aed 100%);
    border-color: #1968db;
    color: #fff;
}

.probability-rankings-filter-shell {
    margin-top: 0;
}

.probability-rankings-filters-body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.probability-rankings-filter-form {
    display: grid;
    gap: 16px;
    width: 100%;
}

.probability-rankings-filter-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(440px, 1.5fr);
    gap: 14px;
    align-items: end;
}

.probability-rankings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probability-rankings-field span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7a90;
}

.probability-rankings-field select,
.probability-rankings-field input {
    min-height: 52px;
    height: 52px;
    padding: 12px 14px;
    border: 1px solid #ccdae9;
    border-radius: 12px;
    background: #fff;
    color: #162537;
    font-size: 1rem;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.probability-rankings-field select {
    min-width: 300px;
}

.probability-rankings-search input {
    min-width: 440px;
}

.probability-rankings-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.probability-rankings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    background: #f5f8fc;
    border: 1px solid #d8e2ee;
    color: #213246;
    font-weight: 700;
    font-size: 1rem;
}

.probability-rankings-apply {
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1968db 0%, #2b7aed 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}

.probability-rankings-table-wrap {
    padding: 18px;
    overflow-x: auto;
}

.probability-rankings-table {
    width: 100%;
    min-width: 1130px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    overflow: hidden;
}

.probability-rankings-table-head {
    margin-bottom: 0;
}

.probability-rankings-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: transparent;
    color: var(--fpp-table-header-text);
    padding: 14px 12px;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.probability-rankings-table th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.probability-rankings-sort-button {
    justify-content: center;
}

.probability-rankings-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease;
    text-align: center;
    color: #182739;
}

.probability-rankings-table th:nth-child(1),
.probability-rankings-table td:nth-child(1) {
    width: 120px;
}

.probability-rankings-table th:nth-child(2),
.probability-rankings-table td:nth-child(2) {
    width: 300px;
}

.probability-rankings-table th:nth-child(3),
.probability-rankings-table td:nth-child(3) {
    width: 240px;
}

.probability-rankings-table th:nth-child(4),
.probability-rankings-table td:nth-child(4) {
    width: 140px;
}

.probability-rankings-table th:nth-child(5),
.probability-rankings-table td:nth-child(5),
.probability-rankings-table th:nth-child(6),
.probability-rankings-table td:nth-child(6),
.probability-rankings-table th:nth-child(7),
.probability-rankings-table td:nth-child(7),
.probability-rankings-table th:nth-child(8),
.probability-rankings-table td:nth-child(8) {
    width: 110px;
}

.probability-rankings-table th:nth-child(9),
.probability-rankings-table td:nth-child(9) {
    width: 104px;
    min-width: 104px;
    max-width: 104px;
}

.probability-rankings-table tbody tr:hover td {
    background-color: #f7fbff;
}

.probability-rankings-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.probability-rankings-fixture {
    text-align: left !important;
}

.probability-rankings-fixture a {
    color: #1257b5;
    font-weight: 700;
    text-decoration: underline;
}

.probability-rankings-fixture a:hover {
    text-decoration: underline;
}

.probability-rankings-league {
    text-align: left !important;
    color: #425466;
}

.probability-rankings-probability {
    font-weight: 800;
    color: #10253c;
}

.probability-rankings-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.probability-rankings-badge.is-high {
    background: #dff5e8;
    color: #166534;
}

.probability-rankings-badge.is-good {
    background: #eef6d6;
    color: #556b16;
}

.probability-rankings-badge.is-medium {
    background: #fff2d9;
    color: #b45309;
}

.probability-rankings-badge.is-poor {
    background: #fde5e7;
    color: #b42318;
}

.probability-rankings-badge.is-unknown {
    background: #eef2f7;
    color: #556274;
}

.probability-rankings-value {
    font-weight: 800;
}

.probability-rankings-track-cell {
    text-align: center !important;
}

.probability-rankings-table .value-high {
    background-color: #d9f3e5 !important;
    color: #166534;
}

.probability-rankings-table .value-negative {
    background-color: #fde1e4 !important;
    color: #b42318;
}

.probability-rankings-empty {
    margin: 0;
    padding: 24px 18px 18px;
    text-align: center;
    color: #5b697a;
    font-weight: 600;
}

.probability-rankings-pagination {
    margin: 0 18px 18px;
}

@media (max-width: 980px) {
    .probability-rankings-filter-grid {
        grid-template-columns: 1fr;
    }

    .probability-rankings-field select,
    .probability-rankings-search input {
        min-width: 0;
    }

    .probability-rankings-page {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =====================================================
   BEST BETS PAGE
===================================================== */

.best-bets {
  gap: 28px;
}

.best-bets-filter-card {
  width: min(100%, 1120px);
  margin: 10px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(194, 213, 239, 0.92);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(16, 42, 92, 0.12);
}

.best-bets-preset-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
}

.best-bets-filter-controls {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.best-bets-filter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.best-bets-toggle {
  min-width: 180px;
  justify-content: center;
}

.best-bets-apply {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--fpp-button-border-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
  color: var(--fpp-button-text-on-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--fpp-button-shadow-primary);
  cursor: pointer;
}

.best-bets-market-section {
  width: min(100%, 1240px);
  margin: 0 auto;
  border: 1px solid rgba(194, 213, 239, 0.92);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.98) 100%);
  box-shadow: 0 20px 42px rgba(16, 42, 92, 0.12);
  overflow: hidden;
}

.best-bets-market-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(238, 246, 255, 0.99) 100%);
  border-bottom: 1px solid rgba(154, 181, 221, 0.34);
  box-shadow: 0 10px 24px rgba(11, 36, 82, 0.05);
  color: #173a70;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.best-bets-market-summary::-webkit-details-marker {
  display: none;
}

.best-bets-market-title {
  color: #173a70;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}

.best-bets-market-caret {
  width: 12px;
  height: 12px;
  border-right: 2px solid #1f5fbd;
  border-bottom: 2px solid #1f5fbd;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.best-bets-market-section[open] .best-bets-market-caret {
  transform: rotate(225deg);
}

.best-bets-market-summary:hover,
.best-bets-market-section[open] .best-bets-market-summary,
.betslip-generator-market-summary:hover,
.betslip-generator-market-panel[open] .betslip-generator-market-summary {
  transform: translateY(-1px);
  border-color: rgba(74, 124, 205, 0.52);
  box-shadow: 0 18px 28px rgba(11, 36, 82, 0.1);
}

.best-bets-market-summary:focus-visible,
.betslip-generator-market-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.14);
}

.best-bets-market-body {
  padding: 0;
}

.best-bets-table-wrap {
  overflow-x: auto;
}

.bb-empty-row {
  padding: 28px 18px !important;
  text-align: center !important;
  color: #5b697a !important;
  font-weight: 600;
}

/* =====================================================
   BEST BETS TABLES
===================================================== */

.bb-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  min-width: 1080px;
}

.bb-table thead {
  background: var(--fpp-table-header-gradient);
}

.bb-table thead th {
  background: transparent;
  color: var(--fpp-table-header-text);
  font-weight: 700;
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid var(--fpp-table-header-bottom);
  white-space: normal;
  line-height: 1.3;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bb-table thead th + th {
  border-left: 1px solid var(--fpp-table-header-divider);
}

.bb-table tbody td {
  padding: 14px 12px;
  color: #14345d;
  border-bottom: 1px solid rgba(214, 226, 241, 0.88);
  vertical-align: middle;
  font-size: 15px;
  font-weight: 400;
}

.bb-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.bb-table tbody tr:hover {
  background: #eef4ff;
}

.bb-table a {
  color: #0f5ed7;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  line-height: 1.4;
}

.bb-table a:hover {
  text-decoration: underline;
}

.bb-table tbody td:nth-child(2),
.bb-table tbody td:nth-child(3),
.bb-table tbody td:nth-child(4) {
  text-align: left;
}

.bb-table tbody td:nth-child(1),
.bb-table tbody td:nth-child(5),
.bb-table tbody td:nth-child(6),
.bb-table tbody td:nth-child(7),
.bb-table tbody td:nth-child(8),
.bb-table tbody td:nth-child(9),
.bb-table tbody td:nth-child(10) {
  text-align: center;
}

.bb-text-cell {
  white-space: normal;
}

.bb-fixture-cell {
  min-width: 220px;
  white-space: normal;
}

.bb-track-cell {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
}

.bb-badge {
  display: inline-block;
  min-width: 56px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5ff 0%, #dcecff 100%);
  color: #0a67d1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.prob-cell {
  cursor: pointer;
}

.prob-cell:hover .bb-badge {
  background: #dcecff;
}

/* =====================================================
   BETSLIP SIDE PANEL
===================================================== */

.betslip-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  border-left: 3px solid #007BFF;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.betslip-panel.open {
  right: 0;
}

.betslip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #007BFF;
  color: #ffffff;
  font-weight: 700;
}

.betslip-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.betslip-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.betslip-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.betslip-empty {
  color: #666666;
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

.betslip-footer {
  padding: 14px 16px;
  background: #f9f9f9;
  border-top: 1px solid #dddddd;
}

.betslip-footer p {
  margin: 4px 0;
  font-weight: 600;
}

/* =====================================================
   BETSLIP CARDS
===================================================== */

.betslip-card {
  background: #f9f9ff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.betslip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.betslip-card-body {
  line-height: 1.5;
  position: relative;
}

.remove-bet {
  position: absolute;
  top: 0;
  right: 0;
  background: #dc3545;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.remove-bet:hover {
  background: #b02a37;
}

.betslip-clear {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #ff4d4d;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.betslip-clear:hover {
  background: #d93c3c;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
  .best-bets-filter-card {
    width: 100%;
  }

  .bb-table {
    font-size: 13px;
    min-width: 980px;
  }

  .bb-table thead th,
  .bb-table tbody td {
    padding: 8px 6px;
  }
}

@media (max-width: 900px) {
  .best-bets-filter-card {
    padding: 18px 18px 20px;
  }

  .best-bets-market-summary {
    min-height: 76px;
    padding: 18px 22px;
  }

  .best-bets-market-title {
    font-size: 1.1rem;
  }

  .bb-table {
    min-width: 940px;
  }

  .betslip-panel {
    width: 320px;
  }
}

@media (max-width: 640px) {
  .best-bets {
    gap: 22px;
  }

  .best-bets-filter-card {
    padding: 16px 14px 18px;
    border-radius: 22px;
  }

  .best-bets-filter-form {
    width: 100%;
  }

  .best-bets-toggle,
  .best-bets-apply {
    width: 100%;
  }

  .best-bets-market-summary {
    padding: 16px 18px;
  }

  .betslip-panel {
    width: 100%;
    right: -100%;
  }
}

/* =====================================================
   VALUE BETS PAGE
   ===================================================== */

/* =====================================================
   VALUE BETS PAGE
   ===================================================== */

.value-bets-container {
    width: min(calc(100% - 20px), 1860px);
    margin: 24px auto 40px;
    padding: 12px 16px 18px;
    background-color: transparent;
    border-radius: 8px;
    text-align: left;
    overflow-x: visible;
}

.value-bets-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: min(100%, 1120px);
    margin: 20px auto 0;
}

.value-bets-subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 229, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary);
    color: var(--fpp-button-text-on-light);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.value-bets-subnav-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.value-bets-subnav-link.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.value-bets-filter-shell {
    margin-top: 20px;
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

.value-bets-filter-shell > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    background: var(--fpp-table-header-gradient);
    color: #ffffff;
}

.value-bets-filter-shell > summary::-webkit-details-marker {
    display: none;
}

.value-bets-filter-summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.value-bets-filter-summary-meta {
    color: rgba(235, 244, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

.value-bets-filters-layout {
    display: grid;
    gap: 18px;
}

.value-bets-preset-wrap--full {
    display: flex;
    justify-content: center;
}

.value-bets-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.value-bets-filter-actions--top {
    justify-content: flex-start;
    margin-top: 0;
}

.value-bets-preset-wrap--full .page-league-filter {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(177, 208, 246, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.value-bets-preset-wrap--full .page-league-filter-summary {
    min-width: 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(207, 224, 245, 0.85);
}

.value-bets-preset-wrap--full .page-league-filter-kicker,
.value-bets-preset-wrap--full .page-league-filter-label {
    color: #27538f;
    font-weight: 800;
}

.value-bets-preset-wrap--full .page-league-filter-current {
    color: #14345d;
    font-weight: 800;
}

.value-bets-preset-wrap--full .page-league-filter-form {
    padding: 18px 20px 20px;
}

.value-bets-filter-block {
    padding: 0;
    overflow: hidden;
}

.value-bets-filter-block-header {
    min-height: 84px;
}

.value-bets-filter-block-header h3 {
    margin: 0;
}

.value-bets-bookmaker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px;
}

.value-bets-market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.value-bets-market-card {
    border: 1px solid #dbe5f1;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

.value-bets-market-card .collapsible {
    margin-top: 0;
    border-radius: 0;
    background: var(--fpp-table-header-gradient);
    box-shadow: none;
}

.value-bets-market-card .collapsible:hover {
    background: linear-gradient(135deg, var(--fpp-blue-900) 0%, var(--fpp-blue-800) 54%, var(--fpp-blue-700) 100%);
}

.value-bets-market-card .content {
    border: 0;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 1180px) {
    .value-bets-bookmaker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-bets-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.value-bets-empty-state {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(207, 224, 245, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
    color: #5b7397;
    font-weight: 700;
    text-align: center;
}

.value-bets-empty-state[hidden] {
    display: none;
}

.value-bets-hero {
    max-width: 980px;
    margin: 0 auto 22px;
    text-align: center;
    padding: 8px 16px 0;
}

.value-bets-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 3.8vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #10233f;
}

.value-bets-hero-copy {
    max-width: 760px;
    margin: 16px auto 0;
    color: #4d6488;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

.value-bets-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 22px auto 0;
    max-width: 980px;
}

.value-bets-metric {
    padding: 16px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
    text-align: center;
}

.value-bets-metric-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7a90;
}

.value-bets-metric strong {
    font-size: 28px;
    line-height: 1;
    color: #14345d;
    letter-spacing: -0.03em;
}

.value-bets-metric-updated {
    background: linear-gradient(180deg, #f9fbff 0%, #edf5ff 100%);
}

.value-bets-metric-updated strong {
    font-size: 22px;
    letter-spacing: 0;
}

.value-bets-control-card,
.value-bets-table-card {
    margin-top: 20px;
    padding: 22px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(43, 111, 214, 0.06), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.06);
}

.value-bets-table-card {
    overflow: hidden;
    padding: 0;
}

.value-bets-control-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.value-bets-control-copy h2,
.value-bets-table-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.value-bets-control-copy p,
.value-bets-table-head p {
    margin: 10px 0 0;
    color: #4d6488;
    line-height: 1.65;
}

.value-bets-control-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.value-bets-control-actions {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.value-bets-preset-wrap {
    display: flex;
    justify-content: flex-end;
}

.value-bets-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px 8px;
    padding-bottom: 8px;
}

.value-bets-floating-scrollbar {
    position: fixed;
    left: 0;
    bottom: 12px;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    display: none;
    z-index: 900;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.value-bets-floating-scrollbar.visible {
    display: block;
}

.value-bets-floating-scrollbar-inner {
    height: 1px;
}

/* Filter Button */
.filter-button-wrapper {
    text-align: center;
    margin: 0;
}

.filter-button {
    display: inline-block;
    min-height: 50px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #0a67d1, #1f7ef0);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease-in-out;
    box-shadow: 0 16px 30px rgba(10, 103, 209, 0.24);
}

.filter-button:hover {
    background: linear-gradient(135deg, #095cb9, #156cd3);
    transform: translateY(-1px);
}

/* Table */
.value-bets-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: collapse;
    font-size: 15px;
    text-align: center;
    table-layout: auto;
}

.value-bets-table th,
.value-bets-table td {
    padding: 14px 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    font-family: inherit;
}

.value-bets-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: transparent;
    color: var(--fpp-table-header-text);
    border-color: rgba(160, 193, 236, 0.18);
    border-bottom-color: var(--fpp-table-header-bottom);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
}

.value-bets-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.value-bets-sort-indicator {
    min-width: 14px;
    font-size: 12px;
    line-height: 1;
    color: rgba(235, 244, 255, 0.92);
    opacity: 0.9;
    text-align: center;
}

/* Column widths */
.value-bets-table th:nth-child(1),
.value-bets-table td:nth-child(1) {
    width: 220px;
}

.value-bets-table th:nth-child(2),
.value-bets-table td:nth-child(2) {
    width: 110px;
}

.value-bets-table th:nth-child(3),
.value-bets-table td:nth-child(3) {
    width: 320px;
}

.value-bets-table th:nth-child(4),
.value-bets-table td:nth-child(4) {
    width: 118px;
}

.value-bets-table th:nth-child(5),
.value-bets-table td:nth-child(5) {
    width: 160px;
}

.value-bets-table th:nth-child(6),
.value-bets-table td:nth-child(6) {
    width: 96px;
}

.value-bets-table th:nth-child(7),
.value-bets-table td:nth-child(7) {
    width: 96px;
}

.value-bets-table th:nth-child(8),
.value-bets-table td:nth-child(8) {
    width: 120px;
}

.value-bets-table th:nth-child(9),
.value-bets-table td:nth-child(9) {
    width: 92px;
}

.value-bets-table th:nth-child(10),
.value-bets-table td:nth-child(10) {
    width: 86px;
}

.value-bets-table th:nth-child(11),
.value-bets-table td:nth-child(11) {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    text-align: center;
}

.value-bets-table th:nth-child(12),
.value-bets-table td:nth-child(12) {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

.value-bets-table th:nth-child(1),
.value-bets-table th:nth-child(3) {
    text-align: center;
}

.value-bets-table th:nth-child(1) .value-bets-sort-button,
.value-bets-table th:nth-child(3) .value-bets-sort-button {
    justify-content: center;
}

/* Rows */
.value-bets-table tbody tr:nth-child(even) {
    background-color: #f8fbff;
}

.value-bets-table tbody tr:hover {
    background-color: #eef4ff;
}

.value-bets-table-head {
    margin-bottom: 0;
    min-height: 84px;
}

.value-bets-empty-state {
    margin: 0 18px 18px;
}

.value-bets-pagination {
    margin: 0 18px 18px;
}

.value-bets-competition-cell {
    text-align: left;
    white-space: normal;
}

.value-bets-country,
.value-bets-league {
    display: block;
}

.value-bets-country {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7a90;
}

.value-bets-league {
    font-weight: 700;
    line-height: 1.4;
    color: #17375d;
}

.value-bets-fixture-cell {
    text-align: left;
    white-space: normal;
}

.value-bets-fixture-link {
    color: #0f5ed7;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.value-bets-fixture-link:hover {
    text-decoration: underline;
}

.value-bets-predictability-badge,
.value-bets-bookmaker-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.value-bets-bookmaker-pill {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #14345d;
    font-size: 15px;
    font-weight: 400;
}

.value-bets-predictability-badge {
    background: #eef2f7;
    color: #475569;
}

.value-bets-predictability-high {
    background: #e7f8ee;
    color: #166534;
}

.value-bets-predictability-good {
    background: #eef6dc;
    color: #5f5b00;
}

.value-bets-predictability-medium {
    background: #fff3df;
    color: #b45309;
}

.value-bets-predictability-poor {
    background: #fde7e7;
    color: #b42318;
}

.value-bets-predictability-unknown,
.value-bets-predictability-none {
    background: #eef2f7;
    color: #64748b;
}

.value-bets-value-cell,
.value-bets-stake-cell {
    font-weight: 400;
    color: #14345d;
    font-size: 15px;
}

.value-bets-table tbody td:nth-child(1),
.value-bets-table tbody td:nth-child(3) {
    text-align: left;
}

.value-bets-table tbody td:nth-child(5),
.value-bets-table tbody td:nth-child(6),
.value-bets-table tbody td:nth-child(8),
.value-bets-table tbody td:nth-child(10),
.value-bets-table tbody td:nth-child(11) {
    font-size: 15px;
    color: #14345d;
    font-weight: 400;
}

/* Popup */
.filter-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 25px;
    border-radius: 22px;
    border: 1px solid #dbe5f1;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
    width: 600px;
    max-width: 95vw;
    box-shadow: 0 20px 44px rgba(16, 24, 40, 0.2);
    box-sizing: border-box;
}

.filter-popup.filter-popup-inline {
    display: block;
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 18px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.filter-popup-inline .filter-popup-hero {
    padding: 18px 20px;
    border: 1px solid rgba(225, 234, 246, 0.96);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.98) 100%);
    margin-bottom: 0;
    text-align: left;
}

.filter-popup-inline .filter-popup-hero p {
    margin-left: 0;
}

.filter-popup-inline .filter-popup-section,
.filter-popup-inline .content {
    margin-bottom: 0;
    border: 1px solid #e1eaf6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.filter-popup-inline .content {
    padding: 16px 18px 14px;
}

.filter-popup-hero {
    padding: 4px 8px 14px;
    border-bottom: 1px solid #e5edf9;
    margin-bottom: 18px;
    text-align: center;
}

.filter-popup-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2b6fd6;
}

.filter-popup-hero h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #14345d;
}

.filter-popup-hero p {
    margin: 10px auto 0;
    max-width: 470px;
    color: #4d6488;
    line-height: 1.65;
}

.filter-popup-section {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #e1eaf6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.filter-popup h3 {
    text-align: center;
    color: #0f5ed7;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.filter-popup-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filter-popup-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #18385f;
}

.filter-popup-check input {
    margin: 0;
}

.filter-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f3f5;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-popup-close:hover {
    background: #dfe7f3;
    color: #000;
}

/* Inputs */
.filter-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.filter-settings label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.filter-settings input {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    background: #fbfdff;
}

/* Season progress row */
.season-progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 4px 0 0;
    flex-wrap: wrap;
}

.season-progress-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #304968;
}

.season-progress-container input {
    width: 92px;
    padding: 8px 10px;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    background: #fbfdff;
}

/* Collapsible */
.collapsible {
    background: linear-gradient(135deg, #0d66cf 0%, #1b7af0 100%);
    color: white;
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 14px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -0.01em;
    position: relative;
    box-shadow: 0 12px 26px rgba(10, 103, 209, 0.18);
}

.collapsible:hover {
    background: #0056b3;
}

.collapsible::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.collapsible.active::after {
    content: "▲";
}

/* Dropdown content */
.content {
    display: none;
    overflow: hidden;
    padding: 14px 6px 8px;
}

.content label {
    font-size: 14px;
    color: #304968;
}

/* Popup action buttons */
.apply-filter,
.reset-filter,
.close-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
}

.apply-filter {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.apply-filter:hover {
    box-shadow: var(--fpp-button-shadow-primary-hover);
}

.reset-filter {
    background: linear-gradient(180deg, #fff4f5 0%, #ffe4e8 100%);
    border-color: var(--fpp-button-border-danger);
    box-shadow: var(--fpp-button-shadow-danger);
    color: var(--fpp-button-text-danger);
}

.reset-filter:hover {
    box-shadow: var(--fpp-button-shadow-danger-hover);
}

.close-filter {
    background-color: #6c757d;
    color: white;
}

.close-filter:hover {
    background-color: #545b62;
}

/* ================================
   ODDS HOVER TOOLTIP
   ================================ */

/* ================================
   GLOBAL ODDS TOOLTIP
   ================================ */

.odds-hover-cell {
    cursor: pointer;
}

.odds-hover-trigger {
    color: #007BFF;
    font-weight: 600;
    display: inline-block;
}

.global-odds-tooltip {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px;
    z-index: 999999;
    min-width: 300px;
    max-width: 360px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.global-odds-tooltip.visible {
    display: block;
}

.odds-hover-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.odds-hover-table th {
    background: transparent;
    color: var(--fpp-table-header-text);
    padding: 6px 8px;
    font-size: 12px;
    border: 0;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    text-align: center;
}

.odds-hover-table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    text-align: center;
    white-space: nowrap;
}

.odds-hover-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.odds-hover-table tbody tr:hover {
    background-color: #eef4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .value-bets-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .value-bets-subnav {
        justify-content: stretch;
    }

    .value-bets-subnav-link {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .value-bets-filter-shell > summary {
        padding-left: 18px;
        padding-right: 18px;
    }

    .value-bets-control-card {
        padding: 18px;
    }

    .value-bets-table-card {
        padding: 0;
    }

    .value-bets-control-card,
    .value-bets-table-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .value-bets-control-actions,
    .value-bets-preset-wrap {
        justify-items: stretch;
        justify-content: stretch;
    }

    .value-bets-preset-wrap--full .page-league-filter-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .value-bets-preset-wrap--full .page-league-filter-current {
        text-align: left;
    }

    .value-bets-metrics {
        grid-template-columns: 1fr;
    }

    .value-bets-table th,
    .value-bets-table td {
        font-size: 13px;
        padding: 6px;
    }

    .filter-settings {
        grid-template-columns: 1fr;
    }

    .filter-popup {
        width: 95vw;
        padding: 18px;
    }

    .filter-popup.filter-popup-inline {
        width: 100%;
        padding: 14px;
    }

    .filter-popup-check-grid {
        grid-template-columns: 1fr;
    }

    .value-bets-filter-actions {
        justify-content: stretch;
    }

    .value-bets-bookmaker-grid,
    .value-bets-market-grid {
        grid-template-columns: 1fr;
    }

    .value-bets-filter-actions .apply-filter,
    .value-bets-filter-actions .reset-filter {
        flex: 1 1 0;
    }
}

/* =====================================================
   FILTERED VALUE BETS
===================================================== */

.fv-main {
  width: min(calc(100% - 24px), 1860px);
  margin: 0 auto;
  padding: 28px 12px 36px;
  box-sizing: border-box;
}

.fv-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.fv-hero-copy {
  text-align: center;
}

.fv-kicker,
.fv-board-kicker,
.fv-strategy-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
}

.fv-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 4.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #0f2f62;
}

.fv-hero-copy p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: #48658d;
}

.fv-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.fv-metric-card,
.fv-strategy,
.fv-empty-state,
.fv-filter-panel,
.fv-filter-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dbe8fb;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.fv-metric-card {
  padding: 18px 20px;
  text-align: center;
}

.fv-metric-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.fv-metric-value {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: #0f2f62;
}

.fv-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.fv-board-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
}

.fv-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #dbe8fb;
  background: rgba(255, 255, 255, 0.92);
  color: #48658d;
}

.fv-filter-panel {
  margin: 34px 0 22px;
  padding: 0;
  overflow: hidden;
}

.fv-filter-panel-head {
  margin-bottom: 0;
}

.fv-created-head {
  margin-top: 18px;
}

.fv-create-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 18px 0;
}

.fv-create-toggle,
.fv-filter-actions button,
.fv-close-filters-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
  border-color: var(--fpp-button-border-strong);
  box-shadow: var(--fpp-button-shadow-primary);
  color: var(--fpp-button-text-on-dark);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.fv-create-toggle.is-active,
.fv-create-toggle:hover,
.fv-filter-actions button:hover,
.fv-close-filters-button:hover {
  box-shadow: var(--fpp-button-shadow-primary-hover);
  filter: brightness(1.01);
  transform: translateY(-1px);
}

.fv-create-panel {
  padding: 18px;
  margin: 18px;
  border: 1px solid #dbe8fb;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.fv-create-panel[hidden] {
  display: none;
}

.fv-close-filters-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120, 177, 248, 0.34);
}

.fv-created-empty {
  margin: 18px;
}

.fv-filter-card {
  margin: 12px 18px 0;
  padding: 0;
  overflow: hidden;
}

.fv-filter-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 800;
  color: #0f2f62;
  list-style: none;
}

.fv-filter-card > summary::-webkit-details-marker {
  display: none;
}

.fv-filter-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fv-filter-card > summary small {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.fv-strategy-select-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 111, 229, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
  color: #14345d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fv-strategy-select-button.is-active {
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
  border-color: var(--fpp-button-border-strong);
  color: #ffffff;
}

.fv-filter-form {
  padding: 0 18px 18px;
}

.fv-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.fv-filter-field,
.fv-filter-range,
.fv-filter-range label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #48658d;
}

.fv-filter-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fv-filter-range > span {
  grid-column: 1 / -1;
}

.fv-filter-field input,
.fv-filter-range input {
  min-height: 42px;
  border: 1px solid #c9daf3;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}

.fv-filter-option-block {
  margin-top: 14px;
}

.fv-filter-option-title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #0f2f62;
}

.fv-market-groups {
  display: grid;
  gap: 12px;
}

.fv-market-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe8fb;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.62);
}

.fv-market-group-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.fv-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fv-filter-checks label,
.fv-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #dbe8fb;
  border-radius: 999px;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.fv-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.fv-filter-section-head {
  margin: 18px 0 0;
}

.fv-filter-section-body {
  padding: 18px 0 0;
}

.fv-filter-toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fv-filter-actions-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fv-filter-actions-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.fv-filter-toggle.is-locked {
  opacity: 0.55;
}

.fv-filter-lock-note {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.fv-filter-actions button,
.fv-filter-presets button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
  border-color: var(--fpp-button-border-strong);
  box-shadow: var(--fpp-button-shadow-primary);
  color: var(--fpp-button-text-on-dark);
  font-weight: 800;
  cursor: pointer;
}

.fv-filter-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: #48658d;
}

.fv-filter-delete {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.fv-filter-delete--inline {
  display: inline-flex;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}

.fv-filter-delete button {
  min-height: 38px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  font-weight: 800;
  cursor: pointer;
}

.fv-strategy-close-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
  border-color: var(--fpp-button-border-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--fpp-button-shadow-primary);
}

.fv-strategy-close-button:hover {
  box-shadow: var(--fpp-button-shadow-primary-hover);
  filter: brightness(1.01);
  transform: translateY(-1px);
}

.fv-strategy-close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120, 177, 248, 0.34);
}

.fv-strategy {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.fv-strategy-section,
.fv-strategy--empty {
  display: block;
}

.fv-results-placeholder,
.fv-strategy--empty,
.fv-strategy-section {
  margin-top: 20px;
}

.fv-results-head {
  border-bottom: 0;
}

.fv-results-message {
  margin-top: 20px;
}

.fv-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 18px 8px;
}

table.fv-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 1240px;
  font-size: 15px;
  text-align: center;
  table-layout: fixed;
}

.fv-table th,
.fv-table td {
  padding: 12px 8px;
  font-family: inherit;
}

.fv-table th:nth-child(1),
.fv-table td:nth-child(1) {
  width: 160px;
}

.fv-table th:nth-child(2),
.fv-table td:nth-child(2) {
  width: 70px;
}

.fv-table th:nth-child(3),
.fv-table td:nth-child(3) {
  width: 260px;
}

.fv-table th:nth-child(4),
.fv-table td:nth-child(4) {
  width: 110px;
}

.fv-table th:nth-child(5),
.fv-table td:nth-child(5) {
  width: 160px;
}

.fv-table th:nth-child(6),
.fv-table td:nth-child(6) {
  width: 80px;
}

.fv-table th:nth-child(7),
.fv-table td:nth-child(7) {
  width: 80px;
}

.fv-table th:nth-child(8),
.fv-table td:nth-child(8) {
  width: 70px;
}

.fv-table th:nth-child(9),
.fv-table td:nth-child(9) {
  width: 70px;
}

.fv-table th:nth-child(10),
.fv-table td:nth-child(10) {
  width: 70px;
}

.fv-table th:nth-child(11),
.fv-table td:nth-child(11) {
  width: 80px;
}

.fv-table th:nth-child(12),
.fv-table td:nth-child(12) {
  width: 70px;
}

.fv-table th:nth-child(3),
.fv-table td:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fv-table th:nth-child(14),
.fv-table td:nth-child(14) {
  width: 74px;
  min-width: 74px;
  max-width: 74px;
}

.fv-table thead th {
  background: transparent;
  color: var(--fpp-table-header-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--fpp-table-header-bottom);
  white-space: normal;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
  vertical-align: middle;
}

.fv-table thead th + th {
  border-left: 1px solid var(--fpp-table-header-divider);
}

.fv-sort-button {
  color: inherit;
  white-space: normal;
  line-height: 1.2;
  min-height: 36px;
}

.fv-sort-button span:first-child {
  display: inline-block;
  max-width: 100%;
}

.fv-table tbody td {
  font-size: 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  white-space: nowrap;
  text-align: center;
  color: #14345d;
  vertical-align: middle;
}

.fv-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.045);
}

.fv-link {
  color: #0f5ed7;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fv-link:hover {
  text-decoration: underline;
}

.fv-competition-cell,
.fv-fixture-cell {
  white-space: normal;
  text-align: left;
}

.fv-table tbody td:nth-child(1),
.fv-table tbody td:nth-child(3) {
  text-align: left;
}

.fv-table tbody td:nth-child(5) {
  white-space: normal;
}

.fv-table thead th:nth-child(1) .fv-sort-button,
.fv-table thead th:nth-child(3) .fv-sort-button {
  justify-content: center;
}

.fv-country,
.fv-league {
  display: block;
}

.fv-country {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.fv-league {
  font-weight: 700;
  line-height: 1.3;
  color: #0f2f62;
}

.fv-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
}

.fv-badge-high {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.fv-badge-good {
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.fv-badge-medium {
  background: rgba(249, 115, 22, 0.16);
  color: #9a3412;
}

.fv-badge-poor,
.fv-badge-low {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.fv-badge-none,
.fv-badge-unknown {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.fv-bookmaker-pill {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #14345d;
  font-size: 15px;
  font-weight: 400;
}

.fv-value-cell,
.fv-stake-cell,
.fv-progress-pill {
  font-weight: 400;
  color: #0f2f62;
  font-size: 15px;
}

.fv-progress-pill {
  display: inline;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #14345d;
}

.fv-right {
  text-align: right;
}

.fv-center {
  text-align: center;
}

.fv-empty-state {
  padding: 26px;
}

.fv-empty-copy {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #48658d;
}

/* User filtered value bets: keep dense tables readable without column collisions. */
.fv-table-wrap {
  padding: 14px 14px 8px;
}

table.fv-table {
  min-width: 1540px;
}

.fv-table th,
.fv-table td {
  padding: 12px 10px;
}

.fv-table th:nth-child(1),
.fv-table td:nth-child(1) {
  width: 180px;
}

.fv-table th:nth-child(2),
.fv-table td:nth-child(2) {
  width: 92px;
}

.fv-table th:nth-child(3),
.fv-table td:nth-child(3) {
  width: 250px;
}

.fv-table th:nth-child(4),
.fv-table td:nth-child(4) {
  width: 140px;
}

.fv-table th:nth-child(5),
.fv-table td:nth-child(5) {
  width: 150px;
}

.fv-table th:nth-child(6),
.fv-table td:nth-child(6),
.fv-table th:nth-child(7),
.fv-table td:nth-child(7) {
  width: 86px;
}

.fv-table th:nth-child(8),
.fv-table td:nth-child(8) {
  width: 104px;
}

.fv-table th:nth-child(9),
.fv-table td:nth-child(9),
.fv-table th:nth-child(10),
.fv-table td:nth-child(10) {
  width: 84px;
}

.fv-table th:nth-child(11),
.fv-table td:nth-child(11) {
  width: 88px;
}

.fv-table th:nth-child(12),
.fv-table td:nth-child(12) {
  width: 82px;
}

.fv-table th:nth-child(13),
.fv-table td:nth-child(13) {
  width: 108px;
}

.fv-table th:nth-child(14),
.fv-table td:nth-child(14) {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
}

.fv-table tbody td {
  font-size: 13px;
  line-height: 1.35;
}

.fv-table tbody td:nth-child(4),
.fv-table tbody td:nth-child(5),
.fv-table tbody td:nth-child(8) {
  white-space: normal;
}

.fv-fixture-cell .fv-link {
  display: block;
  max-width: 100%;
}

.fv-bookmaker-pill,
.fv-value-cell,
.fv-stake-cell,
.fv-progress-pill {
  font-size: 13px;
}

@media (max-width: 980px) {
  .fv-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fv-filter-field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .fv-main {
    width: min(calc(100% - 12px), 1860px);
    padding: 18px 6px 28px;
  }

  .fv-hero-copy h1 {
    font-size: 38px;
  }

  .fv-filter-grid {
    grid-template-columns: 1fr;
  }

  .fv-filter-card > summary,
  .fv-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fv-filter-checks label,
  .fv-filter-toggle {
    width: 100%;
    border-radius: 10px;
  }

  .fv-filter-card-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    width: 100%;
  }

  .fv-close-filters-button {
    width: 100%;
  }

  .fv-filter-actions-buttons {
    width: 100%;
    flex-direction: column;
  }

  .fv-filter-actions-buttons button {
    width: 100%;
  }

  .fv-table-wrap,
  .fv-create-wrap,
  .fv-create-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =====================================================
   FILTERED VALUE BETS RESULTS
===================================================== */

.fvr-main {
  width: min(99vw, 1860px);
  margin: 0 auto;
  padding: 28px 8px 36px;
  box-sizing: border-box;
}

.fvr-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.fvr-hero-copy {
  text-align: center;
  max-width: 860px;
}

.fvr-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #0f2f62;
}

.fvr-hero-copy p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: #48658d;
}

.fvr-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1320px;
  margin-top: 44px;
}

.fvr-metric-card,
.fvr-strategy,
.fvr-empty-state {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dbe8fb;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.fvr-metric-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  min-height: 168px;
  padding: 22px 24px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
  border: 1px solid rgba(125, 168, 236, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 22px 46px rgba(8, 29, 68, 0.14);
}

.fvr-metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 46%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.fvr-metric-card > * {
  position: relative;
  z-index: 1;
}

.fvr-metric-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.34);
  background: rgba(219, 234, 254, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2b6fd6;
}

.fvr-metric-value {
  display: block;
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  line-height: 1;
  font-weight: 800;
  color: #0f2f62;
}

.fvr-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #dbe8fb;
  background: rgba(255, 255, 255, 0.92);
  color: #48658d;
}

.fvr-strategy {
  margin-top: 22px;
  overflow: hidden;
}

.fvr-strategy > summary,
.fvr-month > summary {
  list-style: none;
}

.fvr-strategy > summary::-webkit-details-marker,
.fvr-month > summary::-webkit-details-marker {
  display: none;
}

.fvr-strategy-head {
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.fvr-strategy-head .fvr-left,
.fvr-month-head .fvr-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.fvr-strategy-title,
.fvr-month-title {
  font-weight: 800;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  color: #fff;
  line-height: 1.2;
}

.fvr-meta {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.fvr-strategy-head .fvr-right,
.fvr-month-head .fvr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.fvr-pl {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}

.fvr-pl-divider {
  opacity: 0.7;
  color: currentColor;
}

.fvr-strategy-body {
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.fvr-delete-strategy {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.fvr-delete-strategy button,
.fvr-delete-row button {
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fvr-delete-strategy button {
  min-height: 38px;
  padding: 0 14px;
}

.fvr-delete-row {
  margin: 0;
}

.fvr-delete-row button {
  min-height: 32px;
  padding: 0 10px;
}

.fvr-month {
  border: 1px solid #dbe8fb;
  border-radius: 22px;
  margin-top: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.fvr-month-head {
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.fvr-strategy-head .fvr-pl {
  color: rgba(255, 255, 255, 0.96);
}

.fvr-strategy-head .fvr-pl.fvr-pl-positive {
  color: #dcfce7;
}

.fvr-strategy-head .fvr-pl.fvr-pl-negative {
  color: #fee2e2;
}

.fvr-month-head .fvr-pl.fvr-pl-positive {
  color: #dcfce7;
}

.fvr-month-head .fvr-pl.fvr-pl-negative {
  color: #fee2e2;
}

.fvr-strategy-head .fvr-pl-divider {
  color: rgba(255, 255, 255, 0.82);
}

.fvr-month-head .fvr-pl-divider {
  color: rgba(255, 255, 255, 0.82);
}

.fvr-table-scroll-container {
  width: 100%;
}

.fvr-table-scroll-top {
  width: 100%;
  height: 18px;
  margin-bottom: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.fvr-table-scrollbar-inner {
  width: 100%;
  height: 1px;
}

.fvr-table-wrap {
  width: 100%;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
  overflow-y: visible;
  margin-top: 0;
  padding: 0;
}

table.fvr-table {
  width: 100%;
  min-width: 1360px;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  font-size: 15px;
  text-align: center;
}

.fvr-table thead th {
  background: transparent;
  color: var(--fpp-table-header-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid var(--fpp-table-header-bottom);
  white-space: normal;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
}

.fvr-table thead th + th {
  border-left: 1px solid var(--fpp-table-header-divider);
}

.fvr-table tbody td {
  font-size: 15px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #14345d;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.3;
}

.fvr-table tbody td:nth-child(1),
.fvr-table tbody td:nth-child(3) {
  text-align: left;
}

.fvr-table tbody td:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.fvr-table th:nth-child(1),
.fvr-table td:nth-child(1) {
  width: 220px;
}

.fvr-table th:nth-child(2),
.fvr-table td:nth-child(2) {
  width: 110px;
}

.fvr-table th:nth-child(3),
.fvr-table td:nth-child(3) {
  width: 280px;
}

.fvr-table th:nth-child(4),
.fvr-table td:nth-child(4) {
  width: 118px;
}

.fvr-table th:nth-child(5),
.fvr-table td:nth-child(5) {
  width: 160px;
}

.fvr-table th:nth-child(6),
.fvr-table td:nth-child(6) {
  width: 120px;
}

.fvr-table th:nth-child(7),
.fvr-table td:nth-child(7),
.fvr-table th:nth-child(8),
.fvr-table td:nth-child(8),
.fvr-table th:nth-child(9),
.fvr-table td:nth-child(9),
.fvr-table th:nth-child(10),
.fvr-table td:nth-child(10),
.fvr-table th:nth-child(11),
.fvr-table td:nth-child(11),
.fvr-table th:nth-child(12),
.fvr-table td:nth-child(12),
.fvr-table th:nth-child(13),
.fvr-table td:nth-child(13) {
  width: 96px;
}

.fvr-table thead th:last-child,
.fvr-table tbody td:last-child {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
}

.fvr-table tbody tr:nth-child(even) {
  background-color: #f8fbff;
}

.fvr-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.045);
}

.fvr-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
}

.fvr-badge-high {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.fvr-badge-good {
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.fvr-badge-medium {
  background: rgba(249, 115, 22, 0.16);
  color: #9a3412;
}

.fvr-badge-poor,
.fvr-badge-low {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.fvr-badge-none,
.fvr-badge-unknown {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.fvr-competition-cell,
.fvr-fixture-cell {
  white-space: normal;
  text-align: left;
}

.fvr-country,
.fvr-league {
  display: block;
}

.fvr-country {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.fvr-league {
  font-weight: 700;
  line-height: 1.3;
  font-size: 15px;
  color: #0f2f62;
}

.fvr-bookmaker-pill {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #14345d;
  font-size: 15px;
  font-weight: 400;
}

.fvr-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.fvr-result-win {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.fvr-result-loss {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.fvr-result-pending {
  background: rgba(37, 99, 235, 0.12);
  color: #0b5ed7;
}

.fvr-right {
  text-align: right;
}

.fvr-center {
  text-align: center;
}

.fvr-empty-state {
  padding: 26px;
}

.fvr-empty-copy {
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #48658d;
}

@media (max-width: 1180px) {
  .fv-hero,
  .fvr-hero {
    grid-template-columns: 1fr;
  }

  .fv-metrics {
    grid-template-columns: 1fr;
  }

  .fvr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fv-board-head,
  .fv-strategy-head,
  .fvr-strategy-head,
  .fvr-month-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fv-strategy-summary,
  .fvr-strategy-head .fvr-right,
  .fvr-month-head .fvr-right {
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .fvr-metrics {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   AI BETS
===================================================== */

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.ai-section {
    margin-bottom: 40px;
}

.ai-section h2 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

/* GRID */
.ai-page-header {
    margin-bottom: 22px;
}

.ai-page-header p {
    max-width: 720px;
}

.ai-bets-subnav {
    margin-top: 20px;
}

.ai-bets-preset-wrap {
    margin-top: 4px;
}

.ai-bets-controls-shell {
    width: min(100%, 1120px);
    margin: 20px auto 0;
}

.ai-bets-controls-shell > summary {
    position: relative;
}

.ai-bets-controls-caret {
    position: absolute;
    right: 24px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.18s ease;
}

.ai-bets-controls-shell[open] .ai-bets-controls-caret {
    transform: translateY(-35%) rotate(225deg);
}

.ai-bets-controls-body {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.ai-bets-controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ai-bets-controls-card {
    border: 1px solid rgba(193, 214, 241, 0.94);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    padding: 18px 20px;
}

.ai-bets-controls-card-head {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.ai-bets-controls-label,
.ai-overview-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(134, 176, 232, 0.58);
    background: rgba(236, 245, 255, 0.9);
    color: #27538f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-bets-model-toggle {
    width: 100%;
    margin: 0;
    justify-content: center;
}

.ai-sort-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ai-sort-field span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.ai-sort-field select {
    height: 48px;
    padding: 0 14px;
    border: 1px solid #c8d8eb;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ai-sort-field select:focus {
    outline: none;
    border-color: #278af6;
    box-shadow: 0 0 0 3px rgba(39, 138, 246, 0.15);
}

.ai-market-filter-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ai-market-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ai-market-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-market-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 229, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary);
    color: var(--fpp-button-text-on-light);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.ai-market-chip span:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.ai-market-chip input:checked + span {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.ai-model-view[hidden],
.ai-results-model-view[hidden] {
    display: none !important;
}

.ai-model-view,
.ai-results-model-view {
    display: grid;
    gap: 24px;
    width: min(100%, 1120px);
    margin: 24px auto 0;
}

.ai-bets-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 0;
}

.ai-bets-overview-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 20px 22px 22px;
    border: 1px solid rgba(177, 208, 246, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 255, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    text-align: center;
}

.ai-bets-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(102, 174, 255, 0.16) 0%, rgba(102, 174, 255, 0) 44%);
    pointer-events: none;
}

.ai-bets-overview-card > * {
    position: relative;
    z-index: 1;
}

.ai-overview-kicker {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 12px;
}

.ai-overview-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #577198;
    margin-bottom: 10px;
}

.ai-overview-value {
    display: block;
    font-size: clamp(2rem, 2.5vw, 2.7rem);
    line-height: 1;
    color: #102b4d;
    text-align: center;
}

.ai-section {
    margin-bottom: 0;
    border: 1px solid var(--fpp-card-outline);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: var(--fpp-shadow-soft);
    overflow: hidden;
}

.ai-section-header {
    margin-bottom: 0;
}

.ai-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--fpp-block-header-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-bets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 22px;
}

.ai-bet-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(188, 212, 242, 0.92);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    box-sizing: border-box;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ai-bet-card:hover {
    transform: translateY(-2px);
    border-color: #94bbea;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.ai-card-header {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ai-bet-card .fixture {
    font-weight: 800;
    font-size: 1.22rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #10233f;
    min-height: 0;
}

.ai-bet-card .fixture-link {
    display: inline-block;
    text-decoration: none;
    color: #10233f;
}

.ai-bet-card .fixture-link:hover {
    color: #0f61cf;
    text-decoration: none;
}

.fhg-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fhg-preset-wrap,
.fhg-controls-shell,
.fhg-list-section {
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
}

.fhg-controls-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(177, 208, 246, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 255, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(11, 36, 82, 0.08);
}

.fhg-date-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.fhg-date-button {
    min-width: 100px;
}

.fhg-history-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 0 0 auto;
}

.fhg-history-label {
    color: #35506f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fhg-history-select {
    min-width: 180px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #c8d7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #18304b;
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fhg-history-select:disabled {
    color: #6a7d98;
    background: #f7faff;
    cursor: not-allowed;
}

.fhg-list-block {
    border: 1px solid var(--fpp-card-outline);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: var(--fpp-shadow-soft);
}

.fhg-list-section > summary {
    position: relative;
    cursor: pointer;
    list-style: none;
}

.fhg-list-section > summary::-webkit-details-marker {
    display: none;
}

.fhg-section-summary {
    padding-right: 60px;
}

.fhg-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--fpp-block-header-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fhg-section-caret {
    position: absolute;
    right: 24px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.18s ease;
}

.fhg-list-section[open] .fhg-section-caret {
    transform: translateY(-35%) rotate(225deg);
}

.fhg-section-body {
    display: grid;
    gap: 20px;
    padding: 22px;
}

.fhg-section-body-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fhg-section-body-head p {
    margin: 0;
    color: #557091;
    font-size: 0.96rem;
    line-height: 1.6;
}

.fhg-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border: 1px solid var(--fpp-button-border-strong);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--fpp-button-shadow-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fhg-page .fhg-download-button,
.fhg-page .fhg-download-button:visited,
.fhg-page .fhg-download-button:hover,
.fhg-page .fhg-download-button:focus-visible,
.fhg-page .fhg-download-button:active {
    color: #ffffff;
    text-decoration: none;
}

.fhg-download-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-primary-hover);
    filter: brightness(1.01);
}

.fhg-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 16px;
}

.fhg-summary-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(177, 208, 246, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 255, 0.98) 100%);
    box-shadow: 0 16px 30px rgba(17, 41, 77, 0.08);
    text-align: center;
}

.fhg-summary-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.4em;
    color: #54749a;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.fhg-summary-value {
    display: block;
    margin-top: 0;
    color: #102b4d;
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    line-height: 1;
}

.fhg-table-section {
    border: 1px solid rgba(207, 224, 245, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 41, 77, 0.08);
    overflow: hidden;
}

.fhg-table-wrap {
    overflow-x: auto;
}

.fhg-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1060px;
}

.fhg-table thead {
    background: var(--fpp-table-header-gradient);
}

.fhg-table thead th {
    padding: 14px 16px;
    background: transparent;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    color: var(--fpp-table-header-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
}

.fhg-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.fhg-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #edf2f8;
    color: #17314f;
    font-size: 14px;
    vertical-align: middle;
    text-align: center;
}

.fhg-table tbody tr:hover td {
    background: #f7fbff;
}

.fhg-table tbody tr.is-hit td {
    background: #f0fff5;
}

.fhg-table tbody tr.is-miss td {
    background: #fff7f7;
}

.fhg-col-country,
.fhg-col-league,
.fhg-col-fixture,
.fhg-col-strategy {
    text-align: left !important;
}

.fhg-col-time,
.fhg-col-live,
.fhg-col-elapsed,
.fhg-col-odds,
.fhg-col-hit,
.fhg-col-target {
    text-align: center !important;
}

.fhg-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    background: #eef4fc;
    color: #17314f;
    font-weight: 800;
}

.fhg-empty-state {
    padding: 28px 22px;
    color: #4a6686;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
}

@media (max-width: 900px) {
    .fhg-controls-shell,
    .fhg-section-body-head {
        flex-direction: column;
        align-items: stretch;
    }

    .fhg-history-wrap {
        width: 100%;
        justify-content: flex-start;
    }

    .fhg-history-select {
        min-width: 0;
        width: 100%;
    }

    .fhg-date-nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .fhg-section-summary {
        padding-right: 52px;
    }

    .fhg-section-count {
        order: 3;
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }

    .fhg-summary {
        grid-template-columns: 1fr;
    }

    .fhg-table {
        min-width: 920px;
    }
}

@media (max-width: 560px) {
    .fhg-controls-shell,
    .fhg-section-body {
        padding: 18px;
    }

    .fhg-history-wrap {
        align-items: stretch;
    }

    .fhg-date-nav {
        justify-content: flex-start;
    }
}

.ai-bet-card .competition {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #27538f;
    margin-bottom: 14px;
    font-weight: 700;
    min-height: 0;
}

.ai-bet-card .meta-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
}

.ai-bet-card .meta-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
    color: #17314f;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.ai-bet-card .meta-line strong {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a77a0;
}

.ai-bet-card .meta-line span {
    text-align: left;
    color: #12304f;
    font-weight: 700;
}

.ai-bet-card--primary .competition {
    margin-bottom: 12px;
}

.ai-card-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-card-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(207, 224, 245, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
    color: #17314f;
    font-size: 0.8rem;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ai-card-meta-chip strong {
    color: #5a77a0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-card-meta-chip span {
    color: #12304f;
    font-weight: 700;
}

.ai-card-status-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-icon {
    line-height: 1;
}

.status-pill.pending {
    background: #eef2f7;
    color: #425466;
}

.status-pill.awaiting-result {
    background: #fff4db;
    color: #8a6116;
}

.status-pill.won {
    background: #e6f7ec;
    color: #137a3b;
}

.status-pill.lost {
    background: #fdecec;
    color: #b42318;
}

/* NUMBERS */
.numbers {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    font-size: 13px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
    padding: 2px 0;
}

.stat-row strong {
    font-weight: 700;
    color: #111;
    max-width: 58%;
}

.ai-stat-tooltip {
    position: relative;
    cursor: help;
}

.ai-stat-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: min(260px, 70vw);
    padding: 8px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.ai-stat-tooltip::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: calc(100% + 4px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
}

.ai-stat-tooltip:hover::after,
.ai-stat-tooltip:hover::before,
.ai-stat-tooltip:focus::after,
.ai-stat-tooltip:focus::before {
    opacity: 1;
    visibility: visible;
}

.stat-row span {
    text-align: right;
    color: #222;
    min-width: 70px;
}

.ai-card-metrics-grid {
    align-items: stretch;
}

.ai-card-metric {
    padding: 14px 12px;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.98) 100%);
    display: grid;
    gap: 6px;
    align-content: start;
    justify-items: center;
    text-align: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.ai-card-metric-accent {
    grid-column: auto;
    background: linear-gradient(180deg, rgba(237, 245, 255, 0.98) 0%, rgba(225, 238, 255, 0.98) 100%);
    border-color: #a9c9ef;
    box-shadow: 0 12px 24px rgba(39, 138, 246, 0.08);
}

.ai-card-metric-kelly {
    grid-column: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border-color: #cfe0f5;
}

.ai-card-metric-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #63789a;
    line-height: 1.2;
}

.ai-card-metric-value {
    color: #12233f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ai-card-metric-accent .ai-card-metric-label,
.ai-card-metric-accent .ai-card-metric-value {
    color: #12304f;
}

.ai-bet-card .value-bets-track-form {
    margin-top: auto;
    justify-content: center;
}

.ai-bet-card .value-bets-track-button {
    width: auto;
    border-radius: 999px;
}

.ai-bets-empty-state {
    margin: 22px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .ai-bets-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .ai-bets-controls-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .ai-bets-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-bets-grid,
    .numbers,
    .meta-block {
        grid-template-columns: 1fr 1fr;
    }

    .ai-card-meta-strip {
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .page-wrapper {
        padding: 20px 14px 32px;
    }

    .ai-bets-controls-body,
    .ai-bets-grid,
    .numbers,
    .meta-block,
    .ai-bets-overview {
        grid-template-columns: 1fr;
    }

    .ai-bets-controls-body {
        padding: 18px;
    }

    .ai-bets-grid {
        padding: 18px;
    }

    .ai-bet-card {
        padding: 18px;
    }

    .ai-bets-controls-caret {
        right: 20px;
    }
}

/* =====================================================
   AI BETS RESULTS
===================================================== */

.results-strategy-section {
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid var(--fpp-card-outline);
    border-radius: 12px;
    overflow: hidden;
}

.results-strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--fpp-block-header-text);
}

.results-strategy-title {
    flex: 1 1 auto;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.results-bets-count {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fpp-block-header-text-soft);
}

.results-strategy-summary {
    display: flex;
    gap: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fpp-block-header-text-soft);
    text-align: center;
}

.results-table-wrapper {
    padding: 14px;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.results-table th,
.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: middle;
}

.results-table th {
    background: transparent;
    color: var(--fpp-table-header-text);
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    font-weight: 700;
}

.results-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.results-table tbody tr:hover {
    background: #fafafa;
}

.results-month-block {
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.results-month-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}

.results-month-summary::-webkit-details-marker {
    display: none;
}

.results-strategy-header {
    cursor: pointer;
    list-style: none;
}

.results-strategy-header::-webkit-details-marker {
    display: none;
}

.results-overall-summary {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.model-report-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 0 36px;
    display: grid;
    gap: 18px;
}

.model-report-hero {
    padding: 24px 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.model-report-kicker {
    margin: 0 0 6px;
    color: #f97316;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.model-report-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
}

.model-report-hero p:last-child {
    margin: 10px 0 0;
    color: #55657d;
    max-width: 760px;
}

.model-report-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.model-report-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5ecf6;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

.model-report-card-head h2 {
    margin: 0;
    font-size: 22px;
}

.model-report-meta,
.model-report-path {
    margin: 6px 0 0;
    color: #607089;
    font-size: 13px;
}

.model-report-path {
    word-break: break-all;
}

.model-report-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-content: flex-start;
}

.model-report-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.model-report-pill-accent {
    background: #fff4e8;
    color: #c2410c;
}

.model-report-pill-group-toggle {
    justify-content: flex-start;
    padding: 0 4px;
}

.model-report-toggle {
    border: 1px solid #d9e4fb;
    cursor: pointer;
    transition: all 0.18s ease;
}

.model-report-toggle.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.model-report-link,
.model-report-link:visited {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.model-report-link:hover {
    text-decoration: underline;
}

.model-report-strategy-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.model-report-strategy {
    border: 1px solid #e4eaf5;
    border-radius: 18px;
    overflow: hidden;
    background: #fbfdff;
}

.model-report-strategy-summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background: #ffffff;
}

.model-report-strategy-summary::-webkit-details-marker {
    display: none;
}

.model-report-summary-line {
    margin-top: 4px;
    color: #5d6d85;
    font-size: 13px;
    font-weight: 600;
}

.model-report-roi-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-content: flex-start;
}

.model-report-roi {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
}

.model-report-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.model-report-stat-card {
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e6edf7;
}

.model-report-stat-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.model-report-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 18px;
    line-height: 1.1;
}

.model-report-table-shell {
    padding: 0 16px 16px;
}

.model-report-table-shell h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #23324a;
}

.model-report-table {
    border: 1px solid #e6edf7;
    border-radius: 14px;
    overflow: hidden;
}

.model-report-empty {
    padding: 18px 20px;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .model-report-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .model-report-card-head,
    .model-report-strategy-summary {
        flex-direction: column;
    }

    .model-report-pill-group,
    .model-report-roi-badges {
        justify-content: flex-start;
    }

    .model-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .model-report-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LADDER BUILDER
===================================================== */

.ladder-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.ladder-header {
    margin-bottom: 20px;
    padding: 4px 2px 10px;
    text-align: center;
}

.ladder-header h1 {
    margin: 0 0 8px 0;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ladder-header p {
    margin: 0;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    color: #526071;
    font-size: 16px;
    line-height: 1.5;
}

.ladder-create-section {
    margin: 0 0 18px;
}

.ladder-create-body {
    max-width: none;
    padding: 24px 24px 28px;
}

.ladder-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ladder-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex: 1 1 150px;
    min-width: 150px;
}

.ladder-field span {
    font-size: 12px;
    font-weight: 700;
    color: #314158;
    text-transform: none;
    letter-spacing: 0;
}

.ladder-tooltip-target {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    cursor: help;
}

.ladder-tooltip-target::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(320px, 68vw);
    min-width: 220px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.ladder-tooltip-target::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
}

.ladder-tooltip-target:hover::after,
.ladder-tooltip-target:hover::before,
.ladder-tooltip-target:focus::after,
.ladder-tooltip-target:focus::before {
    opacity: 1;
    visibility: visible;
}

.ladder-checkbox .ladder-tooltip-target,
.ladder-summary strong.ladder-tooltip-target {
    color: inherit;
    font: inherit;
}

.ladder-field input,
.ladder-field select {
    height: 44px;
    border: 1px solid #c6d5e6;
    border-radius: 12px;
    padding: 0 13px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ladder-field input:focus,
.ladder-field select:focus {
    outline: none;
    border-color: #7db6ff;
    box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.12);
}

.ladder-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    height: 40px;
    white-space: nowrap;
}

.ladder-checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    min-height: 40px;
    align-self: end;
    flex: 1 1 360px;
}

.ladder-build-button {
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b63ce 0%, #1a7ff3 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(11, 99, 206, 0.22);
}

.ladder-build-button:hover {
    background: linear-gradient(135deg, #0954ae 0%, #156ed6 100%);
}

.ladder-info-panel {
    margin: 18px 0;
    border: 1px solid rgba(35, 86, 176, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 18px 36px rgba(11, 36, 82, 0.08);
    overflow: hidden;
}

.ladder-info-summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 18px 56px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    text-align: center;
    color: var(--fpp-block-header-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(135deg, var(--fpp-block-header-start) 0%, var(--fpp-block-header-mid) 56%, var(--fpp-block-header-end) 100%);
    border-bottom: 1px solid rgba(7, 27, 67, 0.28);
    box-shadow:
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2);
}

.ladder-info-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 36%);
    pointer-events: none;
}

.ladder-info-summary > * {
    position: relative;
    z-index: 1;
}

.ladder-info-summary::-webkit-details-marker {
    display: none;
}

.ladder-info-summary-title {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ladder-info-caret {
    position: absolute;
    right: 24px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-right: 2px solid rgba(248, 251, 255, 0.96);
    border-bottom: 2px solid rgba(248, 251, 255, 0.96);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.ladder-info-panel[open] .ladder-info-caret {
    transform: translateY(-38%) rotate(225deg);
}

.ladder-info-summary:hover,
.ladder-info-panel[open] .ladder-info-summary {
    filter: brightness(1.02);
}

.ladder-info-summary:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2),
        0 0 0 4px rgba(125, 211, 252, 0.18);
}

.ladder-info-body {
    display: grid;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 100%);
}

.ladder-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    box-shadow: none;
}

.ladder-summary-card {
    display: grid;
    gap: 10px;
    align-content: center;
    justify-items: center;
    min-height: 108px;
    padding: 16px 14px;
    text-align: center;
    border: 1px solid rgba(42, 96, 188, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 16px 30px rgba(11, 36, 82, 0.08);
}

.ladder-summary strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    margin: 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    border-radius: 999px;
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.45;
}

.ladder-summary-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ladder-stop-reason {
    margin: 0;
    padding: 14px 16px;
    background: #fff7e6;
    border: 1px solid #f3d18f;
    border-radius: 14px;
    color: #8a5a00;
    font-size: 14px;
}

.ladder-rules-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #d7e3f3;
    border-radius: 18px;
    padding: 16px;
    margin: 0;
    box-shadow: 0 10px 24px rgba(12, 31, 63, 0.05);
}

.ladder-rules-card h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
}

.ladder-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ladder-rule-block {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
    border: 1px solid #d9e5f4;
    font-size: 13px;
    line-height: 1.6;
}

.ladder-rule-block strong {
    display: block;
    margin-bottom: 8px;
    color: #0b63ce;
    font-size: 14px;
}

.ladder-steps {
    display: grid;
    gap: 16px;
}

.ladder-step-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(42, 96, 188, 0.2);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 34px rgba(11, 36, 82, 0.08);
}

.ladder-step-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ladder-step-summary {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.ladder-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.22);
    background: rgba(237, 245, 255, 0.92);
    font-size: 11px;
    font-weight: 800;
    color: #0b63ce;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.ladder-fixture-link {
    color: #0f172a;
    font-size: clamp(1.12rem, 1.9vw, 1.38rem);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ladder-fixture-link:hover {
    text-decoration: underline;
    color: #0b63ce;
}

.ladder-fixture-link-locked {
    color: #334155;
    opacity: 0.9;
}

.ladder-step-meta {
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.ladder-step-meta-locked {
    color: #475569;
    font-weight: 600;
}

.ladder-step-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ladder-step-meta-row-locked {
    opacity: 0.95;
}

.ladder-step-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.2);
    background: linear-gradient(180deg, #f6faff 0%, #ebf3ff 100%);
    color: #244a7a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ladder-step-meta-pill-locked {
    color: #526071;
}

.ladder-step-primary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 10px;
    flex: 0 0 auto;
}

.ladder-step-primary-pill {
    display: grid;
    gap: 6px;
    min-width: 112px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 96, 188, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 12px 24px rgba(11, 36, 82, 0.07);
    text-align: center;
}

.ladder-step-primary-pill span {
    color: #4b5b70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ladder-step-primary-pill strong {
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.2;
}

.ladder-step-stats {
    display: none;
}

.ladder-step-details {
    margin-top: 14px;
    border: 1px solid rgba(185, 206, 235, 0.72);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(11, 36, 82, 0.05);
    overflow: hidden;
}

.ladder-step-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(238, 246, 255, 0.99) 100%);
    border-bottom: 1px solid rgba(154, 181, 221, 0.3);
    color: #173a70;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ladder-step-details-summary::-webkit-details-marker {
    display: none;
}

.ladder-step-details-label {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.ladder-step-details-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid #1f5fbd;
    border-bottom: 2px solid #1f5fbd;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.ladder-step-details[open] .ladder-step-details-caret {
    transform: rotate(225deg);
}

.ladder-step-details-summary:hover,
.ladder-step-details[open] .ladder-step-details-summary {
    box-shadow: 0 12px 24px rgba(11, 36, 82, 0.06);
}

.ladder-step-details-summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.12);
}

.ladder-step-details-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.ladder-step-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.ladder-step-detail-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(42, 96, 188, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    text-align: center;
}

.ladder-step-detail-card strong {
    color: #4b5b70;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
}

.ladder-step-detail-card span {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.ladder-support-box {
    border: 1px solid rgba(42, 96, 188, 0.14);
    background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
    border-radius: 14px;
    padding: 14px;
}

.ladder-fixture-text {
    display: inline-block;
}

.ladder-combo-list {
    display: grid;
    gap: 10px;
    margin: 0 0 14px 0;
    padding: 14px;
    border: 1px solid rgba(42, 96, 188, 0.14);
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
    border-radius: 14px;
}

.ladder-combo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ladder-combo-link {
    color: #0b63ce;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ladder-combo-link:hover {
    text-decoration: underline;
}

.ladder-combo-item span {
    color: #64748b;
    font-size: 12px;
}

.ladder-support-box strong {
    display: block;
    margin-bottom: 8px;
    color: #0b63ce;
    font-size: 0.9rem;
}

.ladder-support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font-size: 13px;
}

.ladder-withdraw-marker {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #e8f7ec;
    border: 1px solid #bfe3c8;
    color: #126a36;
    font-size: 13px;
    font-weight: 700;
}

.ladder-empty-state {
    margin-top: 18px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 22px;
    color: #475569;
    text-align: center;
}

@media (max-width: 1100px) {
    .ladder-checkbox-group {
        flex: 1 1 100%;
    }

    .ladder-rules-grid,
    .ladder-step-stats,
    .ladder-support-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ladder-page {
        padding: 20px 14px 32px;
    }

    .ladder-create-body {
        padding: 18px;
    }

    .ladder-info-summary {
        min-height: 64px;
        padding: 18px 48px 18px 18px;
    }

    .ladder-info-caret {
        right: 18px;
    }

    .ladder-info-body {
        padding: 14px;
    }

    .ladder-summary {
        grid-template-columns: 1fr;
    }

    .ladder-rules-grid,
    .ladder-step-stats,
    .ladder-support-list {
        grid-template-columns: 1fr;
    }

    .ladder-field,
    .ladder-checkbox-group,
    .ladder-build-button {
        flex: 1 1 100%;
    }

    .ladder-build-button {
        margin-left: 0;
    }

    .ladder-step-top {
        flex-direction: column;
    }

    .ladder-step-primary-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ladder-step-primary-pill {
        min-width: 0;
    }

    .ladder-step-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ODDS CONVERTER
===================================================== */

.odds-converter-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 48px;
}

.odds-converter-header {
    text-align: center;
    margin-bottom: 26px;
}

.odds-converter-subheader {
    margin-top: 44px;
}

.odds-converter-header h1 {
    margin: 0 0 10px 0;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.odds-converter-subheader h2 {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.odds-converter-header p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.5;
    color: #526071;
}

.odds-converter-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d5e2f2;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(12, 31, 63, 0.10);
}

.odds-converter-section {
    padding: 0;
    overflow: hidden;
}

.odds-converter-section-body {
    padding: 26px;
}

.odds-converter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.odds-converter-purpose {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fbfe 0%, #f3f8ff 100%);
    border: 1px solid #dfe9f5;
    color: #526071;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.odds-converter-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.odds-converter-field span {
    font-size: 13px;
    font-weight: 700;
    color: #314158;
    letter-spacing: 0.01em;
}

.odds-converter-field input {
    height: 56px;
    border: 1px solid #c3d4e8;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.odds-converter-field input:focus {
    outline: none;
    border-color: #7db6ff;
    box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.10);
    transform: translateY(-1px);
}

.odds-converter-input-wrap {
    position: relative;
}

.odds-converter-input-wrap input {
    padding-right: 46px;
    width: 100%;
}

.odds-converter-suffix {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #526071;
    pointer-events: none;
}

.odds-converter-helper {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fe 100%);
    border: 1px solid #dfe9f5;
    color: #526071;
    font-size: 14px;
    text-align: center;
}

.odds-converter-helper-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.odds-converter-helper-split span:last-child {
    flex: 0 0 auto;
    font-weight: 700;
    color: #0b63ce;
    white-space: nowrap;
}

.kelly-card {
    margin-top: 0;
}

.kelly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.kelly-fraction-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #d7e3f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fe 100%);
}

.kelly-fraction-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kelly-fraction-label-row span {
    font-size: 13px;
    font-weight: 700;
    color: #314158;
}

.kelly-fraction-value-wrap input {
    width: 72px;
    height: 42px;
    border: 1px solid #c6d5e6;
    border-radius: 14px;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}

.kelly-range {
    width: 100%;
    accent-color: #0b63ce;
}

.kelly-range-scale {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #526071;
    text-align: center;
}

.kelly-fraction-note {
    font-size: 12px;
    line-height: 1.5;
    color: #526071;
    text-align: left;
}

.kelly-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.kelly-reset-button {
    height: 44px;
    padding: 0 22px;
    border: 1px solid #c6d5e6;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kelly-reset-button:hover {
    border-color: #7db6ff;
    box-shadow: 0 8px 18px rgba(11, 99, 206, 0.12);
    transform: translateY(-1px);
}

.kelly-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.kelly-summary-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kelly-summary-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #d7e3f3;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.kelly-summary-card span {
    font-size: 12px;
    font-weight: 700;
    color: #526071;
}

.kelly-summary-card strong {
    font-size: 28px;
    line-height: 1.1;
    color: #0f172a;
}

.kelly-summary-text {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e5edf7;
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fe 100%);
    color: #405066;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.calculator-subnav {
    margin-bottom: 4px;
}

.asian-lines-section {
    margin-top: 4px;
}

.asian-lines-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
}

.asian-lines-toolbar-field {
    flex: 1 1 220px;
}

.asian-lines-count-field {
    max-width: 220px;
}

.asian-lines-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.asian-lines-button,
.asian-lines-secondary-button,
.asian-lines-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.asian-lines-button {
    border: 1px solid var(--fpp-button-border-strong);
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    color: #ffffff;
    box-shadow: var(--fpp-button-shadow-primary);
}

.asian-lines-button:hover,
.asian-lines-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-primary-hover);
    filter: brightness(1.02);
}

.asian-lines-secondary-button,
.asian-lines-remove-button {
    border: 1px solid rgba(31, 111, 229, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    color: var(--fpp-button-text-on-light);
    box-shadow: var(--fpp-button-shadow-secondary);
}

.asian-lines-secondary-button:hover,
.asian-lines-secondary-button:focus-visible,
.asian-lines-remove-button:hover,
.asian-lines-remove-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    border-color: rgba(31, 111, 229, 0.5);
}

.asian-lines-remove-button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.asian-lines-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #dfe9f5;
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fe 100%);
    color: #405066;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.asian-lines-message.is-error {
    border-color: rgba(194, 65, 12, 0.22);
    background: linear-gradient(180deg, #fff8f1 0%, #ffefe3 100%);
    color: #9a3412;
}

.asian-lines-leg-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.asian-lines-leg-card,
.asian-lines-breakdown-card {
    border: 1px solid #d8e4f3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 16px 30px rgba(12, 31, 63, 0.08);
}

.asian-lines-leg-card {
    padding: 20px;
}

.asian-lines-leg-card-head,
.asian-lines-breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.asian-lines-leg-card-head h3,
.asian-lines-breakdown-head h3 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.15;
    color: #0f172a;
}

.asian-lines-leg-kicker,
.asian-lines-breakdown-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 229, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    color: #0b63ce;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.asian-lines-leg-grid,
.asian-lines-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.asian-lines-leg-grid {
    margin-top: 18px;
}

.asian-lines-select {
    width: 100%;
    height: 56px;
    border: 1px solid #c3d4e8;
    border-radius: 16px;
    padding: 0 44px 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25 7 9.25l4-4' fill='none' stroke='%230b63ce' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 14px;
    appearance: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.asian-lines-select:focus {
    outline: none;
    border-color: #7db6ff;
    box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.10);
    transform: translateY(-1px);
}

.asian-lines-summary-grid {
    margin-top: 24px;
}

.asian-lines-summary-grid .kelly-summary-card strong.is-positive,
.asian-lines-table .is-positive,
.asian-lines-breakdown-item strong.is-positive {
    color: #15803d;
}

.asian-lines-summary-grid .kelly-summary-card strong.is-negative,
.asian-lines-table .is-negative,
.asian-lines-breakdown-item strong.is-negative {
    color: #b42318;
}

.asian-lines-summary-grid .kelly-summary-card strong.is-neutral,
.asian-lines-table .is-neutral,
.asian-lines-breakdown-item strong.is-neutral {
    color: #0f172a;
}

.asian-lines-summary-text {
    margin-top: 18px;
}

.asian-lines-breakdown-grid {
    margin-top: 22px;
}

.asian-lines-breakdown-card {
    overflow: hidden;
}

.asian-lines-breakdown-head {
    padding: 20px 22px 0;
}

.asian-lines-leg-breakdown {
    display: grid;
    gap: 14px;
    padding: 20px 22px 22px;
}

.asian-lines-breakdown-item {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dce6f4;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.asian-lines-breakdown-item strong {
    font-size: 18px;
    line-height: 1.2;
    color: #0f172a;
}

.asian-lines-breakdown-item p {
    margin: 0;
    color: #526071;
    font-size: 14px;
    line-height: 1.6;
}

.asian-lines-table-wrap {
    padding: 20px 22px 22px;
    overflow-x: auto;
}

.asian-lines-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 620px;
    overflow: hidden;
    border: 1px solid #d8e4f3;
    border-radius: 18px;
    background: #ffffff;
}

.asian-lines-table thead th {
    padding: 14px 16px;
    background: var(--fpp-table-header-gradient);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.asian-lines-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7eef8;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    vertical-align: top;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.asian-lines-table tbody td:nth-child(3) {
    text-align: left;
    min-width: 240px;
}

.asian-lines-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .odds-converter-page {
        padding: 24px 14px 32px;
    }

    .odds-converter-grid,
    .kelly-grid,
    .kelly-summary-grid,
    .asian-lines-leg-list,
    .asian-lines-leg-grid,
    .asian-lines-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .odds-converter-helper-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .kelly-range-scale {
        font-size: 10px;
    }

    .asian-lines-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .asian-lines-toolbar-field,
    .asian-lines-count-field {
        max-width: none;
    }

    .asian-lines-toolbar-actions {
        justify-content: center;
    }

    .asian-lines-leg-card-head,
    .asian-lines-breakdown-head {
        flex-direction: column;
        align-items: stretch;
    }

    .asian-lines-remove-button {
        width: 100%;
    }
}

/* =====================================================
   INPLAY SCANNER TABLE
===================================================== */

.inplay-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe6f7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 12px 28px rgba(13, 57, 122, 0.06);
}

.inplay-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.inplay-toolbar-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4e678a;
}

.inplay-toolbar-select {
    min-width: 220px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #c9d9ee;
    border-radius: 12px;
    background: #ffffff;
    color: #18375f;
    font-size: 15px;
    box-sizing: border-box;
}

.inplay-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inplay-segment {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #cfddef;
    border-radius: 999px;
    background: #ffffff;
    color: #22456f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.inplay-segment:hover {
    transform: translateY(-1px);
    border-color: #9fc0ea;
}

.inplay-segment.is-active {
    background: linear-gradient(135deg, #0b63ce 0%, #1a7ff3 100%);
    border-color: #0b63ce;
    color: #ffffff;
}

.inplay-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #dce7f6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(13, 57, 122, 0.08);
    width: 100%;
}

.inplay-table {
    width: 100%;
    min-width: 1700px;
    border-collapse: collapse;
    color: #18375f;
    font-size: 17px;
}

.inplay-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0;
    background: transparent;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    text-align: center;
}

.inplay-sort-btn {
    width: 100%;
    padding: 14px 10px;
    border: none;
    background: transparent;
    color: var(--fpp-table-header-text);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    cursor: pointer;
}

.inplay-sort-btn::after {
    content: "";
}

.inplay-sort-btn.is-active[data-direction="asc"]::after {
    content: "  ^";
}

.inplay-sort-btn.is-active[data-direction="desc"]::after {
    content: "  v";
}

.inplay-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #eef3fb;
    vertical-align: top;
    white-space: nowrap;
    text-align: center;
}

.inplay-table thead th:nth-child(-n+4),
.inplay-table td:nth-child(-n+4) {
    text-align: left;
}

.inplay-table thead th:nth-child(-n+4) .inplay-sort-btn {
    text-align: left;
}

.inplay-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.inplay-table tbody tr:hover {
    background: #f8fbff;
}

.inplay-table-league,
.inplay-table-match {
    font-weight: 700;
    color: #163356;
}

.inplay-table-league {
    font-size: 16px;
}

.inplay-table-match {
    font-size: 16px;
}

.inplay-fixture-link {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.inplay-fixture-link:hover,
.inplay-fixture-link:focus-visible {
    color: #0b63ce;
    text-decoration: underline;
}

.inplay-table-sub {
    margin-top: 3px;
    color: #607796;
    font-size: 13px;
    white-space: normal;
}

.inplay-form-cell {
    display: grid;
    gap: 8px;
    min-width: 138px;
}

.inplay-form-hover {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

.inplay-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inplay-form-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #edf4ff;
    color: #36557d;
    font-size: 11px;
    font-weight: 800;
}

.inplay-form-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.inplay-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.inplay-form-badge.is-win {
    background: #22c55e;
}

.inplay-form-badge.is-draw {
    background: #f59e0b;
}

.inplay-form-badge.is-loss {
    background: #ef4444;
}

.inplay-form-empty {
    color: #7a8faa;
    font-size: 12px;
    font-weight: 700;
}

.inplay-form-popover {
    position: fixed;
    left: 0;
    top: 0;
    transform: none;
    display: grid;
    gap: 12px;
    width: min(1360px, calc(100vw - 20px));
    max-height: calc(100vh - 34px);
    overflow: auto;
    padding: 16px 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d7e3f3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 4000;
    white-space: normal;
}

.inplay-form-hover:hover .inplay-form-popover {
    opacity: 1;
    visibility: visible;
}

.inplay-form-popover-header {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.inplay-form-popover-subtitle {
    margin-top: -8px;
    color: #607796;
    font-size: 13px;
    font-weight: 700;
}

.inplay-form-section {
    display: grid;
    gap: 8px;
}

.inplay-form-section-title {
    color: #163356;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.inplay-analytics-overview {
    display: grid;
    gap: 6px;
}

.inplay-analytics-table {
    width: 100%;
    border-collapse: collapse;
    color: #111827;
    font-size: 13px;
    table-layout: fixed;
}

.inplay-analytics-table .inplay-analytics-col-label {
    width: 120px;
}

.inplay-analytics-table .inplay-analytics-col-wdl {
    width: 150px;
}

.inplay-analytics-table .inplay-analytics-col-btts {
    width: 72px;
}

.inplay-analytics-table .inplay-analytics-col-metric {
    width: 56px;
}

.inplay-analytics-group-row th {
    padding: 0 8px 4px;
    border-bottom: none;
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-align: center !important;
    justify-content: center;
}

.inplay-analytics-group-row .inplay-analytics-group-title {
    color: #28b81f;
    text-align: left;
    line-height: 1.15;
}

.inplay-analytics-table th,
.inplay-analytics-table td {
    padding: 6px 9px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
    line-height: 1.15;
}

.inplay-analytics-table thead th {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
}

.inplay-analytics-table thead th:nth-child(3),
.inplay-analytics-table tbody td:nth-child(3) {
    padding-left: 16px;
}

.inplay-analytics-table thead th:nth-child(2),
.inplay-analytics-table tbody td:nth-child(2),
.inplay-analytics-table thead th:nth-child(10),
.inplay-analytics-table tbody td:nth-child(10),
.inplay-analytics-table thead th:nth-child(15),
.inplay-analytics-table tbody td:nth-child(15) {
    border-right: 2px solid #d4deeb;
}

.inplay-analytics-table tbody tr:nth-child(odd) {
    background: #f3f4f6;
}

.inplay-analytics-row-label {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    text-align: center;
}

.inplay-analytics-wdl {
    display: flex;
    gap: 0;
    justify-content: center;
}

.inplay-analytics-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 3px 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.inplay-analytics-pill.is-win {
    background: #22c55e;
}

.inplay-analytics-pill.is-draw {
    background: #f59e0b;
}

.inplay-analytics-pill.is-loss {
    background: #ef4444;
}

.inplay-form-history-wrap {
    overflow: auto;
    border: 1px solid #e0e8f5;
    border-radius: 8px;
}

.inplay-form-history-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    color: #18375f;
    font-size: 13px;
    table-layout: fixed;
}

.inplay-form-history-table th,
.inplay-form-history-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef3fb;
    text-align: center !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inplay-form-history-table th {
    background: transparent;
    color: var(--fpp-table-header-text);
    font-size: 11px;
    font-weight: 800;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inplay-form-history-table th:nth-child(1),
.inplay-form-history-table td:nth-child(1) {
    width: 74px;
}

.inplay-form-history-table th:nth-child(2),
.inplay-form-history-table td:nth-child(2) {
    width: 170px;
}

.inplay-form-history-table th:nth-child(3),
.inplay-form-history-table td:nth-child(3) {
    width: 300px;
}

.inplay-form-history-table th:nth-child(4),
.inplay-form-history-table td:nth-child(4),
.inplay-form-history-table th:nth-child(5),
.inplay-form-history-table td:nth-child(5),
.inplay-form-history-table th:nth-child(6),
.inplay-form-history-table td:nth-child(6),
.inplay-form-history-table th:nth-child(7),
.inplay-form-history-table td:nth-child(7),
.inplay-form-history-table th:nth-child(8),
.inplay-form-history-table td:nth-child(8),
.inplay-form-history-table th:nth-child(9),
.inplay-form-history-table td:nth-child(9) {
    width: 62px;
}

.inplay-form-history-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.inplay-form-history-empty {
    color: #7a8faa;
    font-weight: 700;
}

.inplay-odds-cell {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.inplay-score-cell {
    color: #0b63ce;
}

.inplay-stat-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 1px 7px;
    border: 1px solid #9ed6aa;
    border-radius: 8px;
    background: #e8f7ec;
    color: #0f6a28;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

.inplay-odds-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    white-space: nowrap;
}

.inplay-odds-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.inplay-odds-tooltip[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 8px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
}

.inplay-odds-tooltip[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
}

.inplay-odds-tooltip[data-tooltip]:hover::after,
.inplay-odds-tooltip[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

.inplay-odds-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.inplay-odds-up {
    background: #e8f7ec;
    color: #0f8d34;
}

.inplay-odds-down {
    background: #fff0f0;
    color: #cc2e2e;
}

.inplay-stack-cell {
    display: grid;
    gap: 4px;
    min-width: 42px;
}

.inplay-event-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inplay-event-popover {
    position: fixed;
    left: 0;
    top: 0;
    transform: none;
    min-width: 240px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d7e3f3;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 4000;
    white-space: normal;
}

.inplay-event-hover:hover .inplay-event-popover {
    opacity: 1;
    visibility: visible;
}

.inplay-event-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.inplay-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inplay-event-column {
    display: grid;
    gap: 8px;
}

.inplay-event-heading {
    color: #18375f;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.inplay-event-minutes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    min-height: 26px;
}

.inplay-event-minute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f3f8ff;
    border: 1px solid #d7e3f3;
    color: #163356;
    font-size: 12px;
    font-weight: 700;
}

.inplay-event-empty {
    color: #7a8faa;
    font-size: 12px;
    font-weight: 700;
}

.inplay-event-footer {
    margin-top: 12px;
    color: #526071;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.inplay-stack-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    line-height: 1.1;
    font-size: 17px;
}

.inplay-score-cell .inplay-stack-row {
    font-size: 19px;
    font-weight: 800;
}

.inplay-pressure-cell {
    display: grid;
    gap: 6px;
    min-width: 98px;
    position: relative;
    z-index: 5;
}

.inplay-pressure-chart {
    width: 94px;
    height: 32px;
    overflow: visible;
}

.inplay-pressure-chart-large {
    width: 360px;
    height: 210px;
}

.inplay-pressure-line-home,
.inplay-pressure-line-away {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.25;
}

.inplay-pressure-line-home {
    stroke: #1a7ff3;
}

.inplay-pressure-line-away {
    stroke: #f59e0b;
}

.inplay-pressure-axis {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
}

.inplay-pressure-grid {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
}

.inplay-pressure-axis-label {
    fill: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 700;
}

.inplay-pressure-values .inplay-stack-cell {
    gap: 2px;
}

.inplay-pressure-values .inplay-stack-row {
    min-height: 16px;
    font-size: 12px;
    font-weight: 700;
}

.inplay-pressure-hotspot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 7px;
    border-radius: 8px;
    background: #fff0db;
    border: 1px solid #f5bc75;
    color: #b86209;
    font-weight: 800;
}

.inplay-pressure-empty {
    color: #6c819f;
    font-size: 12px;
    font-weight: 700;
}

.inplay-pressure-popover {
    position: fixed;
    left: 0;
    top: 0;
    transform: none;
    display: grid;
    gap: 14px;
    min-width: 400px;
    padding: 18px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 4000;
}

.inplay-pressure-popover-header {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.inplay-pressure-popover-legend {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.inplay-pressure-popover-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inplay-pressure-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
}

.inplay-pressure-dot-home {
    background: #1a7ff3;
}

.inplay-pressure-dot-away {
    background: #f59e0b;
}

.inplay-pressure-hover:hover .inplay-pressure-popover {
    opacity: 1;
    visibility: visible;
}

.inplay-pressure-hover:hover {
    z-index: 2000;
}

.inplay-table-wrap .inplay-col-pressure,
.inplay-table-wrap .inplay-col-all {
    display: none;
}

.inplay-table-wrap[data-stat-view="all"] .inplay-col-pressure {
    display: table-cell;
}

.inplay-table-wrap[data-stat-view="all"] .inplay-col-all {
    display: table-cell;
}

@media (max-width: 1200px) {
    .inplay-toolbar {
        padding: 14px;
    }

    .inplay-page {
        padding: 24px 20px 34px;
    }

    .inplay-toolbar-group {
        min-width: 160px;
        flex: 1 1 220px;
    }
}

@media (max-width: 900px) {
    .inplay-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .inplay-toolbar-select {
        width: 100%;
        min-width: 0;
    }
}

.fixture-grid-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.18);
}

.stats-grid-page {
    display: grid;
    gap: 18px;
    padding: 10px 0 36px;
}

.stats-grid-hero {
    margin-bottom: 0;
}

.stats-grid-hero .fixture-header-topline {
    grid-template-columns: minmax(0, 1fr);
}

.stats-grid-hero .fixture-header-utility {
    grid-column: 1;
    justify-self: start;
}

.stats-grid-hero .fixture-header-copy {
    max-width: 860px;
}

.stats-grid-hero .fixture-header-badges {
    justify-content: center;
}

.stats-grid-hero-pill {
    background: rgba(219, 234, 254, 0.22);
    border: 1px solid rgba(191, 219, 254, 0.28);
    color: #dbeafe;
}

.stats-grid-info-link {
    text-decoration: none;
    font-weight: 800;
}

.stats-grid-info-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.basic-stats-page {
    display: grid;
    gap: 16px;
    padding: 10px 0 36px;
}

.basic-stats-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(15, 157, 143, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.basic-stats-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f9d8f;
    font-weight: 800;
}

.basic-stats-hero h1 {
    margin: 4px 0 6px;
    font-size: 28px;
    line-height: 1.05;
}

.basic-stats-subtitle {
    margin: 0;
    color: #5c6f8c;
    font-size: 13px;
}

.basic-stats-note {
    margin: 10px 0 0;
    color: #537089;
    font-size: 12px;
}

.basic-stats-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(150px, 0.55fr) auto;
    gap: 14px 18px;
    align-items: end;
}

.basic-stats-filter-field {
    display: grid;
    gap: 8px;
}

.basic-stats-filter-field label {
    color: #24344d;
    font-size: 14px;
    font-weight: 800;
}

.basic-stats-filter-field select,
.basic-stats-filter-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #cbd8ef;
    border-radius: 14px;
    background: #ffffff;
    color: #24344d;
    font: inherit;
    box-sizing: border-box;
}

.basic-stats-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.basic-stats-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
}

.basic-stats-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 26px;
}

.basic-stats-filter-empty {
    color: #6b7e99;
    font-size: 13px;
}

.basic-stats-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #0f9d8f);
    box-shadow: 0 10px 22px rgba(15, 157, 143, 0.16);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.basic-stats-filter-chip-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    font-size: 15px;
    line-height: 1;
}

.basic-stats-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
}

.basic-stats-export-button.is-locked {
    background: #d7e0ef;
    color: #5e708b;
    cursor: not-allowed;
}

.basic-stats-export-note {
    color: #6b7e99;
    font-size: 12px;
    font-weight: 700;
}

.basic-stats-clear-button,
.basic-stats-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.basic-stats-back,
.basic-stats-open-grid {
    color: #0f5ed7;
    text-decoration: none;
    font-weight: 700;
}

.basic-stats-open-grid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
}

.basic-stats-shell {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
    border: 1px solid rgba(207, 224, 245, 0.9);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.basic-stats-date-buttons {
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto;
    gap: 10px;
}

.basic-stats-date-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 229, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary);
    color: var(--fpp-button-text-on-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.basic-stats-date-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.basic-stats-date-button.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.basic-stats-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.basic-stats-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(31, 111, 229, 0.42);
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    color: var(--fpp-button-text-on-light);
    box-shadow: var(--fpp-button-shadow-secondary);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    text-decoration: none;
}

.basic-stats-tab:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.basic-stats-tab:focus-visible,
.basic-stats-pagination-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.14);
}

.basic-stats-tab.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.basic-stats-panel {
    display: none;
}

.basic-stats-panel.is-active {
    display: block;
}

.basic-stats-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.basic-stats-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(207, 224, 245, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.basic-stats-table th,
.basic-stats-table td {
    padding: 14px;
    border-bottom: 1px solid #e4edf8;
    text-align: center;
    font-family: inherit;
}

.basic-stats-table thead {
    background: var(--fpp-table-header-gradient);
}

.basic-stats-table thead th {
    background: transparent;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    color: var(--fpp-table-header-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
    white-space: nowrap;
}

.basic-stats-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.basic-stats-table thead th:first-child {
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

.basic-stats-table thead th:last-child {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.basic-stats-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-weight: inherit;
    font-family: inherit;
    cursor: pointer;
}

.basic-stats-sort-indicator {
    font-size: 12px;
    opacity: 0.85;
}

.basic-stats-table tbody td:first-child,
.basic-stats-table thead th:first-child {
    text-align: left;
}

.basic-stats-table tbody td:nth-child(2),
.basic-stats-table tbody td:nth-child(3) {
    text-align: left;
}

.basic-stats-table tbody td:nth-child(3) a {
    display: inline-block;
    text-align: left;
}

.basic-stats-table tbody tr:hover td {
    background: rgba(244, 249, 255, 0.96);
}

.basic-stats-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ebfffb, #d7faf1);
    color: #0d5f57;
    font-weight: 800;
}

.basic-stats-pill--high {
    background: linear-gradient(135deg, #cfeeda 0%, #a8dec0 100%);
    color: #0f3f24;
    box-shadow:
        inset 0 0 0 1px rgba(41, 116, 70, 0.46),
        0 6px 14px rgba(41, 116, 70, 0.1);
}

.basic-stats-pill--low {
    background: linear-gradient(135deg, #ffd9de 0%, #f5b6c0 100%);
    color: #6f172b;
    box-shadow:
        inset 0 0 0 1px rgba(163, 47, 74, 0.44),
        0 6px 14px rgba(163, 47, 74, 0.1);
}

.basic-stats-table-summary tbody td {
    background: #fbfdff;
}

.basic-stats-table-cards tbody tr:nth-child(odd) td {
    background: #fbfdff;
}

.basic-stats-table--cards {
    min-width: 1360px;
    table-layout: fixed;
}

.basic-stats-table--cards col.basic-stats-col--time {
    width: 76px;
}

.basic-stats-table--cards col.basic-stats-col--league {
    width: 190px;
}

.basic-stats-table--cards col.basic-stats-col--teams {
    width: 250px;
}

.basic-stats-table--cards col.basic-stats-col--stat {
    width: 84px;
}

.basic-stats-table--cards th:nth-child(1),
.basic-stats-table--cards td:nth-child(1) {
    width: 76px;
}

.basic-stats-table--cards th:nth-child(2),
.basic-stats-table--cards td:nth-child(2) {
    width: 190px;
    text-align: left;
}

.basic-stats-table--cards th:nth-child(3),
.basic-stats-table--cards td:nth-child(3) {
    width: 250px;
    text-align: left;
}

.basic-stats-table--cards th:nth-child(n + 4),
.basic-stats-table--cards td:nth-child(n + 4) {
    width: 84px;
}

.basic-stats-table--cards thead th:nth-child(n + 4) {
    white-space: normal;
    line-height: 1.2;
}

.basic-stats-table--cards thead th:nth-child(n + 4) .basic-stats-sort-link {
    width: 100%;
    min-width: 0;
}

.basic-stats-table--cards thead th:nth-child(n + 4) .basic-stats-sort-link span:first-child {
    white-space: normal;
}

.basic-stats-pagination {
    width: min(var(--fixtures-content-width), 100%);
    margin: 4px auto 0;
}

@media (max-width: 900px) {
    .basic-stats-hero {
        flex-direction: column;
    }

    .basic-stats-open-grid {
        width: 100%;
    }

    .basic-stats-shell {
        padding: 14px;
    }

    .basic-stats-filters {
        grid-template-columns: 1fr;
    }

    .basic-stats-filter-toolbar,
    .basic-stats-filter-actions {
        justify-content: stretch;
    }

    .basic-stats-clear-button,
    .basic-stats-apply-button,
    .basic-stats-export-button {
        flex: 1 1 0;
    }

    .basic-stats-date-button,
    .basic-stats-tab {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .basic-stats-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.stats-grid-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
}

.stats-grid-filter-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
    border: 1px solid rgba(207, 224, 245, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.stats-grid-filter-card h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.72);
    border: 1px solid rgba(148, 191, 245, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    box-sizing: border-box;
    align-self: start;
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0d5ed7;
}

.stats-grid-filter-card-wide {
    grid-column: 1 / -1;
}

.stats-grid-toggle,
.stats-grid-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(207, 224, 245, 0.92);
    background: rgba(244, 249, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-weight: 700;
    font-size: 13px;
    color: #203a60;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.stats-grid-toggle:hover,
.stats-grid-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 111, 229, 0.34);
    background: rgba(239, 246, 255, 0.98);
}

.stats-grid-toggle input,
.stats-grid-chip input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0d5ed7;
    flex: 0 0 auto;
}

.stats-grid-toggle span,
.stats-grid-chip span {
    flex: 1 1 auto;
}

.stats-grid-toggle input:checked + span,
.stats-grid-chip input:checked + span {
    color: #0d5ed7;
    font-weight: 800;
}

.stats-grid-select select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(203, 216, 239, 0.98);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.99) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #24344d;
    font: inherit;
}

.stats-grid-competition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.stats-grid-chip {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
}

.stats-grid-chip em {
    font-style: normal;
    color: #5d789e;
    font-weight: 700;
}

.stats-grid-table-shell {
    border-radius: 24px;
    border: 1px solid rgba(207, 224, 245, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.stats-grid-table-scroll {
    overflow: auto;
}

.stats-grid-table {
    width: 100%;
    min-width: 1240px;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(250, 252, 255, 0.98);
}

.stats-grid-table th,
.stats-grid-table td {
    padding: 8px 8px;
    border-right: 1px solid #e4edf8;
    border-bottom: 1px solid #e4edf8;
    background: #ffffff;
    text-align: center;
    vertical-align: top;
    font-family: inherit;
}

.stats-grid-table thead {
    background: var(--fpp-table-header-gradient);
}

.stats-grid-table thead th {
    background: transparent;
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    color: var(--fpp-table-header-text);
    text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
}

.stats-grid-table thead th + th {
    box-shadow: inset 1px 0 0 var(--fpp-table-header-divider);
}

.stats-grid-sticky {
    position: sticky;
    z-index: 3;
}

.stats-grid-table thead .stats-grid-sticky {
    background: transparent;
    z-index: 5;
}

.stats-grid-stat-col {
    left: 0;
    min-width: 118px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: #163258;
}

.stats-grid-table tbody .stats-grid-stat-col,
.stats-grid-table tbody .stats-grid-avg-col {
    background: linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(238, 244, 255, 0.96) 100%);
}

.stats-grid-avg-col {
    left: 118px;
    min-width: 68px;
}

.stats-grid-table tbody .stats-grid-avg-col {
    box-shadow:
        inset 1px 0 0 rgba(188, 209, 240, 0.7),
        inset -1px 0 0 rgba(188, 209, 240, 0.7);
}

.stats-grid-match-head {
    min-width: 76px;
}

.stats-grid-date {
    font-size: 8px;
    font-weight: 800;
    color: rgba(235, 244, 255, 0.92);
}

.stats-grid-league {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.3;
    color: rgba(220, 233, 252, 0.92);
}

.stats-grid-opponent {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
}

.stats-grid-venue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 2px 4px;
    margin-right: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #eff6ff;
    font-size: 8px;
    font-weight: 800;
}

.stats-grid-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(7, 28, 59, 0.16);
}

.stats-grid-score-win {
    background: linear-gradient(135deg, #16954b 0%, #12803f 100%);
}

.stats-grid-score-draw {
    background: linear-gradient(135deg, #6f8fb8 0%, #5c7ca7 100%);
}

.stats-grid-score-loss {
    background: linear-gradient(135deg, #d24b58 0%, #b63243 100%);
}

.stats-grid-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    margin-top: 6px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-grid-primary,
.stats-grid-secondary {
    display: block;
}

.stats-grid-primary {
    font-size: 16px;
    font-weight: 800;
    color: #16355c;
    line-height: 1;
}

.stats-grid-secondary {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    color: #5f7597;
    line-height: 1;
}

.stats-grid-value-cell {
    position: relative;
    min-height: 36px;
    padding-right: 14px;
    padding-bottom: 11px;
}

.stats-grid-avg-cell .stats-grid-primary {
    color: #0d5ed7;
}

.stats-grid-value-cell .stats-grid-secondary {
    position: absolute;
    right: 4px;
    bottom: 2px;
    margin-top: 0;
}

.stats-grid-avg-cell .stats-grid-secondary {
    position: static;
}

.stats-grid-empty {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
    border: 1px solid rgba(207, 224, 245, 0.92);
    color: #64748b;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .stats-grid-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .stats-grid-hero {
        padding: 18px 16px;
    }

    .stats-grid-filters {
        grid-template-columns: 1fr;
    }

    .stats-grid-stat-col {
        min-width: 100px;
    }

    .stats-grid-avg-col {
        left: 100px;
    }
}

.historic-fixture-page {
    display: grid;
    gap: 20px;
}

.historic-fixture-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.historic-fixture-back,
.historic-fixture-back:visited {
    display: inline-block;
    margin-bottom: 8px;
    color: #2457d6;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.historic-fixture-kicker {
    margin: 0 0 8px;
    color: #7a58ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.historic-fixture-hero h1 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.1;
}

.historic-fixture-subtitle {
    margin: 10px 0 0;
    color: #52607a;
}

.historic-fixture-scoreboard {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    align-self: flex-start;
}

.historic-fixture-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 1rem;
}

.historic-fixture-score-row strong {
    font-size: 1.35rem;
}

.historic-fixture-score-row + .historic-fixture-score-row {
    margin-top: 10px;
}

.historic-fixture-score-label {
    color: #6b7280;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.historic-fixture-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbe4ff;
    color: #2457d6;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.historic-fixture-table-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.historic-fixture-table {
    width: 100%;
    border-collapse: collapse;
}

.historic-fixture-table thead th {
    padding: 14px 16px;
    background: transparent;
    color: var(--fpp-table-header-text);
    border-bottom: 1px solid var(--fpp-table-header-bottom);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.historic-fixture-table thead th + th {
    border-left: 1px solid var(--fpp-table-header-divider);
}

.historic-fixture-table tbody th,
.historic-fixture-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid #e4ebff;
}

.historic-fixture-table tbody th {
    color: #18233a;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.historic-fixture-table tbody td {
    color: #5b21ff;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 860px) {
    .historic-fixture-hero {
        flex-direction: column;
    }

    .historic-fixture-scoreboard {
        min-width: 0;
        width: 100%;
    }
}

.site-settings-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.page-league-filter {
    display: inline-block;
    margin: 12px 0 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: #f6f8ec;
    overflow: hidden;
}

.page-league-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 320px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.page-league-filter-summary::-webkit-details-marker {
    display: none;
}

.page-league-filter-kicker,
.page-league-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #516041;
}

.page-league-filter-current {
    font-size: 0.92rem;
    color: #1f2937;
}

.page-league-filter-form {
    padding: 0 14px 14px;
}

.page-league-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 12px;
}

.page-league-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #1f2937;
}

.page-league-filter-predictability {
    margin-top: 14px;
}

.page-league-filter-actions {
    margin-top: 14px;
}

.page-league-filter-actions button {
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: #2b6eea;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.fixtures-page-wrap .page-league-filter {
    display: block;
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto 6px;
    border: 1px solid rgba(73, 123, 205, 0.26);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(253, 254, 255, 0.99) 0%, rgba(239, 246, 255, 0.99) 100%);
    box-shadow: 0 16px 32px rgba(11, 36, 82, 0.08);
    overflow: hidden;
}

.fixtures-page-wrap .page-league-filter-summary {
    min-width: 0;
    padding: 16px 20px;
}

.fixtures-page-wrap .page-league-filter-kicker,
.fixtures-page-wrap .page-league-filter-label {
    color: #27538f;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.fixtures-page-wrap .page-league-filter-current {
    color: #173a70;
    font-weight: 700;
    text-align: right;
}

.fixtures-page-wrap .page-league-filter-form {
    padding: 0 20px 20px;
}

.fixtures-page-wrap .page-league-filter-grid {
    gap: 12px 14px;
}

.fixtures-page-wrap .page-league-filter-check {
    padding: 10px 12px;
    border: 1px solid rgba(199, 216, 241, 0.82);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.fixtures-page-wrap .page-league-filter-predictability {
    margin-top: 16px;
}

.fixtures-page-wrap .page-league-filter-actions {
    margin-top: 16px;
}

.betslip-filter-summary {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7faef 0%, #eef6df 100%);
    border: 1px solid rgba(102, 126, 58, 0.16);
}

.betslip-filter-summary h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.betslip-filter-summary p {
    margin: 0;
    line-height: 1.55;
}

.site-settings-hero {
    margin-bottom: 24px;
}

.site-settings-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7a90;
}

.site-settings-copy {
    max-width: 760px;
    color: #4a5568;
}

.site-settings-form {
    display: grid;
    gap: 24px;
}

.site-settings-filter-stack {
    display: grid;
    gap: 18px;
}

.site-settings-filter-grid[hidden],
.site-settings-country-body[hidden] {
    display: none !important;
}

.site-settings-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    border-radius: 22px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-settings-filters-header:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2),
        0 16px 28px rgba(8, 29, 68, 0.16);
}

.site-settings-filters-header:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(15, 94, 215, 0.14),
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2),
        0 16px 28px rgba(8, 29, 68, 0.16);
}

.site-settings-filters-header h2 {
    flex: 1 1 auto;
    margin: 0;
    color: var(--fpp-block-header-text);
    font-size: clamp(1.18rem, 1.9vw, 1.52rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.site-settings-filters-caret {
    flex: 0 0 auto;
    color: var(--fpp-block-header-text);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease;
}

.site-settings-filters-header[aria-expanded="true"] .site-settings-filters-caret {
    transform: rotate(180deg);
}

.site-settings-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.site-settings-card {
    background: #fff;
    border: 1px solid var(--fpp-card-outline);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.site-settings-telegram-card {
    margin-bottom: 18px;
}

.site-settings-card h2,
.site-settings-country h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #10233f;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.site-settings-radio-grid,
.site-settings-check-grid,
.site-settings-league-grid {
    display: grid;
    gap: 12px;
}

.site-settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.site-settings-toggle-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-settings-toggle-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.site-settings-toggle-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.site-settings-toggle-card-panel {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 14px;
    min-height: 138px;
    padding: 20px 18px;
    border: 1px solid rgba(168, 192, 225, 0.72);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.99) 0%, rgba(243, 248, 255, 0.99) 100%);
    box-shadow: 0 12px 28px rgba(11, 36, 82, 0.06);
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-settings-toggle-card:hover .site-settings-toggle-card-panel {
    transform: translateY(-1px);
    border-color: rgba(78, 130, 212, 0.5);
    box-shadow: 0 18px 30px rgba(11, 36, 82, 0.1);
}

.site-settings-toggle-card input:focus-visible + .site-settings-toggle-card-panel {
    box-shadow:
        0 0 0 4px rgba(15, 94, 215, 0.14),
        0 18px 30px rgba(11, 36, 82, 0.1);
}

.site-settings-toggle-card input:checked + .site-settings-toggle-card-panel {
    border-color: rgba(24, 102, 208, 0.5);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.99) 0%, rgba(233, 243, 255, 0.99) 100%);
    box-shadow: 0 18px 32px rgba(15, 52, 112, 0.12);
}

.site-settings-toggle-copy {
    display: grid;
    gap: 6px;
    justify-items: center;
    align-content: center;
}

.site-settings-toggle-title {
    color: #10233f;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.site-settings-toggle-track {
    position: relative;
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(219, 228, 241, 0.98) 0%, rgba(198, 210, 228, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(121, 137, 163, 0.26);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.site-settings-toggle-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease;
}

.site-settings-toggle-card input:checked + .site-settings-toggle-card-panel .site-settings-toggle-track {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 94, 215, 0.32);
}

.site-settings-toggle-card input:checked + .site-settings-toggle-card-panel .site-settings-toggle-track::after {
    transform: translateX(26px);
}

.site-settings-radio-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-settings-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-settings-radio,
.site-settings-check,
.site-settings-league-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fbff;
}

.site-settings-radio input,
.site-settings-check input,
.site-settings-league-option input {
    margin-top: 3px;
}

.site-settings-filter-option-grid {
    gap: 14px;
}

.site-settings-filter-option-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-settings-filter-option {
    align-items: flex-start;
    gap: 12px;
    min-height: 84px;
    padding: 18px 18px 18px 16px;
    border: 1px solid rgba(168, 192, 225, 0.72);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.99) 0%, rgba(243, 248, 255, 0.99) 100%);
    box-shadow: 0 12px 28px rgba(11, 36, 82, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-settings-filter-option:hover {
    transform: translateY(-1px);
    border-color: rgba(78, 130, 212, 0.5);
    box-shadow: 0 18px 30px rgba(11, 36, 82, 0.1);
}

.site-settings-filter-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #0b63ce;
    flex: 0 0 auto;
}

.site-settings-filter-option input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.14);
    border-radius: 4px;
}

.site-settings-filter-option:has(input:checked) {
    border-color: rgba(24, 102, 208, 0.5);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.99) 0%, rgba(233, 243, 255, 0.99) 100%);
    box-shadow: 0 18px 32px rgba(15, 52, 112, 0.12);
}

.site-settings-filter-option input:checked + .site-settings-filter-option-copy .site-settings-filter-option-title {
    color: #0b63ce;
}

.site-settings-filter-option-copy {
    display: grid;
    gap: 4px;
    align-content: center;
    min-height: 100%;
}

.site-settings-filter-option-title {
    color: #10233f;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.site-settings-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    border-radius: 18px;
}

.site-settings-meta {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: var(--fpp-radius-pill);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--fpp-block-header-text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-settings-notice,
.site-settings-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.site-settings-notice {
    background: #e8f7ed;
    color: #166534;
    border: 1px solid #bfe8cb;
}

.site-settings-error {
    background: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
}

.site-settings-telegram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.site-settings-telegram-grid > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fbff;
    min-width: 0;
}

.site-settings-telegram-grid strong,
.site-settings-summary-field {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-settings-summary-field {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #f8fbff;
}

.site-settings-summary-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    color: #10233f;
    font: inherit;
    font-weight: 800;
    outline: none;
}

.site-settings-summary-field input:focus {
    box-shadow: 0 0 0 3px rgba(16, 35, 63, 0.12);
    background: #fff;
    padding: 4px 6px;
}

.site-settings-summary-field small {
    color: #61708a;
    font-weight: 700;
}

.site-settings-telegram-label {
    color: #61708a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-settings-telegram-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-settings-alert-form {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fbfdff;
}

.site-settings-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    align-items: end;
}

.site-settings-field {
    display: grid;
    gap: 7px;
    color: #10233f;
    font-weight: 700;
}

.site-settings-field select,
.site-settings-field input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #10233f;
    font: inherit;
}

.site-settings-time-field.is-muted {
    opacity: 0.58;
}

.site-settings-time-field.is-muted input {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #64748b;
}

.site-settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #10233f;
    font-weight: 700;
}

.site-settings-save.is-connected {
    background: #166534;
    pointer-events: none;
}

.site-settings-league-groups {
    display: grid;
    gap: 18px;
}

.site-settings-league-tools {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.site-settings-league-tool-panel {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.site-settings-save-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.site-settings-league-search {
    display: grid;
    gap: 7px;
    width: 100%;
    color: #10233f;
    font-weight: 700;
}

.site-settings-league-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #10233f;
    font: inherit;
}

.site-settings-league-search input:focus {
    outline: none;
    border-color: #10233f;
    box-shadow: 0 0 0 3px rgba(16, 35, 63, 0.12);
}

.site-settings-league-tool-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-settings-league-tool-note {
    margin: 0;
    max-width: 360px;
    color: #4f6f9e;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.site-settings-country {
    display: grid;
    gap: 12px;
}

.site-settings-country-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid rgba(154, 181, 221, 0.66);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(238, 246, 255, 0.99) 100%);
    box-shadow: 0 10px 24px rgba(11, 36, 82, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-settings-country-head:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 124, 205, 0.52);
    box-shadow: 0 18px 28px rgba(11, 36, 82, 0.1);
}

.site-settings-country-head:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(15, 94, 215, 0.14),
        0 18px 28px rgba(11, 36, 82, 0.1);
}

.site-settings-country-primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.site-settings-country-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-settings-country-checkbox,
.site-settings-league-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--fpp-blue-700);
    cursor: pointer;
}

.site-settings-country-copy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
    text-align: left;
}

.site-settings-country-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(227, 239, 255, 0.95);
    border: 1px solid rgba(122, 163, 224, 0.32);
    color: #1d4f99;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-settings-country-summary {
    color: #5c6f8d;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-settings-country-caret {
    color: #1f5fbd;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease;
}

.site-settings-country.is-open .site-settings-country-caret {
    transform: rotate(180deg);
}

.site-settings-country.is-selected .site-settings-country-head,
.site-settings-country.is-partial .site-settings-country-head {
    border-color: rgba(34, 98, 194, 0.42);
    box-shadow: 0 20px 34px rgba(15, 52, 112, 0.12);
}

.site-settings-country.is-selected .site-settings-country-badge,
.site-settings-country.is-partial .site-settings-country-badge {
    background: rgba(216, 233, 255, 0.98);
    border-color: rgba(74, 124, 205, 0.42);
}

.site-settings-country-body {
    display: grid;
    gap: 12px;
    width: 100%;
}

.site-settings-league-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    justify-content: start;
    padding: 2px 6px 4px;
}

.site-settings-league-option {
    position: relative;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.site-settings-league-option input {
    align-self: flex-start;
    margin-top: 0;
}

.site-settings-league-option:hover {
    border-color: #adc3df;
    background: #f4f8fd;
}

.site-settings-league-option.is-selected {
    border-color: #166534;
    background: #f0fdf4;
    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.08);
}

.site-settings-league-option.is-selected::after {
    content: "Selected";
    position: absolute;
    top: 10px;
    right: 12px;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.site-settings-league-name {
    font-weight: 700;
    color: #10233f;
}

.site-settings-league-meta {
    color: #61708a;
    font-size: 0.9rem;
}

.site-settings-actions {
    display: flex;
    justify-content: flex-end;
}

.site-settings-save {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: #10233f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.site-settings-secondary {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 12px 18px;
    background: #fff;
    color: #10233f;
    font-weight: 700;
    cursor: pointer;
}

.site-settings-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .site-settings-filter-grid,
    .site-settings-toggle-grid--compact,
    .site-settings-filter-option-grid--compact {
        grid-template-columns: 1fr;
    }

    .site-settings-section-head {
        flex-direction: column;
    }

    .site-settings-actions {
        justify-content: stretch;
    }

    .site-settings-save {
        width: 100%;
    }

    .site-settings-alert-grid {
        grid-template-columns: 1fr;
    }

    .site-settings-league-tools {
        grid-template-columns: 1fr;
    }

    .site-settings-save-wrap {
        justify-content: stretch;
    }

    .site-settings-save-wrap .site-settings-save {
        width: 100%;
    }

    .site-settings-country-head {
        width: 100%;
        align-items: flex-start;
    }

    .site-settings-country-copy {
        align-items: flex-start;
    }

    .site-settings-league-grid {
        grid-template-columns: 1fr;
    }
}

/* Bet Tracker light-site polish */
.bet-tracker-shell {
    display: grid;
    gap: 24px;
    width: min(var(--fixtures-content-width), 100%);
    margin: 0 auto;
    padding: 10px 0 36px;
    color: #0d2f63;
}

.bet-tracker-hero-metrics,
.bet-tracker-bankroll-grid,
.bet-tracker-analytics-cards {
    display: grid;
    gap: 18px;
}

.bet-tracker-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bet-tracker-hero-metrics .bet-tracker-summary-card,
.bet-tracker-bankroll-card,
.bet-tracker-analytics-cards > div {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: center;
    justify-items: center;
    min-height: 160px;
    padding: 22px 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border: 1px solid rgba(125, 168, 236, 0.58);
    border-radius: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 22px 46px rgba(8, 29, 68, 0.12);
}

.bet-tracker-summary-card::before,
.bet-tracker-bankroll-card::before,
.bet-tracker-analytics-cards > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.bet-tracker-summary-card > *,
.bet-tracker-bankroll-card > *,
.bet-tracker-analytics-cards > div > * {
    position: relative;
    z-index: 1;
}

.bet-tracker-hero-metrics span,
.bet-tracker-bankroll-card span,
.bet-tracker-analytics-cards span,
.bet-tracker-chart-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.34);
    background: rgba(219, 234, 254, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #2b6fd6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bet-tracker-hero-metrics strong,
.bet-tracker-bankroll-card strong,
.bet-tracker-analytics-cards strong,
.bet-tracker-chart-head strong {
    color: #0d2f63;
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 1.12;
}

.bet-tracker-bankroll-card div,
.bet-tracker-empty,
.bet-tracker-table td span {
    color: #4f6f9d;
    font-size: 0.92rem;
    line-height: 1.55;
}

.bet-tracker-bankroll-delete {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.bet-tracker-notice {
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
    opacity: 1;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.bet-tracker-notice.is-hiding {
    opacity: 0;
    transform: translateY(-4px);
}

.bet-tracker-notice--success {
    background: linear-gradient(180deg, rgba(234, 247, 239, 0.98) 0%, rgba(221, 241, 229, 0.98) 100%);
    border: 1px solid rgba(33, 114, 72, 0.2);
    color: #1f6b43;
}

.bet-tracker-notice--error {
    background: linear-gradient(180deg, #fff6f6 0%, #ffecee 100%);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #b13f27;
}

.bet-tracker-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-bottom: 0;
}

.bet-tracker-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(31, 111, 229, 0.42);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary);
    color: var(--fpp-button-text-on-light);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bet-tracker-tab:hover {
    transform: translateY(-1px);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
    filter: brightness(1.01);
}

.bet-tracker-tab.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    box-shadow: var(--fpp-button-shadow-primary);
    color: #ffffff;
}

.bet-tracker-panel {
    display: none;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(125, 168, 236, 0.36);
    box-shadow: 0 18px 40px rgba(8, 29, 68, 0.08);
}

.bet-tracker-panel.is-active {
    display: block;
}

.bet-tracker-section-head {
    margin: 0;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}

.bet-tracker-panel .bet-tracker-section-head h2 {
    color: #ffffff;
}

.bet-tracker-panel-body {
    display: grid;
    gap: 20px;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.bet-tracker-panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.bet-tracker-panel-toolbar--end {
    justify-content: flex-end;
}

.bet-tracker-panel-toolbar--split {
    justify-content: space-between;
}

.bet-tracker-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bet-tracker-form label {
    position: relative;
    display: grid;
    gap: 8px;
    color: #5b7aa4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bet-tracker-field-wide,
.bet-tracker-form-submit {
    grid-column: 1 / -1;
}

.bet-tracker-bankroll-field {
    grid-column: span 2;
}

.bet-tracker-form-submit {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.bet-tracker-form input,
.bet-tracker-form select,
.bet-tracker-table input,
.bet-tracker-table select,
.bet-tracker-actions select,
.bet-tracker-bankroll-create input {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid #c9daf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    color: #0f172a;
    font: inherit;
    box-sizing: border-box;
}

.bet-tracker-form input:focus,
.bet-tracker-form select:focus,
.bet-tracker-table input:focus,
.bet-tracker-table select:focus,
.bet-tracker-actions select:focus,
.bet-tracker-bankroll-create input:focus {
    outline: none;
    border-color: #1d75df;
    box-shadow: 0 0 0 3px rgba(29, 117, 223, 0.14);
}

.bet-tracker-primary,
.bet-tracker-secondary,
.bet-tracker-danger {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.bet-tracker-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border-color: var(--fpp-button-border-light);
    color: var(--fpp-button-text-on-light);
    box-shadow: var(--fpp-button-shadow-secondary);
}

.bet-tracker-secondary:hover {
    border-color: rgba(31, 111, 229, 0.42);
    background: linear-gradient(180deg, #ffffff 0%, rgba(241, 247, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
}

.bet-tracker-bankroll-create {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.bet-tracker-bankroll-create-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1 1 0;
    color: #5b7aa4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bet-tracker-bankroll-create-field--amount {
    flex: 1 1 0;
}

.bet-tracker-bankroll-create-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.bet-tracker-bankroll-create input {
    min-width: 0;
    flex: 1 1 auto;
}

.bet-tracker-bankroll-create .bet-tracker-primary,
.bet-tracker-bankroll-create .bet-tracker-secondary {
    flex: 0 0 auto;
}

.bet-tracker-bankroll-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bet-tracker-table-wrap,
.bet-tracker-chart-card {
    border-radius: 24px;
    border: 1px solid rgba(207, 224, 245, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.97) 100%);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.bet-tracker-settle-wrap {
    margin-top: 4px;
}

.bet-tracker-table-wrap {
    overflow-x: auto;
}

.bet-tracker-table {
    width: 100%;
    min-width: 1460px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.bet-tracker-table th,
.bet-tracker-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e4edf8;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
}

.bet-tracker-table th {
    color: var(--fpp-table-header-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(7, 28, 59, 0.24);
    white-space: nowrap;
}

.bet-tracker-table td {
    color: #18375f;
    font-size: 0.92rem;
}

.bet-tracker-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.bet-tracker-table tbody tr:hover td {
    background: rgba(244, 249, 255, 0.96);
}

.bet-tracker-table td strong {
    color: #14345d;
}

.bet-tracker-table th:nth-child(1),
.bet-tracker-table td:nth-child(1) {
    width: 156px;
}

.bet-tracker-table th:nth-child(2),
.bet-tracker-table td:nth-child(2) {
    width: 248px;
    text-align: left;
}

.bet-tracker-table th:nth-child(3),
.bet-tracker-table td:nth-child(3) {
    width: 190px;
    text-align: left;
}

.bet-tracker-table th:nth-child(4),
.bet-tracker-table td:nth-child(4),
.bet-tracker-table th:nth-child(5),
.bet-tracker-table td:nth-child(5),
.bet-tracker-table th:nth-child(6),
.bet-tracker-table td:nth-child(6),
.bet-tracker-table th:nth-child(7),
.bet-tracker-table td:nth-child(7),
.bet-tracker-table th:nth-child(8),
.bet-tracker-table td:nth-child(8),
.bet-tracker-table th:nth-child(9),
.bet-tracker-table td:nth-child(9) {
    width: 102px;
}

.bet-tracker-table th:nth-child(10),
.bet-tracker-table td:nth-child(10) {
    width: 120px;
}

.bet-tracker-table th:nth-child(11),
.bet-tracker-table td:nth-child(11) {
    width: 116px;
}

.bet-tracker-table input,
.bet-tracker-table select,
.bet-tracker-table button {
    max-width: 100%;
}

.bet-tracker-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
}

.bet-tracker-inline-actions select {
    min-width: 0;
}

.bet-tracker-profit-positive {
    color: #147a42;
    font-weight: 800;
}

.bet-tracker-profit-negative {
    color: #c03d2d;
    font-weight: 800;
}

.bet-tracker-profit-neutral {
    color: #6b7e99;
    font-weight: 700;
}

.bet-tracker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.bet-tracker-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: stretch;
}

.bet-tracker-chart-card {
    min-height: 410px;
    padding: 20px;
}

.bet-tracker-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bet-tracker-empty {
    padding: 28px 24px;
    text-align: center;
}

.bet-tracker-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    display: grid;
    max-height: 260px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(207, 224, 245, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.bet-tracker-suggestions:empty {
    display: none;
}

.bet-tracker-suggestions button {
    border: 0;
    border-bottom: 1px solid #e4edf8;
    background: transparent;
    color: #14345d;
    cursor: pointer;
    padding: 12px 14px;
    text-align: left;
}

.bet-tracker-suggestions button:hover {
    background: rgba(244, 249, 255, 0.96);
}

.bet-tracker-suggestions span {
    display: block;
    margin-bottom: 3px;
    color: #5d789e;
    font-size: 0.76rem;
}

#betTrackerChart {
    display: block;
    width: 100%;
    height: 320px;
}

@media (max-width: 1000px) {
    .bet-tracker-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bet-tracker-hero-metrics,
    .bet-tracker-bankroll-grid,
    .bet-tracker-form {
        grid-template-columns: 1fr;
    }

    .bet-tracker-bankroll-field {
        grid-column: 1 / -1;
    }

    .bet-tracker-tab {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .bet-tracker-panel-body {
        padding: 18px;
    }

    .bet-tracker-panel-toolbar--end,
    .bet-tracker-panel-toolbar--split {
        justify-content: stretch;
    }

    .bet-tracker-bankroll-create,
    .bet-tracker-actions,
    .bet-tracker-form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .bet-tracker-bankroll-create input {
        min-width: 0;
    }

    .bet-tracker-primary,
    .bet-tracker-secondary,
    .bet-tracker-danger {
        width: 100%;
    }
}

.value-bets-track-form,
.fv-track-form {
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.value-bets-track-form input,
.fv-track-form input {
    display: none;
}

.bet-tracker-inline-feedback {
    flex: 1 0 100%;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    color: #5d789e;
}

.bet-tracker-inline-feedback.is-success {
    color: #1f6b43;
}

.bet-tracker-inline-feedback.is-error {
    color: #b13f27;
}

.value-bets-track-button.is-added,
.fv-track-button.is-added {
    background: linear-gradient(180deg, rgba(231, 238, 248, 0.98) 0%, rgba(219, 228, 241, 0.98) 100%);
    border-color: rgba(163, 181, 207, 0.52);
    color: #617792;
    box-shadow: none;
    cursor: default;
    filter: none;
}

/* Join page */
.join-page {
    color: #00285c;
    display: grid;
    gap: 22px;
    margin: 34px auto 64px;
    max-width: 1180px;
}

.join-hero,
.join-card,
.join-benefit-card,
.join-summary-card,
.join-error {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #d2e2f5;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 38, 92, 0.12);
}

.join-hero {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    padding: 30px;
}

.join-hero-copy h1 {
    color: #00285c;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    line-height: 1;
    margin: 8px 0 16px;
    max-width: 880px;
}

.join-hero-copy p {
    color: #244a7a;
    margin: 0;
    max-width: 860px;
}

.join-kicker {
    color: #0056d6;
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.join-summary-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 22px;
}

.join-summary-card span,
.join-summary-card p {
    color: #244a7a;
}

.join-summary-card strong {
    color: #00285c;
    display: block;
    font-size: 1.6rem;
    margin: 6px 0;
}

.join-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
}

.join-card,
.join-benefit-card {
    padding: 24px;
}

.join-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.join-form-grid label {
    color: #174a86;
    display: grid;
    font-weight: 900;
    gap: 8px;
    min-width: 0;
}

.join-form-grid input {
    background: #ffffff;
    border: 1px solid #b9d0ec;
    border-radius: 10px;
    box-sizing: border-box;
    color: #00285c;
    font: inherit;
    height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.join-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.join-primary,
.join-login-callout {
    align-items: center;
    border-radius: 999px;
    box-sizing: border-box;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    text-decoration: none;
}

.join-primary {
    background: #16c784;
    border: 1px solid #16c784;
    color: #00285c;
    cursor: pointer;
}

.join-login-callout {
    background: #ffffff;
    border: 2px solid #1d75df;
    color: #00285c;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(29, 117, 223, 0.16);
}

.join-login-callout span {
    color: #244a7a;
}

.join-login-callout strong {
    color: #0056d6;
}

.join-benefit-card {
    background: #ffffff;
}

.join-benefit-card ul {
    color: #244a7a;
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding-left: 20px;
}

.join-error {
    background: #fff1f3;
    border-color: #ffb3c0;
    color: #991b1b;
    padding: 16px 20px;
}

.section-card,
.home-page .home-credibility-section {
    border: 1px solid var(--fpp-card-outline);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: var(--fpp-shadow-soft);
    overflow: hidden;
}

.premium-block-header,
.section-card-header,
.value-bets-table-head,
.value-bets-filter-block-header,
.fvr-strategy-head,
.fvr-month-head,
.home-page .home-credibility-header,
.guide-panel-header,
.site-settings-section-head,
.fhg-page-header,
.ai-section-header,
.results-strategy-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 84px;
    padding: 20px 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(135deg, var(--fpp-block-header-start) 0%, var(--fpp-block-header-mid) 56%, var(--fpp-block-header-end) 100%);
    border-bottom: 1px solid rgba(7, 27, 67, 0.3);
    color: var(--fpp-block-header-text);
    text-align: center;
    box-shadow:
        inset 0 1px 0 var(--fpp-block-header-border),
        inset 0 -1px 0 rgba(7, 27, 67, 0.2),
        0 10px 22px rgba(8, 29, 68, 0.12);
    isolation: isolate;
}

.premium-block-header::before,
.section-card-header::before,
.value-bets-table-head::before,
.value-bets-filter-block-header::before,
.fvr-strategy-head::before,
.fvr-month-head::before,
.home-page .home-credibility-header::before,
.guide-panel-header::before,
.site-settings-section-head::before,
.fhg-page-header::before,
.ai-section-header::before,
.results-strategy-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 36%);
    pointer-events: none;
    z-index: 0;
}

.premium-block-header > *,
.section-card-header > *,
.value-bets-table-head > *,
.value-bets-filter-block-header > *,
.fvr-strategy-head > *,
.fvr-month-head > *,
.home-page .home-credibility-header > *,
.guide-panel-header > *,
.site-settings-section-head > *,
.fhg-page-header > *,
.ai-section-header > *,
.results-strategy-header > * {
    position: relative;
    z-index: 1;
}

.guide-panel-header > div:first-child,
.site-settings-section-head > div:first-child,
.fhg-page-header > div:first-child,
.ai-section-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.section-card-header h2,
.value-bets-table-head h2,
.home-page .home-credibility-header h2,
.guide-panel-header h2,
.site-settings-section-head h2,
.fhg-page-header h2,
.ai-section-header h2,
.value-bets-filter-block-header h3 {
    margin: 0;
    width: 100%;
    color: var(--fpp-block-header-text);
    font-size: clamp(1.18rem, 1.9vw, 1.52rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.guide-panel-header p,
.site-settings-section-head p,
.fhg-page-header p,
.ai-section-header p {
    margin: 8px 0 0;
    color: var(--fpp-block-header-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.section-card-body,
.home-page .home-credibility-body {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 28px 30px;
    background: transparent;
}

.section-card-body p,
.home-page .home-credibility-body p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.home-snapshot-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.home-snapshot-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 100%;
    padding: 18px 18px 16px;
    border: 1px solid #b9d0f2;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-snapshot-metric:nth-child(1) {
    background: linear-gradient(135deg, #eef9f2 0%, #dff3e7 100%);
}

.home-snapshot-metric:nth-child(2) {
    background: linear-gradient(135deg, #fff9e8 0%, #fff1cc 100%);
}

.home-snapshot-metric:nth-child(3) {
    background: linear-gradient(135deg, #fff2ea 0%, #ffe0cf 100%);
}

.home-snapshot-metric-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef6ff 0%, #dbe9ff 100%);
    border: 1px solid #c7dbf7;
    color: #062b5f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-snapshot-metric strong {
    display: block;
    margin: 0;
    color: #163356;
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    line-height: 1;
}

.home-page .home-credibility-body .home-snapshot-metric p {
    max-width: 250px;
    margin: 12px auto 0;
    color: #50698d;
    font-size: 13px;
    line-height: 1.65;
}

.home-members-tools-section .home-credibility-body {
    max-width: none;
    padding-bottom: 20px;
}

.home-members-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 32px 24px;
    align-items: stretch;
}

.home-member-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-width: 0;
    height: auto;
    min-height: 252px;
    margin: 0;
    padding: 18px 18px 18px;
    border: 1px solid #b9d0f2;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-member-tool-card-green {
    background: linear-gradient(135deg, #eef9f2 0%, #dff3e7 100%);
}

.home-member-tool-card-yellow {
    background: linear-gradient(135deg, #fff9e8 0%, #fff1cc 100%);
}

.home-member-tool-card-orange {
    background: linear-gradient(135deg, #fff2ea 0%, #ffe0cf 100%);
}

.home-member-tool-card-blue {
    background: linear-gradient(135deg, #edf4ff 0%, #dce9ff 100%);
}

.home-member-tool-card-purple {
    background: linear-gradient(135deg, #f5efff 0%, #e8dcff 100%);
}

.home-member-tool-card-teal {
    background: linear-gradient(135deg, #ecfbfa 0%, #d8f3f0 100%);
}

.home-member-tool-card-pink {
    background: linear-gradient(135deg, #fff0f6 0%, #ffddea 100%);
}

.home-member-tool-card-slate {
    background: linear-gradient(135deg, #f4f7fb 0%, #e4ebf6 100%);
}

.home-member-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    align-self: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(238, 246, 255, 0.95) 0%, rgba(219, 233, 255, 0.95) 100%);
    border: 1px solid #c7dbf7;
    color: #ffffff;
}

.home-member-tool-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-member-tool-card-green .home-member-tool-icon {
    background: linear-gradient(180deg, #63b77d 0%, #3a9a5f 100%);
    border-color: #58a872;
}

.home-member-tool-card-yellow .home-member-tool-icon {
    background: linear-gradient(180deg, #ddb443 0%, #c79616 100%);
    border-color: #c89a22;
}

.home-member-tool-card-orange .home-member-tool-icon {
    background: linear-gradient(180deg, #e39a62 0%, #ce7b3e 100%);
    border-color: #cf8248;
}

.home-member-tool-card-blue .home-member-tool-icon {
    background: linear-gradient(180deg, #4f8ff7 0%, #2d6cdf 100%);
    border-color: #3f7ae2;
}

.home-member-tool-card-purple .home-member-tool-icon {
    background: linear-gradient(180deg, #8f79d9 0%, #745dc4 100%);
    border-color: #7b66c8;
}

.home-member-tool-card-teal .home-member-tool-icon {
    background: linear-gradient(180deg, #53b8b0 0%, #2f968f 100%);
    border-color: #43a49d;
}

.home-member-tool-card-pink .home-member-tool-icon {
    background: linear-gradient(180deg, #d985ac 0%, #bf628f 100%);
    border-color: #ca749c;
}

.home-member-tool-card-slate .home-member-tool-icon {
    background: linear-gradient(180deg, #7d92b2 0%, #607795 100%);
    border-color: #6f86a5;
}

.home-member-tool-card .home-snapshot-metric-label {
    margin-bottom: 12px;
}

.home-page .home-credibility-body .home-member-tool-card p {
    max-width: 230px;
    margin: 0 auto;
    color: #50698d;
    font-size: 13px;
    line-height: 1.65;
}

.home-member-tool-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 36px;
    margin-top: 24px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #7da8e9;
    background: rgba(255, 255, 255, 0.55);
    color: #0b4a96;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.home-member-tool-action:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: #5d8fd9;
    transform: translateY(-1px);
}

.home-members-tools-action {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: -14px;
}

.home-guides-section .home-credibility-body {
    max-width: none;
}

.home-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    align-items: stretch;
}

.home-guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    min-height: 252px;
    padding: 22px 18px 18px;
    border: 1px solid #b9d0f2;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-guide-card-green {
    background: linear-gradient(135deg, #eef9f2 0%, #dff3e7 100%);
}

.home-guide-card-yellow {
    background: linear-gradient(135deg, #fff9e8 0%, #fff1cc 100%);
}

.home-guide-card-orange {
    background: linear-gradient(135deg, #fff2ea 0%, #ffe0cf 100%);
}

.home-guide-card-blue {
    background: linear-gradient(135deg, #edf4ff 0%, #dce9ff 100%);
}

.home-guide-card-purple {
    background: linear-gradient(135deg, #f5efff 0%, #e8dcff 100%);
}

.home-guide-card-teal {
    background: linear-gradient(135deg, #ecfbfa 0%, #d8f3f0 100%);
}

.home-guide-card-pink {
    background: linear-gradient(135deg, #fff0f6 0%, #ffddea 100%);
}

.home-guide-card-slate {
    background: linear-gradient(135deg, #f4f7fb 0%, #e4ebf6 100%);
}

.home-guide-card-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef6ff 0%, #dbe9ff 100%);
    border: 1px solid #c7dbf7;
    color: #062b5f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-guide-card h3 {
    margin: 0;
    color: #163356;
    font-size: 1.1rem;
    line-height: 1.3;
}

.home-page .home-credibility-body .home-guide-card p {
    max-width: 235px;
    margin: 14px auto 0;
    color: #50698d;
    font-size: 13px;
    line-height: 1.65;
}

.home-guide-card .home-member-tool-action {
    margin-top: auto;
}

.home-links-section .home-credibility-body {
    max-width: none;
}

.home-links-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.home-links-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.home-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.home-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.home-links-row-primary {
    justify-content: space-between;
}

.home-links-row-secondary {
    justify-content: center;
}

.home-links-grid .home-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #7da8e9;
    background: rgba(255, 255, 255, 0.55);
    color: #0b4a96;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.home-links-grid .home-link-chip:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: #5d8fd9;
    transform: translateY(-1px);
}

.home-links-awareness {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 178px;
    padding: 12px 16px 10px;
    gap: 2px;
    border: 1px solid #d5dbe5;
    border-radius: 16px;
    background: #ffffff;
    color: #5a7091;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(10, 37, 84, 0.06);
}

.home-links-awareness-title {
    font-weight: 700;
    color: #384b67;
}

.home-links-awareness strong {
    font-weight: 800;
}

.home-links-awareness-gamble {
    color: #339b43;
}

.home-links-awareness-aware {
    color: #1f2937;
}

.home-links-awareness a {
    color: #465b78;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
}

.home-links-awareness-accent {
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd24a 0%, #f0b71a 100%);
}

.home-links-footer {
    margin: 0;
    color: #6b7f9d;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.home-links-section .home-links-footer {
    display: none;
}

.home-links-footer-external {
    margin-top: 14px;
    font-size: 0;
}

.home-links-footer-external::before {
    content: "\00A9 Bring The BOOM! 2026";
    font-size: 11px;
    line-height: 1.4;
}

.legal-page .section-card-header {
    box-sizing: border-box;
    padding: 20px 40px;
    text-align: left;
}

.legal-page .section-card-body {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 40px;
    text-align: left;
}

.legal-page .section-card-body p {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    white-space: normal;
}

.legal-page .legal-section {
    width: 100%;
    max-width: none;
    margin: 0;
}

.legal-page .legal-section p {
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.legal-page .legal-section p:not(:last-child) {
    margin-bottom: 14px;
}

@media (max-width: 1100px) {
    .home-members-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-links-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .home-links-row-primary {
        justify-content: center;
    }

    .home-links-awareness {
        align-items: center;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .legal-page .section-card-header {
        padding: 18px 18px;
    }

    .legal-page .section-card-body {
        box-sizing: border-box;
        padding: 22px 18px;
    }

    .home-snapshot-metrics {
        grid-template-columns: 1fr;
    }

    .home-members-tools-section .home-credibility-body {
        padding-bottom: 18px;
    }

    .home-members-tools-action {
        margin-top: 18px;
    }

    .home-members-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-members-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .join-hero,
    .join-layout,
    .join-form-grid {
        grid-template-columns: 1fr;
    }

    .join-hero {
        padding: 22px;
    }
}

/* =====================================================
   PREMIUM FOUNDATION PASS
===================================================== */

:root {
    --fpp-font-sans: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --fpp-blue-950: #071b43;
    --fpp-blue-900: #0b2f6c;
    --fpp-blue-850: #123f84;
    --fpp-blue-800: #0f5ed7;
    --fpp-blue-700: #1f6fe5;
    --fpp-blue-600: #4f8ff7;
    --fpp-blue-100: #d9e8ff;
    --fpp-blue-75: #e9f2ff;
    --fpp-blue-50: #f4f8ff;
    --fpp-text-strong: #163356;
    --fpp-text: #24456d;
    --fpp-text-muted: #5d7697;
    --fpp-border-soft: rgba(120, 160, 224, 0.28);
    --fpp-border-strong: #c6d9f8;
    --fpp-card-outline: rgba(21, 81, 172, 0.52);
    --fpp-surface-page: #f3f8ff;
    --fpp-surface-card: rgba(255, 255, 255, 0.96);
    --fpp-surface-card-soft: rgba(248, 251, 255, 0.98);
    --fpp-shadow-soft: 0 18px 40px rgba(10, 37, 84, 0.08);
    --fpp-shadow-card: 0 24px 60px rgba(10, 37, 84, 0.14);
    --fpp-shadow-hero: 0 26px 56px rgba(8, 29, 68, 0.22);
    --fpp-block-header-start: #0a275f;
    --fpp-block-header-mid: #104da8;
    --fpp-block-header-end: #2570dd;
    --fpp-block-header-text: #f8fbff;
    --fpp-block-header-text-soft: rgba(231, 241, 255, 0.9);
    --fpp-block-header-border: rgba(255, 255, 255, 0.16);
    --fpp-table-header-gradient: linear-gradient(135deg, var(--fpp-block-header-start) 0%, var(--fpp-block-header-mid) 56%, var(--fpp-block-header-end) 100%);
    --fpp-table-header-text: var(--fpp-block-header-text);
    --fpp-table-header-divider: rgba(196, 222, 255, 0.18);
    --fpp-table-header-bottom: rgba(7, 27, 67, 0.28);
    --fpp-button-text-on-dark: #f8fbff;
    --fpp-button-text-on-light: #14345d;
    --fpp-button-text-on-gold: #4a3800;
    --fpp-button-text-danger: #b42318;
    --fpp-button-border-light: rgba(93, 140, 213, 0.34);
    --fpp-button-border-strong: rgba(13, 76, 168, 0.42);
    --fpp-button-border-gold: rgba(203, 154, 24, 0.42);
    --fpp-button-border-danger: rgba(220, 38, 38, 0.24);
    --fpp-button-shadow-primary: 0 14px 28px rgba(15, 94, 215, 0.22);
    --fpp-button-shadow-primary-hover: 0 18px 34px rgba(15, 94, 215, 0.26);
    --fpp-button-shadow-secondary: 0 12px 24px rgba(10, 37, 84, 0.08);
    --fpp-button-shadow-secondary-hover: 0 16px 30px rgba(10, 37, 84, 0.12);
    --fpp-button-shadow-gold: 0 16px 30px rgba(214, 172, 21, 0.24);
    --fpp-button-shadow-gold-hover: 0 20px 36px rgba(214, 172, 21, 0.28);
    --fpp-button-shadow-danger: 0 12px 22px rgba(220, 38, 38, 0.12);
    --fpp-button-shadow-danger-hover: 0 16px 28px rgba(220, 38, 38, 0.16);
    --fpp-radius-xl: 24px;
    --fpp-radius-2xl: 30px;
    --fpp-radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--fpp-surface-page);
}

body {
    margin: 0;
    color: var(--fpp-text);
    font-family: var(--fpp-font-sans);
    background:
        radial-gradient(circle at top, rgba(79, 143, 247, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 46%, #f4f8ff 100%);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    padding: 24px 20px 44px;
}

.page-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.page-shell--narrow {
    width: min(760px, 100%);
}

.page-stack {
    display: grid;
    gap: 24px;
}

.page-section-hero {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: var(--fpp-radius-2xl);
    border: 1px solid rgba(108, 168, 242, 0.3);
    background:
        radial-gradient(circle at top right, rgba(167, 216, 255, 0.26), transparent 24%),
        radial-gradient(circle at bottom left, rgba(69, 144, 250, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(7, 28, 67, 0.96) 0%, rgba(19, 74, 153, 0.94) 56%, rgba(88, 175, 255, 0.92) 100%);
    color: #ffffff;
    box-shadow: var(--fpp-shadow-hero);
    isolation: isolate;
}

.page-section-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -34% auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 224, 255, 0.28) 0%, rgba(180, 224, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.page-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-section-title,
.page-section-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.page-section-lead {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(240, 247, 255, 0.95);
    font-size: 17px;
    line-height: 1.75;
}

.shared-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.shared-button:hover {
    transform: translateY(-1px);
}

.shared-button--primary {
    background: linear-gradient(135deg, #0f5ed7 0%, #1f6fe5 100%);
    border-color: #0f5ed7;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 94, 215, 0.22);
}

.shared-button--secondary {
    border-color: rgba(15, 94, 215, 0.18);
    background: #eef5ff;
    color: #163356;
}

.shared-button--gold {
    border-color: #d6ac15;
    background: linear-gradient(180deg, #ffe47f 0%, #ffc92e 100%);
    color: #4b3900;
    box-shadow: 0 16px 30px rgba(214, 172, 21, 0.26);
}

.premium-preview-card,
.auth-card {
    border-radius: 24px;
    border: 1px solid var(--fpp-border-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
    box-shadow: var(--fpp-shadow-soft);
}

.auth-page {
    margin-top: 14px;
}

.auth-hero {
    display: grid;
    gap: 22px;
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.auth-card {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.auth-card-error {
    border-color: rgba(185, 28, 28, 0.2);
    background: linear-gradient(180deg, rgba(255, 244, 246, 0.98) 0%, rgba(255, 239, 242, 0.98) 100%);
}

.auth-card-error strong {
    color: #991b1b;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
    color: var(--fpp-text-strong);
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: var(--fpp-text-strong);
    font: inherit;
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(15, 94, 215, 0.48);
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.12);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fpp-text-strong);
    font-weight: 800;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0f5ed7;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.auth-actions .shared-button--secondary {
    border-color: rgba(15, 94, 215, 0.18);
    background: #eef5ff;
    color: #163356;
}

.legal-page {
    padding: 12px 0 44px;
}

.legal-page .section-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    border: 1px solid var(--fpp-border-soft);
    border-radius: 30px;
    overflow: hidden;
    background: var(--fpp-surface-card);
    box-shadow: var(--fpp-shadow-soft);
}

.section-card-header {
    padding: 20px 32px;
}

.section-card-body {
    width: 100%;
    margin: 0;
    padding: 24px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.legal-page .legal-section {
    width: 100%;
    margin: 0;
}

.legal-page .legal-section p {
    margin: 0;
    color: var(--fpp-text-strong);
    font-size: 15px;
    line-height: 1.68;
    text-align: left;
    max-width: none;
}

.legal-page .legal-section p:not(:last-child) {
    margin-bottom: 14px;
}

.legal-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
}

.affiliates-hero-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.affiliates-signup-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(7, 28, 67, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.affiliates-signup-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.2;
}

.affiliates-signup-panel .section-card-body {
    max-width: none;
}

.affiliates-signup-panel-body {
    display: flex;
    justify-content: flex-start;
}

.affiliates-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 17, 39, 0.5);
}

.affiliates-modal.is-open {
    display: flex;
}

.affiliates-modal-dialog {
    width: min(100%, 420px);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--fpp-border-soft);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(10, 37, 84, 0.24);
    text-align: center;
}

.affiliates-modal-dialog h2 {
    margin: 0 0 12px;
    color: #062b5f;
    font-size: 1.4rem;
    line-height: 1.2;
}

.affiliates-modal-dialog p {
    margin: 0;
    color: #163356;
    font-size: 15px;
    line-height: 1.65;
}

.guides-page {
    padding: 12px 0 44px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.guides-page .home-guide-card {
    min-height: 270px;
}

.guides-page .home-guide-card p {
    max-width: 235px;
    margin: 14px auto 0;
    color: #50698d;
    font-size: 13px;
    line-height: 1.65;
}

.guide-page {
    width: min(1160px, 100%);
    max-width: none;
    margin: 0 auto;
    padding: 12px 0 44px;
}

.guide-panel {
    border-radius: 24px;
    border: 1px solid var(--fpp-card-outline);
    box-shadow: 0 20px 50px rgba(10, 37, 84, 0.12);
    overflow: hidden;
    background: #ffffff;
}

.guide-panel-header {
    padding: 20px 26px;
}

.guide-panel-header h2 {
}

.guide-panel-body {
    padding: 26px;
}

.guide-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-section {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #d6e4f8;
    background: #f7fbff;
}

.guide-section h3 {
    margin: 0 0 10px;
    color: #163356;
    font-size: 1rem;
    line-height: 1.25;
}

.guide-section p,
.guide-checklist li {
    color: #425f86;
    font-size: 14px;
    line-height: 1.65;
}

.guide-section p {
    margin: 0;
}

.guide-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-checklist li {
    position: relative;
    padding-left: 22px;
}

.guide-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1a73d9;
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-related-card {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 18px;
    border: 1px solid #d6e4f8;
    border-radius: 18px;
    background: #f7fbff;
    text-decoration: none;
}

.guide-related-card h3 {
    margin: 0;
    color: #163356;
    font-size: 1rem;
    line-height: 1.3;
}

.guide-related-card p {
    margin: 10px 0 0;
    color: #50698d;
    font-size: 13px;
    line-height: 1.6;
}

.guide-related-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    min-height: 34px;
    margin-top: auto;
    padding: 7px 14px;
    border: 1px solid #75aef7;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f9ff 0%, #e6f1ff 100%);
    box-shadow: 0 2px 4px rgba(18, 58, 115, 0.05);
    color: #123a73;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.guides-page .home-member-tool-action,
.guide-page .home-member-tool-action {
    min-height: 34px;
    padding: 7px 14px;
    border-color: #75aef7;
    background: linear-gradient(180deg, #f4f9ff 0%, #e6f1ff 100%);
    color: #123a73;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(18, 58, 115, 0.05);
}

.guides-page .home-member-tool-action:hover,
.guide-page .home-member-tool-action:hover {
    border-color: #4f90eb;
    background: linear-gradient(180deg, #ecf5ff 0%, #dbeaff 100%);
    color: #0f2e5d;
    box-shadow: 0 8px 18px rgba(15, 94, 215, 0.12);
}

.guides-page .home-guide-card .home-member-tool-action {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    width: auto;
    flex: 0 0 auto;
    text-align: center;
}

.guide-actions .home-member-tool-action {
    margin-top: 0;
    border-color: #6ba2ee;
    box-shadow: 0 4px 10px rgba(15, 94, 215, 0.08);
    width: auto;
    flex: 0 0 auto;
    text-align: center;
}

.guide-related-card:hover span {
    border-color: #4f90eb;
    background: linear-gradient(180deg, #ecf5ff 0%, #dbeaff 100%);
    color: #0f2e5d;
    box-shadow: 0 8px 18px rgba(15, 94, 215, 0.12);
    transform: translateY(-1px);
}

.home-page {
    padding: 12px 0 44px;
    display: grid;
    gap: 24px;
}

.home-hero,
.home-section,
.home-cta {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(125, 182, 255, 0.22);
    box-shadow: 0 24px 60px rgba(10, 37, 84, 0.14);
}

.home-hero {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(88, 214, 255, 0.24), transparent 25%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 26%),
        linear-gradient(135deg, #0a2f6b 0%, #0f5ed7 58%, #a9d2ff 100%);
    color: #ffffff;
}

.home-hero-grid,
.home-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.home-kicker,
.home-section-kicker,
.home-metric-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-kicker {
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 31, 73, 0.28);
    color: #f8fbff;
}

.home-hero h1,
.home-cta-copy h2 {
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.8rem, 4.8vw, 5.2rem);
}

.home-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(240, 247, 255, 0.95);
    font-size: 17px;
    line-height: 1.75;
}

.home-support {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(225, 238, 255, 0.92);
    font-size: 15px;
    line-height: 1.75;
}

.home-actions,
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-button:hover {
    transform: translateY(-1px);
}

.home-button-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #03120a;
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.24);
}

.home-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.home-hero-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 24px;
    color: #f8fbff;
    font-size: 13px;
    font-weight: 700;
}

.home-value-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-value-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.home-value-pill.high {
    background: rgba(34, 197, 94, 0.18);
    color: #dcfce7;
}

.home-value-pill.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fef3c7;
}

.home-value-pill.low {
    background: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
}

.home-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-tag.public {
    background: rgba(232, 247, 236, 0.96);
    color: #126a36;
}

.home-tag.members {
    background: rgba(255, 244, 232, 0.96);
    color: #c2410c;
}

.home-hero-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.home-hero-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #d6e4f8;
    background: linear-gradient(180deg, #f3f8ff 0%, #eaf3ff 100%);
    color: #17365e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(15, 94, 215, 0.06);
}

.home-hero-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0f5ed7 0%, #0a4cb0 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 94, 215, 0.22);
}

.home-hero-step-copy {
    display: grid;
    gap: 4px;
}

.home-hero-step-label {
    color: #0f5ed7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero-step-copy strong {
    color: #163356;
    font-size: 14px;
    line-height: 1.5;
}

.home-button-join {
    border: 1px solid #d6ac15;
    background: linear-gradient(180deg, #ffe47f 0%, #ffc92e 100%);
    color: #4b3900;
    box-shadow: 0 18px 34px rgba(214, 172, 21, 0.26);
}

.home-button-join:hover {
    box-shadow: 0 22px 38px rgba(214, 172, 21, 0.3);
}

.home-section {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(125, 182, 255, 0.22), transparent 24%),
        radial-gradient(circle at left center, rgba(15, 94, 215, 0.08), transparent 30%),
        linear-gradient(135deg, #eef5ff 0%, #e3efff 52%, #d7e8ff 100%);
    color: #163356;
}

.home-credibility-section {
    padding: 0;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    border: 1px solid rgba(168, 200, 240, 0.55);
    box-shadow: 0 18px 40px rgba(10, 37, 84, 0.08);
}

.home-credibility-inner {
    overflow: hidden;
    border-radius: 28px;
}

.home-credibility-header {
    justify-content: flex-start;
}

.home-credibility-header h2 {
    font-size: clamp(1.28rem, 2.4vw, 1.8rem);
}

.home-credibility-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 28px 30px;
    text-align: center;
}

.home-credibility-body p {
    margin: 0 auto;
    max-width: 760px;
    color: #4f678d;
    font-size: 15px;
    line-height: 1.8;
}

.home-section-heading {
    max-width: 780px;
    margin-bottom: 20px;
}

.home-section-kicker {
    margin-bottom: 12px;
    background: #c4cede;
    color: #ffffff;
}

.home-section-heading h2 {
    margin: 0;
    color: #163356;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-section-heading p {
    margin: 14px 0 0;
    color: #4f678d;
    font-size: 15px;
    line-height: 1.75;
}

.home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-metric {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dceafb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.home-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #0f5ed7 0%, #22c55e 100%);
}

.home-metric-label {
    background: #c4cede;
    color: #ffffff;
}

.home-metric strong {
    display: block;
    margin-top: 14px;
    color: #163356;
    font-size: 2.4rem;
    line-height: 1;
}

.home-metric p {
    margin: 10px 0 0;
    color: #5a7091;
    font-size: 13px;
    line-height: 1.6;
    max-width: 220px;
}

.home-card-grid {
    display: grid;
    gap: 14px;
}

.home-card-grid.public-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card-grid.members-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dceafb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.home-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-card-eyebrow {
    margin: 0;
    color: #48627f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-card h3 {
    margin: 2px 0 0;
    color: #163356;
    font-size: 1.15rem;
    line-height: 1.2;
}

.home-card p {
    margin: 0;
    color: #4f678d;
    font-size: 14px;
    line-height: 1.7;
}

.home-card strong {
    color: #163356;
    font-size: 14px;
    line-height: 1.6;
}

.home-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: fit-content;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dceafb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #163356;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.home-note {
    margin: 16px 0 0;
    color: #5a7091;
    font-size: 13px;
    line-height: 1.7;
}

.home-note span {
    color: #163356;
    font-weight: 700;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-step {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dceafb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
}

.home-step h3 {
    margin: 14px 0 0;
    color: #163356;
    font-size: 1.1rem;
}

.home-step p {
    margin: 10px 0 0;
    color: #4f678d;
    font-size: 14px;
    line-height: 1.7;
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dceafb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #163356;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.home-cta {
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(88, 214, 255, 0.24), transparent 24%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 26%),
        linear-gradient(135deg, #0a2f6b 0%, #0f5ed7 58%, #a9d2ff 100%);
    color: #ffffff;
}

.home-cta-copy h2 {
    font-size: clamp(2.2rem, 3.7vw, 3.6rem);
    color: #ffffff;
}

.home-cta-copy p {
    margin: 16px 0 0;
    color: rgba(231, 241, 255, 0.94);
    font-size: 15px;
    line-height: 1.75;
    max-width: 700px;
}

.home-cta-panel {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: #163356;
}

.home-cta-panel h3 {
    margin: 0;
    color: #163356;
    font-size: 1.65rem;
}

.home-cta-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.home-cta-list li {
    position: relative;
    padding-left: 18px;
    color: #4f678d;
    font-size: 14px;
    line-height: 1.65;
}

.home-cta-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

@media (max-width: 1180px) {
    .home-cta-grid,
    .home-metrics,
    .home-link-grid,
    .home-card-grid.members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-card-grid.public-grid,
    .home-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .section-card-header {
        padding: 18px 18px;
    }

    .guide-panel-header,
    .site-settings-section-head,
    .fhg-page-header,
    .ai-section-header,
    .results-strategy-header {
        padding: 18px;
    }

    .section-card-body {
        padding: 22px 18px;
    }

    .legal-hero--split {
        grid-template-columns: 1fr;
    }

    .affiliates-signup-card {
        align-items: flex-start;
    }

    .guide-section-grid,
    .guide-related-grid {
        grid-template-columns: 1fr;
    }

    .results-strategy-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-strategy-summary {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 760px) {
    .page-section-hero {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .page-section-title,
    .page-section-hero h1 {
        font-size: clamp(2.2rem, 9vw, 3.6rem);
    }

    .page-section-lead {
        font-size: 15px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions .shared-button {
        width: 100%;
    }

    .home-page {
        padding-top: 14px;
    }

    .home-hero,
    .home-section,
    .home-cta {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .home-credibility-section {
        padding: 0;
    }

    .home-credibility-inner {
        border-radius: 24px;
    }

    .home-credibility-header {
        min-height: 72px;
        padding: 18px;
    }

    .home-credibility-body {
        padding: 22px 18px 24px;
    }

    .home-cta-grid,
    .home-metrics,
    .home-card-grid.public-grid,
    .home-card-grid.members-grid,
    .home-steps,
    .home-link-grid {
        grid-template-columns: 1fr;
    }

    .home-actions,
    .home-cta-actions {
        flex-direction: column;
    }

    .home-button,
    .home-link-chip {
        width: 100%;
    }

}

@media (max-width: 640px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guide-panel-body {
        padding: 22px;
    }
}

.page-inline-banner {
    display: block;
    margin-bottom: 20px;
}

.page-inline-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-wrapper.page-shell,
.fixtures-page-wrap.page-shell,
.probability-rankings-page.page-shell,
.ladder-page.page-shell,
.odds-converter-page.page-shell,
.site-settings-page.page-shell,
.value-bets-backtesting-page.page-shell {
    width: min(1320px, 100%);
    max-width: none;
    margin: 0 auto;
}

.page-wrapper.page-stack,
.fixtures-page-wrap.page-stack,
.probability-rankings-page.page-stack,
.ladder-page.page-stack,
.odds-converter-page.page-stack,
.site-settings-page.page-stack,
.value-bets-backtesting-page.page-stack {
    display: grid;
    gap: 24px;
    padding: 12px 0 40px;
}

.fvr-main {
    padding-top: 12px;
}

.fvr-main > .page-hero {
    margin-bottom: 0;
}

.fvr-main > .value-bets-subnav {
    margin-bottom: 44px;
}

.fvr-metrics {
    max-width: 1320px;
    margin: 0 auto;
}

.value-bets-backtesting-page {
    --vb-ink: #0d2f63;
    --vb-ink-soft: #4f6f9d;
    --vb-line: #cfe0fb;
    --vb-panel: rgba(255, 255, 255, 0.94);
    --vb-blue: #1f6fe5;
    --vb-green: #168152;
    --vb-red: #c34131;
    --vb-gold: #c79624;
}

.value-bets-backtesting-overview,
.value-bets-backtesting-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(125, 168, 236, 0.36);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(8, 29, 68, 0.08);
}

.value-bets-backtesting-overview {
    overflow: hidden;
    padding: 0;
}

.value-bets-backtesting-overview-body {
    display: grid;
    gap: 22px;
    padding: 22px 22px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.value-bets-backtesting-section-head--inner {
    border-radius: 24px;
    overflow: hidden;
}

.value-bets-backtesting-card .value-bets-backtesting-section-head h2 {
    color: #ffffff;
}

.value-bets-backtesting-overview h1,
.value-bets-backtesting-card h2 {
    margin: 0;
    color: var(--vb-ink);
}

.value-bets-backtesting-overview p,
.value-bets-backtesting-card p {
    margin: 0;
    color: var(--vb-ink-soft);
    line-height: 1.6;
}

.value-bets-backtesting-actions,
.value-bets-backtesting-stats,
.value-bets-backtesting-summary-grid,
.value-bets-backtesting-breakdowns {
    display: grid;
    gap: 16px;
}

.value-bets-backtesting-actions {
    grid-template-columns: repeat(2, minmax(180px, max-content));
    align-items: center;
    justify-content: flex-end;
}

.value-bets-backtesting-actions--inside {
    margin-bottom: 20px;
}

.value-bets-backtesting-page .value-bets-backtesting-button,
.value-bets-backtesting-page .value-bets-backtesting-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.value-bets-backtesting-page .value-bets-backtesting-button {
    min-width: 180px;
}

.value-bets-backtesting-page .value-bets-backtesting-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.value-bets-backtesting-page .value-bets-backtesting-link {
    min-width: 180px;
}

.value-bets-backtesting-page .value-bets-backtesting-link--reset {
    background: linear-gradient(180deg, #fff4f5 0%, #ffe4e8 100%);
    border-color: var(--fpp-button-border-danger);
    color: var(--fpp-button-text-danger);
    box-shadow: var(--fpp-button-shadow-danger);
}

.value-bets-backtesting-page .value-bets-backtesting-link--reset:hover {
    box-shadow: var(--fpp-button-shadow-danger-hover);
    background: linear-gradient(180deg, #fff8f8 0%, #ffecef 100%);
}

.value-bets-backtesting-page .value-bets-backtesting-button:hover,
.value-bets-backtesting-page .value-bets-backtesting-link:hover {
    transform: translateY(-1px);
}

.value-bets-backtesting-status {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #31537f;
    border: 1px solid rgba(125, 168, 236, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.value-bets-backtesting-status.is-error {
    background: linear-gradient(180deg, #fff6f6 0%, #ffecee 100%);
    border-color: rgba(220, 38, 38, 0.18);
    color: #b13f27;
}

.value-bets-backtesting-sync-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.value-bets-backtesting-sync-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    min-height: 164px;
    padding: 22px 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border: 1px solid rgba(125, 168, 236, 0.62);
    border-radius: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 22px 46px rgba(8, 29, 68, 0.14);
}

.value-bets-backtesting-sync-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.value-bets-backtesting-sync-item > * {
    position: relative;
    z-index: 1;
}

.value-bets-backtesting-sync-item span,
.value-bets-backtesting-stat span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.34);
    background: rgba(219, 234, 254, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #2b6fd6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.value-bets-backtesting-sync-item strong,
.value-bets-backtesting-stat strong {
    color: var(--vb-ink);
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 1.25;
}

.value-bets-backtesting-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.value-bets-backtesting-summary-stack {
    display: grid;
    gap: 18px;
}

.value-bets-backtesting-summary-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(125, 168, 236, 0.34);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 16px 34px rgba(8, 29, 68, 0.07);
}

.value-bets-backtesting-summary-row-head {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 132px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #123a73 0%, #1d73df 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(18, 58, 115, 0.18);
}

.value-bets-backtesting-summary-row-head span {
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: uppercase;
}

.value-bets-backtesting-summary-row-head p {
    max-width: 240px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.5;
}

.value-bets-backtesting-summary-grid--overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-bets-backtesting-summary-grid--odds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.value-bets-backtesting-summary-row .value-bets-backtesting-stat span {
    max-width: 100%;
    min-height: 28px;
    padding: 5px 11px;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: normal;
}

.value-bets-backtesting-empty-summary {
    border: 1px solid rgba(125, 168, 236, 0.32);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.98) 100%);
    color: #31537f;
    padding: 34px 30px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 18px 38px rgba(8, 29, 68, 0.08);
}

.value-bets-backtesting-empty-summary strong {
    color: var(--vb-ink);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.value-bets-backtesting-stat {
    display: grid;
    gap: 9px;
    align-content: center;
    justify-items: center;
    min-height: 132px;
    padding: 18px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border: 1px solid rgba(125, 168, 236, 0.52);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 18px 40px rgba(8, 29, 68, 0.1);
}

.value-bets-backtesting-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.14) 0%, rgba(125, 211, 252, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.value-bets-backtesting-stat strong {
    line-height: 1.1;
}

.value-bets-backtesting-stat small {
    color: #4c6d99;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
}

.value-bets-backtesting-card {
    padding: 0;
}

.value-bets-backtesting-filters {
    display: grid;
    gap: 22px;
    margin: 0;
}

.value-bets-backtesting-filter-shell {
    margin-top: 0;
}

.value-bets-backtesting-filter-shell-body {
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.value-bets-backtesting-filter-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.value-bets-backtesting-filter-block {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(125, 168, 236, 0.28);
    box-shadow: 0 14px 30px rgba(8, 29, 68, 0.06);
}

.value-bets-backtesting-filter-block--wide {
    grid-column: 1 / -1;
}

.value-bets-backtesting-filter-block-body {
    padding: 20px;
}

.value-bets-backtesting-field {
    display: grid;
    gap: 8px;
}

.value-bets-backtesting-field label {
    color: #5b7aa4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.value-bets-backtesting-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #c9daf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    color: #0f172a;
    min-height: 44px;
}

.value-bets-backtesting-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9daf3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    color: #0f172a;
    min-height: 42px;
}

.value-bets-backtesting-field select:focus,
.value-bets-backtesting-field input:focus {
    outline: none;
    border-color: #1d75df;
    box-shadow: 0 0 0 3px rgba(29, 117, 223, 0.14);
}

.value-bets-backtesting-field.is-compact {
    gap: 8px;
    min-width: 0;
}

.value-bets-backtesting-field.is-wide {
    width: 100%;
}

.value-bets-backtesting-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.value-bets-backtesting-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #dbe8fb;
    border-radius: 999px;
    background: #f8fbff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.value-bets-backtesting-checkbox-grid.is-compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.value-bets-backtesting-checkbox input {
    width: auto;
    margin: 0;
    accent-color: var(--vb-blue);
}

.value-bets-backtesting-filter-note {
    margin-top: 16px;
    color: #52719a;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #eef4ff);
    border: 1px solid rgba(83, 113, 154, 0.12);
}

.value-bets-backtesting-submit {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.value-bets-backtesting-submit .value-bets-backtesting-button {
    min-width: 220px;
}

.value-bets-backtesting-numeric-grid {
    display: grid;
    gap: 16px;
    margin-top: 0;
}

.value-bets-backtesting-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 16px;
    align-items: end;
}

.value-bets-backtesting-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #eef4ff;
    color: #1a4d96;
}

.value-bets-backtesting-pill.is-won {
    background: #e6f8ee;
    color: #1f7a47;
}

.value-bets-backtesting-pill.is-lost {
    background: #fff0ed;
    color: #b6452d;
}

.value-bets-backtesting-pill.is-pending {
    background: #f4f6fb;
    color: #667795;
}

.value-bets-backtesting-profit-positive {
    color: #147a42;
    font-weight: 700;
}

.value-bets-backtesting-profit-negative {
    color: #c03d2d;
    font-weight: 700;
}

.value-bets-backtesting-stat.is-positive::before {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 34%);
}

.value-bets-backtesting-stat.is-negative::before {
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 34%);
}

.value-bets-backtesting-stat.is-accent::before {
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.18) 0%, rgba(125, 211, 252, 0) 46%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 34%);
}

@media (max-width: 1100px) {
    .value-bets-backtesting-summary-row {
        grid-template-columns: 1fr;
    }

    .value-bets-backtesting-summary-row-head {
        min-height: 0;
    }

    .value-bets-backtesting-summary-row-head p {
        max-width: 100%;
    }

    .value-bets-backtesting-summary-grid--overview,
    .value-bets-backtesting-summary-grid--odds {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 720px) {
    .value-bets-backtesting-overview,
    .value-bets-backtesting-card {
        padding-left: 0;
        padding-right: 0;
    }

    .value-bets-backtesting-actions {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .value-bets-backtesting-sync-strip {
        grid-template-columns: 1fr;
    }

    .value-bets-backtesting-summary-row {
        padding: 14px;
        border-radius: 20px;
    }

    .value-bets-backtesting-summary-row-head {
        padding: 16px;
        border-radius: 16px;
    }

    .value-bets-backtesting-summary-grid--overview,
    .value-bets-backtesting-summary-grid--odds {
        grid-template-columns: 1fr;
    }

    .value-bets-backtesting-filter-layout,
    .value-bets-backtesting-numeric-grid,
    .value-bets-backtesting-filter-row {
        grid-template-columns: 1fr;
    }

    .value-bets-backtesting-filter-shell-body,
    .value-bets-backtesting-overview-body,
    .value-bets-backtesting-filter-block-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .value-bets-backtesting-link,
    .value-bets-backtesting-button {
        width: 100%;
    }

    .value-bets-backtesting-submit .value-bets-backtesting-button {
        min-width: 0;
    }
}

/* =====================================================
   SHARED BUTTON SYSTEM
===================================================== */

.shared-button,
.site-login-button,
.site-join-button,
.premium-preview-primary,
.premium-preview-secondary,
.home-button,
.home-member-tool-action,
.site-settings-save,
.site-settings-secondary,
.value-bets-track-button,
.fv-track-button,
.fhg-download-button,
.filter-button,
.page-league-filter-actions button,
.form-footer button,
.betslip-container button,
.betslip-builder-form-footer button,
.probability-rankings-apply,
.ladder-build-button,
.basic-stats-export-button,
.basic-stats-clear-button,
.basic-stats-apply-button,
.value-bets-backtesting-button,
.value-bets-backtesting-link,
.bet-tracker-primary,
.bet-tracker-secondary,
.bet-tracker-danger,
.fv-filter-actions button,
.fv-filter-presets button,
.fv-filter-delete button,
.fvr-delete-strategy button,
.fvr-delete-row button,
.model-report-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.shared-button:focus-visible,
.site-login-button:focus-visible,
.site-join-button:focus-visible,
.premium-preview-primary:focus-visible,
.premium-preview-secondary:focus-visible,
.home-button:focus-visible,
.home-member-tool-action:focus-visible,
.site-settings-save:focus-visible,
.site-settings-secondary:focus-visible,
.value-bets-track-button:focus-visible,
.fv-track-button:focus-visible,
.fhg-download-button:focus-visible,
.filter-button:focus-visible,
.page-league-filter-actions button:focus-visible,
.form-footer button:focus-visible,
.betslip-container button:focus-visible,
.betslip-builder-form-footer button:focus-visible,
.probability-rankings-apply:focus-visible,
.ladder-build-button:focus-visible,
.basic-stats-export-button:focus-visible,
.basic-stats-clear-button:focus-visible,
.basic-stats-apply-button:focus-visible,
.value-bets-backtesting-button:focus-visible,
.value-bets-backtesting-link:focus-visible,
.bet-tracker-primary:focus-visible,
.bet-tracker-secondary:focus-visible,
.bet-tracker-danger:focus-visible,
.fv-filter-actions button:focus-visible,
.fv-filter-presets button:focus-visible,
.fv-filter-delete button:focus-visible,
.fvr-delete-strategy button:focus-visible,
.fvr-delete-row button:focus-visible,
.model-report-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 177, 248, 0.34);
}

.shared-button:hover,
.site-login-button:hover,
.site-join-button:hover,
.premium-preview-primary:hover,
.premium-preview-secondary:hover,
.home-button:hover,
.home-member-tool-action:hover,
.site-settings-save:hover,
.site-settings-secondary:hover,
.value-bets-track-button:hover,
.fv-track-button:hover,
.fhg-download-button:hover,
.filter-button:hover,
.page-league-filter-actions button:hover,
.form-footer button:hover,
.betslip-container button:hover,
.betslip-builder-form-footer button:hover,
.probability-rankings-apply:hover,
.ladder-build-button:hover,
.basic-stats-export-button:hover,
.basic-stats-clear-button:hover,
.basic-stats-apply-button:hover,
.value-bets-backtesting-button:hover,
.value-bets-backtesting-link:hover,
.bet-tracker-primary:hover,
.bet-tracker-secondary:hover,
.bet-tracker-danger:hover,
.fv-filter-actions button:hover,
.fv-filter-presets button:hover,
.fv-filter-delete button:hover,
.fvr-delete-strategy button:hover,
.fvr-delete-row button:hover,
.model-report-toggle:hover,
.model-report-market-toggle:hover,
.model-report-market-utility:hover,
.model-report-chart-toggle:hover,
.model-report-link:hover {
    transform: translateY(-1px);
}

.shared-button--primary,
.home-button-primary,
.site-settings-save,
.site-settings-secondary,
.filter-button,
.page-league-filter-actions button,
.form-footer button,
.betslip-container button,
.betslip-builder-form-footer button,
.probability-rankings-apply,
.ladder-build-button,
.basic-stats-export-button,
.basic-stats-apply-button,
.value-bets-backtesting-button,
.value-bets-backtesting-link,
.bet-tracker-primary,
.bet-tracker-secondary,
.value-bets-track-button,
.fv-track-button,
.fv-filter-actions button,
.fv-filter-presets button {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    color: var(--fpp-button-text-on-dark);
    box-shadow: var(--fpp-button-shadow-primary);
}

.shared-button--secondary,
.site-login-button,
.premium-preview-secondary,
.home-button-secondary,
.home-member-tool-action,
.probability-rankings-toggle,
.model-report-pill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    border-color: var(--fpp-button-border-light);
    color: var(--fpp-button-text-on-light);
    box-shadow: var(--fpp-button-shadow-secondary);
}

.shared-button--gold,
.site-join-button,
.home-button-join,
.premium-preview-primary {
    background: linear-gradient(180deg, #ffe58a 0%, #ffd451 55%, #ffc321 100%);
    border-color: var(--fpp-button-border-gold);
    color: var(--fpp-button-text-on-gold);
    box-shadow: var(--fpp-button-shadow-gold);
}

.basic-stats-clear-button,
.bet-tracker-danger,
.fv-filter-delete button,
.fvr-delete-strategy button,
.fvr-delete-row button {
    background: linear-gradient(180deg, #fff4f5 0%, #ffe4e8 100%);
    border-color: var(--fpp-button-border-danger);
    color: var(--fpp-button-text-danger);
    box-shadow: var(--fpp-button-shadow-danger);
}

.shared-button--primary:hover,
.home-button-primary:hover,
.site-settings-save:hover,
.site-settings-secondary:hover,
.filter-button:hover,
.page-league-filter-actions button:hover,
.form-footer button:hover,
.betslip-container button:hover,
.betslip-builder-form-footer button:hover,
.probability-rankings-apply:hover,
.ladder-build-button:hover,
.basic-stats-export-button:hover,
.basic-stats-apply-button:hover,
.value-bets-backtesting-button:hover,
.value-bets-backtesting-link:hover,
.bet-tracker-primary:hover,
.bet-tracker-secondary:hover,
.value-bets-track-button:hover,
.fv-track-button:hover,
.fv-filter-actions button:hover,
.fv-filter-presets button:hover {
    box-shadow: var(--fpp-button-shadow-primary-hover);
    filter: brightness(1.01);
}

.shared-button--secondary:hover,
.site-login-button:hover,
.premium-preview-secondary:hover,
.home-button-secondary:hover,
.home-member-tool-action:hover,
.probability-rankings-toggle:hover,
.model-report-toggle:hover,
.model-report-market-toggle:hover,
.model-report-market-utility:hover,
.model-report-chart-toggle:hover,
.model-report-link:hover {
    border-color: rgba(31, 111, 229, 0.42);
    background: linear-gradient(180deg, #ffffff 0%, rgba(241, 247, 255, 0.98) 100%);
    box-shadow: var(--fpp-button-shadow-secondary-hover);
}

.shared-button--gold:hover,
.site-join-button:hover,
.home-button-join:hover,
.premium-preview-primary:hover {
    box-shadow: var(--fpp-button-shadow-gold-hover);
    filter: brightness(1.02);
}

.basic-stats-clear-button:hover,
.bet-tracker-danger:hover,
.fv-filter-delete button:hover,
.fvr-delete-strategy button:hover,
.fvr-delete-row button:hover {
    box-shadow: var(--fpp-button-shadow-danger-hover);
    background: linear-gradient(180deg, #fff8f8 0%, #ffecef 100%);
}

.site-login-button,
.site-join-button,
.model-report-pill,
.home-member-tool-action,
.value-bets-track-button,
.fv-track-button {
    border-radius: var(--fpp-radius-pill);
}

.site-login-button,
.site-join-button {
    height: 38px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
}

.site-login-button,
.model-report-pill,
.home-member-tool-action,
.value-bets-track-button,
.fv-track-button,
.fvr-delete-row button {
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
}

.site-settings-save,
.site-settings-secondary,
.fhg-download-button,
.filter-button,
.page-league-filter-actions button,
.probability-rankings-apply,
.ladder-build-button,
.basic-stats-export-button,
.basic-stats-clear-button,
.basic-stats-apply-button,
.value-bets-backtesting-button,
.value-bets-backtesting-link,
.bet-tracker-primary,
.bet-tracker-secondary,
.bet-tracker-danger,
.fv-filter-actions button,
.fv-filter-presets button,
.fv-filter-delete button,
.fvr-delete-strategy button {
    border-radius: 16px;
}

.basic-stats-export-button,
.basic-stats-clear-button,
.basic-stats-apply-button {
    border-radius: var(--fpp-radius-pill);
    font-size: 0.88rem;
}

.model-report-pill {
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.model-report-pill-accent {
    background: linear-gradient(180deg, #fff4dd 0%, #ffe7b5 100%);
    border-color: rgba(203, 154, 24, 0.28);
    color: #9a5a00;
    box-shadow: 0 10px 20px rgba(214, 172, 21, 0.14);
}

.model-report-toggle,
.model-report-market-toggle,
.model-report-market-utility,
.model-report-chart-toggle {
    cursor: pointer;
}

.model-report-toggle.is-active,
.model-report-market-toggle.is-active {
    background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 56%, #4c96fb 100%);
    border-color: var(--fpp-button-border-strong);
    color: var(--fpp-button-text-on-dark);
    box-shadow: var(--fpp-button-shadow-primary);
}

.probability-rankings-toggle {
    box-shadow: var(--fpp-button-shadow-secondary);
}

.fhg-download-button {
    min-height: 44px;
    padding: 0 16px;
}

.fhg-page-header .fhg-download-button {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
}

.fhg-page-header .fhg-download-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.shared-button:disabled,
.site-settings-secondary:disabled,
.basic-stats-export-button:disabled,
.basic-stats-export-button.is-locked,
.value-bets-backtesting-button[disabled],
.value-bets-backtesting-link.is-disabled,
.site-settings-save.is-connected {
    background: linear-gradient(180deg, rgba(231, 238, 248, 0.98) 0%, rgba(219, 228, 241, 0.98) 100%);
    border-color: rgba(163, 181, 207, 0.52);
    color: #617792;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    filter: none;
    opacity: 1;
    pointer-events: none;
}

.value-bets-backtesting-button[disabled] {
    cursor: wait;
}

.profile-page {
    padding-bottom: 24px;
}

.profile-feedback {
    padding: 16px 20px;
    border: 1px solid var(--fpp-card-outline);
    border-radius: 20px;
    box-shadow: var(--fpp-shadow-soft);
}

.profile-feedback strong {
    display: block;
    text-align: center;
}

.profile-feedback--success {
    background: linear-gradient(180deg, rgba(234, 247, 239, 0.98) 0%, rgba(221, 241, 229, 0.98) 100%);
    border-color: rgba(33, 114, 72, 0.28);
    color: #166534;
}

.profile-feedback--error {
    background: linear-gradient(180deg, rgba(255, 242, 244, 0.98) 0%, rgba(255, 233, 237, 0.98) 100%);
    border-color: rgba(185, 28, 28, 0.24);
    color: #991b1b;
}

.profile-section-heading {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.profile-section-heading h2 {
    margin: 0;
}

.profile-section-heading p {
    margin: 8px 0 0;
    color: var(--fpp-block-header-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.profile-section-body {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
}

.profile-section-body > * {
    margin-left: auto;
    margin-right: auto;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: min(960px, 100%);
    margin: 0 auto;
    justify-content: center;
}

.profile-overview-grid--account {
    width: min(900px, 100%);
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.profile-overview-grid--telegram-top {
    width: min(980px, 100%);
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.profile-detail-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 22px 20px;
    border: 1px solid rgba(42, 96, 188, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(11, 36, 82, 0.08);
    text-align: center;
}

.profile-detail-card--compact {
    min-height: 164px;
    align-content: center;
}

.profile-detail-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-detail-value {
    color: var(--fpp-text-strong);
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.profile-detail-note {
    margin: 0;
    color: var(--fpp-text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.profile-action-row {
    display: flex;
    justify-content: center;
}

.profile-password-form {
    width: min(640px, 100%);
    margin: 0 auto;
    text-align: center;
    justify-items: center;
}

.profile-password-actions {
    justify-content: center;
}

.profile-password-form .auth-field {
    width: 100%;
    max-width: 520px;
    justify-items: stretch;
    text-align: left;
}

.profile-password-form .auth-field input {
    text-align: left;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: min(960px, 100%);
    margin: 0 auto;
    justify-content: center;
}

.profile-action-card {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 16px;
    padding: 22px 20px;
    border: 1px solid rgba(42, 96, 188, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 248, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(11, 36, 82, 0.08);
    color: var(--fpp-text-strong);
    text-decoration: none;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 86, 176, 0.36);
    box-shadow: 0 24px 40px rgba(11, 36, 82, 0.12);
}

.profile-action-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-action-card strong {
    color: var(--fpp-text-strong);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.65;
}

.profile-action-card .shared-button {
    justify-self: center;
}

.profile-telegram-form {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    justify-items: center;
    text-align: center;
    padding: 20px;
}

.profile-telegram-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(920px, 100%);
    margin: 0 auto;
    gap: 12px;
}

.profile-telegram-actions form {
    display: inline-flex;
}

.profile-region-card {
    cursor: text;
}

.profile-region-input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--fpp-text-strong);
    font: inherit;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: center;
}

.profile-region-input:focus {
    outline: none;
}

.profile-region-time {
    color: #61708a;
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-telegram-control-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(980px, 100%);
    margin: 0 auto;
    align-items: stretch;
}

.profile-telegram-control {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-content: center;
    min-height: 120px;
    padding: 18px 16px;
    border: 1px solid rgba(42, 96, 188, 0.2);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 248, 255, 0.98) 100%);
    box-shadow: 0 14px 28px rgba(11, 36, 82, 0.08);
}

.profile-telegram-control-label {
    color: #28508d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-telegram-control-copy {
    display: grid;
    gap: 4px;
    align-content: center;
}

.profile-telegram-control--checkbox {
    grid-template-columns: auto 1fr;
    align-items: start;
    justify-items: start;
    text-align: left;
    gap: 12px;
    min-height: 92px;
    padding: 18px 18px 18px 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.profile-telegram-control--checkbox:hover {
    transform: translateY(-1px);
    border-color: rgba(78, 130, 212, 0.5);
    box-shadow: 0 18px 30px rgba(11, 36, 82, 0.1);
}

.profile-telegram-control--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #0b63ce;
    flex: 0 0 auto;
}

.profile-telegram-control--checkbox input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.14);
    border-radius: 4px;
}

.profile-telegram-control--checkbox:has(input:checked) {
    border-color: rgba(24, 102, 208, 0.5);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.99) 0%, rgba(233, 243, 255, 0.99) 100%);
    box-shadow: 0 18px 32px rgba(15, 52, 112, 0.12);
}

.profile-telegram-control--checkbox input:checked + .profile-telegram-control-copy .profile-telegram-control-label {
    color: #0b63ce;
}

.profile-telegram-control--checkbox .profile-telegram-control-label {
    color: #10233f;
}

.profile-telegram-control--time input {
    width: 100%;
    max-width: 170px;
    border: 1px solid rgba(42, 96, 188, 0.18);
    border-radius: 16px;
    padding: 11px 14px;
    background: #ffffff;
    color: var(--fpp-text-strong);
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.profile-telegram-control--time input:focus {
    outline: none;
    border-color: rgba(15, 94, 215, 0.48);
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.12);
}

.profile-telegram-control.is-muted {
    opacity: 0.58;
}

.profile-telegram-submit {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-page .shared-button,
.profile-page .site-settings-save,
.profile-page .site-settings-secondary {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
}

.site-settings-page .site-settings-save,
.site-settings-page .site-settings-secondary {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
}

.profile-page .site-settings-secondary,
.profile-page .site-settings-save,
.profile-page .shared-button--primary {
    box-shadow: var(--fpp-button-shadow-primary);
}

.site-settings-page .site-settings-secondary,
.site-settings-page .site-settings-save {
    box-shadow: var(--fpp-button-shadow-primary);
}

.profile-page .site-settings-secondary:hover,
.profile-page .site-settings-save:hover,
.profile-page .shared-button--primary:hover {
    box-shadow: var(--fpp-button-shadow-primary-hover);
}

.site-settings-page .site-settings-secondary:hover,
.site-settings-page .site-settings-save:hover {
    box-shadow: var(--fpp-button-shadow-primary-hover);
}

.profile-action-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

/* Strategy Lab */
.strategy-lab-page.page-shell {
    width: min(100%, 1520px);
    max-width: none;
    margin: 0 auto;
}

.strategy-lab-page .section-card {
    width: 100%;
    max-width: none;
    overflow: visible;
}

.strategy-lab-page .section-card-header,
.strategy-lab-page .section-card-body {
    width: 100%;
    max-width: none;
    overflow: visible;
}

.strategy-lab-warning-grid,
.strategy-lab-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.strategy-lab-warning-card,
.strategy-lab-summary-card {
    display: grid;
    gap: 12px;
    padding: 22px 20px;
    border: 1px solid rgba(42, 96, 188, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 248, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(11, 36, 82, 0.08);
}

.strategy-lab-warning-card strong,
.strategy-lab-summary-top strong {
    color: var(--fpp-text-strong);
    font-size: 1rem;
}

.strategy-lab-warning-card p,
.strategy-lab-summary-top p,
.strategy-lab-summary-foot p,
.strategy-lab-empty-state p {
    margin: 0;
    color: var(--fpp-text-muted);
    line-height: 1.6;
}

.strategy-lab-summary-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.strategy-lab-summary-top {
    display: grid;
    gap: 8px;
}

.strategy-lab-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.strategy-lab-summary-metrics div {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(42, 96, 188, 0.14);
}

.strategy-lab-summary-metrics dt {
    color: #557399;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strategy-lab-summary-metrics dd {
    margin: 8px 0 0;
    color: var(--fpp-text-strong);
    font-size: 1rem;
    font-weight: 800;
}

.strategy-lab-summary-foot {
    display: grid;
    gap: 6px;
}

.strategy-lab-summary-foot span {
    color: #123a73;
    font-size: 0.9rem;
    font-weight: 700;
}

.strategy-lab-ledger-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.strategy-lab-ledger-overview-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 16px 14px;
    border: 1px solid rgba(177, 208, 246, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 255, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(17, 41, 77, 0.06);
    text-align: center;
}

.strategy-lab-ledger-overview-label {
    color: #54749a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strategy-lab-ledger-overview-card strong {
    color: #102b4d;
    font-size: 1.38rem;
    line-height: 1;
}

.strategy-lab-summary-toggle {
    margin-bottom: 18px;
    border: 1px solid rgba(177, 208, 246, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 255, 0.98) 100%);
    box-shadow: 0 14px 28px rgba(17, 41, 77, 0.08);
    overflow: hidden;
}

.strategy-lab-summary-toggle > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 22px;
    cursor: pointer;
    color: #123a73;
    font-size: 0.98rem;
    font-weight: 800;
}

.strategy-lab-summary-toggle > summary::-webkit-details-marker {
    display: none;
}

.strategy-lab-summary-toggle > summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 1.12rem;
    line-height: 1;
}

.strategy-lab-summary-toggle[open] > summary::after {
    content: "-";
}

.strategy-lab-summary-toggle-body {
    padding: 0 22px 22px;
    border-top: 1px solid rgba(207, 224, 245, 0.9);
}

.strategy-lab-summary-grid--compact {
    padding-top: 18px;
}

.strategy-lab-summary-card--compact {
    padding: 18px 18px 16px;
    gap: 10px;
}

.strategy-lab-summary-card--compact .strategy-lab-summary-metrics div {
    padding: 10px 12px;
}

.strategy-lab-ledger-list {
    display: grid;
    gap: 18px;
}

.strategy-lab-ledger-section {
    width: 100%;
    display: block;
}

.strategy-lab-ledger-item {
    display: grid;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(177, 208, 246, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 255, 0.98) 100%);
    box-shadow: 0 16px 30px rgba(17, 41, 77, 0.08);
}

.strategy-lab-ledger-item.is-won {
    background: linear-gradient(180deg, rgba(247, 255, 250, 0.99) 0%, rgba(236, 249, 241, 0.98) 100%);
}

.strategy-lab-ledger-item.is-lost {
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.99) 0%, rgba(255, 243, 244, 0.98) 100%);
}

.strategy-lab-ledger-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.strategy-lab-ledger-head-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.strategy-lab-ledger-kickoff {
    color: #54749a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strategy-lab-ledger-head-main h3 {
    margin: 0;
    color: #102b4d;
    font-size: 1.18rem;
    line-height: 1.28;
}

.strategy-lab-ledger-head-main h3 span {
    color: #5b7da6;
    font-size: 0.96rem;
    font-weight: 700;
    text-transform: uppercase;
}

.strategy-lab-ledger-head-main p {
    margin: 0;
    max-width: none;
    color: #4a6686;
    font-size: 0.96rem;
}

.strategy-lab-ledger-result-box {
    display: grid;
    gap: 10px;
    justify-items: end;
    flex: 0 0 auto;
}

.strategy-lab-status-pill,
.strategy-lab-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.strategy-lab-status-pill {
    min-width: 106px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    background: #eef4fc;
    color: #17314f;
}

.strategy-lab-status-pill.is-pending {
    border-color: rgba(97, 149, 231, 0.28);
    background: #eef4fc;
    color: #17314f;
}

.strategy-lab-status-pill.is-won {
    border-color: rgba(22, 114, 73, 0.2);
    background: #ecfaf1;
    color: #166534;
}

.strategy-lab-status-pill.is-lost {
    border-color: rgba(185, 28, 28, 0.18);
    background: #fff0f1;
    color: #991b1b;
}

.strategy-lab-status-pill.is-void {
    border-color: rgba(107, 114, 128, 0.18);
    background: #eef2f7;
    color: #475569;
}

.strategy-lab-score-pill {
    border: 1px solid rgba(177, 208, 246, 0.92);
    background: #ffffff;
    color: #123a73;
}

.strategy-lab-ledger-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.strategy-lab-ledger-cell {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(207, 224, 245, 0.9);
    background: #ffffff;
    min-width: 0;
}

.strategy-lab-ledger-cell--value strong {
    color: #166534;
}

.strategy-lab-ledger-label {
    color: #54749a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strategy-lab-ledger-cell strong {
    color: #102b4d;
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.strategy-lab-empty-state {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    padding: 28px 20px;
    border: 1px dashed rgba(42, 96, 188, 0.24);
    border-radius: 22px;
    background: rgba(243, 248, 255, 0.82);
}

.strategy-lab-empty-state strong {
    color: var(--fpp-text-strong);
}

@media (max-width: 720px) {
    .profile-overview-grid--account,
    .profile-overview-grid--telegram-top,
    .profile-telegram-control-row {
        grid-template-columns: 1fr;
    }

    .strategy-lab-ledger-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strategy-lab-summary-metrics {
        grid-template-columns: 1fr;
    }

    .strategy-lab-ledger-head {
        flex-direction: column;
        align-items: stretch;
    }

    .strategy-lab-ledger-result-box {
        justify-items: start;
    }

    .strategy-lab-ledger-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-password-actions {
        justify-content: center;
    }

    .profile-password-actions .shared-button,
    .profile-action-row .shared-button,
    .profile-telegram-submit .site-settings-secondary {
        width: 100%;
    }

    .profile-action-card .shared-button,
    .profile-action-links .shared-button {
        justify-self: stretch;
    }
}

@media (max-width: 560px) {
    .strategy-lab-page .section-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .strategy-lab-ledger-overview {
        grid-template-columns: 1fr;
    }

    .strategy-lab-summary-toggle > summary,
    .strategy-lab-summary-toggle-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .strategy-lab-ledger-item {
        padding: 18px;
    }

    .strategy-lab-ledger-grid {
        grid-template-columns: 1fr;
    }

    .strategy-lab-status-pill,
    .strategy-lab-score-pill {
        width: 100%;
        justify-content: center;
    }
}


/* Best Bets results button and nav-safe betslip offset. */
.best-bets-results-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.best-bets-results-button:hover,
.best-bets-results-button:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--fpp-blue-800) 0%, var(--fpp-blue-700) 100%);
  text-decoration: none;
}

.best-bets-results-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.best-bets-filter-controls {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.betslip-panel {
  top: var(--best-bets-betslip-top, 132px);
  height: calc(100dvh - var(--best-bets-betslip-top, 132px));
  z-index: 4500;
}

/* Trends page */
.trends-page {
  --trend-border: rgba(37, 99, 235, 0.24);
}

.trends-page.page-stack {
  gap: 14px;
}

.trends-page .page-hero {
  min-height: 220px;
}

.trends-page .page-hero .page-hero-title {
  margin-top: 12px;
  margin-bottom: 8px;
}

.trends-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trends-summary-card {
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--trend-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.84));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.trends-summary-card span,
.trends-field span {
  display: block;
  color: var(--fpp-blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trends-summary-card strong {
  display: block;
  margin-top: 10px;
  color: var(--fpp-blue-950);
  font-size: 2rem;
  line-height: 1;
}

.trends-summary-card small {
  display: block;
  margin-top: 10px;
  color: #45617f;
  font-weight: 700;
}

.trends-filter-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.trends-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr) auto;
  align-items: end;
  gap: 14px;
}

.trends-field select,
.trends-field input {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--fpp-blue-950);
  font-weight: 800;
  padding: 0 14px;
}

.trends-apply {
  height: 46px;
  min-width: 118px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fpp-blue-800), var(--fpp-blue-600));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.trends-table-card {
  overflow: hidden;
  border: 1px solid var(--trend-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.trends-market-tabs {
  display: flex;
  gap: 8px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.trends-board-head,
.trends-table-head {
  align-items: center;
  justify-content: space-between;
}

.trends-board-head span,
.trends-table-head span,
.trends-table-head p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.trends-metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--fpp-blue-950);
  text-align: center;
  text-decoration: none;
}

.trends-metric-chip:hover,
.trends-metric-chip.is-active {
  border-color: rgba(37, 99, 235, 0.54);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
  text-decoration: none;
}

.trends-metric-chip span {
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.trends-metric-chip small,
.trends-metric-chip em {
  color: #496887;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.trends-metric-chip em {
  display: none;
}

.trends-metric-chip small {
  display: none;
}

.trends-table-wrap {
  overflow-x: auto;
}

.trends-data-note {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #f8fbff;
  color: #365475;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.trends-data-note strong {
  color: var(--fpp-blue-950);
  font-weight: 900;
}

.trends-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #fff;
}

.trends-table th {
  padding: 13px 16px;
  background: #eff6ff;
  color: var(--fpp-blue-950);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.trends-table td {
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--fpp-blue-950);
  font-size: 0.88rem;
  font-weight: 700;
  vertical-align: top;
}

.trends-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.trends-table tbody tr {
  transition: background 120ms ease, box-shadow 120ms ease;
}

.trends-table tbody tr:hover {
  background: #f8fbff;
}

.trends-table tbody td:first-child strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--fpp-blue-800);
}

.trends-predictability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 76px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--fpp-blue-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.trends-team-cell {
  min-width: 170px;
}

.trends-team-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.trends-team-stat strong {
  color: var(--fpp-blue-950);
  font-size: 1rem;
  line-height: 1;
}

.trends-team-stat span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--fpp-blue-800);
  font-size: 0.74rem;
  font-weight: 900;
}

.trends-team-name {
  margin-top: 7px;
  color: #55708f;
  font-size: 0.78rem;
  font-weight: 900;
}

.trends-odds-cell {
  text-align: center;
}

.trends-odds-cell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  border-radius: 999px;
  background: #0f3b82;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(15, 59, 130, 0.18);
}

.trends-odds-cell strong:has(+ small),
.trends-odds-cell strong:not(:only-child) {
  background: #0f3b82;
}

.trends-odds-cell strong:first-child:last-child {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

.trends-odds-cell small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.trends-data-row td {
  padding: 0 12px 18px;
  background: #f8fbff;
}

.trends-data-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.trends-data-side {
  min-width: 0;
}

.trends-data-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.trends-data-side-head h3 {
  margin: 0;
  color: var(--fpp-blue-950);
  font-size: 1rem;
  font-weight: 900;
}

.trends-data-side-head span {
  padding: 5px 10px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--fpp-blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.trends-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trends-data-item {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.trends-data-item span {
  display: block;
  color: #55708f;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.trends-data-item strong {
  display: block;
  margin-top: 7px;
  color: var(--fpp-blue-950);
  font-size: 1rem;
  font-weight: 900;
}

.trends-data-item.is-missing {
  background: #f8fafc;
  color: #94a3b8;
}

.trends-data-item.is-missing strong,
.trends-data-item.is-missing span {
  color: #94a3b8;
}

.trends-table a {
  color: var(--fpp-blue-700);
  font-weight: 900;
  text-decoration: none;
}

.trends-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--fpp-blue-800);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.trends-source-pill--derived {
  border-color: rgba(22, 163, 74, 0.24);
  background: #ecfdf5;
  color: #166534;
}

.trends-source-pill--api {
  border-color: rgba(245, 158, 11, 0.3);
  background: #fffbeb;
  color: #92400e;
}

.trends-empty {
  margin: 0;
  padding: 26px;
  color: #496887;
  font-weight: 800;
}

@media (max-width: 900px) {
  .trends-filter-form {
    grid-template-columns: 1fr;
  }

  .trends-data-panel {
    grid-template-columns: 1fr;
  }

  .trends-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .trends-data-grid {
    grid-template-columns: 1fr;
  }
}

