/**
 * CFLEO BATTLE PASS (SỔ SỨ MỆNH) - TACTICAL HUD V3 STYLING
 * Authentic CrossFire Glassmorphism, Dual Reward Tracks & Mission Center
 */

.bp-page {
    width: min(1440px, calc(100% - 32px)) !important;
    max-width: 1440px !important;
    margin: 20px auto 60px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* ── Hero Banner ── */
.bp-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(24px, 4vw, 40px);
    background: radial-gradient(ellipse at 85% 30%, rgba(255, 179, 0, 0.12), transparent 50%),
                linear-gradient(135deg, rgba(16, 22, 32, 0.94) 0%, rgba(10, 14, 20, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid #ff9d2b;
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.bp-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: url('/img/cf-v3-home/A0007GR_QS_B.webm') no-repeat right center;
    opacity: 0.15;
    pointer-events: none;
}

.bp-hero-copy {
    flex: 1;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.bp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 157, 43, 0.15);
    border: 1px solid rgba(255, 157, 43, 0.4);
    border-radius: 4px;
    color: #ffb85d;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bp-hero-title {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 157, 43, 0.3);
}

.bp-hero-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.bp-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bp-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(14, 18, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #e2e8f0;
}

.bp-countdown-badge i {
    color: #ff9d2b;
}

/* ── Hero Status Card (Level & Progress) ── */
.bp-hero-status-card {
    min-width: 340px;
    padding: 24px;
    background: rgba(12, 16, 24, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.bp-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bp-level-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.bp-level-label {
    font-size: 12px;
    font-weight: 800;
    color: #ff9d2b;
    letter-spacing: 1px;
}

.bp-level-num {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.bp-pass-tier {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bp-pass-tier.tier-free {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bp-pass-tier.tier-elite {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.25), rgba(255, 143, 0, 0.35));
    color: #ffd54f;
    border: 1px solid rgba(255, 213, 79, 0.5);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.3);
}

.bp-exp-bar-wrap {
    margin-bottom: 16px;
}

.bp-exp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.bp-exp-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-exp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9d2b, #ffd54f);
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 157, 43, 0.6);
}

.bp-status-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-btn-elite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #ffb300 0%, #ff8f00 100%);
    border: 1px solid #ffd54f;
    border-radius: 4px;
    color: #0b0c0e;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(255, 143, 0, 0.4);
    transition: all 0.2s ease;
}

.bp-btn-elite:hover {
    background: linear-gradient(180deg, #ffc107 0%, #ffa000 100%);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.7);
    transform: translateY(-1px);
}

.bp-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ── Section Navigation Tabs ── */
.bp-nav-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 2px;
}

.bp-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bp-nav-tab:hover {
    color: #ffffff;
}

.bp-nav-tab.is-active {
    color: #ff9d2b;
    border-bottom-color: #ff9d2b;
}

.bp-claim-all-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 157, 43, 0.15);
    border: 1px solid #ff9d2b;
    border-radius: 4px;
    color: #ffb85d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bp-claim-all-btn:hover {
    background: #ff9d2b;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 157, 43, 0.5);
}

/* ── Reward Tracks Container (Horizontal Scroll) ── */
.bp-tracks-wrapper {
    position: relative;
    background: rgba(14, 18, 26, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 20px 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.bp-tracks-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px 14px;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 157, 43, 0.4) rgba(0, 0, 0, 0.3);
}

.bp-tracks-scroll::-webkit-scrollbar {
    height: 6px;
}
.bp-tracks-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 157, 43, 0.4);
    border-radius: 3px;
}

.bp-track-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.bp-col-header {
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
}

.bp-col-header.is-current {
    background: rgba(255, 157, 43, 0.2);
    border-color: #ff9d2b;
    color: #ff9d2b;
    box-shadow: 0 0 10px rgba(255, 157, 43, 0.3);
}

/* Single Reward Card in Grid */
.bp-card {
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    background: rgba(18, 24, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.bp-card.card-free {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.bp-card.card-elite {
    background: radial-gradient(circle at 50% 20%, rgba(255, 179, 0, 0.08), transparent 70%), rgba(20, 26, 38, 0.85);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-top: 2px solid #ffd54f;
}

.bp-card.is-highlight {
    border-color: #ffd54f !important;
    box-shadow: 0 0 16px rgba(255, 213, 79, 0.25);
}

.bp-card.is-ultra {
    background: radial-gradient(circle at 50% 30%, rgba(255, 71, 87, 0.15), transparent 70%), rgba(26, 18, 28, 0.9);
    border: 1px solid #ff4757 !important;
    border-top: 2px solid #ff4757 !important;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.bp-card-tag {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 2px;
}

.bp-card.card-free .bp-card-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.bp-card.card-elite .bp-card-tag {
    background: rgba(255, 179, 0, 0.2);
    color: #ffd54f;
}

.bp-card-thumb {
    width: 64px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bp-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.bp-card-thumb i {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.4);
}

.bp-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.bp-card-status {
    width: 100%;
}

.bp-btn-claim {
    width: 100%;
    padding: 4px 0;
    background: #ff9d2b;
    border: none;
    border-radius: 2px;
    color: #000;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    animation: bpPulseGlow 1.5s infinite;
}

@keyframes bpPulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 157, 43, 0.4); }
    50% { box-shadow: 0 0 12px rgba(255, 157, 43, 0.8); }
}

.bp-claimed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
}

.bp-locked-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Missions Tab Layout ── */
.bp-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bp-mission-section {
    background: rgba(14, 18, 26, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 20px;
}

.bp-mission-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-mission-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(20, 26, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.15s ease;
}

.bp-mission-item:hover {
    background: rgba(25, 33, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.16);
}

.bp-mission-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 157, 43, 0.15);
    border: 1px solid rgba(255, 157, 43, 0.3);
    border-radius: 4px;
    color: #ff9d2b;
    font-size: 16px;
    flex-shrink: 0;
}

.bp-mission-body {
    flex: 1;
    min-width: 0;
}

.bp-mission-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.bp-mission-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.bp-mission-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.bp-mission-progress-fill {
    height: 100%;
    background: #ff9d2b;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bp-mission-prog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
}

.bp-mission-prog-meta strong {
    color: #ff9d2b;
    font-weight: 800;
}

.bp-mission-prog-meta .bp-prog-pct {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.bp-mission-item.is-ready {
    border-color: rgba(255, 157, 43, 0.45);
    background: rgba(255, 157, 43, 0.06);
    box-shadow: 0 0 12px rgba(255, 157, 43, 0.15);
}

.bp-mission-item.is-claimed {
    opacity: 0.72;
}

.bp-mission-action {
    flex-shrink: 0;
    text-align: right;
}

.bp-mission-exp-tag {
    font-size: 12px;
    font-weight: 800;
    color: #ffd54f;
    margin-bottom: 4px;
}

.bp-btn-claim-mission {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #ff9d2b, #ff7a00);
    border: none;
    border-radius: 4px;
    color: #0b0f19;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(255, 157, 43, 0.4);
    transition: all 0.2s ease;
}

.bp-btn-claim-mission:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 157, 43, 0.65);
    color: #000;
}

.bp-btn-goto-mission {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.bp-btn-goto-mission:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ── Rules Tab ── */
.bp-rules-box {
    background: rgba(14, 18, 26, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    line-height: 1.7;
}

.bp-rules-box h3 {
    color: #ff9d2b;
    margin-top: 0;
    font-size: 16px;
    font-weight: 800;
}

.bp-rules-box ul {
    margin: 8px 0 16px;
    padding-left: 20px;
}

.bp-rules-box li {
    margin-bottom: 6px;
}

@media screen and (max-width: 900px) {
    .bp-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .bp-hero-status-card {
        min-width: 100%;
    }
    .bp-missions-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Battle Pass Tactical Dialogs & Modals ── */
.bp-modal-wrap {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-sizing: border-box !important;
}

.bp-modal-wrap:not(.is-open) {
    display: none !important;
}

.bp-modal-wrap.is-open {
    display: flex !important;
    animation: bpFadeIn 0.2s ease-out !important;
}

.bp-modal-wrap[hidden] {
    display: none !important;
}

@keyframes bpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bp-modal-box {
    width: min(100%, 480px) !important;
    background: rgba(13, 18, 26, 0.98) !important;
    border: 1px solid rgba(255, 213, 79, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 213, 79, 0.15) !important;
    border-radius: 4px !important;
    padding: 28px 24px 22px !important;
    color: #fff !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.bp-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.bp-modal-close:hover {
    color: #fff !important;
    background: #ff4757 !important;
    border-color: #ff4757 !important;
}

/* ── Tactical Toast Notifications ── */
.bp-toast-container {
    position: fixed !important;
    top: 70px !important;
    right: 24px !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.bp-toast {
    pointer-events: auto !important;
    min-width: 280px !important;
    max-width: 380px !important;
    padding: 14px 18px !important;
    background: rgba(13, 18, 26, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    animation: bpToastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition: opacity 0.3s, transform 0.3s !important;
}

.bp-toast.toast-success {
    border-color: rgba(74, 222, 128, 0.5) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(74, 222, 128, 0.2) !important;
}

.bp-toast.toast-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(239, 68, 68, 0.2) !important;
}

.bp-toast-icon {
    font-size: 18px !important;
    flex-shrink: 0 !important;
}

.bp-toast.toast-success .bp-toast-icon { color: #4ade80 !important; }
.bp-toast.toast-error .bp-toast-icon { color: #ef4444 !important; }

@keyframes bpToastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
