/* ============================================================
   XMARKETS PUBLIC EXPERIENCE
   Landing Page Theme
============================================================ */

:root {
    --xm-bg: #050607;
    --xm-bg-soft: #08090b;
    --xm-panel: rgba(13, 14, 17, .88);
    --xm-panel-2: rgba(8, 9, 11, .92);

    --xm-border: rgba(255,255,255,.065);
    --xm-border-soft: rgba(255,255,255,.04);

    --xm-text: #f4f4f5;
    --xm-muted: #777a82;
    --xm-muted-2: #50535a;

    --xm-red: #ef4444;
    --xm-red-2: #b91c1c;
    --xm-red-soft: rgba(239,68,68,.08);

    --xm-green: #4ade80;
    --xm-amber: #fbbf24;

    --xm-radius: 16px;
    --xm-radius-sm: 11px;
}


/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.xm-public-body {
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 82% 5%,
            rgba(122, 16, 16, .11),
            transparent 27%
        ),
        radial-gradient(
            circle at 7% 36%,
            rgba(30, 38, 60, .07),
            transparent 25%
        ),
        var(--xm-bg);

    color: var(--xm-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.xm-public-body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .24;

    background-image:
        linear-gradient(
            rgba(255,255,255,.014) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.014) 1px,
            transparent 1px
        );

    background-size:
        54px 54px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );

    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ============================================================
   SHARED CONTAINER
============================================================ */

.xm-container {
    width: min(1420px, calc(100% - 42px));
    margin-inline: auto;
}

.xm-section {
    position: relative;

    z-index: 2;

    padding:
        92px 0;
}

.xm-section-kicker {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #ee7474;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.xm-section-kicker::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--xm-red);

    box-shadow:
        0 0 13px rgba(239,68,68,.65);
}

.xm-section-heading {
    max-width: 820px;

    margin:
        0 0 14px;

    font-size:
        clamp(31px, 4vw, 56px);

    line-height: 1.02;

    letter-spacing: -2px;
}

.xm-section-copy {
    max-width: 680px;

    margin: 0;

    color: var(--xm-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* ============================================================
   NAVIGATION
============================================================ */

.xm-public-nav {
    position: sticky;

    top: 0;

    z-index: 100;

    height: 74px;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(5, 6, 7, .78);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);
}

.xm-public-nav-inner {
    width: min(1420px, calc(100% - 42px));
    height: 100%;

    margin-inline: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;
}

.xm-public-brand {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex: none;
}

.xm-public-brand-mark {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #dc2626,
            #7f1d1d
        );

    box-shadow:
        0 0 24px rgba(220,38,38,.18);

    color: #fff;

    font-weight: 900;
}

.xm-public-brand strong {
    display: block;

    color: #fff;

    font-size: 15px;
}

.xm-public-brand small {
    display: block;

    margin-top: 1px;

    color: #555860;

    font-size: 7px;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.xm-public-links {
    display: flex;

    align-items: center;

    gap: 5px;
}

.xm-public-links a {
    position: relative;

    padding:
        9px 12px;

    border-radius: 8px;

    color: #777a82;

    font-size: 9px;

    font-weight: 650;

    transition:
        color .18s ease,
        background .18s ease;
}

.xm-public-links a:hover,
.xm-public-links a.active {
    color: #fff;

    background:
        rgba(255,255,255,.025);
}

.xm-public-links a.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 12px;
    height: 1px;

    transform:
        translateX(-50%);

    background: var(--xm-red);

    box-shadow:
        0 0 8px rgba(239,68,68,.8);
}

.xm-public-actions {
    display: flex;

    align-items: center;

    gap: 9px;
}

.xm-nav-login,
.xm-nav-signup {
    min-height: 39px;

    padding:
        0 15px;

    border-radius: 9px;

    border:
        1px solid transparent;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.xm-nav-login {
    background:
        rgba(255,255,255,.02);

    border-color:
        rgba(255,255,255,.065);

    color: #b7b9be;
}

.xm-nav-signup {
    color: #050505;

    background:
        linear-gradient(
            135deg,
            #ead19a,
            #d4af37
        );

    border-color:
        rgba(212,175,55,.55);

    box-shadow:
        0 0 20px rgba(212,175,55,.14);
}

.xm-nav-login:hover {
    color: #ead19a;
    border-color: rgba(212,175,55,.35);
    background: rgba(212,175,55,.06);
}

.xm-nav-signup:hover {
    color: #050505;
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(212,175,55,.25);
}


/* ============================================================
   HERO
============================================================ */

.xm-hero {
    position: relative;

    z-index: 2;

    min-height: 710px;

    overflow: hidden;

    display: flex;

    align-items: center;

    padding:
        94px 0 88px;
}

.xm-hero::before {
    content: "";

    position: absolute;

    width: 740px;
    height: 740px;

    right: -280px;
    top: -260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239,68,68,.18),
            rgba(239,68,68,.035) 46%,
            transparent 70%
        );

    filter:
        blur(42px);

    pointer-events: none;

    animation:
        xmHeroGlow 8s ease-in-out infinite alternate;
}

@keyframes xmHeroGlow {

    to {
        transform:
            translate(-65px, 55px)
            scale(1.12);
    }
}

.xm-hero::after {
    content: "";

    position: absolute;

    left: -5%;
    right: -5%;

    bottom: 128px;

    height: 155px;

    opacity: .25;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            transparent 0 7%,
            rgba(239,68,68,.24) 7.2%,
            transparent 7.7% 18%,
            rgba(239,68,68,.19) 18.3%,
            transparent 18.8% 29%,
            rgba(239,68,68,.18) 29.4%,
            transparent 30% 42%,
            rgba(239,68,68,.23) 42.3%,
            transparent 42.9% 55%,
            rgba(239,68,68,.16) 55.4%,
            transparent 56% 70%,
            rgba(239,68,68,.21) 70.4%,
            transparent 71% 84%,
            rgba(239,68,68,.19) 84.4%,
            transparent 85%
        );

    animation:
        xmGhostChart 13s linear infinite;
}

@keyframes xmGhostChart {

    from {
        transform:
            translateX(-2%);
    }

    to {
        transform:
            translateX(8%);
    }
}

.xm-hero-grid {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        minmax(0,1.05fr)
        minmax(480px,.95fr);

    gap: 68px;

    align-items: center;
}

.xm-hero-copy {
    min-width: 0;
}

.xm-hero-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    padding:
        7px 10px;

    border-radius: 30px;

    border:
        1px solid rgba(239,68,68,.12);

    background:
        rgba(239,68,68,.035);

    color: #d97878;

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 1.25px;
}

.xm-hero-eyebrow i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--xm-green);

    box-shadow:
        0 0 11px rgba(74,222,128,.75);

    animation:
        xmLivePulse 2s infinite;
}

@keyframes xmLivePulse {

    50% {
        opacity: .5;

        transform:
            scale(1.45);
    }
}

.xm-hero h1 {
    max-width: 800px;

    margin: 0;

    color: #fff;

    font-size:
        clamp(48px, 6.2vw, 88px);

    line-height: .93;

    letter-spacing:
        -4.2px;
}

.xm-hero h1 span {
    color: #ef5e5e;

    text-shadow:
        0 0 32px rgba(239,68,68,.13);
}

.xm-hero-copy > p {
    max-width: 635px;

    margin:
        22px 0 0;

    color: #777a82;

    font-size: 13px;

    line-height: 1.85;
}

.xm-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.xm-primary-action,
.xm-secondary-action {
    min-height: 48px;

    padding:
        0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 10px;

    border:
        1px solid transparent;

    font-size: 8px;

    font-weight: 850;

    letter-spacing: .8px;

    text-transform: uppercase;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.xm-primary-action {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #991b1b,
            #dc2626
        );

    box-shadow:
        0 0 25px rgba(220,38,38,.13);
}

.xm-secondary-action {
    color: #b7bac0;

    border-color:
        rgba(255,255,255,.075);

    background:
        rgba(255,255,255,.018);
}

.xm-primary-action:hover,
.xm-secondary-action:hover {
    transform:
        translateY(-2px);
}

.xm-primary-action:hover {
    box-shadow:
        0 0 32px rgba(220,38,38,.22);
}

.xm-hero-trust {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 34px;
}

.xm-hero-trust-item {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #555860;

    font-size: 8px;
}

.xm-hero-trust-item i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #72757c;
}


/* ============================================================
   HERO TERMINAL PREVIEW
============================================================ */

.xm-hero-terminal {
    position: relative;

    min-width: 0;

    padding: 16px;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,.075);

    background:
        linear-gradient(
            145deg,
            rgba(16,17,20,.94),
            rgba(7,8,10,.98)
        );

    box-shadow:
        0 35px 95px rgba(0,0,0,.5);
}

.xm-hero-terminal::before {
    content: "";

    position: absolute;

    inset: -1px;

    z-index: -1;

    border-radius: inherit;

    opacity: .7;

    background:
        linear-gradient(
            135deg,
            rgba(239,68,68,.20),
            transparent 27%,
            transparent 72%,
            rgba(239,68,68,.06)
        );

    filter:
        blur(10px);
}

.xm-terminal-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding:
        5px 3px 14px;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.xm-terminal-id {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #777a82;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}

.xm-terminal-id i {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--xm-green);

    box-shadow:
        0 0 10px rgba(74,222,128,.72);
}

.xm-terminal-live {
    color: #4ade80;

    font-size: 7px;

    font-weight: 850;

    letter-spacing: .8px;
}

.xm-terminal-market {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding:
        17px 3px 12px;
}

.xm-terminal-market small {
    display: block;

    color: #555860;

    font-size: 7px;

    letter-spacing: .9px;

    text-transform: uppercase;
}

.xm-terminal-market strong {
    display: block;

    margin-top: 4px;

    color: #fff;

    font-size: 18px;
}

.xm-terminal-price {
    text-align: right;
}

.xm-terminal-price strong {
    font-size: 21px;
}

.xm-terminal-price span {
    display: block;

    margin-top: 4px;

    color: var(--xm-green);

    font-size: 8px;
}

.xm-mini-chart {
    position: relative;

    height: 190px;

    overflow: hidden;

    margin-top: 4px;

    border-radius: 11px;

    border:
        1px solid rgba(255,255,255,.035);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.014),
            transparent
        );
}

.xm-mini-chart::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: .25;

    background-image:
        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );

    background-size:
        38px 38px;
}

.xm-mini-chart-line {
    position: absolute;

    inset: 22px 10px 26px;

    opacity: .65;

    background:
        linear-gradient(
            145deg,
            transparent 0 9%,
            rgba(239,68,68,.7) 9.5%,
            transparent 10% 19%,
            rgba(239,68,68,.66) 19.5%,
            transparent 20% 34%,
            rgba(239,68,68,.78) 34.5%,
            transparent 35% 47%,
            rgba(239,68,68,.6) 47.5%,
            transparent 48% 63%,
            rgba(239,68,68,.75) 63.5%,
            transparent 64% 77%,
            rgba(239,68,68,.63) 77.5%,
            transparent 78%
        );

    animation:
        xmTerminalDrift 8s linear infinite;
}

@keyframes xmTerminalDrift {

    from {
        transform:
            translateX(-3%);
    }

    to {
        transform:
            translateX(5%);
    }
}

.xm-terminal-foot {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 8px;

    margin-top: 10px;
}

.xm-terminal-stat {
    padding: 10px;

    border-radius: 9px;

    background:
        rgba(255,255,255,.018);

    border:
        1px solid rgba(255,255,255,.04);
}

.xm-terminal-stat span {
    display: block;

    color: #4f5259;

    font-size: 6px;

    letter-spacing: .8px;
}

.xm-terminal-stat strong {
    display: block;

    margin-top: 4px;

    color: #bfc1c5;

    font-size: 9px;
}


/* ============================================================
   LIVE MARKET STRIP
============================================================ */

.xm-market-strip {
    position: relative;

    z-index: 5;

    overflow: hidden;

    border-top:
        1px solid rgba(255,255,255,.045);

    border-bottom:
        1px solid rgba(255,255,255,.045);

    background:
        rgba(7,8,10,.78);
}

.xm-market-track {
    display: flex;

    align-items: center;

    width: max-content;

    animation:
        xmTickerMove 30s linear infinite;
}

@keyframes xmTickerMove {

    to {
        transform:
            translateX(-50%);
    }
}

.xm-market-item {
    min-width: 205px;

    padding:
        13px 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    border-right:
        1px solid rgba(255,255,255,.035);
}

.xm-market-item strong {
    color: #bfc1c6;

    font-size: 9px;
}

.xm-market-item span {
    font-size: 8px;
}

.xm-market-positive {
    color: var(--xm-green);
}

.xm-market-negative {
    color: #ef6b6b;
}


/* ============================================================
   FEATURE GRID
============================================================ */

.xm-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 12px;

    margin-top: 42px;
}

.xm-feature-card {
    position: relative;

    overflow: hidden;

    min-height: 228px;

    padding: 22px;

    border-radius: var(--xm-radius);

    border:
        1px solid var(--xm-border);

    background:
        linear-gradient(
            145deg,
            rgba(16,17,20,.9),
            rgba(8,9,11,.92)
        );

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.xm-feature-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(239,68,68,.14);

    box-shadow:
        0 20px 50px rgba(0,0,0,.22);
}

.xm-feature-card::after {
    content: "";

    position: absolute;

    right: -60px;
    bottom: -70px;

    width: 160px;
    height: 160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239,68,68,.08),
            transparent 68%
        );
}

.xm-feature-number {
    color: #4d5057;

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 1.2px;
}

.xm-feature-icon {
    width: 39px;
    height: 39px;

    margin:
        19px 0 20px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    border:
        1px solid rgba(239,68,68,.11);

    background:
        rgba(239,68,68,.04);

    color: #ef6969;

    font-size: 14px;
}

.xm-feature-card h3 {
    margin: 0;

    color: #fff;

    font-size: 14px;
}

.xm-feature-card p {
    margin:
        9px 0 0;

    color: #696c73;

    font-size: 9px;

    line-height: 1.7;
}


/* ============================================================
   DEMO TRADING SECTION
============================================================ */

.xm-demo-zone {
    position: relative;

    overflow: hidden;

    padding:
        92px 0;

    border-top:
        1px solid rgba(255,255,255,.04);

    border-bottom:
        1px solid rgba(255,255,255,.04);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.01),
            rgba(255,255,255,.003)
        );
}

.xm-demo-zone::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: -340px;
    top: 120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239,68,68,.08),
            transparent 66%
        );

    filter:
        blur(35px);
}

.xm-demo-shell {
    position: relative;

    margin-top: 38px;

    padding: 13px;

    border-radius: 19px;

    border:
        1px solid rgba(255,255,255,.065);

    background:
        #08090b;

    box-shadow:
        0 35px 90px rgba(0,0,0,.35);
}

.xm-demo-shell-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        7px 7px 15px;
}

.xm-demo-system {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #686b72;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}

.xm-demo-system i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--xm-green);

    box-shadow:
        0 0 10px rgba(74,222,128,.6);
}

.xm-demo-mode {
    color: #ef7070;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* ============================================================
   EXISTING TRADING TERMINAL RESTYLE
============================================================ */

.xm-demo-zone .dashboard-layout {
    display: grid;

    grid-template-columns:
        220px minmax(0,1fr);

    gap: 12px;

    padding: 0;
}

.xm-demo-zone .left-panel,
.xm-demo-zone .side-panels,
.xm-demo-zone .terminal {
    border-radius: 12px !important;

    border:
        1px solid rgba(255,255,255,.055) !important;

    background:
        #0c0d0f !important;

    box-shadow:
        none !important;
}

.xm-demo-zone .trading-wrapper {
    display: grid;

    grid-template-columns:
        minmax(0,1fr) 225px;

    gap: 12px;

    min-width: 0;
}

.xm-demo-zone .terminal {
    overflow: hidden;
}

.xm-demo-zone .terminal-top {
    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.xm-demo-zone .terminal h2 {
    color: #fff;
}

.xm-demo-zone .timeframes button {
    border:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.018);

    color: #757880;
}

.xm-demo-zone .timeframes button:hover {
    color: #fff;

    border-color:
        rgba(239,68,68,.14);

    background:
        rgba(239,68,68,.035);
}

.xm-demo-zone input,
.xm-demo-zone select {
    border:
        1px solid rgba(255,255,255,.055) !important;

    background:
        #08090b !important;

    color: #fff !important;
}

.xm-demo-zone .sell {
    background:
        linear-gradient(
            135deg,
            #7f1d1d,
            #dc2626
        ) !important;
}

.xm-demo-zone .buy {
    background:
        linear-gradient(
            135deg,
            #166534,
            #22c55e
        ) !important;
}


/* ============================================================
   AI INTELLIGENCE SECTION
============================================================ */

.xm-ai-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.9fr)
        minmax(480px,1.1fr);

    gap: 70px;

    align-items: center;
}

.xm-ai-console {
    position: relative;

    overflow: hidden;

    padding: 20px;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,.065);

    background:
        linear-gradient(
            145deg,
            #101114,
            #08090b
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,.34);
}

.xm-ai-console::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -90px;
    top: -110px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239,68,68,.15),
            transparent 68%
        );
}

.xm-ai-console-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 15px;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.xm-ai-console-head strong {
    color: #fff;

    font-size: 10px;
}

.xm-ai-console-head span {
    color: var(--xm-green);

    font-size: 7px;

    font-weight: 800;
}

.xm-ai-message {
    margin-top: 16px;

    padding: 14px;

    border-radius: 10px;

    border:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.018);

    color: #92959c;

    font-size: 9px;

    line-height: 1.7;
}

.xm-ai-message strong {
    display: block;

    margin-bottom: 7px;

    color: #ef7171;

    font-size: 7px;

    letter-spacing: 1px;
}

.xm-ai-signals {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 8px;

    margin-top: 10px;
}

.xm-ai-signal {
    padding: 12px;

    border-radius: 9px;

    border:
        1px solid rgba(255,255,255,.045);

    background:
        rgba(255,255,255,.012);
}

.xm-ai-signal span {
    display: block;

    color: #50535a;

    font-size: 6px;

    letter-spacing: .9px;
}

.xm-ai-signal strong {
    display: block;

    margin-top: 5px;

    color: #c0c2c7;

    font-size: 10px;
}


/* ============================================================
   WHY XMARKETS
============================================================ */

.xm-why-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 12px;

    margin-top: 40px;
}

.xm-why-card {
    padding: 24px;

    border-radius: 15px;

    border:
        1px solid rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.012);
}

.xm-why-card span {
    color: #ef6d6d;

    font-size: 8px;

    font-weight: 850;

    letter-spacing: 1.1px;
}

.xm-why-card h3 {
    margin:
        14px 0 7px;

    color: #fff;

    font-size: 15px;
}

.xm-why-card p {
    margin: 0;

    color: #666970;

    font-size: 9px;

    line-height: 1.75;
}


/* ============================================================
   TESTIMONIAL SIGNAL CONSOLE
============================================================ */

.xm-testimonial-section {
    overflow: hidden;
}

.xm-testimonial-console {
    position: relative;

    margin-top: 42px;

    padding: 22px;

    border-radius: 19px;

    border:
        1px solid rgba(255,255,255,.065);

    background:
        linear-gradient(
            145deg,
            rgba(15,16,19,.97),
            rgba(6,7,9,.98)
        );

    box-shadow:
        0 35px 100px rgba(0,0,0,.34);
}

.xm-testimonial-console::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .12;

    background-image:
        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );

    background-size:
        42px 42px;

    border-radius: inherit;
}

.xm-testimonial-console-head {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(255,255,255,.05);
}

.xm-testimonial-system {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #73767d;

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 1.2px;
}

.xm-testimonial-system i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--xm-green);

    box-shadow:
        0 0 10px rgba(74,222,128,.7);

    animation:
        xmLivePulse 2s infinite;
}

.xm-testimonial-counter {
    color: #54575e;

    font-family: monospace;

    font-size: 8px;
}

.xm-testimonial-stage {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        220px minmax(0,1fr) 250px;

    gap: 26px;

    align-items: center;

    min-height: 360px;

    padding:
        30px 10px 18px;
}

.xm-trader-node-zone {
    position: relative;

    min-height: 250px;

    display: grid;

    place-items: center;
}

.xm-trader-node-zone::before,
.xm-trader-node-zone::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(239,68,68,.08);
}

.xm-trader-node-zone::before {
    width: 165px;
    height: 165px;
}

.xm-trader-node-zone::after {
    width: 95px;
    height: 95px;
}

.xm-trader-avatar-large {
    position: relative;

    z-index: 3;

    width: 66px;
    height: 66px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    border:
        1px solid rgba(239,68,68,.17);

    background:
        linear-gradient(
            145deg,
            #24262c,
            #111216
        );

    box-shadow:
        0 0 30px rgba(239,68,68,.07);

    color: #fff;

    font-size: 18px;

    font-weight: 900;
}

.xm-trader-mini-node {
    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #6a6d74;

    box-shadow:
        0 0 0 5px rgba(255,255,255,.015);
}

.xm-trader-mini-node.n1 {
    left: 25px;
    top: 70px;
}

.xm-trader-mini-node.n2 {
    right: 22px;
    top: 47px;
}

.xm-trader-mini-node.n3 {
    left: 46px;
    bottom: 42px;
}

.xm-trader-mini-node.active {
    background: var(--xm-red);

    box-shadow:
        0 0 16px rgba(239,68,68,.55);
}

.xm-testimonial-main {
    min-width: 0;
}

.xm-signal-label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #ee7777;

    font-size: 7px;

    font-weight: 850;

    letter-spacing: 1.2px;
}

.xm-signal-label::before {
    content: "";

    width: 18px;
    height: 1px;

    background: var(--xm-red);
}

.xm-testimonial-quote {
    max-width: 720px;

    margin:
        17px 0 22px;

    color: #e1e2e5;

    font-size:
        clamp(19px, 2.6vw, 30px);

    line-height: 1.35;

    letter-spacing: -.5px;
}

.xm-testimonial-person strong {
    display: block;

    color: #fff;

    font-size: 11px;
}

.xm-testimonial-person span {
    display: block;

    margin-top: 4px;

    color: #565960;

    font-size: 8px;
}

.xm-testimonial-meta {
    display: grid;

    gap: 9px;
}

.xm-testimonial-meta-card {
    padding: 13px;

    border-radius: 10px;

    border:
        1px solid rgba(255,255,255,.045);

    background:
        rgba(255,255,255,.016);
}

.xm-testimonial-meta-card span {
    display: block;

    color: #50535a;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.xm-testimonial-meta-card strong {
    display: block;

    margin-top: 6px;

    color: #c4c6ca;

    font-size: 10px;
}

.xm-testimonial-score {
    margin-top: 8px;

    height: 5px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255,255,255,.04);
}

.xm-testimonial-score-fill {
    height: 100%;

    width: 92%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #991b1b,
            #ef4444
        );

    box-shadow:
        0 0 10px rgba(239,68,68,.22);

    transition:
        width .45s ease;
}

.xm-testimonial-controls {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding-top: 17px;

    border-top:
        1px solid rgba(255,255,255,.045);
}

.xm-testimonial-dots {
    display: flex;

    align-items: center;

    gap: 7px;
}

.xm-testimonial-dot {
    width: 28px;
    height: 28px;

    display: grid;

    place-items: center;

    border-radius: 8px;

    border:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.015);

    color: #555860;

    font-size: 7px;

    transition:
        .18s ease;
}

.xm-testimonial-dot.active {
    color: #fff;

    border-color:
        rgba(239,68,68,.17);

    background:
        rgba(239,68,68,.06);

    box-shadow:
        0 0 14px rgba(239,68,68,.07);
}

.xm-testimonial-arrows {
    display: flex;

    gap: 8px;
}

.xm-testimonial-arrow {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    border:
        1px solid rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.016);

    color: #888b92;

    transition:
        .18s ease;
}

.xm-testimonial-arrow:hover {
    color: #fff;

    border-color:
        rgba(239,68,68,.15);

    background:
        rgba(239,68,68,.04);
}


/* ============================================================
   ACADEMY
============================================================ */

.xm-academy-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(420px,.85fr);

    gap: 60px;

    align-items: center;
}

.xm-academy-modules {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 10px;
}

.xm-academy-card {
    min-height: 145px;

    padding: 18px;

    border-radius: 13px;

    border:
        1px solid rgba(255,255,255,.05);

    background:
        rgba(255,255,255,.012);
}

.xm-academy-card span {
    color: #ef6e6e;

    font-size: 7px;

    font-weight: 850;
}

.xm-academy-card strong {
    display: block;

    margin-top: 14px;

    color: #fff;

    font-size: 12px;
}

.xm-academy-card p {
    margin:
        7px 0 0;

    color: #61646b;

    font-size: 8px;

    line-height: 1.7;
}


/* ============================================================
   FINAL CTA
============================================================ */

.xm-final-cta {
    position: relative;

    overflow: hidden;

    padding:
        62px;

    border-radius: 22px;

    border:
        1px solid rgba(255,255,255,.065);

    background:
        linear-gradient(
            135deg,
            #101114,
            #08090b 57%,
            rgba(92,10,10,.46)
        );

    text-align: center;
}

.xm-final-cta::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: -330px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239,68,68,.22),
            transparent 68%
        );

    filter:
        blur(30px);
}

.xm-final-cta > * {
    position: relative;

    z-index: 2;
}

.xm-final-cta h2 {
    max-width: 780px;

    margin:
        0 auto;

    font-size:
        clamp(32px, 4.4vw, 60px);

    line-height: 1;

    letter-spacing: -2px;
}

.xm-final-cta p {
    max-width: 630px;

    margin:
        16px auto 0;

    color: #777a82;

    font-size: 11px;

    line-height: 1.75;
}

.xm-final-cta .xm-hero-actions {
    justify-content: center;
}


/* ============================================================
   FOOTER
============================================================ */

.xm-public-footer {
    position: relative;

    z-index: 2;

    padding:
        48px 0 28px;

    border-top:
        1px solid rgba(255,255,255,.045);
}

.xm-footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr repeat(3,.6fr);

    gap: 50px;
}

.xm-footer-intro p {
    max-width: 360px;

    margin:
        14px 0 0;

    color: #5d6067;

    font-size: 8px;

    line-height: 1.8;
}

.xm-footer-column strong {
    display: block;

    margin-bottom: 13px;

    color: #9b9ea5;

    font-size: 8px;

    letter-spacing: .9px;

    text-transform: uppercase;
}

.xm-footer-column a {
    display: block;

    margin-top: 9px;

    color: #50535a;

    font-size: 8px;

    transition:
        color .18s ease;
}

.xm-footer-column a:hover {
    color: #fff;
}

.xm-footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 42px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.04);

    color: #44474e;

    font-size: 7px;
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media(max-width:1200px) {

    .xm-hero-grid,
    .xm-ai-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 40px;
    }

    .xm-feature-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .xm-testimonial-stage {
        grid-template-columns:
            170px minmax(0,1fr);
    }

    .xm-testimonial-meta {
        grid-column:
            1 / -1;

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

    .xm-demo-zone .dashboard-layout {
        grid-template-columns:
            1fr;
    }
}


@media(max-width:980px) {

    .xm-public-links {
        display: none;
    }

    .xm-hero {
        min-height: auto;
    }

    .xm-hero-grid,
    .xm-ai-grid,
    .xm-academy-grid {
        grid-template-columns:
            1fr;
    }

    .xm-hero-terminal {
        max-width: 720px;
    }

    .xm-demo-zone .trading-wrapper {
        grid-template-columns:
            1fr;
    }

    .xm-why-grid {
        grid-template-columns:
            1fr;
    }

    .xm-footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


@media(max-width:720px) {

    .xm-container,
    .xm-public-nav-inner {
        width:
            min(100% - 26px, 1420px);
    }

    .xm-section {
        padding:
            68px 0;
    }

    .xm-public-nav {
        height: 66px;
    }

    .xm-public-brand small {
        display: none;
    }

    .xm-nav-login {
        display: none;
    }

    .xm-hero {
        padding:
            68px 0 60px;
    }

    .xm-hero h1 {
        letter-spacing:
            -2.6px;
    }

    .xm-hero-copy > p {
        font-size: 11px;
    }

    .xm-feature-grid {
        grid-template-columns:
            1fr;
    }

    .xm-testimonial-console {
        padding: 15px;
    }

    .xm-testimonial-stage {
        grid-template-columns:
            1fr;

        gap: 18px;
    }

    .xm-trader-node-zone {
        min-height: 155px;
    }

    .xm-trader-node-zone::before {
        width: 130px;
        height: 130px;
    }

    .xm-testimonial-meta {
        grid-template-columns:
            1fr;
    }

    .xm-academy-modules {
        grid-template-columns:
            1fr;
    }

    .xm-final-cta {
        padding:
            45px 20px;
    }

    .xm-footer-grid {
        grid-template-columns:
            1fr;
    }

    .xm-footer-bottom {
        flex-direction: column;
    }
}


@media(max-width:520px) {

    .xm-nav-signup {
        padding:
            0 11px;
    }

    .xm-hero-actions {
        flex-direction: column;
    }

    .xm-primary-action,
    .xm-secondary-action {
        width: 100%;
    }

    .xm-terminal-foot {
        grid-template-columns:
            1fr;
    }

    .xm-ai-signals {
        grid-template-columns:
            1fr;
    }

    .xm-testimonial-controls {
        align-items: flex-end;
    }

    .xm-testimonial-dots {
        flex-wrap: wrap;
    }
}
/* =========================================================
   XMARKETS HERO LIVE MARKET NODE V2
========================================================= */

.xm-live-node {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 500px;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(239, 68, 68, 0.07),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            rgba(13, 15, 18, 0.98),
            rgba(5, 6, 8, 0.98)
        );
}


/* ---------------------------------------------------------
   SCANNING EFFECT
--------------------------------------------------------- */

.xm-live-scan {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
    z-index: 10;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(239, 68, 68, 0.025),
        rgba(239, 68, 68, 0.07),
        transparent
    );

    animation: xmHeroScan 6s linear infinite;
}

@keyframes xmHeroScan {

    0% {
        top: -100px;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}


/* ---------------------------------------------------------
   ONLINE STATUS
--------------------------------------------------------- */

.xm-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #39e58c;

    box-shadow:
        0 0 0 4px rgba(57, 229, 140, 0.08),
        0 0 12px rgba(57, 229, 140, 0.8);

    animation: xmLivePulse 1.8s ease-in-out infinite;
}

@keyframes xmLivePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.76);
    }
}


/* ---------------------------------------------------------
   MARKET HEADER
--------------------------------------------------------- */

.xm-live-market-head {
    align-items: flex-start;
}

.xm-live-instrument-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
}

.xm-live-instrument-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 0 7px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.025);

    color: rgba(255, 255, 255, 0.46);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.xm-terminal-price {
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.xm-terminal-price strong {
    font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   PRICE MOVEMENT FLASH
--------------------------------------------------------- */

.xm-price-flash-up {
    animation: xmPriceUp 0.55s ease;
}

.xm-price-flash-down {
    animation: xmPriceDown 0.55s ease;
}

@keyframes xmPriceUp {

    0% {
        text-shadow: none;
    }

    35% {
        text-shadow:
            0 0 18px rgba(57, 229, 140, 0.7);
    }

    100% {
        text-shadow: none;
    }
}

@keyframes xmPriceDown {

    0% {
        text-shadow: none;
    }

    35% {
        text-shadow:
            0 0 18px rgba(239, 68, 68, 0.8);
    }

    100% {
        text-shadow: none;
    }
}

.xm-hero-tick-up {
    color: #39e58c !important;
}

.xm-hero-tick-down {
    color: #ff515b !important;
}


/* ---------------------------------------------------------
   BID / ASK / MARKET METRICS
--------------------------------------------------------- */

.xm-live-quote-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 17px 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.018);
    overflow: hidden;
}

.xm-live-quote-strip > div {
    position: relative;
    min-width: 0;
    padding: 10px 11px;
}

.xm-live-quote-strip > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.xm-live-quote-strip span {
    display: block;
    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.35);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.xm-live-quote-strip strong {
    display: block;

    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;

    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   LIVE MINI CHART
--------------------------------------------------------- */

.xm-live-chart {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 0;

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;

    background:
        linear-gradient(
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        ),
        linear-gradient(
            180deg,
            rgba(10, 12, 15, 0.92),
            rgba(5, 6, 8, 0.98)
        );

    background-size:
        100% 42px,
        58px 100%,
        100% 100%;

    overflow: hidden;
}

.xm-live-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(239, 68, 68, 0.07),
            transparent 35%
        );

    pointer-events: none;
}

.xm-live-chart-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;

    background-image:
        linear-gradient(
            90deg,
            transparent 98%,
            rgba(255,255,255,0.025) 100%
        );

    background-size: 70px 100%;

    animation: xmGridMove 12s linear infinite;
}

@keyframes xmGridMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(70px);
    }
}


/* ---------------------------------------------------------
   SVG CHART
--------------------------------------------------------- */

.xm-hero-chart-svg {
    position: absolute;
    inset: 0;
    z-index: 3;

    width: 100%;
    height: 100%;

    overflow: visible;
    pointer-events: none;
}

.xm-hero-chart-line {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;

    transition: points 0.45s ease;
}

.xm-hero-chart-area {
    fill: url(#xmHeroAreaGradient);
    stroke: none;
    opacity: 0.7;

    transition: d 0.45s ease;
}

.xm-live-chart-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    right: -65px;
    top: 25px;
    z-index: 2;

    border-radius: 50%;

    background: rgba(239, 68, 68, 0.09);

    filter: blur(55px);
    pointer-events: none;
}


/* ---------------------------------------------------------
   CURRENT PRICE TRACKER
--------------------------------------------------------- */

.xm-live-price-line {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 6;

    display: flex;
    align-items: center;

    pointer-events: none;

    transition: top 0.45s ease;
}

.xm-live-price-line > span {
    flex: 1;
    height: 1px;

    border-top: 1px dashed rgba(239, 68, 68, 0.32);
}

.xm-live-price-line strong {
    margin-right: 7px;
    padding: 3px 6px;

    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 3px;

    background: rgba(20, 7, 9, 0.92);

    color: #ff626a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;

    font-variant-numeric: tabular-nums;

    box-shadow:
        0 0 14px rgba(239, 68, 68, 0.09);
}


/* ---------------------------------------------------------
   CHART HEADER + TIMES
--------------------------------------------------------- */

.xm-live-chart-top {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 8;

    display: flex;
    align-items: center;
    justify-content: space-between;

    pointer-events: none;
}

.xm-live-chart-top span {
    color: rgba(255,255,255,0.32);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.xm-live-chart-top strong {
    color: #39e58c;
    font-size: 7px;
    letter-spacing: 0.12em;
}

.xm-live-chart-times {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    z-index: 8;

    display: flex;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.22);
    font-size: 7px;
    letter-spacing: 0.04em;

    pointer-events: none;
}


/* ---------------------------------------------------------
   ACTIVITY FEED
--------------------------------------------------------- */

.xm-live-feed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    min-height: 48px;
    margin-top: 10px;
    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.018);
}

.xm-live-feed-head {
    flex: 0 0 auto;
}

.xm-live-feed-head span {
    display: block;

    color: rgba(255, 255, 255, 0.31);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.xm-live-feed-head strong {
    display: block;
    margin-top: 3px;

    color: #39e58c;
    font-size: 8px;
    letter-spacing: 0.12em;
}

.xm-live-feed-message {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    min-width: 0;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.xm-live-feed-message.changing {
    opacity: 0;
    transform: translateY(4px);
}

.xm-live-feed-message span {
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
}

.xm-live-feed-message strong {
    overflow: hidden;

    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 500;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   TERMINAL FOOT
--------------------------------------------------------- */

.xm-live-terminal-foot {
    margin-top: 10px;
}

.xm-live-terminal-foot .xm-terminal-stat {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.xm-live-terminal-foot .xm-terminal-stat:hover {
    transform: translateY(-2px);

    border-color:
        rgba(239, 68, 68, 0.18);

    background:
        rgba(239, 68, 68, 0.025);
}


/* ---------------------------------------------------------
   TERMINAL HOVER
--------------------------------------------------------- */

.xm-live-node {
    transition:
        transform 0.12s ease-out,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.xm-live-node:hover {
    border-color:
        rgba(239, 68, 68, 0.18);

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48),
        0 0 45px rgba(239, 68, 68, 0.045);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 720px) {

    .xm-live-quote-strip {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .xm-live-quote-strip > div:nth-child(2) {
        border-right: 0;
    }

    .xm-live-quote-strip > div:nth-child(-n+2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);
    }

    .xm-live-feed {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .xm-live-feed-message {
        justify-content: flex-start;
        width: 100%;
    }

    .xm-live-chart {
        height: 195px;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .xm-live-scan,
    .xm-live-dot,
    .xm-live-chart-grid {
        animation: none !important;
    }
}
/* =========================================================
   HERO MARKET NODE — CHART VISIBILITY FIX
========================================================= */

.xm-hero-chart-svg {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 4 !important;
    pointer-events: none;
}

.xm-hero-chart-line {
    fill: none !important;
    stroke: #ff3b45 !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1 !important;

    vector-effect: non-scaling-stroke;

    filter:
        drop-shadow(0 0 3px rgba(255, 59, 69, 0.8))
        drop-shadow(0 0 9px rgba(255, 59, 69, 0.25));
}

.xm-hero-chart-area {
    stroke: none !important;
    fill: url(#xmHeroAreaGradient) !important;
    opacity: 0.8 !important;
}

.xm-hero-chart-dot {
    fill: #ff4b55;
    stroke: #ffffff;
    stroke-width: 1.2;

    filter:
        drop-shadow(0 0 5px rgba(255, 59, 69, 0.95));
}

.xm-hero-chart-pulse {
    fill: rgba(255, 59, 69, 0.15);
    stroke: rgba(255, 59, 69, 0.55);
    stroke-width: 1;

    transform-box: fill-box;
    transform-origin: center;

    animation: xmHeroChartPulse 1.6s ease-out infinite;
}

@keyframes xmHeroChartPulse {

    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* =========================================================
   XMARKETS DEMO TERMINAL V2
   FUTURISTIC TRADING WORKSTATION
========================================================= */

.xm-v2-terminal {
    position: relative;
    margin-top: 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 10%, rgba(220, 38, 38, .055), transparent 32%),
        #070809;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.xm-v2-terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 32px 32px;
}


/* =========================================================
   SYSTEM BAR
========================================================= */

.xm-v2-systembar {
    position: relative;
    z-index: 2;
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(8, 9, 11, .92);
}

.xm-v2-system-left,
.xm-v2-system-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.xm-v2-terminal-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 0 25px rgba(220,38,38,.22);
}

.xm-v2-system-left strong {
    display: block;
    color: #f5f5f5;
    font-size: 12px;
    letter-spacing: .09em;
}

.xm-v2-system-left span {
    display: block;
    margin-top: 4px;
    color: #666c75;
    font-size: 9px;
    letter-spacing: .14em;
}

.xm-v2-feed-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #747a83;
    font-size: 9px;
    letter-spacing: .1em;
}

.xm-v2-feed-status i,
.xm-v2-chart-state i,
.xm-v2-order-live i,
.xm-v2-trade-state i,
.xm-v2-terminal-footer i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 9px rgba(34,197,94,.65);
    animation: xmV2Pulse 1.8s ease-in-out infinite;
}

.xm-v2-feed-status strong {
    color: #4ade80;
    font-size: inherit;
}

.xm-v2-demo-badge {
    padding: 7px 10px;
    border: 1px solid rgba(239,68,68,.24);
    border-radius: 6px;
    background: rgba(239,68,68,.065);
    color: #f87171;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}


/* =========================================================
   ACCOUNT STRIP
========================================================= */

.xm-v2-account-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(5,6,7,.88);
}

.xm-v2-account-item {
    min-width: 0;
    padding: 15px 16px;
    border-right: 1px solid rgba(255,255,255,.07);
}

.xm-v2-account-item span {
    display: block;
    margin-bottom: 7px;
    color: #626872;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.xm-v2-account-item strong {
    color: #e8eaed;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#xm-account-floating {
    color: #4ade80;
}

.xm-v2-reset {
    align-self: stretch;
    padding: 0 17px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.07);
    background: transparent;
    color: #737983;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    transition: .2s ease;
}

.xm-v2-reset:hover {
    background: rgba(239,68,68,.07);
    color: #f87171;
}


/* =========================================================
   MAIN WORKSPACE
========================================================= */

.xm-v2-workspace {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr) 255px;
    min-height: 590px;
}

.xm-v2-side-column,
.xm-v2-chart-column,
.xm-v2-order-column {
    min-width: 0;
}

.xm-v2-side-column {
    border-right: 1px solid rgba(255,255,255,.075);
    background: rgba(7,8,9,.78);
}

.xm-v2-chart-column {
    background: rgba(4,5,6,.72);
}

.xm-v2-order-column {
    padding-bottom: 18px;
    border-left: 1px solid rgba(255,255,255,.075);
    background: rgba(8,9,10,.82);
}


/* =========================================================
   PANEL HEADERS
========================================================= */

.xm-v2-panel-head {
    min-height: 43px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.xm-v2-panel-head span {
    color: #868c95;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.xm-v2-panel-head i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,.6);
}


/* =========================================================
   LEFT INTELLIGENCE COLUMN
========================================================= */

.xm-v2-tool-stack {
    padding: 10px;
}

.xm-v2-tool-stack > * {
    max-width: 100%;
}

.xm-v2-tool-stack > div,
.xm-v2-tool-stack > section {
    border-color: rgba(255,255,255,.07) !important;
}


/* =========================================================
   MARKET HEADER
========================================================= */

.xm-v2-market-header {
    min-height: 83px;
    padding: 16px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.xm-v2-small-label {
    display: block;
    margin-bottom: 6px;
    color: #5f6570;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.xm-v2-symbol {
    color: #f1f3f5;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.xm-v2-symbol small {
    margin-left: 8px;
    color: #5d636c;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .08em;
}

.xm-v2-market-price {
    text-align: right;
}

.xm-v2-market-price span,
.xm-v2-market-price small {
    display: block;
    color: #5f6570;
    font-size: 8px;
    letter-spacing: .11em;
}

.xm-v2-market-price strong {
    display: block;
    margin: 3px 0;
    color: #f3f4f6;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   CHART TOOLBAR
========================================================= */

.xm-v2-chart-toolbar {
    min-height: 48px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.xm-v2-timeframes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.xm-v2-timeframes button {
    min-width: 35px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #737983;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    transition: .18s ease;
}

.xm-v2-timeframes button:hover {
    color: #d7d9dc;
    background: rgba(255,255,255,.035);
}

.xm-v2-timeframes button.active {
    border-color: rgba(239,68,68,.22);
    background: rgba(239,68,68,.09);
    color: #f87171;
}

.xm-v2-chart-state {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #68707a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}


/* =========================================================
   CHART
========================================================= */

.xm-v2-chart-frame {
    position: relative;
    min-height: 385px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
        #050607;
    background-size: 36px 36px;
}

#trading-chart {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 385px;
}

.xm-v2-chart-watermark {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,.025);
    font-size: clamp(34px, 6vw, 70px);
    font-weight: 900;
    letter-spacing: .13em;
    pointer-events: none;
}

.xm-v2-execution-message {
    min-height: 39px;
    padding: 11px 15px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #747b85;
    font-size: 9px;
    letter-spacing: .04em;
}

.xm-v2-execution-message.success {
    color: #4ade80;
}

.xm-v2-execution-message.error {
    color: #f87171;
}


/* =========================================================
   ORDER TERMINAL
========================================================= */

.xm-v2-order-head {
    min-height: 68px;
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.xm-v2-order-head span {
    display: block;
    color: #686e77;
    font-size: 8px;
    letter-spacing: .13em;
}

.xm-v2-order-head strong {
    display: block;
    margin-top: 5px;
    color: #f1f2f4;
    font-size: 15px;
}

.xm-v2-order-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.xm-v2-order-field {
    padding: 12px 14px 0;
}

.xm-v2-order-field label {
    margin-bottom: 7px;
    display: flex;
    justify-content: space-between;
    color: #858b94;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .09em;
}

.xm-v2-order-field label small {
    color: #555b64;
    font-size: 7px;
}

.xm-v2-order-field input,
.xm-v2-order-field select {
    width: 100%;
    height: 39px;
    padding: 0 10px;
    outline: none;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 6px;
    background: #0b0c0e;
    color: #e5e7eb;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    transition: .18s ease;
}

.xm-v2-order-field input:focus,
.xm-v2-order-field select:focus {
    border-color: rgba(239,68,68,.48);
    box-shadow: 0 0 0 2px rgba(239,68,68,.06);
}

.xm-v2-risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.xm-v2-order-price {
    margin: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;
    background: rgba(255,255,255,.018);
}

.xm-v2-order-price span {
    display: block;
    color: #626872;
    font-size: 7px;
    letter-spacing: .1em;
}

.xm-v2-order-price strong {
    display: block;
    margin-top: 5px;
    color: #f1f3f5;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.xm-v2-order-buttons {
    padding: 0 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.xm-v2-order-buttons button {
    height: 54px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.xm-v2-order-buttons button small {
    display: block;
    margin-bottom: 3px;
    font-size: 7px;
    letter-spacing: .12em;
    opacity: .65;
}

.xm-v2-sell {
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.09);
    color: #fb7185;
}

.xm-v2-sell:hover {
    transform: translateY(-1px);
    background: rgba(239,68,68,.16);
    box-shadow: 0 8px 25px rgba(239,68,68,.08);
}

.xm-v2-buy {
    border: 1px solid rgba(34,197,94,.30);
    background: rgba(34,197,94,.08);
    color: #4ade80;
}

.xm-v2-buy:hover {
    transform: translateY(-1px);
    background: rgba(34,197,94,.14);
    box-shadow: 0 8px 25px rgba(34,197,94,.07);
}

.xm-v2-order-disclaimer {
    padding: 12px 14px 0;
    color: #525861;
    font-size: 7px;
    line-height: 1.6;
    text-align: center;
}


/* =========================================================
   MARKET TOOLS
========================================================= */

.xm-v2-market-tools {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    border-top: 1px solid rgba(255,255,255,.075);
}

.xm-v2-market-tools-panel {
    min-width: 0;
    background: rgba(7,8,9,.74);
}

.xm-v2-market-tools-panel + .xm-v2-market-tools-panel {
    border-left: 1px solid rgba(255,255,255,.075);
}

.xm-v2-market-tools-panel > *:not(.xm-v2-panel-head) {
    max-width: 100%;
}


/* =========================================================
   POSITIONS + HISTORY
========================================================= */

.xm-v2-trades-area {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,.075);
}

.xm-v2-trade-panel {
    min-width: 0;
    background: rgba(5,6,7,.84);
}

.xm-v2-trade-panel + .xm-v2-trade-panel {
    border-left: 1px solid rgba(255,255,255,.075);
}

.xm-v2-trade-panel-head {
    min-height: 58px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.xm-v2-trade-panel-head span {
    display: block;
    color: #a0a5ad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
}

.xm-v2-trade-panel-head small {
    display: block;
    margin-top: 4px;
    color: #555b64;
    font-size: 7px;
    letter-spacing: .08em;
}

.xm-v2-trade-state {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6d747e;
    font-size: 7px;
    letter-spacing: .1em;
}

.xm-v2-history-tag {
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    color: #626872;
    font-size: 7px;
    letter-spacing: .08em;
}

.xm-v2-position-row {
    min-height: 110px;
}

.xm-empty-position,
.xm-history-empty {
    min-height: 110px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #60666f;
    text-align: center;
}

.xm-empty-position span,
.xm-history-empty {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
}

.xm-empty-position small {
    max-width: 270px;
    margin-top: 6px;
    color: #484d55;
    font-size: 8px;
    line-height: 1.6;
}

.xm-v2-history-head {
    min-height: 33px;
    padding: 0 10px;
    display: grid;
    grid-template-columns:
        1.1fr .65fr .55fr 1fr 1fr .8fr .9fr;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.xm-v2-history-head span {
    color: #50565f;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: .07em;
}


/* =========================================================
   TERMINAL FOOTER
========================================================= */

.xm-v2-terminal-footer {
    position: relative;
    z-index: 2;
    min-height: 47px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.075);
    background: rgba(7,8,9,.92);
}

.xm-v2-terminal-footer div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #737a84;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .1em;
}

.xm-v2-terminal-footer span {
    color: #4f555e;
    font-size: 7px;
}


/* =========================================================
   STATUS ANIMATION
========================================================= */

@keyframes xmV2Pulse {

    0%,
    100% {
        opacity: .45;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .xm-v2-account-strip {
        grid-template-columns:
            repeat(5, minmax(105px, 1fr));
        overflow-x: auto;
    }

    .xm-v2-reset {
        min-height: 50px;
    }

    .xm-v2-workspace {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .xm-v2-order-column {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255,255,255,.075);
        border-left: 0;
    }

    .xm-v2-order-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .xm-v2-order-head {
        grid-column: 1 / -1;
    }

    .xm-v2-order-buttons,
    .xm-v2-order-price,
    .xm-v2-order-disclaimer {
        align-self: end;
    }
}


@media (max-width: 820px) {

    .xm-v2-systembar {
        align-items: flex-start;
        flex-direction: column;
    }

    .xm-v2-workspace {
        display: block;
    }

    .xm-v2-side-column {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.075);
    }

    .xm-v2-tool-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .xm-v2-order-column {
        display: block;
    }

    .xm-v2-market-tools,
    .xm-v2-trades-area {
        grid-template-columns: 1fr;
    }

    .xm-v2-market-tools-panel +
    .xm-v2-market-tools-panel,
    .xm-v2-trade-panel +
    .xm-v2-trade-panel {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.075);
    }
}


@media (max-width: 600px) {

    .xm-v2-terminal {
        border-radius: 12px;
    }

    .xm-v2-system-right {
        width: 100%;
        justify-content: space-between;
    }

    .xm-v2-market-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .xm-v2-market-price {
        text-align: left;
    }

    .xm-v2-chart-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .xm-v2-timeframes {
        width: 100%;
        overflow-x: auto;
    }

    .xm-v2-tool-stack {
        display: block;
    }

    .xm-v2-risk-grid {
        grid-template-columns: 1fr;
    }

    .xm-v2-chart-frame,
    #trading-chart {
        min-height: 320px;
    }

    .xm-v2-terminal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .xm-v2-history-head {
        display: none;
    }
}
/* =========================================================
   XMARKETS DEMO TERMINAL V2
   PROPORTION / SCALE CORRECTION
========================================================= */

/* Overall terminal */
.xm-v2-terminal {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */

.xm-v2-systembar {
    min-height: 60px;
    padding: 10px 16px;
}

.xm-v2-terminal-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 15px;
}

.xm-v2-system-left strong {
    font-size: 11px;
}

.xm-v2-system-left span {
    font-size: 8px;
}


/* ---------------------------------------------------------
   ACCOUNT METRICS
--------------------------------------------------------- */

.xm-v2-account-strip {
    grid-template-columns:
        repeat(5, minmax(0, 1fr))
        105px;
}

.xm-v2-account-item {
    padding: 11px 14px;
}

.xm-v2-account-item span {
    margin-bottom: 4px;
    font-size: 7px;
}

.xm-v2-account-item strong {
    font-size: 12px;
}

.xm-v2-reset {
    padding: 0 12px;
    font-size: 7px;
}


/* ---------------------------------------------------------
   MAIN WORKSPACE
   Intelligence 17%
   Chart ~63%
   Order terminal 20%
--------------------------------------------------------- */

.xm-v2-workspace {
    grid-template-columns:
        185px
        minmax(520px, 1fr)
        220px;

    min-height: 510px;
}


/* ---------------------------------------------------------
   LEFT INTELLIGENCE
--------------------------------------------------------- */

.xm-v2-side-column {
    font-size: 90%;
}

.xm-v2-panel-head {
    min-height: 37px;
    padding: 0 11px;
}

.xm-v2-panel-head span {
    font-size: 7px;
}

.xm-v2-tool-stack {
    padding: 7px;
}

.xm-v2-tool-stack > * {
    margin-bottom: 7px !important;
}


/* Reduce oversized inner component spacing */
.xm-v2-side-column .world-clock,
.xm-v2-side-column .market-sessions,
.xm-v2-side-column .ai-sentiment {
    padding: 10px !important;
}


/* ---------------------------------------------------------
   CENTRAL CHART
--------------------------------------------------------- */

.xm-v2-market-header {
    min-height: 68px;
    padding: 12px 16px;
}

.xm-v2-symbol {
    font-size: 18px;
}

.xm-v2-market-price strong {
    font-size: 19px;
}

.xm-v2-chart-toolbar {
    min-height: 41px;
    padding: 6px 12px;
}

.xm-v2-timeframes button {
    min-width: 31px;
    height: 25px;
    padding: 0 5px;
    font-size: 8px;
}


/* Chart becomes visual priority */
.xm-v2-chart-frame {
    min-height: 390px;
}

#trading-chart {
    min-height: 390px;
    height: 390px;
}

.xm-v2-chart-watermark {
    font-size: clamp(35px, 5vw, 62px);
}


/* ---------------------------------------------------------
   ORDER TERMINAL
--------------------------------------------------------- */

.xm-v2-order-head {
    min-height: 57px;
    padding: 10px 12px;
}

.xm-v2-order-head strong {
    font-size: 13px;
}

.xm-v2-order-field {
    padding: 9px 11px 0;
}

.xm-v2-order-field label {
    margin-bottom: 5px;
    font-size: 7px;
}

.xm-v2-order-field input,
.xm-v2-order-field select {
    height: 34px;
    padding: 0 8px;
    font-size: 10px;
}

.xm-v2-order-price {
    margin: 11px;
    padding: 9px 10px;
}

.xm-v2-order-price strong {
    font-size: 15px;
}

.xm-v2-order-buttons {
    padding: 0 11px;
    gap: 6px;
}

.xm-v2-order-buttons button {
    height: 47px;
    font-size: 11px;
}

.xm-v2-order-disclaimer {
    padding: 9px 11px 0;
}


/* ---------------------------------------------------------
   MARKET WATCH + CURRENCY TOOLS
--------------------------------------------------------- */

.xm-v2-market-tools {
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(260px, .75fr);
}

.xm-v2-market-tools-panel {
    overflow: hidden;
}


/* ---------------------------------------------------------
   OPEN POSITIONS + HISTORY
--------------------------------------------------------- */

.xm-v2-trades-area {
    grid-template-columns:
        .85fr
        1.15fr;
}

.xm-v2-trade-panel-head {
    min-height: 48px;
    padding: 8px 12px;
}

.xm-v2-position-row,
.xm-empty-position,
.xm-history-empty {
    min-height: 88px;
}

.xm-empty-position,
.xm-history-empty {
    padding: 15px;
}


/* ---------------------------------------------------------
   TERMINAL FOOTER
--------------------------------------------------------- */

.xm-v2-terminal-footer {
    min-height: 39px;
    padding: 8px 12px;
}


/* =========================================================
   MEDIUM DESKTOP / LAPTOP
========================================================= */

@media (max-width: 1180px) {

    .xm-v2-workspace {
        grid-template-columns:
            165px
            minmax(450px, 1fr)
            205px;
    }

    .xm-v2-side-column {
        font-size: 85%;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {

    .xm-v2-workspace {
        grid-template-columns:
            175px
            minmax(0, 1fr);
    }

    .xm-v2-order-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        align-items: end;
    }

    .xm-v2-order-head {
        grid-column: 1 / -1;
    }

    .xm-v2-risk-grid {
        display: contents;
    }

    .xm-v2-order-price {
        margin: 9px;
    }

    .xm-v2-order-buttons {
        align-self: center;
    }

    .xm-v2-order-disclaimer {
        grid-column: 1 / -1;
        padding-bottom: 10px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .xm-v2-workspace {
        display: flex;
        flex-direction: column;
    }

    /* Chart first on mobile */
    .xm-v2-chart-column {
        order: 1;
    }

    .xm-v2-order-column {
        order: 2;
        display: block;
    }

    .xm-v2-side-column {
        order: 3;
    }

    .xm-v2-chart-frame,
    #trading-chart {
        height: 330px;
        min-height: 330px;
    }

    .xm-v2-market-tools,
    .xm-v2-trades-area {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   XMARKETS TERMINAL — WORKSPACE HEIGHT CORRECTION
   Fix oversized empty chart area
========================================================= */

/* Do not force the three columns to equal height */
.xm-v2-workspace {
    min-height: 0 !important;
    align-items: start !important;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        225px !important;
}


/* Intelligence column keeps its natural content height */
.xm-v2-side-column {
    align-self: start !important;
    height: auto !important;
}


/* Main chart column must stop after its actual content */
.xm-v2-chart-column {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
}


/* Order terminal also uses natural height */
.xm-v2-order-column {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
}


/* Give the chart a deliberate workstation proportion */
.xm-v2-chart-frame {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
}


/* Lightweight Charts container */
#trading-chart {
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
}


/* Prevent chart canvases from creating excess height */
#trading-chart > div {
    max-height: 360px !important;
}


/* Execution/status line directly follows chart */
.xm-v2-execution-message {
    min-height: 36px !important;
    height: auto !important;
    padding: 10px 13px !important;
}


/* ---------------------------------------------------------
   INTELLIGENCE COLUMN
   Make the three modules denser
--------------------------------------------------------- */

.xm-v2-tool-stack {
    padding: 8px !important;
}

.xm-v2-tool-stack > * {
    margin-bottom: 8px !important;
}


/* ---------------------------------------------------------
   LOWER MARKET TOOLS
--------------------------------------------------------- */

.xm-v2-market-tools {
    clear: both;
    position: relative;
    z-index: 3;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1181px) {

    .xm-v2-workspace {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            225px !important;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1180px) and (min-width: 961px) {

    .xm-v2-workspace {
        grid-template-columns:
            170px
            minmax(0, 1fr)
            210px !important;
    }

}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 960px) {

    .xm-v2-chart-frame,
    #trading-chart {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }

}
/* =========================================================
   XMARKETS GLOBAL INTELLIGENCE COMMAND CENTER
========================================================= */

.xm-command-center {

    position: relative;

    margin-top: 0;

    overflow: hidden;

    border-top:
        1px solid rgba(255,255,255,.08);

    border-bottom:
        1px solid rgba(255,255,255,.08);

    background:
        radial-gradient(
            circle at 65% 45%,
            rgba(220,38,38,.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #08090b,
            #040506
        );

}


/* GRID TEXTURE */

.xm-command-center::before {

    content:"";

    position:absolute;

    inset:0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.015) 1px,
            transparent 1px
        );

    background-size:
        35px 35px;

    pointer-events:none;

}


/* HEADER */

.xm-command-header {

    height:42px;

    padding:
        0 16px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-bottom:
        1px solid rgba(255,255,255,.06);

}


.xm-command-title {

    display:flex;

    align-items:center;

    gap:8px;

    color:#b8bcc4;

    font-size:8px;

    font-weight:800;

    letter-spacing:.18em;

}


.xm-live-dot {

    width:6px;

    height:6px;

    border-radius:50%;

    background:#ef4444;

    box-shadow:
        0 0 12px #ef4444;

    animation:
        xmCommandPulse 1.8s infinite;

}


.xm-command-status {

    color:#555b64;

    font-size:7px;

    letter-spacing:.15em;

}





/* MAIN */

.xm-command-main {

    position:relative;

    display:grid;

    grid-template-columns:

        260px

        minmax(350px,1fr)

        240px;


    gap:20px;


    padding:

        20px;

}





/* SECTION TITLES */

.xm-command-section-title {

    margin-bottom:12px;

    color:#6d737d;

    font-size:7px;

    font-weight:900;

    letter-spacing:.18em;

}





/* MARKET PULSE */

.xm-pulse-card {

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:

        12px;

    margin-bottom:8px;


    border:

        1px solid rgba(255,255,255,.07);


    border-radius:8px;


    background:

        rgba(255,255,255,.025);

}



.xm-pulse-card span {

    display:block;

    color:#737983;

    font-size:8px;

    letter-spacing:.1em;

}



.xm-pulse-card strong {

    display:block;

    margin-top:4px;

    color:#f3f4f6;

    font-size:14px;

}



.xm-pulse-card b {

    font-size:10px;

}


.green {

    color:#4ade80 !important;

}


.red {

    color:#ef4444 !important;

}





/* AI CONSOLE */

.xm-ai-console {


    margin-top:12px;

    padding:14px;


    border:

        1px solid rgba(239,68,68,.18);


    border-radius:8px;


    background:

        rgba(239,68,68,.035);


    font-size:9px;

    color:#8b919b;

}


.xm-ai-console small {

    color:#ef4444;

    font-weight:800;

    letter-spacing:.15em;

}



.xm-ai-console p {

    margin:

        9px 0 0;

}


.xm-ai-console strong {

    color:#e5e7eb;

}





/* WORLD MAP AREA */


.xm-command-map {

    position:relative;

    min-height:270px;

    display:flex;

    align-items:center;

    justify-content:center;

}



.xm-map-glow {

    position:absolute;

    width:250px;

    height:250px;

    border-radius:50%;


    background:

        radial-gradient(
            circle,
            rgba(239,68,68,.18),
            transparent 65%
        );


    filter:blur(15px);


    animation:

        xmMapBreath 4s infinite;

}




.xm-world-circle {

    position:relative;

    width:250px;

    height:180px;


    border-radius:50%;


    border:

        1px dashed rgba(239,68,68,.25);


    box-shadow:

        0 0 60px rgba(239,68,68,.12);

}




.xm-world-circle::before {

    content:"";

    position:absolute;

    inset:20px;


    border-radius:50%;


    border:

        1px solid rgba(239,68,68,.15);


}





.xm-node {

    position:absolute;


    padding:

        5px 8px;


    border-radius:5px;


    background:

        rgba(0,0,0,.65);


    border:

        1px solid rgba(239,68,68,.25);


    color:#ef4444;


    font-size:7px;

    font-weight:900;

    letter-spacing:.12em;


}


.london {

    top:35px;

    left:80px;

}


.newyork {

    top:65px;

    left:20px;

}


.tokyo {

    top:80px;

    right:25px;

}


.sydney {

    bottom:35px;

    right:70px;

}





.xm-map-center {


    position:absolute;


    top:50%;

    left:50%;


    transform:

        translate(-50%,-50%);



    width:45px;

    height:45px;


    display:grid;


    place-items:center;



    border-radius:50%;



    background:#ef3340;


    color:white;


    font-weight:900;



    box-shadow:

        0 0 30px rgba(239,51,64,.6);


}




.xm-command-message {


    position:absolute;


    right:10px;

    bottom:5px;



    text-align:right;


}



.xm-command-message small {

    color:#777;

    font-size:7px;

}



.xm-command-message h3 {


    margin:5px 0;


    color:#d4d7dc;


    font-size:15px;


    letter-spacing:.1em;


}



.xm-command-message span {

    display:block;

    color:#ef4444;

}





/* RIGHT SIGNALS */


.xm-signal-box {


    padding:

        12px;


    margin-bottom:8px;



    border:

        1px solid rgba(255,255,255,.07);



    border-radius:7px;


    background:

        rgba(255,255,255,.025);


}



.xm-signal-box span {

    display:block;

    color:#727984;

    font-size:8px;

}



.xm-signal-box strong {


    display:block;


    margin-top:5px;


    color:#f3f4f6;

    font-size:12px;


}



.xm-signal-terminal {


    margin-top:15px;


    padding:12px;


    border-left:

        2px solid #ef4444;


    color:#666c75;


    font-size:8px;


    line-height:1.8;


    background:

        rgba(239,68,68,.03);


}





/* FOOTER */


.xm-command-footer {


    height:38px;


    padding:

        0 16px;


    display:flex;


    justify-content:space-between;


    align-items:center;


    border-top:

        1px solid rgba(255,255,255,.06);


    color:#666;


    font-size:7px;


    letter-spacing:.12em;


}



.xm-command-footer span {


    display:inline-block;


    width:5px;

    height:5px;


    margin:

        0 8px;


    border-radius:50%;


    background:#4ade80;


}





/* ANIMATIONS */


@keyframes xmCommandPulse {

    0%,100% {

        opacity:.4;

        transform:scale(.8);

    }


    50% {

        opacity:1;

        transform:scale(1.3);

    }

}



@keyframes xmMapBreath {


    0%,100% {

        transform:scale(.9);

        opacity:.5;

    }


    50% {

        transform:scale(1.1);

        opacity:1;

    }

}




/* RESPONSIVE */


@media(max-width:1000px){

    .xm-command-main {

        grid-template-columns:1fr;

    }


}
/* =========================================================
   XMARKETS GLOBAL INTELLIGENCE COMMAND CENTER V2
========================================================= */


.xm-command-center {

    position: relative;

    overflow: hidden;

    border-top:
        1px solid rgba(255,255,255,.08);

    border-bottom:
        1px solid rgba(255,255,255,.08);

    background:

        radial-gradient(
            circle at 50% 50%,
            rgba(239,68,68,.12),
            transparent 35%
        ),

        linear-gradient(
            180deg,
            #090a0c,
            #050607
        );

}



.xm-command-center::before {

    content:"";

    position:absolute;

    inset:0;

    background-image:

        linear-gradient(
            rgba(255,255,255,.02) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.02) 1px,
            transparent 1px
        );


    background-size:
        30px 30px;

    opacity:.45;

}



/* HEADER */

.xm-command-header {

    height:42px;

    padding:
        0 16px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    border-bottom:
        1px solid rgba(255,255,255,.07);

}



.xm-command-title {

    display:flex;

    align-items:center;

    gap:8px;

    color:#c8ccd2;

    font-size:8px;

    font-weight:900;

    letter-spacing:.18em;

}



.xm-live-dot {

    width:6px;

    height:6px;

    border-radius:50%;

    background:#ef4444;

    box-shadow:
        0 0 15px #ef4444;

    animation:
        xmLivePulse 1.5s infinite;

}



.xm-command-status {

    color:#646b75;

    font-size:7px;

    letter-spacing:.14em;

}





/* MAIN GRID */

.xm-command-grid {


    position:relative;

    z-index:2;


    display:grid;


    grid-template-columns:

        240px

        minmax(350px,1fr)

        220px;


    gap:16px;


    padding:

        18px;

}



/* PANELS */


.xm-command-panel {


    border:

        1px solid rgba(255,255,255,.08);


    border-radius:10px;


    background:

        rgba(255,255,255,.025);


    padding:14px;


    backdrop-filter:
        blur(10px);

}



.xm-panel-label {


    margin-bottom:12px;


    color:#717883;


    font-size:7px;


    font-weight:900;


    letter-spacing:.18em;

}





/* MARKET CARDS */


.xm-market-card {


    display:flex;


    align-items:center;


    justify-content:space-between;


    padding:

        10px;


    margin-bottom:8px;


    border:

        1px solid rgba(255,255,255,.06);


    border-radius:7px;


    background:

        rgba(0,0,0,.25);

}



.xm-market-card small {


    display:block;


    color:#727985;


    font-size:7px;


    letter-spacing:.1em;


}



.xm-market-card strong {


    display:block;


    margin-top:4px;


    color:#f4f4f5;


    font-size:14px;

}



.xm-market-card span {


    font-size:9px;

    font-weight:800;

}



.xm-market-card .up,
.up {

    color:#4ade80;

}



.down {

    color:#ef4444;

}





/* AI BOX */


.xm-mini-ai {


    margin-top:12px;


    padding:12px;


    border-left:

        2px solid #ef4444;


    background:

        rgba(239,68,68,.04);


}



.xm-ai-title {


    color:#ef4444;


    font-size:8px;


    font-weight:900;


    letter-spacing:.14em;

}



.xm-mini-ai p {


    display:flex;


    justify-content:space-between;


    color:#777e88;


    font-size:8px;

}



.xm-mini-ai b {

    color:#e5e7eb;

}





/* GLOBAL MAP */


.xm-command-map {


    position:relative;


    min-height:260px;


    display:flex;


    justify-content:center;


    align-items:center;


}



.xm-map-background {


    position:absolute;


    width:280px;

    height:280px;


    border-radius:50%;


    background:

        radial-gradient(

            circle,

            rgba(239,68,68,.16),

            transparent 65%

        );


    filter:blur(20px);


    animation:

        xmMapGlow 4s infinite;

}




.xm-globe {


    position:relative;


    width:240px;

    height:170px;


    border-radius:50%;


    border:

        1px solid rgba(239,68,68,.25);


    box-shadow:

        0 0 60px rgba(239,68,68,.15);

}



.xm-network-ring {


    position:absolute;


    border-radius:50%;


    border:

        1px dashed rgba(239,68,68,.2);

}


.ring-one {

    width:300px;

    height:300px;

}



.ring-two {

    width:210px;

    height:210px;

}





.xm-globe-line {


    position:absolute;


    width:100%;

    height:1px;


    background:

        rgba(239,68,68,.25);

}



.line-one {

    top:50%;

}



.line-two {


    top:35%;

    transform:

        rotate(20deg);

}



.line-three {


    top:65%;

    transform:

        rotate(-20deg);

}





.xm-city {


    position:absolute;


    padding:

        5px 8px;


    border:

        1px solid rgba(239,68,68,.3);


    border-radius:5px;


    background:#08090b;


    color:#ef4444;


    font-size:7px;


    font-weight:900;


    letter-spacing:.1em;


    animation:

        xmNodeFloat 3s infinite;

}



.london {

    top:25px;

    left:80px;

}


.newyork {

    left:10px;

    top:75px;

}



.tokyo {

    right:15px;

    top:65px;

}



.dubai {

    bottom:45px;

    left:100px;

}



.sydney {

    right:35px;

    bottom:25px;

}





.xm-core-node {


    position:absolute;


    top:50%;

    left:50%;


    transform:

        translate(-50%,-50%);



    width:45px;

    height:45px;


    border-radius:50%;


    display:grid;


    place-items:center;


    background:#ef3340;


    color:white;


    font-weight:900;


    box-shadow:

        0 0 35px rgba(239,51,64,.7);

}





.xm-map-caption {


    position:absolute;


    right:0;

    bottom:0;


    text-align:right;


}



.xm-map-caption small {


    color:#727985;


    font-size:7px;

}



.xm-map-caption strong {


    display:block;


    margin-top:5px;


    color:#ddd;


    font-size:13px;

}



.xm-map-caption span {


    color:#ef4444;


    font-size:10px;


}





/* AI SIGNALS */


.xm-signal-item {


    padding:

        12px;


    margin-bottom:8px;


    border:

        1px solid rgba(255,255,255,.06);


    border-radius:7px;


}



.xm-signal-item span {


    display:block;


    color:#727985;


    font-size:7px;


}



.xm-signal-item strong {


    display:block;


    margin-top:5px;


    color:#e5e7eb;


    font-size:11px;


}



.xm-ai-terminal {


    margin-top:14px;


    padding:12px;


    border-left:

        2px solid #ef4444;


    color:#747b85;


    font-size:8px;


    line-height:1.8;


}





/* FOOTER */


.xm-command-footer {


    height:36px;


    padding:

        0 16px;


    display:flex;


    justify-content:space-between;


    align-items:center;


    border-top:

        1px solid rgba(255,255,255,.06);


    color:#666;


    font-size:7px;


    letter-spacing:.12em;


}



.xm-command-footer i {


    display:inline-block;


    width:5px;


    height:5px;


    margin-right:6px;


    border-radius:50%;


    background:#4ade80;


}





/* ANIMATIONS */


@keyframes xmLivePulse {

    50% {

        transform:scale(1.5);

        opacity:.5;

    }

}



@keyframes xmMapGlow {


    50% {

        transform:scale(1.1);

        opacity:.8;

    }

}



@keyframes xmNodeFloat {


    50% {

        transform:translateY(-4px);

    }

}




/* RESPONSIVE */

@media(max-width:1000px){

    .xm-command-grid {

        grid-template-columns:1fr;

    }

}