/* Compact premium page loader */
.bhe-loader-mini {
    --bhe-gold: #d4af37;
    --bhe-gold-light: #f0d78c;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 39, 0.12), transparent 60%),
        linear-gradient(165deg, #050403 0%, #100c08 50%, #080604 100%);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.bhe-loader-mini__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 28px 20px;
    min-width: min(100%, 260px);
    border-radius: 20px;
    background: rgba(18, 13, 6, 0.88);
    border: 1px solid rgba(201, 162, 39, 0.32);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bhe-loader-mini__ring {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 200deg, var(--bhe-gold), var(--bhe-gold-light), #fff4c9, var(--bhe-gold));
    animation: bheLoaderSpin 2.4s linear infinite;
}

.bhe-loader-mini__ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #120d06;
}

.bhe-loader-mini__logo {
    position: absolute;
    inset: 9px;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    object-fit: contain;
    border-radius: 50%;
    z-index: 1;
}

.bhe-loader-mini__brand {
    text-align: center;
    line-height: 1.2;
}

.bhe-loader-mini__brand strong {
    display: block;
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.bhe-loader-mini__brand span {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bhe-gold-light);
}

.bhe-loader-mini__status {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    min-height: 1.2em;
    transition: opacity 0.3s ease;
}

.bhe-loader-mini__status.is-fading {
    opacity: 0;
}

.bhe-loader-mini__track {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bhe-loader-mini__bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9f7b14, var(--bhe-gold-light), var(--bhe-gold));
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.45);
    transition: width 0.35s ease;
}

.bhe-loader-mini.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bhe-loader-mini.is-gone {
    display: none !important;
}

html.bhe-is-loading {
    overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
    .bhe-loader-mini__ring {
        animation: none;
    }
    .bhe-loader-mini__bar {
        transition: none;
    }
}
