html { scroll-behavior: smooth; }

.lp-wrap.lp-wrap {
    --lp-bg-1: #0B1739;
    --lp-bg-2: #162447;
    --lp-bg-3: #1F4068;
    --lp-bg-deep: radial-gradient(ellipse at top, #1F4068 0%, #162447 45%, #0B1739 100%);
    --lp-bg-section: linear-gradient(135deg, #162447 0%, #1F4068 100%);
    --lp-accent: #22D3EE;
    --lp-accent-soft: #67E8F9;
    --lp-accent-glow: rgba(34, 211, 238, 0.4);
    --lp-gold: #FCD34D;
    --lp-gold-bright: #FDE68A;
    --lp-gold-glow: rgba(252, 211, 77, 0.42);
    --lp-green: #4ade80;
    --lp-green-glow: rgba(74, 222, 128, 0.35);
    --lp-red: #f87171;
    --lp-red-glow: rgba(248, 113, 113, 0.3);
    --lp-text: rgba(255, 255, 255, 0.74);
    --lp-label: rgba(255, 255, 255, 0.7);
    --lp-border: rgba(255, 255, 255, 0.1);
    --lp-btn-border: rgba(255, 255, 255, 0.22);
    --lp-btn-text: rgba(255, 255, 255, 0.72);
    --lp-bg-card: rgba(0, 0, 0, 0.32);
    display: block;
    width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    padding: 20px 0 0;
    margin: 0 30px 0 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lp-text);
    position: relative;
}

.lp-wrap.lp-wrap *,
.lp-wrap.lp-wrap *::before,
.lp-wrap.lp-wrap *::after { box-sizing: border-box; }

@media (max-width: 900px) {
    .lp-wrap.lp-wrap {
        width: calc(100% - 12px);
        max-width: calc(100% - 12px);
        margin: 0 12px 0 0;
    }
}

@media (max-width: 480px) {
    .lp-wrap.lp-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

@keyframes lpShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes lpSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lpListFade { 0% { opacity: 1; } 45% { opacity: 0.2; } 100% { opacity: 1; } }
@keyframes lpStatsFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-ball-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes lpMinuteTick { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }
@keyframes lpLockPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes lpScoreFlash { 0% { transform: scale(1.35); filter: brightness(1.8) drop-shadow(0 0 10px var(--lp-gold-glow)); } 50% { transform: scale(1.15); filter: brightness(1.4) drop-shadow(0 0 6px var(--lp-gold-glow)); } 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 transparent); } }
@keyframes lpFavPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes lpFavFlash { 0%, 100% { box-shadow: 0 0 0 0 var(--lp-gold-glow); } 20% { box-shadow: 0 0 0 4px var(--lp-gold-glow), 0 0 26px var(--lp-gold-glow); } }
@keyframes lpGoalFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lpGoalFadeOut { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes lpGoalPulse { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
@keyframes lpCardRemove { 0% { opacity: 1; transform: scale(1); max-height: 500px; } 60% { opacity: 0.35; transform: scale(0.97); max-height: 500px; } 100% { opacity: 0; transform: scale(0.92); max-height: 0; margin-top: 0; margin-bottom: 0; padding: 0; border-width: 0; overflow: hidden; } }
@keyframes lpFavFabPulse { 0%, 100% { box-shadow: 0 4px 20px rgba(252, 211, 77, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3); } 50% { box-shadow: 0 4px 26px rgba(252, 211, 77, 0.65), 0 2px 10px rgba(0, 0, 0, 0.35); } }
@keyframes lpWhistlePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.85; } }
@keyframes lpCardLiveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes lpCardLiveTick { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes lpUnlockSpin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes lpUnlockReveal { 0% { opacity: 0; transform: scale(0.82); filter: blur(2px); } 55% { opacity: 1; transform: scale(1.06); filter: blur(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lpChartSectionFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.lp-wrap .lp-hero { position: relative; display: block; margin: 0 0 16px; }
.lp-wrap .lp-hero-top { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; text-align: left; }
.lp-wrap .lp-hero-block { position: relative; display: flex; background: var(--lp-bg-deep); border-radius: 10px; overflow: hidden; }
.lp-wrap .lp-hero-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--lp-gold-bright) 0%, var(--lp-accent) 40%, var(--lp-accent-soft) 60%, var(--lp-gold-bright) 100%);
    opacity: 0.55;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.lp-wrap .lp-hero-block-logo { flex: 0 0 auto; align-items: stretch; justify-content: stretch; padding: 0; width: 120px; min-width: 120px; max-width: 120px; height: 120px; max-height: 120px; overflow: hidden; align-self: center; border: 1px solid rgba(160, 165, 175, 0.35); border-radius: 10px; box-sizing: border-box; }
.lp-wrap .lp-hero-block-text { flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px 26px; }
.lp-wrap .lp-hero-block-box { flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; padding: 16px 22px; min-width: 120px; text-align: center; }
.lp-wrap .lp-hero-title,
.lp-wrap h2.lp-hero-title { font-size: 22px !important; font-weight: 800; line-height: 1.25; margin: 0 0 8px; padding: 0; letter-spacing: -0.2px; color: #fff; text-align: center; width: 100%; border: 0; }
.lp-wrap .lp-hero-desc { color: #b9c2d0; font-size: 16px; line-height: 1.55; margin: 0; text-align: center; width: 100%; }
.lp-wrap .lp-hero-desc strong { color: #b9c2d0; font-weight: 800; }



.lp-wrap .lp-hub-hero { margin: 18px 0; }
.lp-wrap .lp-hub-hero .lp-hero-title { display: block; font-size: 22px; font-weight: 800; line-height: 0.7; color: var(--lp-gold-bright); text-shadow: 0 0 12px var(--lp-gold-glow); letter-spacing: -0.2px; margin: 0 0 8px; padding: 0; }
.lp-wrap .lp-hub-hero-title-flag { display: inline-block; width: 20px; height: 20px; object-fit: cover; vertical-align: -0.1em; margin: 0 6px 0 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.42); }
.lp-wrap .lp-hub-hero-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: inherit; }
.lp-wrap .lp-hero-box-number { font-size: 28px; font-weight: 900; color: var(--lp-green); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px var(--lp-green-glow); }
.lp-wrap .lp-hero-box-label { margin-top: 6px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.15; }

.lp-wrap .lp-hero-block.lp-hero-block-text,
.lp-wrap .lp-hero-block.lp-hero-block-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    box-shadow: none;
}

.lp-wrap .lp-hero-block.lp-hero-block-text::before,
.lp-wrap .lp-hero-block.lp-hero-block-box::before { content: none; display: none; background: none; mask: none; -webkit-mask: none; }

.lp-wrap .lp-hero-block.lp-hero-block-logo {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 120px;
    max-height: 120px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    overflow: hidden;
}

.lp-wrap .lp-hero-block.lp-hero-block-logo::before { content: none; display: none; background: none; mask: none; -webkit-mask: none; }

.lp-wrap .lp-hero-block.lp-hero-block-logo .lp-hub-hero-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    display: block;
}

.lp-wrap .lp-hub-hero .lp-hero-top { gap: 12px; align-items: stretch; }

.lp-wrap .lp-hub-hero .lp-hero-block-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 640px) {
    .lp-wrap .lp-hero-block.lp-hero-block-logo {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 100px;
        max-height: 100px;
        padding: 10px;
    }
}

.lp-wrap .lp-top-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0 8px; padding: 0; }
.lp-wrap .lp-breadcrumbs { flex: 1 1 auto; min-width: 0; margin: 0; padding: 4px 0; }
.lp-wrap .lp-breadcrumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.65); }
.lp-wrap .lp-breadcrumbs-list li { display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; margin: 0; padding: 0; }
.lp-wrap .lp-breadcrumbs-list a { color: #FCD34D; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.4; display: inline-flex; align-items: center; padding: 0; margin: 0; transition: color 0.18s ease; }
.lp-wrap .lp-breadcrumbs-list a:hover,
.lp-wrap .lp-breadcrumbs-list a:focus { color: #FDE68A; text-decoration: underline; text-underline-offset: 2px; }
.lp-wrap .lp-breadcrumbs-sep { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.35); font-size: 14px; font-weight: 700; line-height: 1; margin: 0; padding: 0; }
.lp-wrap .lp-breadcrumbs-list li:last-child span { color: #ffffff; font-weight: 800; font-size: 13px; line-height: 1.4; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
    .lp-wrap .lp-top-nav-bar { margin: 8px 0 6px; }
    .lp-wrap .lp-breadcrumbs-list { font-size: 12px; gap: 4px; }
    .lp-wrap .lp-breadcrumbs-list a,
    .lp-wrap .lp-breadcrumbs-list li:last-child span { font-size: 12px; }
    .lp-wrap .lp-breadcrumbs-sep { font-size: 12px; }
}

.lp-wrap .lp-market-nav-grid { display: flex; flex-wrap: nowrap; gap: 10px; margin: 10px 0 14px; width: 100%; }
.lp-wrap .lp-market-btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 16px; min-height: 60px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: rgba(245, 248, 255, 0.94); text-decoration: none; flex: 1 1 0; min-width: 0; box-sizing: border-box; position: relative; overflow: hidden; transition: background 0.18s ease, border-color 0.18s ease; }
.lp-wrap .lp-market-btn:hover,
.lp-wrap .lp-market-btn:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; text-decoration: none; }
.lp-wrap .lp-market-btn.active,
.lp-wrap .lp-market-btn.active:hover,
.lp-wrap .lp-market-btn.active:focus { background: rgba(74, 222, 128, 0.14); border-color: #4ade80; color: #4ade80; cursor: default; }
.lp-wrap .lp-market-logo-wrap {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    overflow: hidden;
}

.lp-wrap .lp-market-btn.active .lp-market-logo-wrap {
    border-color: rgba(74, 222, 128, 0.45);
}

.lp-wrap .lp-market-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.lp-wrap .lp-market-text-wrap { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.lp-wrap .lp-market-name { font-size: 13px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.lp-wrap .lp-market-stats { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.lp-wrap .lp-market-stats strong { color: #FCD34D; font-weight: 900; }
.lp-wrap .lp-market-btn.active .lp-market-stats strong { color: #4ade80; }
.lp-wrap .lp-market-stats-empty { opacity: 0.5; }
.lp-wrap .lp-market-active-badge { display: inline-flex; align-items: center; padding: 3px 8px; background: rgba(252, 211, 77, 0.18); border: 1px solid rgba(252, 211, 77, 0.55); border-radius: 999px; color: #FCD34D; font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; flex-shrink: 0; white-space: nowrap; }
.lp-wrap .lp-market-arrow { color: rgba(255, 255, 255, 0.35); font-size: 15px; flex-shrink: 0; transition: transform 0.2s ease, color 0.2s ease; }
.lp-wrap .lp-market-btn:hover .lp-market-arrow { color: #FCD34D; transform: translateX(2px); }

@media (max-width: 900px) {
    .lp-wrap .lp-market-nav-grid { flex-wrap: wrap; }
    .lp-wrap .lp-market-btn { flex: 1 1 calc(50% - 5px); min-height: 54px; padding: 10px 12px; gap: 10px; }
}

@media (max-width: 600px) {
    .lp-wrap .lp-market-btn { flex: 1 1 100%; }
}

.lp-wrap .lp-market-divider { position: relative; display: block; width: 100%; height: 8px; margin: 18px 0; pointer-events: none; }
.lp-wrap .lp-market-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background-image:
        linear-gradient(to right, transparent 0%, rgba(180, 185, 200, 0.4) 15%, rgba(180, 185, 200, 0.6) 50%, rgba(180, 185, 200, 0.75) 80%, transparent 100%),
        linear-gradient(to left, transparent 0%, rgba(180, 185, 200, 0.4) 15%, rgba(180, 185, 200, 0.6) 50%, rgba(180, 185, 200, 0.75) 80%, transparent 100%);
    background-position: left center, right center;
    background-size: calc(50% - 14px) 100%, calc(50% - 14px) 100%;
    background-repeat: no-repeat;
}
.lp-wrap .lp-market-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #FDE68A;
    border-radius: 50%;
    box-shadow: 0 0 6px #FCD34D, 0 0 12px rgba(252, 211, 77, 0.42), 0 0 20px rgba(252, 211, 77, 0.42);
    z-index: 1;
}

@media (max-width: 640px) {
    .lp-wrap .lp-market-divider { margin: 14px 0; }
}

.lp-wrap .lp-stats-chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px 0 26px; margin: 0 0 20px; align-items: stretch; }
.lp-wrap .lp-history-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--lp-border); border-radius: 10px; padding: 14px; }
.lp-wrap .lp-history-stats-grid .lp-history-subtitle { grid-column: 1 / -1; font-size: 14px; font-weight: 800; color: var(--lp-gold-bright); text-align: center; margin: 0 0 12px; padding: 8px 14px 12px; text-shadow: 0 0 10px var(--lp-gold-glow); }
.lp-wrap .lp-stat-card-square { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 8px; text-align: center; }
.lp-wrap .lp-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.65; margin-bottom: 3px; white-space: nowrap; }
.lp-wrap .lp-stat-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-wrap .lp-stat-value.lp-stat-positive { color: #4ade80; }
.lp-wrap .lp-stat-value.lp-stat-negative { color: #ef4444; }


.lp-wrap .lp-stat-card-square.is-locked {
    background: rgba(180, 185, 200, 0.10);
    border: 1px dashed rgba(180, 185, 200, 0.35);
    border-radius: 8px;
    opacity: 0.85;
}
.lp-wrap .lp-stat-card-square.is-locked .lp-stat-label {
    color: rgba(180, 185, 200, 0.65);
    opacity: 0.9;
}
.lp-wrap .lp-stat-card-square.is-locked .lp-stat-value.is-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(180, 185, 200, 0.14);
    border: 0;
    border-radius: 6px;
    color: #B7B6B6;
    font-size: 13px;
}
.lp-wrap .lp-stat-card-square.is-locked .lp-stat-value.is-muted i {
    font-size: 12px;
    opacity: 0.85;
}
.lp-wrap .lp-chart-wrapper { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--lp-border); border-radius: 10px; padding: 14px; }
.lp-wrap .lp-chart-inner { position: relative; height: 200px; width: 100%; }
.lp-wrap .lp-chart-range-buttons { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.lp-wrap .lp-chart-range-btn { min-width: 38px; height: 30px; padding: 0 10px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28)); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px; color: rgba(255, 255, 255, 0.7); font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.lp-wrap .lp-chart-range-btn:hover,
.lp-wrap .lp-chart-range-btn.is-active { color: #fff; border-color: var(--lp-gold); background: linear-gradient(180deg, rgba(252, 211, 77, 0.18), rgba(252, 211, 77, 0.06)); box-shadow: 0 0 10px rgba(252, 211, 77, 0.28); }

/* ── Locked range buttons (non-premium) ── */
.lp-wrap .lp-chart-range-btn.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
    overflow: visible;
}
.lp-wrap .lp-chart-range-btn.is-locked:hover,
.lp-wrap .lp-chart-range-btn.is-locked:focus {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(252, 211, 77, 0.4);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
    box-shadow: none;
    opacity: 0.75;
}
.lp-wrap .lp-chart-range-btn.is-locked::after {
    content: attr(data-lp-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 7px 12px;
    background: rgba(11, 23, 57, 0.98);
    border: 1px solid var(--lp-gold);
    border-radius: 6px;
    color: var(--lp-gold-bright);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 0.2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px var(--lp-gold-glow);
}
.lp-wrap .lp-chart-range-btn.is-locked:hover::after,
.lp-wrap .lp-chart-range-btn.is-locked:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
    .lp-wrap .lp-stats-chart-row { grid-template-columns: 1fr; gap: 16px; }
}

.lp-wrap .lp-chart-section { display: block; width: 100%; margin: 18px 0; padding-top: 0; animation: lpChartSectionFade 0.55s ease-out; }
.lp-wrap .lp-chart-section .lp-stats-chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; min-height: 240px; padding: 0; margin: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; width: 100%; box-sizing: border-box; }
.lp-wrap .lp-chart-section .lp-history-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 100%; min-height: 0; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--lp-border); border-radius: 10px; padding: 14px; box-sizing: border-box; align-content: stretch; }
.lp-wrap .lp-chart-section .lp-history-stats-grid .lp-history-subtitle { grid-column: 1 / -1; align-self: start; }
.lp-wrap .lp-chart-section .lp-history-stats-grid .lp-stat-card-square { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-wrap .lp-chart-section .lp-chart-wrapper { position: relative; width: 100%; height: 100%; min-height: 240px; overflow: hidden; display: block; box-sizing: border-box; padding: 12px 14px; }
.lp-wrap .lp-chart-section .lp-chart-inner { position: absolute; inset: 12px 14px; width: auto; height: auto; }
.lp-wrap .lp-chart-section .lp-chart-inner canvas { display: block; width: 100%; height: 100%; max-height: 100%; box-sizing: border-box; }
.lp-wrap .lp-chart-section .lp-chart-range-buttons { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 12px 0 0; padding: 0; flex-wrap: wrap; width: 100%; }

@media (max-width: 900px) {
    .lp-wrap .lp-chart-section .lp-stats-chart-row { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
    .lp-wrap .lp-chart-section .lp-history-stats-grid { height: auto; }
    .lp-wrap .lp-chart-section .lp-chart-wrapper { height: 240px; min-height: 240px; max-height: 240px; }
}

@media (max-width: 640px) {
    .lp-wrap .lp-chart-section .lp-chart-wrapper { height: 220px; min-height: 220px; max-height: 220px; }
    .lp-wrap .lp-chart-section .lp-chart-range-buttons { gap: 4px; margin-top: 10px; }
}

.lp-wrap .lp-time-filter { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; width: 100%; margin: 32px 0 18px; padding: 0; }
.lp-wrap .lp-time-filter-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; grid-column: 2; justify-self: center; }
.lp-wrap .lp-filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: rgba(255, 255, 255, 0.82); font-size: 13px; font-weight: 600; cursor: pointer; min-width: 90px; font-family: inherit; }
.lp-wrap .lp-filter-btn i { color: var(--lp-gold); font-size: 13px; }
.lp-wrap .lp-filter-btn:hover,
.lp-wrap .lp-filter-btn:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.lp-wrap .lp-filter-btn.is-active { background: rgba(74, 222, 128, 0.14); border-color: #4ade80; color: #4ade80; }
.lp-wrap .lp-filter-btn.is-active i { color: #4ade80; }

.lp-wrap .lp-league-market-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s ease;
}
.lp-wrap .lp-league-market-pill:hover,
.lp-wrap .lp-league-market-pill:focus {
    background: rgba(252, 211, 77, 0.14);
    border-color: rgba(252, 211, 77, 0.55);
    color: #FDE68A;
    box-shadow: 0 0 10px rgba(252, 211, 77, 0.22);
    text-decoration: none;
    transform: translateY(-1px);
}

.lp-wrap .lp-time-history-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; background: linear-gradient(135deg, rgba(252, 211, 77, 0.14) 0%, rgba(34, 211, 238, 0.06) 100%); border: 1px solid rgba(252, 211, 77, 0.55); border-radius: 8px; color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; text-decoration: none; white-space: nowrap; grid-column: 3; justify-self: end; margin: 0; transition: all 0.22s ease; box-shadow: 0 0 12px rgba(252, 211, 77, 0.2); }
.lp-wrap .lp-time-history-btn:hover { background: linear-gradient(135deg, rgba(252, 211, 77, 0.25) 0%, rgba(34, 211, 238, 0.1) 100%); border-color: #FCD34D; box-shadow: 0 0 18px rgba(252, 211, 77, 0.4); transform: translateY(-1px); color: #fff; }
.lp-wrap .lp-time-history-btn i { color: #FCD34D; font-size: 13px; }
.lp-wrap .lp-time-history-btn-arrow { animation: lpWhistlePulse 1.8s ease-in-out infinite; }
.lp-wrap .lp-time-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 6px 0 27px; }

@media (max-width: 640px) {
    .lp-wrap .lp-time-filter { grid-template-columns: 1fr; }
    .lp-wrap .lp-time-filter-chips { grid-column: 1; }
    .lp-wrap .lp-time-history-btn { grid-column: 1; justify-self: center; margin-top: 6px; margin-right: 0; }
}

.lp-wrap .lp-filter-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 22px 18px; background: var(--lp-bg-card); border: 1px dashed var(--lp-gold-glow); border-radius: 8px; text-align: center; color: var(--lp-text); font-size: 14px; font-weight: 700; }
.lp-wrap .lp-filter-empty[hidden] { display: none; }
.lp-wrap .lp-filter-empty i { color: var(--lp-gold); font-size: 24px; opacity: 0.85; }

.lp-wrap .lp-section-divider { position: relative; display: block; width: 100%; height: 8px; margin: 18px 0; pointer-events: none; }
.lp-wrap .lp-section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background-image:
        linear-gradient(to right, transparent 0%, rgba(180, 185, 200, 0.4) 15%, rgba(180, 185, 200, 0.6) 50%, rgba(180, 185, 200, 0.75) 80%, transparent 100%),
        linear-gradient(to left, transparent 0%, rgba(180, 185, 200, 0.4) 15%, rgba(180, 185, 200, 0.6) 50%, rgba(180, 185, 200, 0.75) 80%, transparent 100%);
    background-position: left center, right center;
    background-size: calc(50% - 14px) 100%, calc(50% - 14px) 100%;
    background-repeat: no-repeat;
}
.lp-wrap .lp-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--lp-gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--lp-gold), 0 0 12px var(--lp-gold-glow), 0 0 20px var(--lp-gold-glow);
    z-index: 1;
}

.lp-wrap .lp-card-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin: 32px 0 40px; padding: 0; }
.lp-wrap .lp-card-list.lp-fading { animation: lpListFade 0.32s ease-in-out; }
.lp-wrap .lp-card { position: relative; background: var(--lp-bg-deep); border-radius: 10px; padding: 0 0 10px; display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0; overflow: hidden; }
.lp-wrap .lp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, var(--lp-gold) 0%, var(--lp-accent) 45%, var(--lp-accent-soft) 70%, var(--lp-gold) 100%);
    opacity: 0.5;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}


.lp-wrap .lp-card:not(.lp-history-card) {
    background: rgba(74, 222, 128, 0.14);
}

.lp-wrap .lp-card:not(.lp-history-card)::before {
    background: #4ade80;
    opacity: 0.85;
}
.lp-wrap .lp-card.lp-hidden { display: none; }
.lp-wrap .lp-card-header { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 100%); border-bottom: 1px solid rgba(0, 0, 0, 0.4); min-width: 0; overflow: hidden; border-radius: 10px 10px 0 0; }
.lp-wrap .lp-card-header-flag { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.18); }
.lp-wrap .lp-card-header-country { color: var(--lp-gold); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.lp-wrap .lp-card-header-sep { color: rgba(255, 255, 255, 0.35); font-size: 10px; flex-shrink: 0; }
.lp-wrap .lp-card-header-league { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.lp-wrap .lp-card-live { display: inline-flex; align-items: center; gap: 4px; color: #4ade80; font-size: 12px; font-weight: 800; line-height: 1; margin-left: auto; flex-shrink: 0; }
.lp-wrap .lp-card-live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.75); animation: lpCardLiveDot 1.4s ease-in-out infinite; }
.lp-wrap .lp-card-live-text { color: #4ade80; font-size: 11px; font-weight: 900; text-transform: uppercase; text-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
.lp-wrap .lp-card-live-minute { display: inline-flex; align-items: baseline; color: #4ade80; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 1px; }
.lp-wrap .lp-card-live-minute [data-lp-card-minute-tick] { animation: lpCardLiveTick 0.9s ease-in-out infinite; }
.lp-wrap .lp-card-live-minute [data-lp-card-minute-tick].is-hidden { display: none; }
.lp-wrap .lp-card-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 7px 12px 2px; position: relative; }
.lp-wrap .lp-card-top::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background-image: linear-gradient(to right,
        rgba(107, 118, 136, 0.6) 0%,
        rgba(107, 118, 136, 0.6) calc(50% - 17px),
        transparent calc(50% - 17px),
        transparent calc(50% + 17px),
        rgba(107, 118, 136, 0.6) calc(50% + 17px),
        rgba(107, 118, 136, 0.6) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 1px;
    pointer-events: none;
}
.lp-wrap .lp-card-date { color: var(--lp-text); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.lp-wrap .lp-card-top-right { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.lp-wrap .lp-card-time { color: var(--lp-gold); font-size: 13px; font-weight: 700; }
.lp-wrap .lp-live-ball { display: inline-block; width: 13px; height: 13px; font-size: 0; color: transparent; margin-right: 5px; vertical-align: middle; background-image: url('https://cdn-icons-png.flaticon.com/512/53/53283.png'); background-size: contain; background-repeat: no-repeat; background-position: center; animation: lp-ball-spin 2.5s linear infinite; filter: brightness(0) invert(1); }

.lp-wrap .lp-fav-star {
    position: absolute !important;
    left: 50% !important;
    top: 100% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    background: var(--lp-bg-2) !important;
    border: 1px solid var(--lp-btn-border) !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}
.lp-wrap .lp-fav-star i {
    color: inherit !important;
    pointer-events: none !important;
}
.lp-wrap .lp-fav-star:hover,
.lp-wrap .lp-fav-star:focus {
    border-color: var(--lp-gold) !important;
    color: var(--lp-gold) !important;
    box-shadow: 0 0 0 3px var(--lp-gold-glow), 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}
.lp-wrap .lp-fav-star.is-favorite {
    background: var(--lp-gold-glow) !important;
    border-color: var(--lp-gold) !important;
    color: var(--lp-gold) !important;
    box-shadow: 0 0 0 3px var(--lp-gold-glow), 0 4px 12px var(--lp-gold-glow) !important;
}
.lp-wrap .lp-fav-star.is-favorite i {
    animation: lpFavPop 0.4s ease-out !important;
}
.lp-wrap .lp-card-match { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 15px 12px; text-align: center; }
.lp-wrap .lp-team-wrap { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-wrap .lp-logo-wrap { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.lp-wrap .lp-team-logo { width: 60px; height: 60px; object-fit: contain; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }
.lp-wrap .lp-team-initials { width: 60px; height: 60px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; border: 2px solid rgba(255, 255, 255, 0.15); }
.lp-wrap .lp-team { color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; text-align: center; }
.lp-wrap .lp-vs-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; max-width: 130px; min-width: 100px; min-height: 100px; padding-top: 4px; }
.lp-wrap .lp-vs-stack,
.lp-wrap .lp-vs-stack-unlocked,
.lp-wrap .lp-vs-stack-locked,
.lp-wrap .lp-vs-stack-playnow { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding: 5px 8px; min-width: 100px; text-decoration: none; color: inherit; }
.lp-wrap .lp-type { color: var(--lp-gold); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; text-align: center; line-height: 1.1; margin: 0; text-shadow: 0 0 10px var(--lp-gold-glow); }
.lp-wrap .lp-divider { width: 100%; min-width: 80px; height: 1px; margin: 5px 0; position: relative; background-image: linear-gradient(to right, rgba(107, 118, 136, 0.7) 0%, rgba(107, 118, 136, 0.7) calc(50% - 8px), transparent calc(50% - 8px), transparent calc(50% + 8px), rgba(107, 118, 136, 0.7) calc(50% + 8px), rgba(107, 118, 136, 0.7) 100%); background-repeat: no-repeat; background-position: center; background-size: 100% 1px; }
.lp-wrap .lp-divider::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 5px; height: 5px; background: var(--lp-gold); border-radius: 50%; box-shadow: 0 0 6px var(--lp-gold-glow); }
.lp-wrap .lp-locked-premium { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.3px; line-height: 1.15; }
.lp-wrap .lp-vs-stack-locked .lp-locked-premium { color: #6b7688; }
.lp-wrap .lp-vs-stack-locked:hover .lp-locked-premium { color: var(--lp-gold); }
.lp-wrap .lp-vs-stack-locked .lp-locked-premium i { font-size: 12px; }
.lp-wrap .lp-score-hint { color: var(--lp-gold-bright); opacity: 0.9; font-size: 14px; font-weight: 700; margin-left: 1px; }
.lp-wrap .lp-vs-stack-unlocked .lp-score-hint { color: var(--lp-gold-bright); font-size: 12px; font-weight: 700; }
.lp-wrap .lp-vs-stack-playnow .lp-playnow-part,
.lp-wrap .lp-playnow-part { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; text-align: center; padding: 0; box-sizing: border-box; }
.lp-wrap .lp-playnow-part .lp-divider { margin: 6px 0 10px; }
.lp-wrap .lp-premium-live-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; margin-top: 2px; }
.lp-wrap .lp-live-score { display: inline-block; font-family: 'Oswald', 'Inter', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; margin: -2px auto; padding: 0 4px; color: transparent; background: linear-gradient(180deg, #6b7688 0%, #d4dae4 25%, #ffffff 50%, #d4dae4 75%, #6b7688 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-wrap .lp-score-flash { animation: lpScoreFlash 900ms ease-out 1; }
.lp-wrap .lp-countdown { display: inline-flex; align-items: center; gap: 5px; color: #6b7688; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-wrap .lp-countdown i { font-size: 12px; animation: lpLockPulse 1.6s ease-in-out infinite; }
.lp-wrap .lp-value-row { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; font-size: 13px; font-weight: 700; color: var(--lp-label); text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; flex-shrink: 0; }
.lp-wrap .lp-value-label { font-size: 12px; opacity: 0.85; }
.lp-wrap .lp-value-signal { display: inline-flex; align-items: center; gap: 3px; }
.lp-wrap .lp-signal-bar { display: inline-block; width: 11px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.lp-wrap .lp-signal-bar.is-active { background: var(--lp-green); box-shadow: 0 0 6px var(--lp-green-glow); }
.lp-wrap .lp-card-top-right .lp-value-row { margin-right: 8px; margin-bottom: -2px; padding-right: 12px; }
.lp-wrap .lp-prob-bars { display: flex; width: calc(100% - 16px); height: 26px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); margin: 0 auto; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.lp-wrap .lp-prob-bar { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 3px; line-height: 1; transition: width 0.3s ease; }
.lp-wrap .lp-prob-bar-home { background: linear-gradient(180deg, #5cbf60 0%, #3d9e42 100%); }
.lp-wrap .lp-prob-bar-draw { background: linear-gradient(180deg, #ffd24a 0%, #f0b400 100%); color: #1a1a1a; }
.lp-wrap .lp-prob-bar-away { background: linear-gradient(180deg, #ff5e54 0%, #dc2e24 100%); }
.lp-wrap .lp-odds-row { display: grid; gap: 1px; width: calc(100% - 16px); margin: 0 auto; }
.lp-wrap .lp-odds-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.lp-wrap .lp-odds-row-2 { grid-template-columns: 1fr 1fr; }
.lp-wrap .lp-odd-cell { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 8px 10px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.28) 100%); border: 1px solid var(--lp-border); }
.lp-wrap .lp-odds-row-3 .lp-odd-cell:nth-child(1) { border-radius: 8px 0 0 8px; }
.lp-wrap .lp-odds-row-3 .lp-odd-cell:nth-child(2) { border-radius: 0; }
.lp-wrap .lp-odds-row-3 .lp-odd-cell:nth-child(3) { border-radius: 0 8px 8px 0; }
.lp-wrap .lp-odds-row-2 .lp-odd-cell:nth-child(1) { border-radius: 8px 0 0 8px; }
.lp-wrap .lp-odds-row-2 .lp-odd-cell:nth-child(2) { border-radius: 0 8px 8px 0; }
.lp-wrap .lp-odd-label { color: var(--lp-text); font-size: 11.5px; font-weight: 800; letter-spacing: 0.5px; }
.lp-wrap .lp-odd-value { color: #fff; font-size: 12px; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }


.lp-wrap .lp-card.lp-history-card.lp-history-win {
    background: rgba(74, 222, 128, 0.14);
}
.lp-wrap .lp-card.lp-history-card.lp-history-win::before {
    background: #4ade80;
    opacity: 0.85;
}



.lp-wrap .lp-card.lp-history-card.lp-history-loss {
    background: rgba(248, 113, 113, 0.14);
}
.lp-wrap .lp-card.lp-history-card.lp-history-loss::before {
    background: #f87171;
    opacity: 0.85;
}


.lp-wrap .lp-card.lp-history-card:not(.lp-history-win):not(.lp-history-loss) {
    background: rgba(180, 185, 200, 0.10);
}
.lp-wrap .lp-card.lp-history-card:not(.lp-history-win):not(.lp-history-loss)::before {
    background: rgba(180, 185, 200, 0.55);
    opacity: 0.85;
}
.lp-wrap .lp-history-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 9px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.lp-wrap .lp-history-badge.lp-history-win { background: rgba(74, 222, 128, 0.18); border: 1px solid rgba(74, 222, 128, 0.55); color: #4ade80; }
.lp-wrap .lp-history-badge.lp-history-loss { background: rgba(248, 113, 113, 0.18); border: 1px solid rgba(248, 113, 113, 0.55); color: #f87171; }
.lp-wrap .lp-finished-ft { color: var(--lp-gold); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; background: rgba(252, 211, 77, 0.12); border: 1px solid rgba(252, 211, 77, 0.32); border-radius: 4px; }
.lp-wrap .lp-finished-center { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; }
.lp-wrap .lp-finished-score { font-family: 'Oswald', 'Inter', sans-serif; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: 2px; color: transparent; background: linear-gradient(180deg, #6b7688 0%, #d4dae4 25%, #ffffff 50%, #d4dae4 75%, #6b7688 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-wrap .lp-finished-pred { color: rgba(255, 255, 255, 0.6); font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; }
.lp-wrap .lp-finished-pred strong { color: var(--lp-gold); font-weight: 800; }

/* Lock badge μέσα στο history PRED — inline, μικρό, clickable */
.lp-wrap .lp-history-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.38);
    border-radius: 4px;
    color: var(--lp-gold-bright);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1;
    transition: all 0.18s ease;
}
.lp-wrap .lp-history-locked i {
    font-size: 8px;
    color: var(--lp-gold);
}
.lp-wrap .lp-history-locked:hover,
.lp-wrap .lp-history-locked:focus {
    background: rgba(252, 211, 77, 0.22);
    border-color: var(--lp-gold);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 8px var(--lp-gold-glow);
}
.lp-wrap .lp-finished-profit { display: inline-flex; align-items: center; justify-content: center; padding: 5px 16px; border-radius: 6px; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.3px; white-space: nowrap; min-width: 100px; }
.lp-wrap .lp-finished-profit.positive { background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.45); color: #4ade80; }
.lp-wrap .lp-finished-profit.negative { background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248, 113, 113, 0.45); color: #f87171; }

/* Reset profit όταν είναι μέσα στο history badge (kill double border/background) */
.lp-wrap .lp-history-badge > .lp-finished-profit,
.lp-wrap .lp-history-badge > .lp-finished-profit.positive,
.lp-wrap .lp-history-badge > .lp-finished-profit.negative {
    display: inline-block;
    margin: 0 0 0 6px;
    padding: 0;
    min-width: 0;
    width: auto;
    height: auto;
    background: transparent;
    background-image: none;
    border: 0;
    border-width: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    letter-spacing: 0.3px;
    text-shadow: none;
    font-variant-numeric: tabular-nums;
}

.lp-wrap .lp-history-section { margin: 40px 0; }
.lp-wrap .lp-hub-hero-history .lp-hero-block-text { text-align: center; }
.lp-wrap .lp-history-league-stats { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 12px 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.lp-wrap .lp-hls-cells { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
.lp-wrap .lp-hls-cell { display: flex; flex-direction: column; justify-content: center; flex: 1 1 0; min-width: 0; padding: 8px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 8px; text-align: center; }
.lp-wrap .lp-hls-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.65; margin-bottom: 3px; white-space: nowrap; }
.lp-wrap .lp-hls-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-wrap .lp-hls-value.lp-stat-positive { color: #4ade80; }
.lp-wrap .lp-hls-value.lp-stat-negative { color: #ef4444; }
.lp-wrap .lp-history-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.lp-wrap .lp-empty-upcoming,
.lp-wrap .lp-empty-history { text-align: center; padding: 44px 20px; color: #94a3b8; font-style: italic; background: rgba(0, 0, 0, 0.28); border: 1px dashed #cbd5e1; border-radius: 14px; font-size: 14px; line-height: 1.6; font-weight: 500; }

@media (max-width: 1024px) {
    .lp-wrap .lp-history-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .lp-wrap .lp-history-list { grid-template-columns: 1fr; }
}


.lp-wrap .lp-pagination { display: flex; justify-content: center; margin: 24px 0 8px; }
.lp-wrap .lp-pagination-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.lp-wrap .lp-pagination-link,
.lp-wrap .lp-pagination-current { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; height: 38px; padding: 0 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28)); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; color: rgba(255, 255, 255, 0.78); font-size: 13px; font-weight: 800; text-decoration: none; line-height: 1; transition: all 0.18s ease; font-family: inherit; }
.lp-wrap .lp-pagination-link:hover { color: #fff; border-color: var(--lp-gold); background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)); }
.lp-wrap .lp-pagination-current { color: #fff; background: linear-gradient(180deg, #162447, #1F4068); border-color: var(--lp-gold); box-shadow: 0 0 8px rgba(252, 211, 77, 0.35); }
.lp-wrap .lp-pagination-ellipsis { color: rgba(255, 255, 255, 0.5); padding: 0 8px; font-weight: 800; }
.lp-wrap .lp-pagination-txt { display: none; }

@media (min-width: 640px) {
    .lp-wrap .lp-pagination-txt { display: inline; margin: 0 3px; }
}

.lp-back-to-hub.lp-back-to-hub { display: inline-flex; align-items: center; gap: 8px; margin: 32px auto 16px; padding: 12px 22px; color: #22D3EE; border: 1px solid rgba(34, 211, 238, 0.45); border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; }
.lp-back-to-hub.lp-back-to-hub:hover { background: rgba(34, 211, 238, 0.15); color: #fff; border-color: #FCD34D; }

.lp-fav-fab.lp-fav-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #FCD34D 0%, #FDE68A 100%); border: 2px solid #FDE68A; color: #0B1739; font-size: 22px; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 99997; box-shadow: 0 4px 20px rgba(252, 211, 77, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease; animation: lpFavFabPulse 2.4s ease-in-out infinite; }
.lp-fav-fab.lp-fav-fab.is-visible { display: flex; }
.lp-fav-fab.lp-fav-fab:hover,
.lp-fav-fab.lp-fav-fab:focus { transform: scale(1.08); box-shadow: 0 6px 28px rgba(252, 211, 77, 0.55); }
.lp-fav-fab.lp-fav-fab .lp-fav-fab-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; background: #f87171; color: #fff; font-size: 11px; font-weight: 900; border-radius: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #0B1739; }

.lp-fav-overlay.lp-fav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 99998; opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }
.lp-fav-overlay.lp-fav-overlay.is-open { opacity: 1; pointer-events: auto; }

.lp-fav-drawer.lp-fav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 380px; background: linear-gradient(135deg, #162447 0%, #1F4068 100%); border-left: 1px solid #FCD34D; z-index: 99999; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.55); }
.lp-fav-drawer.lp-fav-drawer.is-open { transform: translateX(0); }
.lp-fav-drawer.lp-fav-drawer .lp-fav-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 209, 128, 0.18); }
.lp-fav-drawer.lp-fav-drawer .lp-fav-title { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 800; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-title i { color: #FCD34D; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-count-label { color: #FCD34D; font-weight: 800; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-close { background: transparent; border: 0; color: #fff; font-size: 26px; width: 32px; height: 32px; padding: 0; cursor: pointer; border-radius: 5px; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-list { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-empty { text-align: center; padding: 40px 16px; color: rgba(255, 255, 255, 0.55); font-size: 14px; line-height: 1.6; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-empty i { font-size: 34px; color: rgba(252, 211, 77, 0.42); margin-bottom: 8px; display: block; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item:hover { border-color: #FCD34D; background: rgba(0, 0, 0, 0.45); }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item-teams { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; word-break: break-word; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item-teams span { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-item-meta { color: #FCD34D; font-size: 11px; font-weight: 700; }
.lp-fav-drawer.lp-fav-drawer .lp-fav-footer { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.lp-fav-drawer.lp-fav-drawer .lp-fav-clear { width: 100%; padding: 10px 12px; background: rgba(248, 113, 113, 0.3); border: 1px solid #f87171; border-radius: 6px; color: #f87171; font-size: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; }

body.lp-fav-open.lp-fav-open { overflow: hidden; }
.lp-wrap .lp-card.lp-fav-flash { animation: lpFavFlash 1.8s ease-out 1; }

@media (max-width: 640px) {
    .lp-fav-fab.lp-fav-fab { width: 48px; height: 48px; font-size: 18px; bottom: 18px; right: 18px; }
    .lp-fav-fab.lp-fav-fab .lp-fav-fab-count { min-width: 18px; height: 18px; font-size: 10px; }
}

.lp-wrap .lp-goal-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 100%); z-index: 100; border-radius: 10px; pointer-events: none; animation: lpGoalFadeIn 0.25s ease-out; }
.lp-wrap .lp-goal-overlay-text { font-size: 36px; font-weight: 900; letter-spacing: 4px; color: #4ade80; text-shadow: 0 0 14px #4ade80, 0 0 28px rgba(74, 222, 128, 0.35); animation: lpGoalPulse 0.55s ease-in-out infinite alternate; white-space: nowrap; }
.lp-wrap .lp-goal-overlay.lp-goal-overlay-out { animation: lpGoalFadeOut 0.35s ease-in forwards; }
.lp-wrap .lp-card.lp-card-removing { animation: lpCardRemove 0.4s ease forwards; pointer-events: none; }

.lp-wrap .lp-unlock-preloader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(11, 23, 57, 0.88); backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); border-radius: 8px; z-index: 5; transition: opacity 0.3s ease; pointer-events: none; }
.lp-wrap .lp-unlock-preloader.is-hiding { opacity: 0; }
.lp-wrap .lp-unlock-spinner { display: inline-block; width: 26px; height: 26px; border: 2.5px solid rgba(252, 211, 77, 0.22); border-top-color: #FCD34D; border-radius: 50%; animation: lpUnlockSpin 0.8s linear infinite; box-shadow: 0 0 12px rgba(252, 211, 77, 0.25); }
.lp-wrap .lp-unlock-text { font-size: 9.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #FCD34D; text-shadow: 0 0 8px rgba(252, 211, 77, 0.45); line-height: 1; }
.lp-wrap .lp-card.is-unlocking .lp-vs-stack-playnow { opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.lp-wrap .lp-vs-stack-unlocked.is-unlock-reveal { animation: lpUnlockReveal 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.lp-wrap .lp-no-predictions-notice { background: rgba(34, 211, 238, 0.06); border: 1px solid var(--lp-border); border-radius: 10px; box-shadow: none; outline: none; margin: 24px 0; padding: 28px; }
.lp-wrap .lp-no-predictions-notice::before,
.lp-wrap .lp-no-predictions-notice::after { content: none; display: none; background: none; mask: none; -webkit-mask: none; }

.lp-wrap .lp-npn-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(34, 211, 238, 0.18); }
.lp-wrap .lp-npn-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, rgba(252, 211, 77, 0.20) 0%, rgba(34, 211, 238, 0.10) 100%); border: 1.5px solid rgba(252, 211, 77, 0.55); color: #FDE68A; font-size: 22px; flex-shrink: 0; }
.lp-wrap .lp-npn-title { font-size: 17px; font-weight: 900; color: #FDE68A; line-height: 1.3; margin-bottom: 6px; }
.lp-wrap .lp-npn-league { color: #22D3EE; }
.lp-wrap .lp-npn-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.lp-wrap .lp-npn-desc strong { color: #FDE68A; }
.lp-wrap .lp-npn-footer { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.lp-wrap .lp-npn-footer strong { color: #FDE68A; }
.lp-wrap .lp-npn-market { color: #22D3EE; font-weight: 800; }

@media (max-width: 640px) {
    .lp-wrap .lp-npn-header { flex-direction: column; align-items: flex-start; }
}

.lp-wrap .lp-ranking-section,
.wfx-wrap .lp-ranking-section { margin: 18px 0 22px; padding: 0; padding-top: 0; }
.lp-wrap .lp-ranking-explainer,
.wfx-wrap .lp-ranking-explainer { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.22); border-left: 3px solid #22D3EE; border-radius: 8px; color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
.lp-wrap .lp-ranking-explainer i,
.wfx-wrap .lp-ranking-explainer i { color: #22D3EE; font-size: 16px; flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5)); }
.lp-wrap .lp-ranking-explainer strong,
.wfx-wrap .lp-ranking-explainer strong { color: #FCD34D; font-weight: 800; }
.lp-wrap .lp-ranking-header,
.wfx-wrap .lp-ranking-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lp-wrap .lp-ranking-title,
.wfx-wrap .lp-ranking-title { display: inline-flex; align-items: center; gap: 8px; color: #FCD34D; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }
.lp-wrap .lp-ranking-title i,
.wfx-wrap .lp-ranking-title i { color: #22D3EE; font-size: 14px; filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5)); }
.lp-wrap .lp-ranking-subtitle,
.wfx-wrap .lp-ranking-subtitle { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.55); text-transform: none; letter-spacing: 0.2px; margin-left: 4px; }
.lp-wrap .lp-ranking-buttons,
.wfx-wrap .lp-ranking-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-wrap .lp-ranking-btn,
.wfx-wrap .lp-ranking-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: rgba(255, 255, 255, 0.75); font-size: 12px; font-weight: 700; letter-spacing: 0.3px; cursor: pointer; font-family: inherit; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease; outline: none; -webkit-appearance: none; appearance: none; white-space: nowrap; }
.lp-wrap .lp-ranking-btn:hover,
.lp-wrap .lp-ranking-btn:focus,
.wfx-wrap .lp-ranking-btn:hover,
.wfx-wrap .lp-ranking-btn:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.lp-wrap .lp-ranking-btn.is-active,
.wfx-wrap .lp-ranking-btn.is-active { background: rgba(252, 211, 77, 0.18); border-color: #FCD34D; color: #FCD34D; box-shadow: 0 0 10px rgba(252, 211, 77, 0.25); }


.lp-wrap .lp-ranking-btn.is-locked,
.wfx-wrap .lp-ranking-btn.is-locked {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
    overflow: visible;
    background: rgba(0, 0, 0, 0.28);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}
.lp-wrap .lp-ranking-btn.is-locked:hover,
.lp-wrap .lp-ranking-btn.is-locked:focus,
.wfx-wrap .lp-ranking-btn.is-locked:hover,
.wfx-wrap .lp-ranking-btn.is-locked:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    opacity: 0.75;
    box-shadow: none;
}
.lp-wrap .lp-ranking-btn.is-locked::after,
.wfx-wrap .lp-ranking-btn.is-locked::after {
    content: attr(data-lp-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 7px 12px;
    background: rgba(11, 23, 57, 0.98);
    border: 1px solid var(--lp-gold);
    border-radius: 6px;
    color: var(--lp-gold-bright);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 0.2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px var(--lp-gold-glow);
}
.lp-wrap .lp-ranking-btn.is-locked:hover::after,
.lp-wrap .lp-ranking-btn.is-locked:focus::after,
.wfx-wrap .lp-ranking-btn.is-locked:hover::after,
.wfx-wrap .lp-ranking-btn.is-locked:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.lp-wrap .lp-ranking-chart-wrapper,
.wfx-wrap .lp-ranking-chart-wrapper { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--lp-border); border-radius: 10px; padding: 14px; }
.lp-wrap .lp-ranking-chart-inner,
.wfx-wrap .lp-ranking-chart-inner { position: relative; width: 100%; height: 500px; }

.lp-wrap .lp-stats-chart-row.lp-ranking-row,
.wfx-wrap .lp-stats-chart-row.lp-ranking-row {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.lp-wrap .lp-ranking-row,
.wfx-wrap .lp-ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 16px; min-height: 240px; height: auto; }
.lp-wrap .lp-ranking-stats-grid,
.wfx-wrap .lp-ranking-stats-grid { grid-template-columns: repeat(4, 1fr); }
.lp-wrap .lp-ranking-stats-grid .lp-stat-card-square,
.wfx-wrap .lp-ranking-stats-grid .lp-stat-card-square { transition: background 0.2s ease, border-color 0.2s ease; border: 1px solid transparent; border-radius: 6px; }
.lp-wrap .lp-ranking-stats-grid .lp-stat-card-square.is-active,
.wfx-wrap .lp-ranking-stats-grid .lp-stat-card-square.is-active { background: rgba(252, 211, 77, 0.1); border-color: rgba(252, 211, 77, 0.45); box-shadow: 0 0 12px rgba(252, 211, 77, 0.15); }
.lp-wrap .lp-ranking-row .lp-history-stats-grid,
.wfx-wrap .lp-ranking-row .lp-history-stats-grid { height: 100%; min-height: 0; align-self: stretch; padding: 14px; }
.lp-wrap .lp-ranking-row .lp-chart-wrapper,
.wfx-wrap .lp-ranking-row .lp-chart-wrapper { height: 100%; min-height: 0; align-self: stretch; padding: 12px 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--lp-border); border-radius: 10px; box-sizing: border-box; display: flex; flex-direction: column; }
.lp-wrap .lp-ranking-row .lp-chart-inner,
.wfx-wrap .lp-ranking-row .lp-chart-inner { flex: 1 1 auto; position: relative; width: 100%; height: 100%; min-height: 200px; }
.lp-wrap .lp-ranking-controls,
.wfx-wrap .lp-ranking-controls { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; margin-bottom: 4px; }

@media (max-width: 900px) {
    .lp-wrap .lp-ranking-row,
    .wfx-wrap .lp-ranking-row { grid-template-columns: 1fr; gap: 14px; min-height: 0; }
    .lp-wrap .lp-ranking-stats-grid,
    .wfx-wrap .lp-ranking-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-wrap .lp-ranking-row .lp-chart-wrapper,
    .wfx-wrap .lp-ranking-row .lp-chart-wrapper { min-height: 260px; }
}

@media (max-width: 640px) {
    .lp-wrap .lp-ranking-header,
    .wfx-wrap .lp-ranking-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .lp-wrap .lp-ranking-title,
    .wfx-wrap .lp-ranking-title { font-size: 12px; justify-content: center; }
    .lp-wrap .lp-ranking-subtitle,
    .wfx-wrap .lp-ranking-subtitle { display: none; }
    .lp-wrap .lp-ranking-buttons,
    .wfx-wrap .lp-ranking-buttons { justify-content: center; }
    .lp-wrap .lp-ranking-btn,
    .wfx-wrap .lp-ranking-btn { padding: 6px 10px; font-size: 11px; }
    .lp-wrap .lp-ranking-chart-inner,
    .wfx-wrap .lp-ranking-chart-inner { height: 600px; }
    .lp-wrap .lp-ranking-explainer,
    .wfx-wrap .lp-ranking-explainer { padding: 12px 14px; font-size: 12px; }
}


.lp-wrap .lp-section-header {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    text-align: center;
}
.lp-wrap .lp-section-title {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: #fff;
    text-align: center;
    border: 0;
}
.lp-wrap .lp-section-desc {
    display: block;
    margin: 0 auto;
    max-width: 720px;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}
.lp-wrap .lp-section-desc strong {
    color: var(--lp-accent-soft);
    font-weight: 800;
}

@media (max-width: 640px) {
    .lp-wrap .lp-section-title { font-size: 18px; }
    .lp-wrap .lp-section-desc  { font-size: 13px; }
}

.lp-wrap .lp-card-header-market {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
}
.lp-wrap .lp-card-header-market--1x2 {
    background: rgba(252, 211, 77, 0.16);
    border: 1px solid rgba(252, 211, 77, 0.5);
    color: #FCD34D;
}
.lp-wrap .lp-card-header-market--ou {
    background: rgba(34, 211, 238, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.5);
    color: #22D3EE;
}
.lp-wrap .lp-card-header-market--btts {
    background: rgba(74, 222, 128, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
}

.lp-wrap .lp-back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.lp-wrap .lp-back-to-hub:hover,
.lp-wrap .lp-back-to-hub:focus {
    background: rgba(252, 211, 77, 0.14);
    border-color: var(--lp-gold);
    color: #FDE68A;
    box-shadow: 0 0 12px rgba(252, 211, 77, 0.25);
    text-decoration: none;
    transform: translateY(-1px);
}
.lp-wrap .lp-back-to-hub i {
    color: var(--lp-gold);
    font-size: 12px;
}