/* Menasati sitewide fixes */
.preloader {
    align-items: center !important;
    justify-content: center !important;
    background: #07111f !important;
}

.preloader.is-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.preloader .loader {
    font-size: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 0 !important;
}

.preloader .loader span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: none !important;
    text-shadow: none !important;
    font-size: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Market-themed page loader */
.mn-market-loader {
    width: 220px;
    text-align: center;
}

.mn-market-loader__chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 72px;
    margin-bottom: 10px;
}

.mn-candle {
    width: 10px;
    height: var(--h, 40%);
    border-radius: 2px;
    transform-origin: bottom center;
    animation: mnCandlePulse 1.2s ease-in-out infinite;
}

.mn-candle--up {
    background: linear-gradient(180deg, #34d399, #059669);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.mn-candle--down {
    background: linear-gradient(180deg, #f87171, #dc2626);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}

.mn-candle:nth-child(2) { animation-delay: .1s; }
.mn-candle:nth-child(3) { animation-delay: .2s; }
.mn-candle:nth-child(4) { animation-delay: .3s; }
.mn-candle:nth-child(5) { animation-delay: .4s; }
.mn-candle:nth-child(6) { animation-delay: .5s; }
.mn-candle:nth-child(7) { animation-delay: .6s; }
.mn-candle:nth-child(8) { animation-delay: .7s; }

@keyframes mnCandlePulse {
    0%, 100% { transform: scaleY(1); opacity: .85; }
    50% { transform: scaleY(1.18); opacity: 1; }
}

.mn-market-loader__line {
    width: 100%;
    height: 36px;
    margin-bottom: 14px;
}

.mn-market-loader__line polyline {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: mnLineDraw 2s ease-in-out infinite;
}

@keyframes mnLineDraw {
    0% { stroke-dashoffset: 260; opacity: .4; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -260; opacity: .4; }
}

.mn-market-loader__ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
    overflow: hidden;
    white-space: nowrap;
    animation: mnTickerScroll 4s linear infinite;
}

.mn-market-loader__pair {
    color: #cbd5e1;
}

.mn-market-loader__change--up {
    color: #34d399;
}

.mn-market-loader__change--down {
    color: #f87171;
}

@keyframes mnTickerScroll {
    0%, 45% { transform: translateX(0); }
    55%, 100% { transform: translateX(-12px); }
}

.header-wrapper .logo img {
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain;
}

.terminal-topbar .custom--dropdown .text {
    color: #e5e7eb;
}

/* ===== XLNTrade-inspired public website ===== */
.mn-hero {
    padding: 110px 0 70px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #07111f 0%, #0c2238 45%, #12304a 100%);
}

.mn-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: center;
}

.mn-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    color: #7dd3fc;
    margin-bottom: .75rem;
    font-weight: 600;
}

.mn-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.mn-hero-text {
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.mn-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.cmn--btn.btn--outline {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.45);
    color: #fff !important;
}

.cmn--btn.btn--outline:hover {
    background: rgba(255,255,255,.1) !important;
}

.mn-trust-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1.25rem;
    color: rgba(255,255,255,.75);
    font-size: .85rem;
}

.mn-trust-row i {
    color: #2dd4bf;
    margin-right: .25rem;
}

.mn-hero-visual {
    position: relative;
}

.mn-hero-visual img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,.45));
}

.mn-float-chip {
    position: absolute;
    background: rgba(15, 23, 42, .85);
    border: 1px solid rgba(45, 212, 191, .35);
    color: #e2e8f0;
    font-size: .75rem;
    font-weight: 600;
    padding: .45rem .7rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.mn-float-1 { top: 12%; left: 0; }
.mn-float-2 { bottom: 18%; right: 4%; }

.mn-markets-strip {
    background: #0b1624;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: .85rem 0;
}

.mn-markets-inner {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.mn-markets-inner::-webkit-scrollbar { display: none; }

.mn-mkt {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: .45rem;
    font-size: .82rem;
    color: #cbd5e1;
    padding: .25rem .5rem;
    border-right: 1px solid rgba(255,255,255,.08);
}

.mn-mkt strong { color: #fff; }
.mn-mkt .up { color: #34d399; font-style: normal; }
.mn-mkt .down { color: #f87171; font-style: normal; }

.mn-mobile-cta { background: linear-gradient(180deg, transparent, rgba(13, 148, 136, .08)); }

.mn-mobile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(120deg, #0f172a, #134e4a);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}

.mn-mobile-card h3 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.mn-mobile-card p {
    opacity: .85;
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.mn-mobile-icons {
    display: flex;
    gap: 1rem;
    font-size: 2.5rem;
    opacity: .9;
}

.feature-section .feature__item,
.predict-type-item {
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-section .feature__item:hover,
.predict-type-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.header-section .header-bottom {
    backdrop-filter: blur(8px);
}

@media (max-width: 991px) {
    .mn-hero-grid { grid-template-columns: 1fr; }
    .mn-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
    .mn-mobile-card { flex-direction: column; text-align: center; }
    .mn-hero { padding-top: 80px; }
}
