/* ================================
   LEFT SIDEBAR - SOCCERPREDICTION
================================ */

.sp-body {
    margin: 0;
    background: #0b0e13;
    color: #ffffff;
}

.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;
}

/* Logo */

.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: #f5a623;
    color: #111111;
    display: grid;
    place-items: center;
    font-weight: 900;
}

/* Menu title */

.sp-sidebar-menu-box {
    margin-bottom: 16px;
}

.sp-sidebar-section-title {
    color: #f5a623;
    font-size: 12px;
    font-weight: 900;
    margin: 0 0 8px;
    padding-left: 2px;
}

/* Main menu */

.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: #f5a623;
    box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.42);
}

/* Leagues wrapper */

.sp-sidebar-leagues {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
}

/* Country / Top league block */

.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);
}

/* Country header */

.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%);
}

/* Top leagues */

.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: #f5a623;
    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%);
}

/* Header content */

.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: #f5a623;
}

.sp-country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

/* Plus / minus accordion */

.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: #f5a623;
    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: #f5a623;
    font-size: 14px;
}

/* League list */

.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;
}

/* League item */

.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: #f5a623;
}

.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: #f5a623;
}

/* ================================
   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: 150px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.14), transparent 35%),
        linear-gradient(180deg, #141b24 0%, #101722 100%);
    border: 1px solid rgba(245, 166, 35, 0.24);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.sp-home-banker-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 18px;
}

.sp-home-feature-label {
    display: inline-flex;
    color: #f5a623;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.sp-home-feature-main h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.sp-home-feature-main h2 span {
    color: #f5a623;
    margin: 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.sp-home-feature-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aeb7c4;
    font-size: 13px;
    font-weight: 800;
    flex-wrap: wrap;
}

.sp-home-feature-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-home-pick-box {
    background: linear-gradient(180deg, #101722 0%, #0d131c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.sp-home-pick-box > span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sp-home-pick-box strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f5a623;
    color: #111111;
    font-size: 15px;
    font-weight: 900;
}

.sp-home-pick-box small {
    display: block;
    margin-top: 8px;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.sp-home-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f5a623;
    color: #111111;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

/* Expert Tipsters card */

.sp-home-tipster-link {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    text-decoration: none;
}

.sp-home-tipster-link img,
.sp-home-tipster-thumb {
    width: 125px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5a623;
    color: #111111;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
}

.sp-home-tipster-category {
    display: inline-block;
    color: #f5a623;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.sp-home-tipster-link h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.sp-home-tipster-link p {
    margin: 0 0 8px;
    color: #aeb7c4;
    font-size: 12px;
    line-height: 1.45;
}

.sp-home-tipster-link small {
    color: #8792a2;
    font-size: 11px;
}

/* ================================
   TIP PILLS + CONFIDENCE BARS
================================ */

.sp-tip-pill.green,
.sp-tip-pill.purple,
.sp-tip-pill.orange {
    background: #f5a623 !important;
    color: #111111 !important;
    border: 1px solid rgba(245, 166, 35, 0.45) !important;
}

.sp-bars.orange span.on,
.sp-bars.green span.on,
.sp-bars.purple span.on {
    background: #22c55e !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

/* ================================
   MOBILE SIDEBAR
================================ */

.sp-mobile-menu-btn {
    display: none;
}

.sp-mobile-overlay {
    display: none;
}

@media (max-width: 1200px) {
    .sp-home-feature-row {
        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: #f5a623;
        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: 700px) {
    .sp-home-banker-card,
    .sp-home-tipster-link {
        grid-template-columns: 1fr;
    }

    .sp-home-tipster-link img,
    .sp-home-tipster-thumb {
        width: 100%;
        height: 150px;
    }
}