:root {
    --sp-bg: #111111;
    --sp-bg-soft: #181818;
    --sp-card: #141920;
    --sp-card-2: #111820;
    --sp-border: rgba(255, 255, 255, 0.08);
    --sp-text: #f4f4f4;
    --sp-muted: #a7a7a7;
    --sp-orange: #f5a623;
    --sp-orange-dark: #d98a00;
    --sp-green: #22c55e;
    --sp-red: #ff5d5d;
    --sp-radius: 10px;
}

* {
    box-sizing: border-box;
}

body,
.sp-body {
    margin: 0;
    background: #0b0e13;
    color: var(--sp-text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.sp-app {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.08), transparent 35%),
        #111111;
}

/* ================================
   LEFT SIDEBAR
================================ */

.sp-sidebar-wrap {
    flex: 0 0 260px;
    width: 260px;
}

.sp-sidebar {
    width: 260px;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.045), transparent 34%),
        linear-gradient(180deg, #0f1117 0%, #0b0e13 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 14px 20px;
    position: sticky;
    top: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 166, 35, 0.45) rgba(255, 255, 255, 0.04);
}

.sp-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sp-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.sp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(245, 166, 35, 0.55);
    border-radius: 999px;
}

.sp-sidebar-logo {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sp-sidebar-logo img {
    max-width: 180px;
    max-height: 42px;
    object-fit: contain;
}

.sp-sidebar-logo span {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--sp-orange);
    color: #111111;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sp-sidebar-menu-box {
    margin-bottom: 16px;
}

.sp-sidebar-section-title {
    color: var(--sp-orange);
    font-size: 12px;
    font-weight: 900;
    margin: 0 0 8px;
    padding-left: 2px;
}

.sp-side-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #101721 0%, #0d131c 100%);
    border: 1px solid rgba(255, 255, 255, 0.065);
}

.sp-side-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 13px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s ease;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.sp-side-menu a:last-child {
    border-bottom: 0;
}

.sp-side-menu a span {
    width: 18px;
    text-align: center;
    flex: 0 0 auto;
}

.sp-side-menu a:hover {
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
}

.sp-side-menu a.active {
    background: rgba(245, 166, 35, 0.08);
    color: var(--sp-orange);
    box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.42);
}

/* Sidebar leagues */

.sp-sidebar-leagues {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
}

.sp-country-block {
    background: linear-gradient(180deg, #121924 0%, #0d131c 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.sp-country-block.active {
    border-color: rgba(245, 166, 35, 0.17);
}

.sp-country-header {
    width: 100%;
    border: 0;
    outline: 0;
    background: linear-gradient(180deg, #151c28 0%, #101722 100%);
    color: #dbe4ef;
    min-height: 40px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: left;
}

.sp-country-header:hover {
    background: linear-gradient(180deg, #182131 0%, #121a27 100%);
}

.sp-top-country {
    background: linear-gradient(180deg, #121924 0%, #0d131c 100%);
    border-color: rgba(245, 166, 35, 0.16);
}

.sp-top-country .sp-country-header {
    background: linear-gradient(180deg, #141b26 0%, #101722 100%);
    color: var(--sp-orange);
    border-bottom: 1px solid rgba(245, 166, 35, 0.10);
}

.sp-top-country .sp-league-list-side {
    display: flex;
    background: linear-gradient(180deg, #101722 0%, #0d131c 100%);
}

.sp-country-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sp-country-left span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-country-icon {
    width: 18px;
    text-align: center;
    color: var(--sp-orange);
}

.sp-country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.sp-country-arrow {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: 0.2s ease;
    transform: none !important;
}

.sp-country-block.active .sp-country-arrow {
    color: var(--sp-orange);
    transform: none !important;
}

.sp-country-block.active:not(.sp-top-country) .sp-country-arrow {
    font-size: 0;
}

.sp-country-block.active:not(.sp-top-country) .sp-country-arrow::before {
    content: "−";
    font-size: 14px;
}

.sp-top-country .sp-country-arrow {
    color: var(--sp-orange);
    font-size: 14px;
}

.sp-league-list-side {
    display: none;
    padding: 6px;
    background: linear-gradient(180deg, #101722 0%, #0d131c 100%);
}

.sp-country-block.active .sp-league-list-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-league-side-item {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
    background: transparent;
    text-decoration: none;
}

.sp-league-side-item:hover,
.sp-league-side-item.active {
    background: rgba(245, 166, 35, 0.10);
    color: var(--sp-orange);
}

.sp-league-side-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.sp-league-side-item span:last-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-league-fallback {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: var(--sp-orange);
}

/* ================================
   MAIN LAYOUT
================================ */

.sp-main {
    flex: 1;
    min-width: 0;
}

.sp-topbar {
    min-height: 96px;
    padding: 24px 34px;
    border-bottom: 1px solid var(--sp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 17, 17, 0.82);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.sp-topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.sp-topbar p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 14px;
}

.sp-date-pill {
    background: var(--sp-orange);
    color: #111111;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
}

.sp-page {
    padding: 30px 15px;
}

.sp-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ================================
   MARKET CARDS
================================ */

.sp-market-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 0 0 10px;
}

.sp-market-card {
    background: linear-gradient(180deg, #161b22, #10141a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #ffffff;
}

.sp-market-card.active {
    border-color: #ff9f1a;
    box-shadow: inset 0 0 0 1px rgba(255, 159, 26, 0.15);
}

.sp-market-icon {
    font-size: 28px;
    color: #ff9f1a;
    line-height: 1;
}

.sp-market-card span {
    display: block;
    font-size: 13px;
    color: #d6d8dc;
    margin-bottom: 4px;
}

.sp-market-card strong {
    color: #ffffff;
    font-size: 16px;
}

/* ================================
   HOME TOP FEATURE ROW
================================ */

.sp-home-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0 18px;
}

.sp-home-feature-card {
    min-height: 170px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.12), transparent 34%),
        linear-gradient(180deg, #141b24 0%, #101722 100%);
    border: 1px solid rgba(245, 166, 35, 0.22);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.sp-home-feature-label {
    display: inline-flex;
    color: var(--sp-orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.sp-home-tipster-link {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    text-decoration: none;
}

.sp-home-tipster-link img,
.sp-home-tipster-thumb {
    width: 135px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--sp-orange);
    color: #111111;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
}

.sp-home-banker-thumb {
    border: 1px solid rgba(245, 166, 35, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sp-home-tipster-link h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.sp-home-banker-link h3 span {
    color: var(--sp-orange);
    margin: 0 7px;
    font-size: 15px;
    font-weight: 900;
}

.sp-home-tipster-link p {
    margin: 0 0 9px;
    color: #aeb7c4;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.sp-home-tipster-link small {
    color: #8792a2;
    font-size: 11px;
    font-weight: 700;
}

.sp-home-tipster-category {
    display: none !important;
}

/* ================================
   DASHBOARD GRID
================================ */

.sp-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
}

.sp-center,
.sp-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-panel {
    background: linear-gradient(180deg, #141920, #10141a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.sp-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sp-panel-head h2 {
    margin: 0;
    font-size: 17px;
    color: #ffffff;
}

.sp-panel-head h2 small {
    color: #c6c8cc;
    font-size: 12px;
    font-weight: 600;
}

.sp-panel-head a {
    color: #ff9f1a;
    border: 1px solid rgba(255, 159, 26, 0.55);
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

/* ================================
   PREDICTION CARDS
================================ */

.sp-prediction-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sp-pred-card {
    background: #111820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 11px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s ease;
}

.sp-pred-card:hover {
    border-color: rgba(255, 159, 26, 0.6);
    transform: translateY(-2px);
}

.sp-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.sp-league-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 9px;
    min-width: 0;
}

.sp-card-topline .sp-league-line {
    margin-bottom: 0;
}

.sp-league-line img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sp-teams-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.sp-teams-line span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-teams-line img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sp-teams-line em {
    color: #b8bdc5;
    font-style: normal;
    font-size: 10px;
}

.sp-match-score {
    color: #ffffff !important;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

/* Status */

.sp-match-status {
    flex: 0 0 auto;
    min-width: 45px;
    padding: 4px 7px;
    border-radius: 999px;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.sp-match-status.scheduled {
    color: #ff9f1a;
    background: rgba(255, 159, 26, 0.12);
    border: 1px solid rgba(255, 159, 26, 0.35);
}

.sp-match-status.finished {
    color: #b9c0ca;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-match-status.live {
    color: #ff5757;
    background: rgba(255, 87, 87, 0.12);
    border: 1px solid rgba(255, 87, 87, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sp-match-status.live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5757;
    animation: sp-live-blink 1s infinite;
}

@keyframes sp-live-blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 87, 87, 0.5);
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 0 5px rgba(255, 87, 87, 0);
    }
}

/* Tip pills + confidence */

.sp-tip-pill {
    align-self: center;
    min-width: 34px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-weight: 900;
    font-size: 12px;
    margin: 9px 0;
}

.sp-tip-pill.orange,
.sp-tip-pill.green,
.sp-tip-pill.purple {
    background: var(--sp-orange) !important;
    color: #111111 !important;
    border: 1px solid rgba(245, 166, 35, 0.45) !important;
}

.sp-confidence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.sp-confidence small {
    color: #d6d8dc;
    font-size: 11px;
}

.sp-bars {
    display: flex;
    gap: 3px;
}

.sp-bars span {
    width: 5px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.sp-bars.orange span.on,
.sp-bars.green span.on,
.sp-bars.purple span.on {
    background: var(--sp-green) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

/* ================================
   RIGHT SIDEBAR CARDS
================================ */

.sp-form-list {
    display: flex;
    flex-direction: column;
}

.sp-form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-form-item:last-child {
    border-bottom: 0;
}

.sp-form-item span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.sp-form-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sp-today-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sp-today-teams {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sp-today-teams span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.sp-today-teams img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sp-today-result {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.sp-h2h-box {
    text-align: center;
}

.sp-h2h-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sp-h2h-teams img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sp-h2h-teams strong {
    color: #ffffff;
    font-size: 13px;
}

.sp-h2h-teams em {
    color: #aaaaaa;
    font-style: normal;
    margin: 0 4px;
}

.sp-h2h-box > span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin: 8px 0 12px;
}

/* ================================
   BOTTOM GRID
================================ */

.sp-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.7fr;
    gap: 16px;
}

.sp-league-list {
    display: flex;
    flex-direction: column;
}

.sp-league-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 13px;
}

.sp-league-list a:last-child {
    border-bottom: 0;
}

.sp-league-list strong {
    color: #d6d8dc;
}

.sp-donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-donut {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(#ff9f1a 0 42%, #25c46b 42% 70%, #3498db 70% 88%, #ff3b30 88% 100%);
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}

.sp-donut::after {
    content: "";
    position: absolute;
    inset: 22px;
    background: #111820;
    border-radius: 50%;
}

.sp-donut strong,
.sp-donut span {
    position: relative;
    z-index: 1;
}

.sp-donut strong {
    font-size: 28px;
    color: #ffffff;
    margin-top: 16px;
}

.sp-donut span {
    color: #ffffff;
    font-size: 12px;
    margin-top: -42px;
}

.sp-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-category-list span {
    color: #d6d8dc;
    font-size: 13px;
}

.sp-category-list i {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 7px;
}

.sp-category-list .orange {
    background: #ff9f1a;
}

.sp-category-list .green {
    background: #25c46b;
}

.sp-category-list .purple {
    background: #8d63d9;
}

.sp-category-list .red {
    background: #ff3b30;
}

/* Articles */

.sp-article-list {
    display: flex;
    flex-direction: column;
}

.sp-article-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-article-item:last-child {
    border-bottom: 0;
}

.sp-article-item img,
.sp-article-thumb {
    width: 78px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
    background: #ff9f1a;
    color: #111111;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.sp-article-item strong {
    color: #ffffff;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.sp-article-item span {
    color: #9ca3af;
    font-size: 11px;
}

/* Daily analysis section, if still used */

.sp-daily-analysis-section {
    margin-top: 18px;
}

.sp-daily-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sp-daily-analysis-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 13px;
    background: linear-gradient(180deg, #101722 0%, #0d131c 100%);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
    padding: 12px;
    transition: 0.2s ease;
    text-decoration: none;
}

.sp-daily-analysis-card:hover {
    border-color: rgba(245, 166, 35, 0.35);
    transform: translateY(-2px);
}

.sp-daily-analysis-card img,
.sp-daily-analysis-thumb {
    width: 110px;
    height: 82px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--sp-orange);
    color: #111111;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
}

.sp-analysis-category {
    color: var(--sp-orange);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sp-daily-analysis-card h3 {
    margin: 5px 0 6px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
}

.sp-daily-analysis-card p {
    margin: 0 0 8px;
    color: #aeb7c4;
    font-size: 12px;
    line-height: 1.45;
}

.sp-daily-analysis-card small {
    color: #8792a2;
    font-size: 11px;
}

.sp-empty {
    color: #aeb4bd;
    background: #111820;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
}

/* ================================
   MOBILE SIDEBAR
================================ */

.sp-mobile-menu-btn {
    display: none;
}

.sp-mobile-overlay {
    display: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1300px) {
    .sp-market-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .sp-prediction-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-dashboard-grid,
    .sp-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .sp-home-feature-row {
        grid-template-columns: 1fr;
    }

    .sp-daily-analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sp-app {
        display: block;
    }

    .sp-sidebar-wrap {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.25s ease;
    }

    .sp-sidebar-wrap.active {
        left: 0;
    }

    .sp-sidebar-wrap .sp-sidebar {
        width: 260px;
        height: 100vh;
        min-height: 100vh;
        position: relative;
    }

    .sp-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.62);
        z-index: 9998;
        display: none;
    }

    .sp-mobile-overlay.active {
        display: block;
    }

    .sp-mobile-menu-btn {
        display: inline-flex;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 9000;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(245, 166, 35, 0.35);
        border-radius: 12px;
        background: #111820;
        color: var(--sp-orange);
        font-size: 20px;
        font-weight: 900;
        cursor: pointer;
    }

    body.sp-menu-open {
        overflow: hidden;
    }

    .sp-main {
        width: 100%;
    }

    .sp-topbar {
        padding-left: 70px;
    }
}

@media (max-width: 820px) {
    .sp-topbar {
        position: relative;
        padding: 20px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .sp-page {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .sp-market-row,
    .sp-prediction-row {
        grid-template-columns: 1fr;
    }

    .sp-donut-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-home-tipster-link,
    .sp-daily-analysis-card {
        grid-template-columns: 1fr;
    }

    .sp-home-tipster-link img,
    .sp-home-tipster-thumb,
    .sp-daily-analysis-card img,
    .sp-daily-analysis-thumb {
        width: 100%;
        height: 150px;
    }
}

 .sp-home-editorial-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        margin: 18px 0 28px;
    }

    .sp-home-editorial-mobile {
        display: none;
    }

    .sp-home-editorial-box {
        background: linear-gradient(180deg, #141b25 0%, #0c1119 100%);
        border: 1px solid rgba(245, 166, 35, 0.45);
        border-radius: 16px;
        padding: 18px;
        min-height: 176px;
    }

    .sp-home-editorial-title {
        display: block;
        color: #ffad1f;
        font-weight: 900;
        text-transform: uppercase;
        font-size: 15px;
        letter-spacing: .3px;
        margin-bottom: 12px;
    }

    .sp-home-editorial-main {
        display: flex;
        gap: 16px;
        align-items: center;
        text-decoration: none;
        color: #fff;
    }

    .sp-home-editorial-thumb {
        width: 145px;
        height: 105px;
        border-radius: 12px;
        overflow: hidden;
        background: #f5a623;
        flex: 0 0 145px;
    }

    .sp-home-editorial-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sp-home-editorial-thumb-fallback {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        color: #05070b;
        font-size: 34px;
        font-weight: 1000;
        background: linear-gradient(135deg, #ffad1f, #ffcf66);
    }

    .sp-home-editorial-content h3 {
        font-size: 19px;
        line-height: 1.25;
        font-weight: 900;
        margin: 0 0 8px;
        color: #fff;
    }

    .sp-home-editorial-content p {
        font-size: 13px;
        line-height: 1.45;
        color: #b8c4d6;
        margin: 0 0 8px;
        font-weight: 700;
    }

    .sp-home-editorial-content span {
        color: #8fa0b8;
        font-size: 12px;
        font-weight: 700;
    }

    .sp-home-editorial-empty {
        color: #b8c4d6;
        font-size: 14px;
        font-weight: 700;
        padding: 16px;
        border: 1px dashed rgba(255,255,255,0.12);
        border-radius: 10px;
    }

    .sp-home-league-articles {
        margin: 18px 0 22px;
    }

    .sp-home-league-articles-head {
        margin-bottom: 12px;
    }

    .sp-home-league-articles-head span {
        display: block;
        color: #ffad1f;
        font-size: 12px;
        font-weight: 1000;
        text-transform: uppercase;
        letter-spacing: .6px;
        margin-bottom: 5px;
    }

    .sp-home-league-articles-head h2 {
        margin: 0;
        color: #fff;
        font-size: 22px;
        font-weight: 1000;
        line-height: 1.15;
    }

    .sp-home-league-articles-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .sp-home-league-article-card {
        display: grid;
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 14px;
        min-height: 132px;
        padding: 13px;
        background:
            radial-gradient(circle at top left, rgba(255, 173, 31, .12), transparent 36%),
            #0d1524;
        border: 1px solid rgba(255, 173, 31, .30);
        border-radius: 16px;
        text-decoration: none;
        color: #fff;
        overflow: hidden;
        transition: .18s ease;
    }

    .sp-home-league-article-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 173, 31, .78);
        box-shadow: 0 14px 34px rgba(0,0,0,.25);
    }

    .sp-home-league-article-img {
        width: 126px;
        height: 106px;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(255,255,255,.06);
    }

    .sp-home-league-article-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sp-home-league-article-body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sp-home-league-article-kicker {
        color: #ffad1f;
        font-size: 11px;
        font-weight: 1000;
        text-transform: uppercase;
        letter-spacing: .3px;
        margin-bottom: 6px;
    }

    .sp-home-league-article-body h3 {
        margin: 0 0 7px;
        color: #fff;
        font-size: 15px;
        font-weight: 1000;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sp-home-league-article-body p {
        margin: 0 0 9px;
        color: #aebbd0;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sp-home-league-article-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        color: #8ea0bb;
        font-size: 11px;
        font-weight: 900;
    }

    .sp-home-league-article-meta em {
        color: #ffad1f;
        font-style: normal;
        white-space: nowrap;
    }

    .sp-insights-banner {
        margin-top: 18px;
        border-radius: 16px;
        padding: 22px 24px;
        border: 1px solid rgba(245,166,35,.35);
        background:
            linear-gradient(90deg, rgba(10,15,25,.96) 0%, rgba(10,15,25,.88) 48%, rgba(10,15,25,.45) 100%),
            radial-gradient(circle at 88% 45%, rgba(56,189,248,.22), transparent 35%),
            linear-gradient(135deg, #111827, #05070b);
        overflow: hidden;
    }

    .sp-insights-banner h2 {
        margin: 0 0 8px;
        color: #fff;
        font-size: 24px;
        font-weight: 1000;
    }

    .sp-insights-banner p {
        margin: 0;
        max-width: 820px;
        color: #c9d3e5;
        font-size: 14px;
        line-height: 1.55;
        font-weight: 700;
    }

    .sp-insights-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
    }

    .sp-insights-links a {
        color: #ffad1f;
        text-decoration: none;
        font-weight: 900;
        font-size: 13px;
        padding: 9px 13px;
        border-radius: 10px;
        background: rgba(255,255,255,.035);
        border: 1px solid rgba(255,255,255,.1);
    }

    .sp-insights-links a:hover {
        background: rgba(245,166,35,.08);
        border-color: rgba(245,166,35,.45);
    }

    .sp-stats-dashboard {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin-top: 14px;
    }

    .sp-stat-box {
        background: linear-gradient(180deg, #111923 0%, #0b111a 100%);
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 14px;
        padding: 14px;
        min-height: 220px;
    }

    .sp-stat-box.sp-wide {
        grid-column: span 2;
    }

    .sp-stat-head h3 {
        margin: 0 0 12px;
        color: #fff;
        font-size: 15px;
        font-weight: 1000;
    }

    .sp-table-mini {
        display: grid;
        gap: 8px;
    }

    .sp-table-mini > div,
    .sp-table-mini > a {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
        color: #d7e0ee;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
    }

    .sp-table-mini > a:hover span {
        color: #ffad1f;
    }

    .sp-table-mini .sp-table-head {
        color: #8fa0b8;
        font-size: 11px;
        text-transform: uppercase;
    }

    .sp-table-mini strong {
        color: #ffad1f;
        font-weight: 1000;
    }

    .sp-table-mini strong.green {
        color: #22c55e;
    }

    .sp-table-mini strong.red {
        color: #ff4b5f;
    }

    .sp-stat-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 13px;
        min-height: 36px;
        border-radius: 10px;
        background: rgba(255,255,255,.035);
        border: 1px solid rgba(255,255,255,.08);
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        font-weight: 900;
    }

    .sp-stat-btn:hover {
        color: #ffad1f;
        border-color: rgba(245,166,35,.45);
    }

    .sp-form-table {
        display: grid;
        gap: 9px;
    }

    .sp-form-table > div {
        display: grid;
        grid-template-columns: 1.25fr 1fr 1fr 52px;
        gap: 10px;
        align-items: center;
        color: #d7e0ee;
        font-size: 12px;
        font-weight: 800;
    }

    .sp-form-head {
        color: #8fa0b8 !important;
        font-size: 11px !important;
        text-transform: uppercase;
    }

    .sp-team-name {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }

    .sp-team-name img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        border-radius: 999px;
    }

    .sp-team-link,
    .sp-stat-team-link {
        color: #d7e0ee;
        text-decoration: none;
        font-weight: 900;
    }

    .sp-team-link:hover,
    .sp-stat-team-link:hover {
        color: #ffad1f;
    }

    .sp-stat-team-link {
        display: block;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sp-form-dots {
        display: flex;
        gap: 5px;
    }

    .sp-form-dots i {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-size: 10px;
        font-style: normal;
        font-weight: 1000;
        color: #07110b;
    }

    .sp-form-dots i.w {
        background: #22c55e;
    }

    .sp-form-dots i.d {
        background: #facc15;
    }

    .sp-form-dots i.l {
        background: #ef4444;
        color: #fff;
    }

    .sp-form-table strong {
        color: #22c55e;
        font-weight: 1000;
        text-align: right;
    }

    .sp-progress-list {
        display: grid;
        gap: 10px;
    }

    .sp-progress-list > div {
        display: grid;
        grid-template-columns: 1fr 86px 38px;
        gap: 10px;
        align-items: center;
        color: #d7e0ee;
        font-size: 12px;
        font-weight: 800;
    }

    .sp-progress-list em {
        height: 7px;
        border-radius: 999px;
        background: rgba(255,255,255,.09);
        overflow: hidden;
    }

    .sp-progress-list em i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #ffad1f, #ff7a1a);
    }

    .sp-progress-list strong {
        color: #fff;
        font-weight: 1000;
        text-align: right;
    }

    .sp-hot-stats {
        display: grid;
        gap: 10px;
    }

    .sp-hot-stats div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        color: #d7e0ee;
        font-size: 12px;
        font-weight: 800;
    }

    .sp-hot-stats strong {
        color: #ffad1f;
        font-weight: 1000;
    }

    @media (max-width: 1200px) {
        .sp-stats-dashboard {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 1100px) {
        .sp-home-league-articles-grid {
            grid-template-columns: 1fr;
        }

        .sp-home-league-article-card {
            grid-template-columns: 105px minmax(0, 1fr);
        }

        .sp-home-league-article-img {
            width: 105px;
            height: 92px;
        }
    }

    @media (max-width: 900px) {
        .sp-home-editorial-wrap {
            grid-template-columns: 1fr;
        }

        .sp-home-editorial-desktop {
            display: none;
        }

        .sp-home-editorial-mobile {
            display: grid;
            margin: 16px 0 20px;
        }
    }

    @media (max-width: 700px) {
        .sp-stats-dashboard {
            grid-template-columns: 1fr;
        }

        .sp-stat-box.sp-wide {
            grid-column: span 1;
        }

        .sp-insights-banner {
            padding: 18px;
        }

        .sp-insights-banner h2 {
            font-size: 20px;
        }

        .sp-form-table > div {
            grid-template-columns: 1fr;
            gap: 5px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,.07);
        }

        .sp-form-head {
            display: none !important;
        }

        .sp-form-table strong {
            text-align: left;
        }

        .sp-progress-list > div {
            grid-template-columns: 1fr 90px 40px;
        }
    }

    @media (max-width: 560px) {
        .sp-home-editorial-box {
            padding: 14px;
        }

        .sp-home-editorial-main {
            flex-direction: column;
            align-items: flex-start;
        }

        .sp-home-editorial-thumb {
            width: 100%;
            height: 155px;
            flex: initial;
        }

        .sp-home-editorial-content h3 {
            font-size: 17px;
        }

        .sp-home-league-article-card {
            grid-template-columns: 88px minmax(0, 1fr);
            padding: 10px;
        }

        .sp-home-league-article-img {
            width: 88px;
            height: 82px;
        }

        .sp-home-league-article-body p {
            display: none;
        }

        .sp-home-league-articles-head h2 {
            font-size: 18px;
        }
    }
