: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 34px;
}

.sp-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ================================
   MARKET CARDS
================================ */

.sp-market-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.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;
    }
}