/* ========================================================
   MAXBEN LED - 3D VISUAL SLIDER STYLES FOR FLATSOME
   ======================================================== */

.maxben-slider-outer {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ĐÈN NỀN AMBIENT GLOW TỰ ĐỔI MÀU THEO BANNER */
.maxben-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    transition: background 1.2s ease;
    pointer-events: none;
}

/* KHUNG CHÍNH CỦA SLIDER */
.maxben-slider-master {
    position: relative;
    width: 100%;
    aspect-ratio: 2048 / 680;
    min-height: 240px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: #030712;
    user-select: none;
    z-index: 2;
    perspective: 1400px;
    transform-style: preserve-3d;
}

/* LỚP ẢNH TĨNH HIỆN TẠI (UNDER LAYER) */
.maxben-slide-under {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: none !important;
    transition: none !important;
}

/* CÁC SÂN KHẤU CHUYỂN CẢNH (STAGES) */
.maxben-stage-slices,
.maxben-stage-boxes,
.maxben-stage-warp {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* 1. HIỆU ỨNG 3D SLICES */
.maxben-slice-item {
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.maxben-slice-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* 2. HIỆU ỨNG 3D MATRIX BOXES */
.maxben-box-item {
    position: absolute;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.maxben-box-inner {
    position: absolute;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* 3. FLASH SÁNG KHI CHUYỂN CẢNH */
.maxben-shockwave-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 242, 254, 0.5) 0%, rgba(255, 255, 255, 0.85) 40%, transparent 80%);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.maxben-shockwave-flash.active {
    animation: maxbenFlashPulse 0.5s ease-out forwards;
}

@keyframes maxbenFlashPulse {
    0% { opacity: 0; transform: scale(0.6); }
    30% { opacity: 0.9; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.4); }
}

/* CANVAS HẠT ÁNH SÁNG PARTICLES */
.maxben-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* ẨN Ô TEXT HIỆU ỨNG VÀ ĐẾM SỐ THỨ TỰ SLIDE Ở 2 GÓC */
.maxben-hud-counter,
.maxben-hud-badge {
    display: none !important;
}

/* NÚT NEXT & PREV */
.maxben-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    outline: none;
    padding: 0;
}

.maxben-nav-btn:hover {
    background: rgba(0, 242, 254, 0.3);
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-50%) scale(1.1);
    color: #fff;
}

.maxben-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.maxben-nav-prev { left: 18px; }
.maxben-nav-next { right: 18px; }

.maxben-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    fill: none;
    stroke: currentColor;
}

/* THANH BULLETS PHÂN TRANG DƯỚI ĐÁY */
.maxben-bottom-hud {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
    padding: 7px 16px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.maxben-hud-dot {
    position: relative;
    width: 28px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s;
}

.maxben-hud-dot.active {
    width: 48px;
    background: rgba(255, 255, 255, 0.3);
}

.maxben-dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2fe, #38bdf8);
    border-radius: 4px;
    box-shadow: 0 0 10px #00f2fe;
}

/* THANH TIẾN TRÌNH CHẠY DƯỚI ĐÁY CÙNG */
.maxben-master-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #00f2fe, #38bdf8, #f43f5e);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
    z-index: 10;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .maxben-nav-btn {
        width: 40px;
        height: 40px;
    }
    .maxben-nav-prev { left: 8px; }
    .maxben-nav-next { right: 8px; }
    .maxben-hud-counter {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 4px 10px;
    }
    .maxben-hud-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 4px 10px;
    }
    .maxben-bottom-hud {
        bottom: 10px;
        padding: 5px 12px;
    }
    .maxben-hud-dot { width: 18px; }
    .maxben-hud-dot.active { width: 32px; }
}
