    .prediction-page {
        position: relative;
        overflow: hidden;
        min-height: 80vh;
        padding: 18px 0 40px;
        background:
            radial-gradient(900px 420px at 80% 8%, rgba(217, 35, 90, 0.14), transparent 55%),
            radial-gradient(700px 420px at 12% 85%, rgba(37, 99, 235, 0.10), transparent 60%),
            linear-gradient(180deg, #0b0b0e 0%, #07070a 100%);
    }

    .prediction-bg-glow {
        position: absolute;
        pointer-events: none;
        border-radius: 999px;
        filter: blur(48px);
        opacity: 0.25;
        mix-blend-mode: screen;
    }

    .prediction-bg-glow-1 {
        width: 220px;
        height: 220px;
        background: rgba(217, 35, 90, 0.75);
        top: 90px;
        right: -80px;
    }

    .prediction-bg-glow-2 {
        width: 240px;
        height: 240px;
        background: rgba(37, 99, 235, 0.70);
        bottom: 120px;
        left: -90px;
    }

    @keyframes predictionFloatGlow {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-18px) scale(1.08);
        }
    }

    .prediction-hero {
        position: relative;
        overflow: hidden;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 26px;
        background:
            linear-gradient(135deg, rgba(124, 21, 52, 0.92), rgba(24, 24, 27, 0.95)),
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 38%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
        color: #fff;
        isolation: isolate;
    }

    .prediction-hero::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 62%);
        transform: translateX(100%);
        animation: predictionHeroShine 4.5s ease-in-out infinite;
        z-index: -1;
    }

    @keyframes predictionHeroShine {
        0%, 45% {
            transform: translateX(110%);
        }
        75%, 100% {
            transform: translateX(-110%);
        }
    }

    .prediction-hero-content {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .prediction-hero-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 20px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
    }

    .prediction-hero-icon i {
        font-size: 27px;
        color: #fff;
    }

    .prediction-hero h1 {
        margin: 0 0 7px;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.5px;
    }

    .prediction-hero p {
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
        line-height: 1.9;
    }

    .prediction-hero-badge {
        position: absolute;
        top: 16px;
        left: 16px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .prediction-alert,
    .prediction-empty-box {
        position: relative;
        overflow: hidden;
        margin-bottom: 18px;
        padding: 16px 18px;
        border-radius: 22px;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
    }

    .prediction-alert {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        animation: predictionFadeUp 0.55s ease both;
    }

    .alert-success-custom {
        background: linear-gradient(135deg, rgba(22, 101, 52, 0.92), rgba(12, 39, 22, 0.96));
        border-right: 4px solid #22c55e;
    }

    .alert-danger-custom {
        background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(45, 10, 10, 0.96));
        border-right: 4px solid #ef4444;
    }

    .prediction-empty-box {
        text-align: center;
        background: linear-gradient(180deg, rgba(31, 31, 31, 0.96), rgba(14, 14, 14, 0.98));
    }

    .prediction-empty-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 14px;
        display: grid;
        place-items: center;
        border-radius: 24px;
        background: rgba(124, 21, 52, 0.22);
        color: #ffcada;
        font-size: 30px;
    }

    .prediction-empty-box h3 {
        margin: 0 0 8px;
        font-size: 18px;
        font-weight: 900;
    }

    .prediction-empty-box p {
        margin: 0;
        color: #cfcfcf;
        font-size: 14px;
    }

    .prediction-card-col {
        margin-bottom: 22px;
    }

    .prediction-match-card {
        --card-radius: 26px;
        position: relative;
        overflow: hidden;
        height: 100%;
        padding: 16px;
        border-radius: var(--card-radius);
        color: #fff;
        background:
            linear-gradient(180deg, rgba(31, 31, 35, 0.84), rgba(12, 12, 14, 0.95)),
            radial-gradient(circle at top, rgba(166, 28, 69, 0.24), transparent 45%);
        border: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(18px);
        opacity: 0;
        animation: predictionFadeUp 0.7s ease forwards;
        animation-delay: var(--delay);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .prediction-match-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 180, 205, 0.2);
        box-shadow:
            0 26px 55px rgba(0, 0, 0, 0.34),
            0 0 0 1px rgba(166, 28, 69, 0.12);
    }

    @keyframes predictionFadeUp {
        from {
            opacity: 0;
            transform: translateY(18px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .prediction-card-shine {
        position: absolute;
        top: -80px;
        right: -80px;
        width: 170px;
        height: 170px;
        border-radius: 999px;
        background: rgba(166, 28, 69, 0.18);
        filter: blur(3px);
        pointer-events: none;
    }

    .prediction-card-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .prediction-league-badge,
    .prediction-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .prediction-league-badge {
        max-width: 62%;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 8px 12px;
        background: rgba(124, 21, 52, 0.35);
        color: #ffd4df;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .prediction-status {
        padding: 8px 11px;
    }

    .prediction-status.finished {
        background: rgba(34, 197, 94, 0.16);
        color: #bbf7d0;
        border: 1px solid rgba(34, 197, 94, 0.18);
    }

    .prediction-status.live {
        background: rgba(239, 68, 68, 0.18);
        color: #fecaca;
        border: 1px solid rgba(239, 68, 68, 0.22);
        animation: predictionLivePulse 1.3s ease-in-out infinite;
    }

    @keyframes predictionLivePulse {
        0%, 100% {
            box-shadow: 0 0 0 rgba(239, 68, 68, 0);
        }
        50% {
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.22);
        }
    }

    .live-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ef4444;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        animation: predictionLiveDot 1.2s infinite;
    }

    @keyframes predictionLiveDot {
        0% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }

    .prediction-status.canceled {
        background: rgba(107, 114, 128, 0.18);
        color: #e5e7eb;
        border: 1px solid rgba(107, 114, 128, 0.22);
    }

    .prediction-status.scheduled {
        background: rgba(59, 130, 246, 0.17);
        color: #bfdbfe;
        border: 1px solid rgba(59, 130, 246, 0.22);
    }

    .prediction-teams-wrap {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding: 14px 10px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.055);
    }

    .prediction-team-box {
        text-align: center;
        min-width: 0;
    }

    .prediction-team-avatar {
        width: 48px;
        height: 48px;
        margin: 0 auto 8px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, rgba(124, 21, 52, 0.92), rgba(166, 28, 69, 0.82));
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 20px;
        font-weight: 900;
        box-shadow: 0 10px 22px rgba(124, 21, 52, 0.25);
    }

    .away-team .prediction-team-avatar {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.86), rgba(30, 64, 175, 0.9));
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    }

    .prediction-team-box span {
        display: block;
        margin-bottom: 5px;
        color: #aeb0b7;
        font-size: 11px;
        font-weight: 700;
    }

    .prediction-team-box strong {
        display: block;
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.65;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prediction-score-box {
        width: 76px;
        min-width: 76px;
        height: 76px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.14), rgba(124, 21, 52, 0.22)),
            rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow:
            inset 0 0 18px rgba(255, 255, 255, 0.04),
            0 12px 24px rgba(0, 0, 0, 0.22);
    }

    .prediction-score-box strong {
        margin: 0;
        color: #ffd2de;
        font-size: 22px;
        font-weight: 1000;
    }

    .prediction-score-box small {
        color: rgba(255, 255, 255, 0.55);
        font-size: 14px;
        margin: 0 3px;
    }

    .vs-text {
        letter-spacing: 1px;
        background: linear-gradient(135deg, #fff, #ffb7cb);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
    }

    .prediction-meta {
        position: relative;
        z-index: 1;
        margin-bottom: 14px;
    }

    .prediction-meta-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.045);
        color: #d6d6d6;
        font-size: 12px;
        line-height: 1.8;
    }

    .prediction-meta-item i {
        color: #ffb9cc;
    }

    /* ===== پیش‌بینی شما ===== */
    .prediction-user-box {
        position: relative;
        z-index: 1;
        margin-top: 15px;
        padding: 13px 14px 12px;
        border-radius: 18px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
            rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.065);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.045),
            0 10px 20px rgba(0, 0, 0, 0.14);
    }

    .prediction-user-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0 0 12px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 12.5px;
        font-weight: 800;
        line-height: 1.7;
    }

    .prediction-user-title i {
        color: #fb7185;
        font-size: 14px;
    }

    .prediction-user-values-row {
        display: grid;
        grid-template-columns: 1fr 58px 1fr;
        align-items: center;
        column-gap: 8px;
        width: 100%;
    }

    .prediction-user-val-box {
        width: 48px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        border-radius: 14px;
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 45%),
            rgba(244, 63, 94, 0.13);
        border: 1px solid rgba(244, 63, 94, 0.28);
        color: #fff;
        font-size: 21px;
        font-weight: 1000;
        line-height: 1;
        box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .prediction-user-val-home {
        justify-self: center;
    }

    .prediction-user-val-away {
        justify-self: center;
    }

    .prediction-user-val-sep {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.38);
        font-size: 24px;
        font-weight: 500;
        line-height: 1;
    }

    .prediction-points {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #facc15;
        font-size: 12.5px;
        font-weight: 800;
    }

    .prediction-points i {
        color: #facc15;
    }

    .prediction-points strong {
        color: #fff;
        font-size: 13.5px;
        font-weight: 1000;
    }

    /* ===== Actions ===== */
    .prediction-actions {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        gap: 12px;
    }

    .prediction-btn {
        position: relative;
        overflow: hidden;
        min-height: 46px;
        border: none;
        outline: none;
        text-decoration: none;
        padding: 11px 14px;
        border-radius: 17px;
        font-size: 13px;
        font-weight: 900;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .prediction-btn:active {
        transform: scale(0.97);
    }

    .prediction-btn-primary {
        background: linear-gradient(135deg, #b91c4d, #9f1239);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(185, 28, 77, 0.2);
        color: #fff;
        flex: 2;
    }

    .prediction-btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18), transparent);
        transform: translateX(120%);
        transition: 0.5s ease;
    }

    .prediction-btn-primary:hover::before {
        transform: translateX(-120%);
    }

    .prediction-btn-primary:hover {
        color: #fff;
        box-shadow: 0 16px 28px rgba(166, 28, 69, 0.38);
    }

    .prediction-btn-secondary {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
        flex: 1;
    }

    .prediction-btn-secondary:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.11);
    }

    .prediction-locked-text {
        min-height: 46px;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 17px;
        background: rgba(255, 255, 255, 0.06);
        color: #ffbfd0;
        font-size: 13px;
        font-weight: 900;
        border: 1px dashed rgba(255, 255, 255, 0.12);
    }

    /* ===== Mobile ===== */
    @media (max-width: 767px) {
        .prediction-page {
            padding-top: 12px;
            padding-bottom: 30px;
        }

        .prediction-hero {
            margin-bottom: 16px;
            padding: 17px;
            border-radius: 24px;
        }

        .prediction-hero-content {
            align-items: flex-start;
            padding-left: 68px;
        }

        .prediction-hero-icon {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 18px;
        }

        .prediction-hero h1 {
            font-size: 19px;
        }

        .prediction-hero p {
            font-size: 12.5px;
        }

        .prediction-hero-badge {
            top: 14px;
            left: 14px;
            font-size: 11px;
            padding: 7px 10px;
        }

        .prediction-card-col {
            margin-bottom: 16px;
        }

        .prediction-match-card {
            padding: 14px;
            border-radius: 24px;
        }

        .prediction-card-top {
            margin-bottom: 14px;
        }

        .prediction-league-badge {
            max-width: 58%;
            padding: 7px 10px;
            font-size: 11.5px;
        }

        .prediction-status {
            padding: 7px 10px;
            font-size: 11.5px;
        }

        .prediction-teams-wrap {
            grid-template-columns: 1fr 68px 1fr;
            gap: 8px;
            padding: 12px 8px;
            border-radius: 21px;
        }

        .prediction-team-avatar {
            width: 42px;
            height: 42px;
            border-radius: 16px;
            font-size: 18px;
        }

        .prediction-team-box strong {
            font-size: 13.5px;
            line-height: 1.55;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .prediction-score-box {
            width: 66px;
            min-width: 66px;
            height: 66px;
        }

        .prediction-score-box strong {
            font-size: 19px;
        }

        .prediction-meta-item {
            font-size: 11.5px;
            padding: 9px 10px;
        }

        .prediction-user-box {
            margin-top: 13px;
            padding: 12px;
            border-radius: 17px;
        }

        .prediction-user-title {
            margin-bottom: 11px;
            font-size: 12px;
        }

        .prediction-user-values-row {
            grid-template-columns: 1fr 46px 1fr;
            column-gap: 6px;
        }

        .prediction-user-val-box {
            width: 44px;
            height: 39px;
            border-radius: 13px;
            font-size: 19px;
        }

        .prediction-user-val-sep {
            font-size: 22px;
        }

        .prediction-actions {
            flex-direction: column;
            gap: 10px;
        }

        .prediction-btn {
            width: 100%;
            min-height: 48px;
            border-radius: 16px;
            font-size: 13.5px;
        }
    }

    @media (max-width: 380px) {
        .prediction-teams-wrap {
            grid-template-columns: 1fr;
        }

        .prediction-score-box {
            margin: 3px auto;
            width: 72px;
            min-width: 72px;
            height: 72px;
        }

        .prediction-team-box strong {
            -webkit-line-clamp: 1;
        }

        .prediction-hero-content {
            padding-left: 0;
        }

        .prediction-hero-badge {
            position: static;
            margin-top: 14px;
            width: max-content;
        }

        .prediction-user-values-row {
            grid-template-columns: 1fr 34px 1fr;
        }

        .prediction-user-val-box {
            width: 42px;
            height: 38px;
            font-size: 18px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    .prediction-inline-user-score {
        margin: 8px auto 0;
        padding: 7px 10px;
        width: fit-content;
        min-width: 58px;
        border-radius: 13px;
        background: rgba(244, 63, 94, 0.12);
        border: 1px solid rgba(244, 63, 94, 0.22);
        color: #fff;
        text-align: center;
    }

    .prediction-inline-user-score span {
        display: block;
        margin: 0 0 3px;
        color: #fda4af;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.4;
    }

    .prediction-inline-user-score b {
        display: block;
        color: #fff;
        font-size: 18px;
        font-weight: 1000;
        line-height: 1;
    }

    /* ===============================
    Prediction Tabs
    =================================*/

    .prediction-tabs {
        display: flex;
        gap: 12px;
        margin-bottom: 25px;
        padding: 8px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .prediction-tab {
        flex: 1;
        padding: 12px 10px;
        border-radius: 16px;
        background: transparent;
        border: none;
        color: #cfcfcf;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .prediction-tab:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .prediction-tab.active {
        background: linear-gradient(135deg, #b91c4d, #9f1239);
        color: #fff;
        box-shadow: 0 10px 25px rgba(166, 28, 69, 0.35);
    }

    /* Content */
    .prediction-tab-content {
        display: none;
        animation: predictionFadeUp 0.4s ease;
    }

    .prediction-tab-content.active {
        display: block;
    }

    .prediction-team-avatar img{
        width:100%;
        height:100%;
        object-fit:cover;
        border-radius:18px;
    }
    .predict-team-logo {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 12px;
        overflow: hidden;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, rgba(124, 21, 52, 0.92), rgba(166, 28, 69, 0.82));
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    }

    .predict-team-logo.away-logo {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.86), rgba(30, 64, 175, 0.9));
    }

    .predict-team-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* وقتی لوگو وجود ندارد */
    .predict-team-letter {
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        line-height: 1;
    }
    .prediction-card-even{
        background: linear-gradient(180deg, rgba(31, 31, 35, 0.84), rgba(50, 50, 53, 0.95)),
                    radial-gradient(circle at top, rgba(166, 28, 69, 0.24), transparent 45%);
    }

    .prediction-card-odd{
        background: linear-gradient(180deg, rgba(31, 31, 35, 0.84), rgba(12, 12, 14, 0.95)),
                    radial-gradient(circle at top, rgba(28, 120, 166, 0.22), transparent 45%);
    }
    .prediction-ranking-panel {
    width: 100%;
    margin: 18px 0 24px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(13, 18, 32, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    }

    .prediction-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    }

    .prediction-ranking-title {
    display: flex;
    align-items: center;
    gap: 12px;
    }

    .prediction-ranking-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
    }

    .prediction-ranking-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    }

    .prediction-ranking-title p {
    margin: 5px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    }

    .prediction-ranking-filter select {
    min-width: 135px;
    height: 42px;
    border-radius: 14px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    font-size: 13px;
    }

    .prediction-ranking-filter select option {
    background: #111827;
    color: #fff;
    }

    .prediction-ranking-list {
    display: none;
    }

    .prediction-ranking-list.active {
    display: block;
    }

    .prediction-ranking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    margin-bottom: 10px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.065);
    transition: 0.2s ease;
    }

    .prediction-ranking-row:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.085);
    }

    .prediction-ranking-row.top-rank {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.18),
        rgba(255, 255, 255, 0.06)
    );
    border-color: rgba(245, 158, 11, 0.2);
    }

    .prediction-ranking-rank {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 900;
    }

    .prediction-ranking-rank.rank-1 {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #fff;
    }

    .prediction-ranking-rank.rank-2 {
    background: linear-gradient(135deg, #d1d5db, #6b7280);
    color: #fff;
    }

    .prediction-ranking-rank.rank-3 {
    background: linear-gradient(135deg, #b45309, #92400e);
    color: #fff;
    }

    .prediction-ranking-user {
    flex: 1;
    min-width: 0;
    }

    .prediction-ranking-user strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    }

    .prediction-ranking-user small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    }

    .prediction-ranking-points {
    min-width: 74px;
    text-align: left;
    }

    .prediction-ranking-points strong {
    display: block;
    color: #22c55e;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    }

    .prediction-ranking-points span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    }

    .prediction-ranking-empty {
    padding: 18px;
    text-align: center;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.055);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    }

    @media (max-width: 576px) {
    .prediction-ranking-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .prediction-ranking-filter,
    .prediction-ranking-filter select {
        width: 100%;
    }

    .prediction-ranking-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .prediction-ranking-title h2 {
        font-size: 16px;
    }

    .prediction-ranking-icon {
        width: 42px;
        height: 42px;
    }
    }
    .prediction-stats-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 18px;
        overflow: hidden;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.25),
            inset 0 0 18px rgba(255, 255, 255, 0.05);
    }

    .prediction-stats-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: inherit;
    }

    .prediction-ranking-rank img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: inherit;
    }
    @media (max-width: 767px) {
        .prediction-stats-avatar {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 17px;
        }
    }


    .prediction-ranking-rank-box {
        color: red;
        font-size: 16px;
        width: 10px;
    }
    /* ===== Infinite Scroll Loading ===== */
    .prediction-loading-trigger {
        width: 100%;
        padding: 30px 0;
        text-align: center;
        animation: predictionFadeUp 0.4s ease;
    }

    .prediction-loading-spinner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 16px 24px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 600;
    }

    .prediction-loading-spinner .spinner-border {
        width: 28px;
        height: 28px;
    }

    .prediction-loading-spinner .spinner-border.text-danger {
        border-color: #b91c4d !important;
        border-right-color: transparent !important;
    }

    .prediction-loading-spinner span {
        color: rgba(255, 255, 255, 0.6);
    }

    .prediction-loading-trigger:not(.visible) {
        display: none;
    }

    @media (max-width: 767px) {
        .prediction-loading-spinner {
            padding: 14px 18px;
            font-size: 13px;
            gap: 12px;
        }
        
        .prediction-loading-spinner .spinner-border {
            width: 24px;
            height: 24px;
        }
    }

    /* ===== Ranking Items Container ===== */
.ranking-items-container {
    min-height: 60px;
}

/* ===== Loading Trigger for Infinite Scroll ===== */
.ranking-loading-trigger {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    display: none;
}

.ranking-loading-trigger.visible {
    display: block;
}

.ranking-loading-trigger .ranking-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
}

.ranking-loading-trigger .ranking-loading-spinner .spinner-border {
    width: 26px;
    height: 26px;
    border-color: #b91c4d !important;
    border-right-color: transparent !important;
}

.ranking-loading-trigger .ranking-loading-spinner span {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Ranking Row Animations ===== */
.prediction-ranking-row {
    animation: rankingFadeIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes rankingFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== No More Data ===== */
.ranking-no-more {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

/* ===== Ranking Error ===== */
.ranking-error {
    padding: 16px;
    text-align: center;
    color: #ef4444;
    font-size: 13px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ===== Mobile ===== */
@media (max-width: 576px) {
    .ranking-loading-trigger .ranking-loading-spinner {
        padding: 12px 16px;
        font-size: 12px;
        gap: 10px;
    }
    
    .ranking-loading-trigger .ranking-loading-spinner .spinner-border {
        width: 22px;
        height: 22px;
    }
}
