/* ============================================================
   BATTLEPASS — AAA PREMIUM DARK RED-BLACK REDESIGN
   ============================================================ */

/* =================== TOP BANNER =================== */
.bp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0c0000 0%, #0a0a0a 45%, #0d0305 100%);
    border-radius: 16px;
    padding: 36px 40px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(255,0,0,0.18);
    box-shadow:
        0 0 60px rgba(255,0,0,0.07),
        0 8px 40px rgba(0,0,0,0.85),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Red atmospheric glow — left */
.bp-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -100px;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,0,0,0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Red atmospheric glow — right edge */
.bp-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -80px;
    width: 400px;
    height: 320px;
    background: radial-gradient(ellipse, rgba(255,0,0,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.bp-banner__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.bp-banner__logo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 18px rgba(255,0,0,0.65)) drop-shadow(0 0 40px rgba(255,0,0,0.3));
}

/* Override global svg { width:1rem; height:1rem } from style.css */
.bp-banner__logo svg {
    width: 140px !important;
    height: 140px !important;
    overflow: visible !important;
    vertical-align: top !important;
    flex-shrink: 0 !important;
}

.bp-banner__title-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.bp-banner__title {
    font-size: clamp(28px, 4vw, 58px) !important;
    font-weight: 900 !important;
    background: linear-gradient(130deg, #ffffff 0%, #ff4040 35%, #ffffff 55%, #ff1a1a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-transform: uppercase !important;
    letter-spacing: clamp(1px, 0.3vw, 4px) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 24px rgba(255,0,0,0.45));
    white-space: normal;
    word-break: break-word;
}

.bp-banner__subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.bp-accent {
    color: var(--span);
    font-weight: 700;
}

/* =================== BANNER RIGHT (user info) =================== */
.bp-banner__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 24px rgba(255,0,0,0.07),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Level box */
.bp-level-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,0,0,0.07);
    border: 2px solid rgba(255,0,0,0.45);
    border-radius: 12px;
    width: 88px;
    height: 88px;
    gap: 2px;
    flex-shrink: 0;
    box-shadow:
        0 0 22px rgba(255,0,0,0.18),
        inset 0 0 18px rgba(255,0,0,0.04);
    transition: all 0.25s ease;
}

.bp-level-box:hover {
    border-color: rgba(255,0,0,0.75);
    box-shadow:
        0 0 34px rgba(255,0,0,0.35),
        inset 0 0 28px rgba(255,0,0,0.07);
}

.bp-level-box__number {
    font-size: 44px;
    font-weight: 900;
    color: #ff1a1a;
    line-height: 1;
    text-shadow: 0 0 22px rgba(255,0,0,0.6);
}

.bp-level-box__label {
    font-size: 9px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* EXP block */
.bp-exp-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.bp-exp-block__current {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bp-exp-bar {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.6);
}

.bp-exp-bar__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #8a0000 0%, #cc0000 55%, #ff3030 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 14px rgba(255,0,0,0.55), 0 0 28px rgba(255,0,0,0.25);
}

.bp-exp-bar__thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #ff3030;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(255,0,0,0.9), 0 0 24px rgba(255,0,0,0.45);
}

.bp-exp-block__sub {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.3px;
}

/* Credits */
.bp-credits {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bp-credits__info {
    display: flex;
    flex-direction: column;
}

.bp-credits__value {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.bp-credits__label {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Buy button */
.bp-buy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(145deg, #cc0000 0%, #ff0000 50%, #ff2020 100%);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    min-width: 80px;
    min-height: 80px;
    border: 1px solid rgba(255,100,100,0.45);
    flex-shrink: 0;
    box-shadow:
        0 0 22px rgba(255,0,0,0.5),
        0 0 50px rgba(255,0,0,0.22),
        0 6px 18px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.bp-buy-btn:hover {
    transform: scale(1.07);
    background: linear-gradient(145deg, #dd0000 0%, #ff1a1a 50%, #ff3535 100%);
    box-shadow:
        0 0 35px rgba(255,0,0,0.7),
        0 0 70px rgba(255,0,0,0.38),
        0 8px 24px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.25);
    text-decoration: none !important;
    color: #ffffff !important;
}

.bp-buy-btn--active {
    background: linear-gradient(145deg, #181818 0%, #222222 100%);
    cursor: default;
    border-color: rgba(255,0,0,0.15);
    box-shadow:
        0 0 10px rgba(255,0,0,0.08),
        0 4px 16px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.bp-buy-btn--active:hover {
    transform: none;
    background: linear-gradient(145deg, #181818 0%, #222222 100%);
    box-shadow:
        0 0 10px rgba(255,0,0,0.08),
        0 4px 16px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =================== MIDDLE SECTION =================== */
.bp-middle {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

/* =================== TOP PLAYERS =================== */
.bp-top {
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 14px;
    padding: 18px 16px;
    width: 242px;
    min-width: 242px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    box-sizing: border-box;
    box-shadow:
        0 0 30px rgba(255,0,0,0.04),
        0 6px 24px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition: all 0.25s ease;
}

.bp-top:hover {
    border-color: rgba(255,0,0,0.25);
    box-shadow:
        0 0 40px rgba(255,0,0,0.08),
        0 6px 28px rgba(0,0,0,0.72),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.bp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,0,0,0.14);
    flex-shrink: 0;
}

.bp-section-header svg {
    flex-shrink: 0;
    color: #ff0000;
}

.bp-players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,0,0,0.28) transparent;
}

.bp-player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.bp-player-item:hover {
    background: rgba(255,0,0,0.05);
    border-color: rgba(255,0,0,0.18);
    text-decoration: none !important;
}

.bp-player-rank {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}

/* #1 — bright red */
.bp-player-rank--gold {
    color: #ff3030;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255,0,0,0.5);
}

/* #2 #3 — muted red */
.bp-player-rank--top {
    color: #aa2222;
    font-weight: 800;
}

.bp-player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.bp-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.bp-player-nick {
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

.bp-player-exp {
    font-size: 11px;
    color: #ff3030;
    font-weight: 600;
}

.bp-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-decoration: none !important;
    padding: 10px 0 2px;
    margin-top: 2px;
    border-top: 1px solid rgba(255,0,0,0.1);
    transition: all 0.25s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-view-all:hover {
    color: #ff3030;
    text-shadow: 0 0 10px rgba(255,0,0,0.4);
    text-decoration: none !important;
}

/* =================== MISSIONS =================== */
.bp-missions {
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 14px;
    padding: 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 420px;
    box-sizing: border-box;
    box-shadow:
        0 0 30px rgba(255,0,0,0.04),
        0 6px 24px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.bp-missions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,0,0,0.12);
    flex-shrink: 0;
}

.bp-missions-header__title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bp-missions-header__title svg {
    color: #ff0000;
    flex-shrink: 0;
}

.bp-missions-header__userid {
    font-size: 11px;
    color: #3a3a3a;
    font-weight: 400;
    margin-left: 6px;
    white-space: nowrap;
}

.bp-missions-header__refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #ff3030;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,0,0,0.4);
}

.bp-missions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,0,0,0.28) transparent;
    align-content: start;
}

/* Mission card */
.bp-mission-card {
    background: linear-gradient(145deg, #161616 0%, #121212 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 13px 13px 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: default;
    min-height: 100px;
    box-sizing: border-box;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bp-mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.35), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bp-mission-card:hover {
    border-color: rgba(255,0,0,0.28);
    box-shadow: 0 0 20px rgba(255,0,0,0.08), 0 4px 16px rgba(0,0,0,0.45);
    transform: translateY(-1px);
}

.bp-mission-card:hover::before {
    opacity: 1;
}

/* Completed card */
.bp-mission-card--completed {
    background: linear-gradient(145deg, #1b1010 0%, #150e0e 100%);
    border-color: rgba(255,0,0,0.28);
    box-shadow: 0 0 16px rgba(255,0,0,0.1), 0 4px 16px rgba(0,0,0,0.45);
}

.bp-mission-card--completed::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.5), transparent);
}

.bp-mission-card--completed:hover {
    border-color: rgba(255,0,0,0.48);
    box-shadow: 0 0 28px rgba(255,0,0,0.2), 0 6px 20px rgba(0,0,0,0.55);
}

.bp-mission-card__badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 22px;
}

/* Badge base */
.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    background: var(--span);
    color: #fff;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bp-badge--timer {
    background: rgba(255,255,255,0.07);
    color: #999;
    border: 1px solid rgba(255,255,255,0.07);
    text-transform: none;
    font-weight: 600;
}

.bp-badge-clock {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.bp-badge--completed {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
    color: #fff;
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
    border: 1px solid rgba(255,80,80,0.3);
}

.bp-mission-card__desc {
    font-size: 13px;
    color: #bbb;
    line-height: 1.35;
    font-weight: 500;
}

.bp-mission-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.bp-mission-card__progress {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bp-mission-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a0000, #ff3030);
    border-radius: 3px;
    box-shadow: 0 0 7px rgba(255,0,0,0.5);
    transition: width 0.6s ease;
}

.bp-mission-card--completed .bp-mission-card__progress-fill {
    box-shadow: 0 0 12px rgba(255,0,0,0.72);
}

.bp-mission-card__count {
    font-size: 11px;
    color: #4a4a4a;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.bp-mission-card__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,0,0,0.1);
    border: 2px solid #ff1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

/* =================== LEVELS =================== */
.bp-levels-section {
    margin-top: 14px;
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 14px;
    /* padding-top larger to give glow room above octagon */
    padding: 10px 18px 20px;
    overflow: visible;          /* allow drop-shadow glow to bleed out */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow:
        0 0 30px rgba(255,0,0,0.04),
        0 6px 24px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Section header */
.bp-levels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,0,0,0.12);
    margin-bottom: 0;           /* gap handled by bp-levels-row padding-top */
    flex-shrink: 0;
}

.bp-levels-header__title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bp-levels-header__title svg {
    color: #ff0000;
    flex-shrink: 0;
}

.bp-levels-header__current {
    font-size: 12px;
    font-weight: 700;
    color: #ff3030;
    text-shadow: 0 0 8px rgba(255,0,0,0.4);
}

/* Levels row — separators carry flex: 1 to fill width */
.bp-levels-row {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    padding-top: 14px;          /* space for drop-shadow glow above octagons */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,0,0,0.28) transparent;
}

.bp-level-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Separator fills all available space between items */
.bp-level-sep {
    flex: 1;
    min-width: 10px;
    display: flex;
    align-items: center;
    margin-top: 40px; /* center with octagon (86px / 2 - line half) */
    flex-shrink: 1;
    padding: 0;
}

.bp-level-sep::before,
.bp-level-sep::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 1px;
    transition: background 0.25s ease;
}

.bp-level-sep__diamond {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin: 0 3px;
    transition: all 0.25s ease;
}

/* Past separator — red completed track */
.bp-level-sep--past::before,
.bp-level-sep--past::after {
    background: rgba(255,0,0,0.4);
    box-shadow: 0 0 4px rgba(255,0,0,0.3);
}

.bp-level-sep--past .bp-level-sep__diamond {
    background: rgba(255,0,0,0.6);
    box-shadow: 0 0 5px rgba(255,0,0,0.5);
}

/* Octagon shape */
.bp-level-octagon {
    position: relative;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    transition: filter 0.25s ease;
}

.bp-oct-outer {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.25s ease;
}

.bp-oct-inner {
    position: absolute;
    inset: 3px;
    background: #131313;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: background 0.25s ease;
}

/* Past levels */
.bp-level-octagon--past .bp-oct-outer {
    background: rgba(255,0,0,0.28);
}

.bp-level-octagon--past .bp-oct-inner {
    background: #190909;
}

.bp-level-octagon--past .bp-oct-number {
    color: rgba(255,70,70,0.7);
}

.bp-level-octagon--past .bp-oct-label {
    color: #4a2020;
}

/* Current level */
.bp-level-octagon--current {
    filter: drop-shadow(0 0 10px rgba(255,0,0,1)) drop-shadow(0 0 22px rgba(255,0,0,0.7)) drop-shadow(0 0 40px rgba(255,0,0,0.35));
}

.bp-level-octagon--current .bp-oct-outer {
    background: #ff0000;
}

.bp-level-octagon--current .bp-oct-inner {
    background: #1e0606;
}

.bp-level-octagon--current .bp-oct-number {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255,100,100,0.9);
}

.bp-level-octagon--current .bp-oct-label {
    color: rgba(255,160,160,0.8);
}

/* Future levels */
.bp-level-octagon--future .bp-oct-outer {
    background: rgba(255,255,255,0.08);
}

.bp-level-octagon--future .bp-oct-inner {
    background: #141414;
}

.bp-level-octagon--future .bp-oct-number {
    color: #484848;
}

.bp-level-octagon--future .bp-oct-label {
    color: #383838;
}

.bp-oct-number {
    font-size: 26px;
    font-weight: 900;
    color: #aaa;
    line-height: 1;
    transition: all 0.25s ease;
}

.bp-oct-label {
    font-size: 8px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

/* Level reward badge */
.bp-level-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.22);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #cc2222;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.bp-level-stars svg {
    width: 10px;
    height: 10px;
    fill: #cc2222;
    flex-shrink: 0;
    transition: fill 0.25s ease;
}

/* Current level reward */
.bp-level-item:has(.bp-level-octagon--current) .bp-level-stars {
    background: rgba(255,0,0,0.2);
    border-color: rgba(255,0,0,0.5);
    box-shadow: 0 0 12px rgba(255,0,0,0.28);
    color: #ff4040;
}

.bp-level-item:has(.bp-level-octagon--current) .bp-level-stars svg {
    fill: #ff4040;
}

/* Past level reward */
.bp-level-item:has(.bp-level-octagon--past) .bp-level-stars {
    opacity: 0.5;
}

/* Future level reward */
.bp-level-item:has(.bp-level-octagon--future) .bp-level-stars {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    color: #707070;
}

.bp-level-item:has(.bp-level-octagon--future) .bp-level-stars svg {
    fill: #707070;
}

/* =================== AUTH MESSAGE =================== */
.bp-auth-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.12);
    border-radius: 14px;
    padding: 40px 20px;
    min-height: 200px;
}

.bp-auth-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    max-width: 340px;
}

.bp-auth-inner p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* =================== LOADING =================== */
.bp-missions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 14px;
    color: #3a3a3a;
    font-size: 14px;
}

.bp-missions-loading .spinner {
    border: 3px solid rgba(255,0,0,0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border-left-color: #ff0000;
    animation: bp-spin 1s linear infinite;
    box-shadow: 0 0 16px rgba(255,0,0,0.28);
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1200px) {
    .bp-banner {
        gap: 14px;
        padding: 28px 24px;
    }
    .bp-exp-block {
        min-width: 140px;
    }
}

@media (max-width: 1000px) {
    .bp-banner {
        flex-wrap: wrap;
        padding: 22px 20px;
        gap: 16px;
    }
    .bp-banner__left {
        flex-shrink: 0;
        width: 100%;
    }
    .bp-banner__right {
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }
    .bp-exp-block {
        min-width: 160px;
        flex: 1;
    }
    .bp-middle {
        flex-direction: column;
    }
    .bp-top {
        width: 100%;
        min-width: unset;
        max-height: 280px;
    }
}

@media (max-width: 760px) {
    .bp-banner__title {
        font-size: clamp(24px, 6vw, 42px) !important;
    }
    .bp-banner__logo {
        width: 100px;
        height: 100px;
    }
    .bp-banner__logo svg {
        width: 100px !important;
        height: 100px !important;
    }
    .bp-banner__right {
        padding: 12px 14px;
    }
    .bp-level-box {
        width: 76px;
        height: 76px;
    }
    .bp-level-box__number {
        font-size: 36px;
    }
    .bp-missions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bp-banner {
        padding: 14px;
        gap: 12px;
    }
    .bp-banner__title {
        font-size: clamp(20px, 7vw, 32px) !important;
        letter-spacing: 1px !important;
    }
    .bp-banner__logo {
        width: 72px;
        height: 72px;
    }
    .bp-banner__logo svg {
        width: 72px !important;
        height: 72px !important;
    }
    .bp-banner__right {
        padding: 10px 12px;
        gap: 8px;
    }
    .bp-level-box {
        width: 68px;
        height: 68px;
    }
    .bp-level-box__number {
        font-size: 30px;
    }
    .bp-exp-block {
        min-width: 120px;
    }
    .bp-exp-block__current {
        font-size: 16px;
    }
    .bp-credits__value {
        font-size: 20px;
    }
    .bp-buy-btn {
        min-width: 64px;
        min-height: 64px;
        padding: 10px 12px;
        font-size: 10px;
    }
    .bp-tabs {
        flex-wrap: wrap;
    }
    .bp-tab {
        flex: 1;
        justify-content: center;
    }
    .bp-admin__field-row {
        flex-direction: column;
    }
    .bp-admin__save-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}

/* =================== TABS =================== */
.bp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px;
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.14);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

.bp-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.bp-tab:hover {
    color: #aaa;
    background: rgba(255,255,255,0.04);
}

.bp-tab--active {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.3);
    color: #ff3030;
    box-shadow: 0 0 14px rgba(255,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}

.bp-tab--active:hover {
    color: #ff4444;
    background: rgba(255,0,0,0.14);
}

.bp-tab svg {
    flex-shrink: 0;
}

/* =================== BUY MODAL =================== */
.bp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}

.bp-modal--open {
    opacity: 1;
    pointer-events: all;
}

.bp-modal__box {
    background: linear-gradient(160deg, #181010 0%, #111111 60%, #0d0d0d 100%);
    border: 1px solid rgba(255,0,0,0.25);
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow:
        0 0 60px rgba(255,0,0,0.12),
        0 20px 60px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(0);
    animation: bpModalIn 0.25s ease;
}

@keyframes bpModalIn {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.bp-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    padding: 0;
}

.bp-modal__close:hover {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.3);
    color: #ff3030;
}

.bp-modal__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-align: center;
}

.bp-modal__emblem {
    filter: drop-shadow(0 0 14px rgba(255,0,0,0.5));
}

.bp-modal__title {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(130deg, #ffffff 0%, #ff4040 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.bp-modal__sub {
    font-size: 12px;
    color: #555;
    letter-spacing: 0.5px;
}

.bp-modal__cost-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,0,0,0.05);
    border: 1px solid rgba(255,0,0,0.15);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.bp-modal__cost-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.bp-modal__cost-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,0,0,0.2);
    margin: 0 16px;
    flex-shrink: 0;
}

.bp-modal__cost-label {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-modal__cost-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bp-modal__cost-val--low {
    color: #ff4444;
}

.bp-modal__warn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,60,60,0.08);
    border: 1px solid rgba(255,60,60,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #ff6666;
    margin-bottom: 16px;
}

.bp-modal__perks {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-modal__perks li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #888;
}

.bp-modal__perks li svg {
    flex-shrink: 0;
}

.bp-modal__actions {
    display: flex;
    gap: 10px;
}

.bp-modal__cancel {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #666;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bp-modal__cancel:hover {
    border-color: rgba(255,255,255,0.15);
    color: #aaa;
}

.bp-modal__confirm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,100,100,0.45);
    background: linear-gradient(145deg, #cc0000, #ff1a1a);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 0 20px rgba(255,0,0,0.4), 0 4px 12px rgba(0,0,0,0.4);
}

.bp-modal__confirm:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255,0,0,0.6), 0 6px 16px rgba(0,0,0,0.5);
}

.bp-modal__confirm--disabled,
.bp-modal__confirm:disabled {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.06);
    color: #333;
    cursor: not-allowed;
    box-shadow: none;
}

.bp-modal__result {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}

.bp-modal__result--ok  { color: #4caf50; }
.bp-modal__result--err { color: #ff4444; }

/* =================== ADMIN PANEL =================== */
.bp-admin {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bp-admin__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.18);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 0 30px rgba(255,0,0,0.05), 0 6px 24px rgba(0,0,0,0.5),
                inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}

.bp-admin__header::before {
    content: '';
    position: absolute;
    top: -60px; left: -80px;
    width: 380px; height: 280px;
    background: radial-gradient(ellipse, rgba(255,0,0,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.bp-admin__header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.bp-admin__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff3030;
    box-shadow: 0 0 16px rgba(255,0,0,0.18);
}

.bp-admin__header-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bp-admin__header-sub {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
    letter-spacing: 0.4px;
}

.bp-admin__badge {
    background: rgba(255,0,0,0.12);
    border: 1px solid rgba(255,0,0,0.3);
    color: #ff3030;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255,0,0,0.15);
    position: relative;
    z-index: 1;
}

.bp-admin__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.bp-admin__card {
    background: var(--card);
    border: 1px solid rgba(255,0,0,0.14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: all 0.25s ease;
}

.bp-admin__card:hover {
    border-color: rgba(255,0,0,0.25);
    box-shadow: 0 0 24px rgba(255,0,0,0.07), 0 6px 24px rgba(0,0,0,0.6);
}

.bp-admin__card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,0,0,0.1);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,0,0,0.04);
}

.bp-admin__card-header svg {
    color: #ff0000;
    flex-shrink: 0;
}

.bp-admin__card-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bp-admin__card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.bp-admin__field-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.bp-admin__input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.bp-admin__input-wrap:focus-within {
    border-color: rgba(255,0,0,0.45);
    box-shadow: 0 0 16px rgba(255,0,0,0.12);
    background: rgba(255,0,0,0.04);
}

.bp-admin__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    font-family: inherit;
    width: 0;
    min-width: 0;
}

.bp-admin__input::placeholder {
    color: #333;
}

.bp-admin__input-suffix {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    border-left: 1px solid rgba(255,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-admin__save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,100,100,0.4);
    background: linear-gradient(145deg, #cc0000, #ff1a1a);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(255,0,0,0.35), 0 4px 12px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.15);
    flex-shrink: 0;
    min-height: 48px;
}

.bp-admin__save-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 0 26px rgba(255,0,0,0.55), 0 6px 16px rgba(0,0,0,0.5),
                inset 0 1px 0 rgba(255,255,255,0.2);
}

.bp-admin__save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bp-admin__save-msg {
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    transition: color 0.2s ease;
}

.bp-admin__save-msg--ok  { color: #4caf50; }
.bp-admin__save-msg--error { color: #ff4444; }

/* ── Admin form labels ── */
.bp-admin__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.bp-admin__form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
}

.bp-admin__subsection {
    border-top: 1px solid rgba(255,0,0,0.1);
    padding-top: 14px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-admin__subsection-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.bp-admin__code {
    color: #ff3030;
    background: rgba(255,0,0,0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* ── Server toggle buttons ── */
.bp-admin__srv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.bp-admin__no-servers {
    font-size: 12px;
    color: #444;
    font-style: italic;
}

.bp-srv-toggle {
    display: inline-flex;
    cursor: pointer;
}

.bp-srv-toggle input {
    display: none;
}

.bp-srv-toggle__face {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #555;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    user-select: none;
}

.bp-srv-toggle__face:hover {
    border-color: rgba(255,0,0,0.25);
    color: #aaa;
}

.bp-srv-toggle input:checked + .bp-srv-toggle__face {
    background: rgba(255,0,0,0.12);
    border-color: rgba(255,0,0,0.4);
    color: #ff3030;
    box-shadow: 0 0 8px rgba(255,0,0,0.15);
}

.bp-srv-toggle--all .bp-srv-toggle__face {
    border-color: rgba(255,255,255,0.05);
    color: #3a3a3a;
    font-style: italic;
}

.bp-srv-toggle--all .bp-srv-toggle__face:hover {
    border-color: rgba(255,0,0,0.2);
    color: #666;
}

/* ── RCON result display ── */
.bp-admin__rcon-result {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-size: 12px;
}

.bp-admin__rcon-result--show {
    display: flex;
}

.bp-admin__rcon-cmd {
    font-family: monospace;
    font-size: 11px;
    color: #555;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px 10px;
    word-break: break-all;
    margin-bottom: 4px;
}

.bp-admin__rcon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.bp-admin__rcon-row--ok {
    background: rgba(76,175,80,0.06);
    border-color: rgba(76,175,80,0.18);
    color: #4caf50;
}

.bp-admin__rcon-row--err {
    background: rgba(255,60,60,0.06);
    border-color: rgba(255,60,60,0.18);
    color: #ff5555;
}

.bp-admin__rcon-row span:last-child {
    font-family: monospace;
    text-align: right;
    word-break: break-all;
}

/* ── Full-width admin card ── */
.bp-admin__card--full {
    grid-column: 1 / -1;
}

.bp-admin__empty {
    padding: 28px 18px;
    text-align: center;
    font-size: 13px;
    color: #444;
}

/* ── Paid users table ── */
.bp-paid-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bp-paid-table__head {
    display: grid;
    grid-template-columns: 40px 1fr 180px 80px 110px 100px;
    gap: 0;
    padding: 10px 18px;
    background: rgba(255,0,0,0.05);
    border-bottom: 1px solid rgba(255,0,0,0.12);
    font-size: 10px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-paid-table__row {
    display: grid;
    grid-template-columns: 40px 1fr 180px 80px 110px 100px;
    gap: 0;
    padding: 8px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
    transition: background 0.2s ease;
}

.bp-paid-table__row:last-child {
    border-bottom: none;
}

.bp-paid-table__row:hover {
    background: rgba(255,0,0,0.03);
}

.bp-paid-table__num {
    font-size: 12px;
    color: #444;
    font-weight: 700;
}

.bp-paid-table__player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bp-paid-table__avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.bp-paid-table__nick {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.bp-paid-table__nick:hover {
    color: #ff3030;
    text-decoration: none;
}

.bp-paid-table__steam {
    font-size: 11px;
    color: #444;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-paid-table__lvl {
    font-size: 12px;
    color: #ff3030;
    font-weight: 700;
}

.bp-paid-table__exp {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.bp-paid-table__action {
    display: flex;
    justify-content: flex-end;
}

.bp-paid-revoke {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,60,60,0.25);
    background: rgba(255,0,0,0.06);
    color: #cc3333;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-paid-revoke:hover {
    background: rgba(255,0,0,0.15);
    border-color: rgba(255,60,60,0.5);
    color: #ff4444;
    box-shadow: 0 0 8px rgba(255,0,0,0.2);
}

@media (max-width: 900px) {
    .bp-paid-table__head,
    .bp-paid-table__row {
        grid-template-columns: 36px 1fr 80px 90px;
    }
    .bp-paid-table__head span:nth-child(3),
    .bp-paid-table__row .bp-paid-table__steam,
    .bp-paid-table__head span:nth-child(5),
    .bp-paid-table__row .bp-paid-table__exp {
        display: none;
    }
}

/* Spinner used in buttons */
.bp-admin__spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-left-color: #fff;
    border-radius: 50%;
    animation: bp-spin 0.8s linear infinite;
    vertical-align: middle;
}

/* =================== EFFECTS & ANIMATIONS =================== */

/* ── Keyframes ── */
@keyframes bpPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255,0,0,0.15), 0 4px 16px rgba(0,0,0,0.45); }
    50%       { box-shadow: 0 0 28px rgba(255,0,0,0.38), 0 4px 20px rgba(0,0,0,0.55); }
}

@keyframes bpBorderGlow {
    0%, 100% { border-color: rgba(255,0,0,0.28); }
    50%       { border-color: rgba(255,0,0,0.55); }
}

@keyframes bpShimmer {
    0%   { background-position: -300px 0; }
    100% { background-position:  300px 0; }
}

@keyframes bpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bpSpin {
    to { transform: rotate(360deg); }
}

/* ── Mission card — enhanced hover lift ── */
.bp-mission-card {
    will-change: transform, box-shadow;
}

.bp-mission-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255,0,0,0.32);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.55),
        0 0 18px rgba(255,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Completed card — pulsing glow + animated border ── */
.bp-mission-card--completed {
    animation: bpPulse 3.5s ease-in-out infinite, bpBorderGlow 3.5s ease-in-out infinite;
}

.bp-mission-card--completed:hover {
    animation: none;
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255,0,0,0.55);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 28px rgba(255,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Progress bar shimmer on active/completed ── */
.bp-mission-card--completed .bp-mission-card__progress-fill {
    background: linear-gradient(
        90deg,
        #8a0000 0%,
        #ff3030 40%,
        #ff6060 50%,
        #ff3030 60%,
        #8a0000 100%
    );
    background-size: 300px 100%;
    animation: bpShimmer 2.2s linear infinite;
    box-shadow: 0 0 14px rgba(255,0,0,0.75);
}

/* ── Checkmark circle glow pulse ── */
.bp-mission-card--completed .bp-mission-card__check {
    animation: bpPulse 2.5s ease-in-out infinite;
}

/* ── Mission card fade-in on load ── */
.bp-mission-card {
    animation: bpFadeIn 0.4s ease both;
}

.bp-missions-grid .bp-mission-card:nth-child(1)  { animation-delay: 0.05s; }
.bp-missions-grid .bp-mission-card:nth-child(2)  { animation-delay: 0.10s; }
.bp-missions-grid .bp-mission-card:nth-child(3)  { animation-delay: 0.15s; }
.bp-missions-grid .bp-mission-card:nth-child(4)  { animation-delay: 0.20s; }
.bp-missions-grid .bp-mission-card:nth-child(5)  { animation-delay: 0.25s; }
.bp-missions-grid .bp-mission-card:nth-child(6)  { animation-delay: 0.30s; }

/* ── Top player item — subtle left accent on hover ── */
.bp-player-item {
    position: relative;
}

.bp-player-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 2px;
    background: #ff3030;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bp-player-item:hover::before {
    opacity: 1;
}

/* ── Level octagon hover ── */
.bp-level-item {
    cursor: default;
}

.bp-level-item:hover .bp-level-octagon {
    transform: scale(1.08);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.bp-level-item:hover .bp-level-octagon--future {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}

.bp-level-item:hover .bp-level-octagon--past {
    filter: drop-shadow(0 0 8px rgba(255,0,0,0.5));
}

.bp-level-item:hover .bp-level-octagon--current {
    filter: drop-shadow(0 0 14px rgba(255,0,0,1)) drop-shadow(0 0 28px rgba(255,0,0,0.8)) drop-shadow(0 0 50px rgba(255,0,0,0.4));
}

/* Reward badge hover scale */
.bp-level-item:hover .bp-level-stars {
    transform: scale(1.06);
    transition: transform 0.25s ease;
}

/* ── Section containers — subtle hover border ── */
.bp-top,
.bp-missions,
.bp-levels-section {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Main banner logo glow pulse ── */
@keyframes bpLogoFloat {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(255,0,0,0.65)) drop-shadow(0 0 40px rgba(255,0,0,0.3)); }
    50%       { filter: drop-shadow(0 0 26px rgba(255,0,0,0.9)) drop-shadow(0 0 55px rgba(255,0,0,0.5)); }
}

.bp-banner__logo {
    animation: bpLogoFloat 4s ease-in-out infinite;
}

/* ── Timer badge — clock tick colour shift ── */
@keyframes bpTimerTick {
    0%, 100% { color: #999; }
    50%       { color: #cc2222; }
}

.bp-badge--timer {
    animation: bpTimerTick 2s ease-in-out infinite;
}

/* ── Buy button — heartbeat glow ── */
@keyframes bpBuyPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(255,0,0,0.5), 0 0 50px rgba(255,0,0,0.22), 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18); }
    50%       { box-shadow: 0 0 36px rgba(255,0,0,0.7), 0 0 70px rgba(255,0,0,0.38), 0 6px 22px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.22); }
}

.bp-buy-btn:not(.bp-buy-btn--active) {
    animation: bpBuyPulse 2.8s ease-in-out infinite;
}

.bp-buy-btn:not(.bp-buy-btn--active):hover {
    animation: none;
}

/* ── Current level octagon — breathing glow ── */
@keyframes bpCurrentBreath {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,0,0,1)) drop-shadow(0 0 22px rgba(255,0,0,0.7)) drop-shadow(0 0 40px rgba(255,0,0,0.35)); }
    50%       { filter: drop-shadow(0 0 16px rgba(255,0,0,1)) drop-shadow(0 0 34px rgba(255,0,0,0.9)) drop-shadow(0 0 60px rgba(255,0,0,0.55)); }
}

.bp-level-octagon--current {
    animation: bpCurrentBreath 3s ease-in-out infinite;
}

.bp-level-item:hover .bp-level-octagon--current {
    animation: none;
}

/* ── EXP bar fill shimmer ── */
@keyframes bpExpShimmer {
    0%   { background-position: -200px 0; }
    100% { background-position:  200px 0; }
}

.bp-exp-bar__fill {
    background: linear-gradient(
        90deg,
        #8a0000 0%,
        #cc0000 35%,
        #ff5050 50%,
        #cc0000 65%,
        #ff3030 100%
    );
    background-size: 200px 100%;
    animation: bpExpShimmer 2.5s linear infinite;
}

/* ── Level separator — glow on past ── */
.bp-level-sep--past::before,
.bp-level-sep--past::after {
    animation: bpShimmer 3s linear infinite;
    background: linear-gradient(90deg, #8a0000, #ff3030, #8a0000);
    background-size: 200px 100%;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .bp-mission-card--completed,
    .bp-level-octagon--current,
    .bp-buy-btn:not(.bp-buy-btn--active),
    .bp-banner__logo,
    .bp-badge--timer {
        animation: none !important;
    }
    .bp-mission-card--completed .bp-mission-card__progress-fill,
    .bp-exp-bar__fill {
        animation: none !important;
        background-size: auto !important;
    }
}

/* =================== LEGACY COMPAT =================== */
.error_contentauth { display: flex; justify-content: center; align-items: center; margin: auto; }
.install_back {
    display: flex; flex-direction: column; align-items: center;
    background-color: var(--card); border-radius: 16px; padding: 20px;
    max-width: 400px; width: 100%; gap: 10px;
    position: absolute; left: 50%; transform: translate(-50%, 50%);
}
.install_title { display: flex; font-family: "Unbounded"; font-size: 20px; font-weight: 700; justify-content: center; }
.missions-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; text-align: center; width: 100%; }
.missions-loading .spinner { border: 4px solid rgba(0,0,0,0.1); width: 40px; height: 40px; border-radius: 50%; border-left-color: var(--span); animation: bp-spin 1s linear infinite; margin-bottom: 15px; }
.missions-loading p { font-size: 16px; color: #cacaca; margin: 0; }
