:root {
    --bg: #030711;
    --bg2: #06101f;
    --panel: rgba(8, 17, 34, .72);
    --panel2: rgba(11, 24, 47, .78);
    --line: rgba(94, 221, 255, .16);

    --cyan: #45efff;
    --blue: #3988ff;
    --violet: #925dff;
    --green: #38e8a4;
    --red: #ff567c;
    --orange: #ffb24f;

    --text: #f4fbff;
    --muted: #8b9daf;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    background:
        radial-gradient(
            circle at 78% 12%,
            rgba(47, 114, 255, .18),
            transparent 34%
        ),
        radial-gradient(
            circle at 17% 76%,
            rgba(139, 76, 255, .13),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #030711,
            #02050b
        );

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

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.matrix-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .14;
    z-index: 0;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;

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

    background-size: 54px 54px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.85),
            transparent 90%
        );
}

.orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-one {
    width: 420px;
    height: 420px;
    right: -130px;
    top: 6%;
    background: rgba(41, 149, 255, .20);
}

.orb-two {
    width: 350px;
    height: 350px;
    left: -100px;
    bottom: 3%;
    background: rgba(131, 73, 255, .15);
}

.page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 24px;
}

.topbar {
    width: min(1500px, 100%);
    margin: 0 auto;

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

    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 850;
    letter-spacing: .11em;
}

.brand-icon {
    width: 43px;
    height: 43px;

    position: relative;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--violet)
        );

    box-shadow:
        0 0 32px rgba(69,239,255,.24);
}

.brand-icon::after {
    content: "4X";

    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    font-size: 13px;
    font-weight: 950;
    color: #020611;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid var(--line);
    border-radius: 999px;

    padding: 8px 13px;

    background: rgba(4, 10, 22, .60);
    backdrop-filter: blur(18px);

    color: var(--muted);

    font-size: 11px;
    font-weight: 750;
    letter-spacing: .10em;
}

.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 14px var(--green);

    animation:
        livePulse 1.8s infinite;
}

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

    50% {
        opacity: .45;
        transform: scale(.68);
    }
}

.center-stage {
    width: min(1180px, 100%);

    min-height:
        calc(100vh - 80px);

    margin: 0 auto;

    display: grid;
    place-items: center;

    perspective: 1200px;
}

.glass {
    position: relative;

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

    background:
        linear-gradient(
            145deg,
            rgba(16, 31, 57, .81),
            rgba(4, 10, 23, .79)
        );

    backdrop-filter:
        blur(26px);

    box-shadow:
        0 34px 90px rgba(0,0,0,.46),
        inset 0 1px 0 rgba(255,255,255,.06),
        0 0 60px rgba(52, 163, 255, .05);
}

.tilt-card {
    transform-style: preserve-3d;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.access-card {
    width: min(620px, 96vw);

    padding: 44px;

    border-radius: 30px;
}

.access-card::before {
    content: "";

    position: absolute;
    inset: -1px;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(73,239,255,.58),
            transparent 36%,
            rgba(147,93,255,.42)
        );

    -webkit-mask:
        linear-gradient(#000 0 0)
        content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--cyan);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .22em;

    text-transform: uppercase;
}

.hero-title {
    margin: 18px 0 14px;

    font-size:
        clamp(45px, 7vw, 82px);

    line-height: .92;

    letter-spacing: -.055em;
}

.gradient-text {
    background:
        linear-gradient(
            90deg,
            #fff 0%,
            var(--cyan) 52%,
            #a57aff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.subtitle {
    max-width: 560px;

    color: var(--muted);

    line-height: 1.7;
}

.divider {
    height: 1px;

    margin: 30px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(70, 234, 255, .28),
            transparent
        );
}

.form-label {
    display: block;

    margin-bottom: 10px;

    color: #cfe4f3;

    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;

    text-transform: uppercase;
}

.input {
    width: 100%;

    padding: 17px 18px;

    outline: none;

    border:
        1px solid rgba(91,220,255,.17);

    border-radius: 15px;

    background:
        rgba(2, 8, 18, .76);

    color: #fff;

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

.input:focus {
    border-color:
        rgba(69,239,255,.62);

    box-shadow:
        0 0 0 3px rgba(69,239,255,.07),
        0 0 35px rgba(69,239,255,.08);
}

.field-space {
    height: 18px;
}

.primary-button {
    width: 100%;

    margin-top: 16px;

    padding: 16px 20px;

    border: 0;
    border-radius: 15px;

    color: #020916;

    font-weight: 900;
    letter-spacing: .08em;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            #64a0ff,
            #9c67ff
        );

    box-shadow:
        0 14px 38px
        rgba(69, 195, 255, .20);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 20px 48px
        rgba(69, 195, 255, .30);
}

.secondary-button {
    padding: 10px 16px;

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

    border-radius: 12px;

    color: #d9edf8;

    background:
        rgba(5, 12, 24, .68);
}

.security-row {
    margin-top: 23px;

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

    gap: 14px;

    color: var(--muted);

    font-size: 11px;
}

.error-box {
    display: none;

    margin-bottom: 18px;

    padding: 12px 14px;

    border:
        1px solid
        rgba(255, 84, 120, .26);

    border-radius: 12px;

    background:
        rgba(255, 70, 110, .09);

    color: #ff9eb7;
}

.login-grid {
    width: min(1180px, 100%);

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 64px;

    align-items: center;
}

.holo-panel {
    min-height: 470px;

    overflow: hidden;

    padding: 28px;

    border-radius: 30px;
}

.holo-grid {
    position: absolute;

    left: -10%;
    right: -10%;
    bottom: -105px;

    height: 330px;

    opacity: .30;

    background:
        linear-gradient(
            rgba(68,234,255,.17) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(68,234,255,.17) 1px,
            transparent 1px
        );

    background-size:
        37px 37px;

    transform:
        perspective(700px)
        rotateX(60deg);
}

.market-wave {
    position: absolute;

    left: 8%;
    right: 7%;

    top: 59%;

    height: 110px;

    border-top:
        3px solid var(--cyan);

    border-radius: 50%;

    transform:
        rotate(-6deg)
        skewX(-14deg);

    filter:
        drop-shadow(
            0 0 10px var(--cyan)
        );
}

.market-wave.two {
    top: 69%;

    border-color:
        var(--violet);

    opacity: .55;

    transform:
        rotate(7deg)
        skewX(15deg);
}

.dashboard-wrap {
    width: min(1500px, 100%);

    margin: 28px auto 0;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 28px;

    color: var(--muted);

    font-size: 12px;
}

.dashboard-nav .active {
    color: var(--cyan);

    text-shadow:
        0 0 14px
        rgba(69,239,255,.45);
}

.dashboard-header {
    margin:
        40px 0 25px;
}

.dashboard-title {
    margin: 10px 0 8px;

    font-size:
        clamp(38px, 5vw, 68px);

    letter-spacing:
        -.045em;

    line-height: 1;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        1.08fr 1.35fr .90fr;

    gap: 15px;
}

.panel {
    min-height: 210px;

    padding: 18px;

    border-radius: 19px;
}

.panel h3 {
    margin: 0;

    font-size: 13px;
    letter-spacing: .10em;

    text-transform: uppercase;
}

.panel-sub {
    margin: 6px 0 16px;

    color: var(--muted);

    font-size: 11px;
}

.chart-panel {
    grid-column: span 2;

    min-height: 430px;
}

.chart-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.chart-price {
    font-size: 25px;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.green {
    color: var(--green);
}

.red {
    color: var(--red);
}

.chart-screen {
    position: relative;

    height: 300px;

    margin-top: 18px;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            rgba(67,225,255,.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(67,225,255,.055) 1px,
            transparent 1px
        );

    background-size:
        43px 43px;
}

.fake-wave {
    position: absolute;

    left: 5%;
    right: 5%;

    top: 54%;

    height: 110px;

    border-top:
        3px solid var(--cyan);

    border-radius: 45%;

    transform:
        rotate(-7deg)
        skewX(-13deg);

    filter:
        drop-shadow(
            0 0 9px
            rgba(69,239,255,.8)
        );
}

.fake-wave.b {
    top: 68%;

    border-color:
        var(--violet);

    opacity: .40;

    transform:
        rotate(7deg)
        skewX(18deg);
}

.metric {
    display: flex;

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

    gap: 16px;

    padding: 13px 0;

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

.metric:last-child {
    border-bottom: 0;
}

.metric span {
    color: var(--muted);

    font-size: 12px;
}

.metric strong {
    font-size: 12px;
}

.signal-list {
    display: grid;
    gap: 9px;
}

.signal-row {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 10px;

    padding: 12px;

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

    border-radius: 12px;

    background:
        rgba(3,9,19,.48);
}

.signal-name {
    font-weight: 750;

    font-size: 12px;
}

.signal-state {
    font-size: 10px;

    padding:
        5px 8px;

    border-radius: 999px;

    border:
        1px solid
        rgba(69,239,255,.20);

    color: var(--cyan);
}

.feature-strip {
    grid-column: 1 / -1;

    display: grid;

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

    gap: 15px;
}

.feature-card {
    min-height: 120px;

    padding: 18px;

    border-radius: 18px;
}

.feature-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 10px;

    background:
        rgba(69,239,255,.09);

    border:
        1px solid
        rgba(69,239,255,.14);

    color: var(--cyan);
}

.logout-form {
    margin: 0;
}

.footnote {
    width: min(1500px,100%);

    margin: 18px auto 0;

    padding-bottom: 18px;

    color: #627487;

    font-size: 10px;

    text-align: center;
}

@media (max-width: 1000px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-panel {
        grid-column: 1 / -1;
    }

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

    .dashboard-nav {
        display: none;
    }
}

@media (max-width: 650px) {
    .page {
        padding: 16px;
    }

    .topbar {
        gap: 10px;
    }

    .status-pill {
        font-size: 9px;
    }

    .access-card {
        padding: 29px 21px;
    }

    .security-row {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart-panel {
        grid-column: auto;
    }

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

    .hero-title {
        font-size: 48px;
    }

    .dashboard-title {
        font-size: 40px;
    }
}

@media (
    prefers-reduced-motion:
    reduce
) {
    * {
        animation:
            none !important;

        transition:
            none !important;
    }
}
