/* ⚡ WPM Nexus Checkout UI - Premium Glassmorphism */

.wpm-nexus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: #fff;
    animation: wpmFadeIn 0.3s ease;
}

@keyframes wpmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wpm-nexus-content {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.9), rgba(60, 0, 0, 0.7));
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 100px rgba(128, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.wpm-nexus-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}
.wpm-nexus-close:hover { opacity: 1; color: #ff3333; }

.wpm-nexus-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.wpm-nexus-balance {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-block;
    margin: 15px 0 25px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.wpm-nexus-grids {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpm-nexus-pack {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
}
.wpm-nexus-pack:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 50, 50, 0.4);
    transform: translateY(-2px);
}

.wpm-nexus-pack .pack-info { text-align: left; }
.wpm-nexus-pack .pack-name { font-weight: 700; font-size: 16px; display: block; }
.wpm-nexus-pack .pack-credits { font-size: 12px; opacity: 0.6; }

.wpm-nexus-pack .pack-price {
    font-weight: 800;
    font-size: 18px;
    color: #4ade80; /* Green for price */
}

.wpm-nexus-footer {
    margin-top: 25px;
    font-size: 11px;
    opacity: 0.4;
}

/* Header Badge injection */
.wpm-header-credit-badge {
    position: fixed;
    top: 20px;
    right: 300px;
    background: rgba(128, 0, 0, 0.8);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #fff;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
    backdrop-filter: blur(5px);
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.wpm-header-credit-badge:hover {
    background: #800000;
    transform: scale(1.05);
    border-color: #ff3333;
}
