/* =============================================
   MUDHAXK FINANCE — HERO SLIDER
   ============================================= */

.mf-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--mf-primary-dark);
    /* Force a compositing layer so overflow:hidden clips child GPU layers on mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}

.mf-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Ensure the track never causes horizontal scroll */
    max-width: 100%;
}

/* ── SLIDE ── */
.mf-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.mf-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease;
}

.mf-slide.is-active .mf-slide-bg {
    transform: scale(1);
}

.mf-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(var(--mf-dark-bg-rgb), 0.88) 0%,
        rgba(var(--mf-primary-dark-rgb), 0.72) 50%,
        rgba(var(--mf-primary-rgb), 0.45) 100%
    );
}

/* ── SLIDE CONTENT ── */
.mf-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.mf-slide-text {
    max-width: 660px;
    animation: mfSlideIn 0.8s ease both;
}

.mf-slide:not(.is-active) .mf-slide-text {
    animation: none;
    opacity: 0;
    visibility: hidden;
    /* No translateX: avoids mobile compositing bleed through overflow:hidden */
}

@keyframes mfSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mf-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--mf-accent-rgb), 0.15);
    border: 1px solid rgba(var(--mf-accent-rgb), 0.4);
    color: var(--mf-accent);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: mfSlideIn 0.7s 0.1s ease both;
}

.mf-slide-title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: var(--mf-font-heading);
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    animation: mfSlideIn 0.7s 0.2s ease both;
}

.mf-slide-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
    animation: mfSlideIn 0.7s 0.35s ease both;
}

.mf-slide-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: mfSlideIn 0.7s 0.5s ease both;
}

/* ── SLIDER CONTROLS ── */
.mf-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.mf-slider-prev { left: 28px; }
.mf-slider-next { right: 28px; }

.mf-slider-btn:hover {
    background: var(--mf-accent);
    border-color: var(--mf-accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(var(--mf-accent-rgb), 0.4);
}

/* ── DOTS ── */
.mf-slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.mf-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mf-slider-dot.is-active {
    background: var(--mf-accent);
    width: 30px;
    border-radius: 5px;
}

.mf-slider-dot:hover { background: rgba(255, 255, 255, 0.75); }

/* ── SCROLL DOWN ── */
.mf-scroll-down {
    position: absolute;
    bottom: 32px;
    right: 40px;
    z-index: 10;
}

.mf-scroll-down a {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    animation: mfBounce 2s infinite;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mf-scroll-down a:hover {
    border-color: var(--mf-accent);
    color: var(--mf-accent);
}

@keyframes mfBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* =============================================
   CRYPTO SLIDER
   ============================================= */

.mf-crypto-section {
    background: var(--mf-dark-bg);
    position: relative;
    overflow: hidden;
}

/* ── SLIDER WRAPPER ── */
.mf-crypto-slider {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mf-cs-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── INDIVIDUAL SLIDE ── */
.mf-cs-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 80px 0 100px;
    box-sizing: border-box;
}

/* Background image layer */
.mf-cs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 8s ease;
}

.mf-cs-slide.is-active .mf-cs-bg {
    transform: scale(1);
}

/* Dark overlay — heavy left so text stays readable, opens up on right */
.mf-cs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(4, 8, 18, 0.94) 0%,
        rgba(6, 11, 23, 0.82) 45%,
        rgba(6, 11, 23, 0.55) 100%
    );
}

/* Subtle coin-color radial glow over the right half */
.mf-cs-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 55% 70% at 78% 50%,
        rgba(var(--cr), 0.18) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ── INNER LAYOUT ── */
.mf-cs-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

/* ── TEXT COLUMN ── */
.mf-cs-text { max-width: 580px; }

/* Brand badge — same style as main hero slider badge */
.mf-cs-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--mf-accent-rgb), 0.15);
    border: 1px solid rgba(var(--mf-accent-rgb), 0.4);
    color: var(--mf-accent);
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Coin identifier — smaller, coin-colored, sits between brand badge and title */
.mf-cs-coin-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(var(--cr), 0.1);
    border: 1px solid rgba(var(--cr), 0.35);
    color: var(--cc);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.mf-cs-title {
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 18px;
    font-family: var(--mf-font-heading, sans-serif);
    text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.mf-cs-sub {
    font-size: clamp(14px, 1.5vw, 17px);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 510px;
}

/* Feature pills */
.mf-cs-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.mf-cs-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(var(--cr), 0.28);
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mf-cs-feature:hover {
    border-color: rgba(var(--cr), 0.6);
    box-shadow: 0 0 14px rgba(var(--cr), 0.2);
}

.mf-cs-feature i {
    color: var(--cc);
    font-size: 12px;
}

/* CTA Button */
.mf-cs-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cc);
    color: #060b17;
    padding: 15px 32px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    box-shadow: 0 6px 32px rgba(var(--cr), 0.5);
}

.mf-cs-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 44px rgba(var(--cr), 0.7);
    filter: brightness(1.08);
    color: #060b17;
}

/* ── COIN GRAPHIC COLUMN ── */
.mf-cs-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
}

.mf-cs-coin {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating rings */
.mf-cs-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

.mf-cs-ring-outer {
    width: 220px;
    height: 220px;
    border-top-color: rgba(var(--cr), 0.75);
    border-right-color: rgba(var(--cr), 0.2);
    animation: mfCsRotateCw 9s linear infinite;
}

.mf-cs-ring-mid {
    width: 170px;
    height: 170px;
    border-top-color: rgba(var(--cr), 0.45);
    border-left-color: rgba(var(--cr), 0.65);
    animation: mfCsRotateCcw 6s linear infinite;
}

.mf-cs-ring-pulse {
    width: 268px;
    height: 268px;
    border-color: rgba(var(--cr), 0.18);
    animation: mfCsRingPulse 3.2s ease-in-out infinite;
}

@keyframes mfCsRotateCw  { to { transform: rotate(360deg); } }
@keyframes mfCsRotateCcw { to { transform: rotate(-360deg); } }
@keyframes mfCsRingPulse {
    0%, 100% { transform: scale(1);    opacity: 0.35; }
    50%       { transform: scale(1.1); opacity: 0.85; }
}

/* Coin face */
.mf-cs-coin-face {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(var(--cr), 0.13);
    border: 2px solid rgba(var(--cr), 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 40px rgba(var(--cr), 0.55),
        0 0 90px rgba(var(--cr), 0.28),
        inset 0 0 30px rgba(var(--cr), 0.12);
    animation: mfCsCoinGlow 3.5s ease-in-out infinite;
}

.mf-cs-coin-face i {
    font-size: 62px;
    color: var(--cc);
    filter: drop-shadow(0 0 16px rgba(var(--cr), 0.95));
}

@keyframes mfCsCoinGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(var(--cr),.55), 0 0 90px rgba(var(--cr),.28), inset 0 0 30px rgba(var(--cr),.12); }
    50%       { box-shadow: 0 0 65px rgba(var(--cr),.8),  0 0 130px rgba(var(--cr),.45), inset 0 0 40px rgba(var(--cr),.22); }
}

/* Floating mini icons */
.mf-cs-floater {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(var(--cr), 0.1);
    border: 1px solid rgba(var(--cr), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cc);
    font-size: 17px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(var(--cr), 0.22);
}

.mf-cs-floater-1 { top: 28px;  left: 8px;   animation: mfCsFloat1 4.2s ease-in-out infinite; }
.mf-cs-floater-2 { bottom: 50px; right: 8px; animation: mfCsFloat2 5.3s ease-in-out infinite; }
.mf-cs-floater-3 { top: 50%;   right: -10px; transform: translateY(-50%); animation: mfCsFloat3 6.1s ease-in-out infinite; }

@keyframes mfCsFloat1 { 0%,100%{transform:translateY(0);}    50%{transform:translateY(-14px);} }
@keyframes mfCsFloat2 { 0%,100%{transform:translateY(0);}    50%{transform:translateY(12px);} }
@keyframes mfCsFloat3 { 0%,100%{transform:translateY(-50%);} 50%{transform:translateY(calc(-50% - 11px));} }

/* ── SLIDE CONTENT ANIMATION ── */
.mf-cs-slide .mf-cs-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.12s ease, transform 0.7s 0.12s ease;
}

.mf-cs-slide.is-active .mf-cs-text {
    opacity: 1;
    transform: translateY(0);
}

.mf-cs-slide .mf-cs-graphic {
    opacity: 0;
    transform: translateX(22px) scale(0.97);
    transition: opacity 0.7s 0.28s ease, transform 0.7s 0.28s ease;
}

.mf-cs-slide.is-active .mf-cs-graphic {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* ── PREV / NEXT BUTTONS ── */
.mf-cs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.mf-cs-prev { left: 22px; }
.mf-cs-next { right: 22px; }

.mf-cs-nav:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}

/* ── DOTS ── */
.mf-cs-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.mf-cs-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mf-cs-dot.is-active {
    width: 30px;
    border-radius: 5px;
    background: currentColor;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .mf-cs-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .mf-cs-text  { max-width: 100%; }
    .mf-cs-sub   { max-width: 100%; }

    .mf-cs-features { justify-content: center; }

    .mf-cs-graphic {
        height: 260px;
        order: -1;
    }

    .mf-cs-coin { width: 160px; height: 160px; }
    .mf-cs-ring-outer { width: 160px; height: 160px; }
    .mf-cs-ring-mid   { width: 120px; height: 120px; }
    .mf-cs-ring-pulse { width: 200px; height: 200px; }
    .mf-cs-coin-face  { width: 94px;  height: 94px; }
    .mf-cs-coin-face i { font-size: 42px; }

    .mf-cs-floater-1,
    .mf-cs-floater-3 { display: none; }
    .mf-cs-floater-2 { bottom: 8px; right: 20%; }

    .mf-cs-overlay {
        background: linear-gradient(180deg, rgba(4,8,18,0.88) 0%, rgba(4,8,18,0.75) 100%);
    }
}

@media (max-width: 600px) {
    .mf-cs-slide { padding: 52px 0 72px; min-height: auto; }
    .mf-cs-nav   { display: none; }
    .mf-cs-cta   { font-size: 14px; padding: 13px 26px; }
}
