#bm-global-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px;
    overflow-y: auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#bm-global-loader.on {
    display: flex;
    animation: bmFadeIn 0.3s ease;
}

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

.bm-loader-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.bm-loader-top {
    padding: 40px 32px;
    text-align: center;
}

.bm-loader-spin {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    position: relative;
}

.bm-loader-spin::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid #f3f4f6;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: bmSpin 1s linear infinite;
}

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

.bm-loader-ttl {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.bm-loader-sub {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.bm-loader-progress {
    padding: 0 40px;
    margin-bottom: 30px;
}

.bm-progress-track {
    height: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.bm-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 10px;
    transition: width 1s linear;
}

.bm-progress-txt {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    margin-top: 10px;
    text-transform: uppercase;
}

.bm-loader-ad {
    padding: 0 32px 32px;
}

.bm-ad-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.05em;
}

.bm-ad-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bm-loader-close {
    margin-top: 24px;
    background: #111827;
    color: #fff;
    border: none;
    padding: 14px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: none;
    transition: all 0.2s;
}

#bm-loader-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CPC Keywords Injection */
.bm-cpc-keywords {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
}
