/* ============================================
   CACTUS CLASH - Battle Pass Styles
   ============================================ */

/* Container */
#panel-battlepass .battlepass-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.bp-header {
    margin-bottom: 24px;
}

.bp-season-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bp-season-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(34, 139, 34, 0.1));
    border: 1px solid rgba(50, 205, 50, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
}

.bp-season-badge.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.bp-season-badge svg {
    color: #32CD32;
    width: 24px;
    height: 24px;
}

.bp-season-badge.premium svg {
    color: #FFD700;
}

.bp-season-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
}

.bp-premium-tag {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.bp-season-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-size: 14px;
}

.bp-season-timer svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   PROGRESS SECTION
   ============================================ */
.bp-progress-section {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.bp-level-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bp-level-current,
.bp-level-next {
    text-align: center;
    min-width: 70px;
}

.bp-level-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #32CD32;
}

.bp-level-next .bp-level-number {
    color: #666;
    font-size: 28px;
}

.bp-level-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-progress-bar-container {
    flex: 1;
}

.bp-progress-bar {
    height: 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #7CFC00);
    border-radius: 12px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.4);
}

.bp-xp-text {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

.bp-xp-bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #FFD700;
    font-size: 13px;
    font-weight: 600;
}

.bp-xp-bonus svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   MISSIONS SECTION
   ============================================ */
.bp-missions-section {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.bp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.bp-section-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.bp-section-header h3 svg {
    color: #32CD32;
}

.bp-missions-tabs {
    display: flex;
    gap: 8px;
}

.bp-mission-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.bp-mission-tab:hover {
    border-color: rgba(50, 205, 50, 0.3);
    color: #32CD32;
}

.bp-mission-tab.active {
    background: rgba(50, 205, 50, 0.1);
    border-color: #32CD32;
    color: #32CD32;
}

.bp-missions-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
}

.bp-missions-reset svg {
    width: 14px;
    height: 14px;
}

.bp-missions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bp-mission {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.bp-mission.completed {
    border-color: rgba(50, 205, 50, 0.3);
}

.bp-mission.claimed {
    opacity: 0.6;
}

.bp-mission-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(50, 205, 50, 0.1);
    border-radius: 12px;
    color: #32CD32;
}

.bp-mission-icon svg {
    width: 24px;
    height: 24px;
}

.bp-mission-info {
    flex: 1;
}

.bp-mission-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.bp-mission-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.bp-mission-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.bp-mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #7CFC00);
    border-radius: 3px;
    transition: width 0.3s;
}

.bp-mission-progress-text {
    font-size: 11px;
    color: #666;
}

.bp-mission-reward {
    text-align: center;
    min-width: 80px;
}

.bp-mission-xp {
    color: #FFD700;
    font-weight: 600;
    font-size: 14px;
}

.bp-mission-claim-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    border: none;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    animation: pulse-claim 1.5s infinite;
}

@keyframes pulse-claim {
    0%, 100% { box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(50, 205, 50, 0); }
}

.bp-mission-claim-btn:hover {
    transform: scale(1.05);
}

.bp-mission-claimed {
    color: #32CD32;
}

.bp-mission-claimed svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   REWARDS TRACK
   ============================================ */
.bp-track-section {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.bp-track-legend {
    display: flex;
    gap: 20px;
}

.bp-track-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
}

.bp-track-legend svg {
    width: 14px;
    height: 14px;
}

.legend-free svg { color: #32CD32; }
.legend-premium svg { color: #FFD700; }

.bp-track-container {
    overflow-x: auto;
    padding: 20px 0;
}

.bp-track {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.bp-reward-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90px;
}

.bp-reward-column.locked {
    opacity: 0.5;
}

.bp-reward-column.current {
    opacity: 1;
}

.bp-reward-column.current .bp-reward-level {
    background: #32CD32;
    color: #000;
}

.bp-reward-level {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    color: #888;
}

.bp-reward {
    position: relative;
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.bp-reward.free {
    border-color: rgba(50, 205, 50, 0.2);
}

.bp-reward.premium {
    border-color: rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.3));
}

.bp-reward.claimable {
    animation: glow-reward 1.5s infinite;
    cursor: pointer;
}

.bp-reward.free.claimable {
    border-color: #32CD32;
}

.bp-reward.premium.claimable {
    border-color: #FFD700;
}

@keyframes glow-reward {
    0%, 100% { box-shadow: 0 0 5px rgba(50, 205, 50, 0.3); }
    50% { box-shadow: 0 0 15px rgba(50, 205, 50, 0.5); }
}

.bp-reward.premium.claimable {
    animation-name: glow-reward-premium;
}

@keyframes glow-reward-premium {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
}

.bp-reward.claimed {
    opacity: 0.5;
}

.bp-reward.empty {
    background: transparent;
    border-style: dashed;
}

.bp-reward.locked-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.bp-premium-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    z-index: 2;
}

.bp-premium-indicator svg {
    width: 12px;
    height: 12px;
    color: #000;
}

.bp-reward-icon {
    margin-bottom: 4px;
}

.bp-reward-icon svg {
    width: 28px;
    height: 28px;
    color: #888;
}

.reward-coins { color: #FFD700 !important; }
.reward-xp { color: #7CFC00 !important; }
.reward-skin { color: #a855f7 !important; }
.reward-accessory { color: #3b82f6 !important; }
.reward-weapon { color: #ef4444 !important; }
.reward-effect { color: #f59e0b !important; }
.reward-exclusive { color: #FFD700 !important; }

.bp-reward-name {
    font-size: 10px;
    color: #ccc;
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-reward-check {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #32CD32;
}

.bp-reward-check svg {
    width: 16px;
    height: 16px;
}

.bp-reward-claim {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #32CD32;
    color: #000;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
}

.bp-reward.premium .bp-reward-claim {
    background: #FFD700;
}

.bp-reward-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.bp-reward-lock svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.bp-reward-empty {
    color: #444;
    font-size: 20px;
}

/* ============================================
   UPGRADE SECTION
   ============================================ */
.bp-upgrade-section {
    margin-bottom: 24px;
}

.bp-upgrade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    gap: 24px;
    flex-wrap: wrap;
}

.bp-upgrade-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
}

.bp-upgrade-info p {
    color: #888;
    margin: 0 0 16px 0;
}

.bp-upgrade-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bp-upgrade-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 13px;
}

.bp-upgrade-perks svg {
    color: #32CD32;
    width: 16px;
    height: 16px;
}

.bp-upgrade-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.bp-upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.upgrade-price-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #000;
    font-weight: bold;
}

.upgrade-or {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
}

.upgrade-price-real {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #000;
}

/* ============================================
   PREMIUM MODAL
   ============================================ */
.bp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.bp-modal.active {
    display: flex;
}

.bp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.bp-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-modal-header {
    margin-bottom: 20px;
}

.bp-modal-header .premium-icon {
    width: 48px;
    height: 48px;
    color: #FFD700;
    margin-bottom: 12px;
}

.bp-modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #FFD700;
    margin: 0;
}

.bp-modal-body p {
    color: #888;
    margin: 0 0 16px 0;
}

.bp-modal-price {
    margin: 20px 0;
}

.modal-price-real {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    color: #FFD700;
}

.bp-modal-note {
    font-size: 12px;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .bp-season-info { flex-direction: column; }
    .bp-level-display { flex-direction: column; }
    .bp-level-current, .bp-level-next { flex-direction: row; gap: 8px; }
    .bp-upgrade-card { flex-direction: column; text-align: center; }
    .bp-upgrade-perks { grid-template-columns: 1fr; }
    .bp-mission { flex-direction: column; text-align: center; }
    .bp-mission-info { width: 100%; }
}