:root {
    --nx-bg: #071321;
    --nx-accent: #25d6c4;
    --nx-accent-2: #079765;
    --nx-green: #12cb91;
    --nx-text: #e7f2f7;
    --nx-muted: #91a8ba;
    --nx-danger: #ff5d6c;
    --nx-card-border: rgba(130, 170, 185, .22);
    --nx-field-focus: #3ff0dc;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--nx-text);
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--nx-bg) !important;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(12, 103, 113, .22), transparent 45%),
        linear-gradient(180deg, #081725 0%, #071321 55%, #09172a 100%) !important;
}

/* ================= DOME HEADER ================= */
.scr-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.scr-dome {
    position: absolute;
    left: 50%;
    top: -320px;
    width: max(130%, 560px);
    height: 480px;
    transform: translateX(-50%);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(40, 230, 205, .55);
    background:
        radial-gradient(ellipse at 50% 100%, rgba(20, 200, 175, .30), rgba(10, 80, 90, .18) 45%, rgba(8, 24, 36, .6) 75%),
        #0a1d2b;
    box-shadow: 0 6px 40px rgba(30, 230, 200, .25), inset 0 -10px 40px rgba(30, 230, 200, .12);
}

/* moving grid */
.scr-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(60, 230, 210, .11) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(60, 230, 210, .11) 1px, transparent 1px) 0 0 / 30px 30px;
    -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
    animation: scrGrid 8s linear infinite;
}

/* moving glow sweep */
.scr-glow {
    position: absolute;
    inset: 0;
    opacity: .6;
    background: linear-gradient(120deg, transparent 20%, rgba(65, 231, 227, .20) 42%, rgba(65, 231, 227, .10) 56%, transparent 76%);
    animation: scrGlow 5s ease-in-out infinite;
}

/* scrolling market labels */
.scr-rain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 175px;
    overflow: hidden;
}

.scr-rain span {
    position: absolute;
    top: 0;
    white-space: nowrap;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    color: rgba(120, 236, 232, .42);
    animation: scrRain 6s linear infinite;
}

.scr-rain span:nth-child(1) {
    left: 20%;
    animation-duration: 6s;
    animation-delay: -2s;
}

.scr-rain span:nth-child(2) {
    left: 28%;
    animation-duration: 7s;
    animation-delay: -5s;
}

.scr-rain span:nth-child(3) {
    left: 36%;
    animation-duration: 5s;
    animation-delay: -1s;
}

.scr-rain span:nth-child(4) {
    left: 44%;
    animation-duration: 8s;
    animation-delay: -6s;
}

.scr-rain span:nth-child(5) {
    left: 52%;
    animation-duration: 6.5s;
    animation-delay: -3s;
}

.scr-rain span:nth-child(6) {
    left: 60%;
    animation-duration: 7.5s;
    animation-delay: -4s;
}

.scr-rain span:nth-child(7) {
    left: 68%;
    animation-duration: 5.8s;
    animation-delay: -5s;
}

.scr-rain span:nth-child(8) {
    left: 76%;
    animation-duration: 8.5s;
    animation-delay: -2s;
}

.scr-rain span:nth-child(9) {
    left: 32%;
    animation-duration: 6.2s;
    animation-delay: -4s;
}

.scr-rain span:nth-child(10) {
    left: 72%;
    animation-duration: 7.8s;
    animation-delay: -1s;
}

/* animated chart line */
.scr-line {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 34px;
    height: 90px;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(120, 245, 235, .6));
}

.scr-line path {
    fill: none;
    stroke: #a3f4ed;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: scrDraw 5s ease-in-out infinite;
}

/* sliding candles */
.scr-candles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 122px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.scr-track {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    width: max-content;
    animation: scrSlide 30s linear infinite;
    will-change: transform;
}

.scr-candle {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    margin-right: 22px;
    height: var(--h);
}

.scr-candle::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(#5dfbe3, #14b8a0);
    box-shadow: 0 0 8px rgba(60, 255, 220, .7);
}

.scr-candle::after {
    content: "";
    position: absolute;
    left: 0;
    width: 12px;
    top: var(--o);
    height: var(--b);
    border-radius: 3px;
    background: linear-gradient(180deg, #7bffe9, #14c9ad);
    box-shadow: 0 0 14px rgba(60, 255, 220, .65);
}

.scr-candle.dn::before {
    background: linear-gradient(#f48378, #d44b56);
    box-shadow: 0 0 8px rgba(244, 100, 100, .6);
}

.scr-candle.dn::after {
    background: linear-gradient(180deg, #f48378, #d44b56);
    box-shadow: 0 0 12px rgba(244, 100, 100, .5);
}

@keyframes scrGrid {
    to {
        background-position: 0 30px, 30px 0;
    }
}

@keyframes scrGlow {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(120%);
    }
}

@keyframes scrRain {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    12% {
        opacity: .5;
    }

    100% {
        transform: translateY(175px);
        opacity: 0;
    }
}

@keyframes scrDraw {
    0% {
        stroke-dashoffset: 1;
        opacity: .2;
    }

    40% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: .2;
    }
}

/* left to right. To flip direction, swap the two values. */
@keyframes scrSlide {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ================= LAYOUT ================= */
.page-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 28px;
}

.login-container {
    width: 100%;
    max-width: 404px;
    margin-top: 148px;
    padding: 0;
}

.login-box {
    position: relative;
    width: 392px;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 30px 22px 22px;
    background: linear-gradient(160deg, rgba(20, 42, 56, .78), rgba(12, 28, 40, .82));
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.login-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 22px;
}

.login-brand .login-logo {
    height: 50px;
    object-fit: contain;
    margin: 0;
}

.login-brand-name {
    color: #f3f5f7;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.login-brand-name span {
    color: #29c5ec;
}

.login-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1bc98a;
}

.login-subtitle {
    display: none;
}

/* ================= INPUTS ================= */
.login-input-wrapper {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    background: rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .70);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(30, 215, 200, .08), 0 0 14px rgba(30, 215, 200, .10);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.login-input-wrapper:focus-within {
    background: rgba(10, 44, 54, .7);
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(40, 235, 215, .16), 0 0 18px rgba(30, 215, 200, .25);
}

.login-input-wrapper>i {
    color: var(--nx-accent);
    font-size: .95rem;
    width: 18px;
    text-align: center;
}

.login-input-wrapper .text-grey {
    color: var(--nx-accent) !important;
}

.login-input-wrapper>i.ms-auto {
    color: #7f98a5 !important;
    cursor: pointer;
}

.login-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--nx-text);
    font: inherit;
    font-size: .92rem;
}

.login-input::placeholder {
    color: #8aa3b0;
    opacity: 1;
}

.login-input:disabled {
    opacity: .85;
    color: var(--nx-text);
    -webkit-text-fill-color: var(--nx-text);
}

.select-wrapper select.login-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper select.login-input option {
    background: #101d34;
    color: var(--nx-text);
}

.select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--nx-muted);
    pointer-events: none;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #0c2a36 inset !important;
    -webkit-text-fill-color: var(--nx-text) !important;
}

/* ================= TERMS ================= */
.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    color: var(--nx-muted);
    text-align: left;
}

.terms-checkbox-wrapper input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid rgba(130, 170, 185, .45);
    border-radius: 4px;
    background: rgba(10, 38, 48, .55);
    cursor: pointer;
    display: grid;
    place-content: center;
}

.terms-checkbox-wrapper input:checked {
    background: var(--nx-accent-2);
    border-color: var(--nx-accent-2);
}

.terms-checkbox-wrapper input:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .6rem;
    color: #fff;
}

.terms-checkbox-wrapper a,
.primary-blue {
    color: var(--nx-accent);
    text-decoration: none;
}

.terms-checkbox-wrapper a:hover,
.primary-blue:hover {
    text-decoration: underline;
}

/* ================= BUTTONS ================= */
.signin-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    box-shadow: 0 8px 20px rgba(10, 138, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
    cursor: pointer;
    transition: filter .15s, transform .05s;
}

.signin-btn:hover {
    filter: brightness(1.08);
}

.signin-btn:active {
    transform: translateY(1px);
}

.btn.btn-sm.signin-btn {
    width: auto;
    height: 34px;
    padding: 0 14px;
    font-size: .8rem;
    border-radius: 8px;
}

.account-switch-text {
    text-align: center;
    color: var(--nx-muted);
    font-size: .84rem;
}

/* ================= FOOTER ================= */
.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 5px 12px;
    font-size: .72rem;
    color: #a9bcc7;
    background: rgba(20, 36, 48, .8);
    border: 1px solid var(--nx-card-border);
    border-radius: 999px;
}

.copy {
    margin-top: 8px;
    font-size: .72rem;
    color: #5f7684;
    text-align: center;
}

/* ================= ALERT ================= */
.custom-alert {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: calc(100vw - 32px);
    padding: 12px 14px;
    border-radius: 8px;
    background: #101d34;
    border: 1px solid var(--nx-card-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    font-size: .9rem;
}

.custom-alert.d-none {
    display: none !important;
}

.custom-alert.alert-error {
    border-color: rgba(255, 93, 108, .55);
}

.custom-alert.alert-error .alert-icon {
    color: var(--nx-danger);
}

.custom-alert.alert-success {
    border-color: rgba(28, 200, 138, .55);
}

.custom-alert.alert-success .alert-icon {
    color: var(--nx-green);
}

.custom-alert .alert-text {
    flex: 1;
}

.custom-alert .alert-close {
    cursor: pointer;
    color: var(--nx-muted);
}

@media (max-width: 420px) {
    .login-box {
        padding: 26px 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    .scr-grid,
    .scr-glow,
    .scr-rain span,
    .scr-track {
        animation: none !important;
    }

    .scr-line path {
        animation: none !important;
        stroke-dashoffset: 0;
    }
}

/* ===== Success page additions: append to common style.css ===== */

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    box-shadow: 0 0 0 8px rgba(20, 194, 122, .12), 0 0 30px rgba(20, 194, 122, .45);
    animation: successPop .5s ease-out both;
}

@keyframes successPop {
    from {
        transform: scale(.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-sub {
    margin: 6px 0 0;
    font-size: .9rem;
    color: var(--nx-muted);
}

.success-sub strong {
    color: var(--nx-accent);
    font-weight: 600;
}

.info-list {
    margin: 22px 0 6px;
    text-align: left;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .35);
    border-radius: 8px;
}

.info-row>i {
    color: var(--nx-accent);
    width: 18px;
    text-align: center;
}

.info-row .lbl {
    font-size: .68rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nx-muted);
}

.info-row .val {
    margin-top: 4px;
    font-size: .92rem;
    color: var(--nx-text);
    word-break: break-all;
}

.signin-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.signin-btn-link:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .success-icon {
        animation: none;
    }
}

/* ===== Login page additions: append to common style.css ===== */

.top-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.home-link {
    color: var(--nx-accent);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.forgot-row a {
    color: var(--nx-green);
    font-size: .84rem;
    text-decoration: none;
}

.forgot-row a:hover {
    text-decoration: underline;
}


/* ===== Dashboard styles. Uses --nx-* vars from common style.css ===== */

.dsh {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 14px 104px;
    position: relative;
    z-index: 1;
}

/* ---------- top bar ---------- */
.dsh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 12px;
}

.dsh-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsh-brand img {
    height: 50px;
    object-fit: contain;
}

.dsh-brand span {
    color: #f3f5f7;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.dsh-brand em {
    font-style: normal;
    color: #29c5ec;
}

.dsh-icons {
    display: flex;
    gap: 10px;
}

.dsh-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--nx-text);
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
    text-decoration: none;
}

.dsh-icon .dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-danger);
}

/* ---------- ticker ---------- */
.dsh-tape {
    margin: 0 -14px 14px;
    height: 38px;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(4, 12, 22, .7);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.dsh-track {
    display: inline-flex;
    animation: dshTape 40s linear infinite;
    will-change: transform;
}

.dsh-tick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    font-size: .8rem;
    color: var(--nx-text);
    font-variant-numeric: tabular-nums;
}

.dsh-tick b {
    font-weight: 700;
}

.dsh .up {
    color: #0ecb81;
}

.dsh .dn {
    color: #f6465d;
}

@keyframes dshTape {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- generic card ---------- */
.dsh-card {
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

/* ---------- balance ---------- */
.dsh-balance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-color: rgba(30, 215, 200, .5);
    box-shadow: 0 0 22px rgba(30, 215, 200, .12);
}

.dsh-bal-left .lbl {
    font-size: .95rem;
    color: var(--nx-text);
    margin-bottom: 26px;
}

.dsh-bal-left .amt {
    font-size: 1.35rem;
    font-weight: 700;
}

.dsh-balance .sub {
    font-size: .72rem;
    color: var(--nx-muted);
}

.dsh-bal-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dsh-btn-green {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    box-shadow: 0 6px 16px rgba(10, 138, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.dsh-btn-green:hover {
    color: #fff;
    filter: brightness(1.08);
}

.dsh-bal-right .income-lbl {
    font-size: .85rem;
    color: var(--nx-muted);
}

.dsh-bal-right .income-lbl i {
    margin-left: 6px;
    color: var(--nx-text);
    cursor: pointer;
}

.dsh-bal-right .income-amt {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 4px;
}

.hide-amt .amt,
.hide-amt .income-amt,
.hide-amt .sub {
    filter: blur(7px);
    user-select: none;
}

/* ---------- daily trade ---------- */
.dsh-trade {
    text-align: center;
    padding: 16px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(130, 170, 185, .25);
    background: linear-gradient(100deg, #1b3a5c 0%, #3b4a62 55%, #c9722a 100%);
}

.dsh-trade .t-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dsh-trade .t-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #19c98a;
    font-size: .75rem;
}

.dsh-trade .t-sub {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    margin-top: 4px;
}

.dsh-trade #tradeBtn {
    display: inline-flex;
    min-width: 150px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 18px;
    color: #04221d;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5af0d2, #20c997);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(4, 25, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dsh-trade #tradeBtn::before {
    content: "\f201";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.dsh-trade #tradeBtn:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(4, 25, 30, .34), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.dsh-trade #tradeBtn:focus-visible,
.trade-result-modal .trade-result-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.dsh-trade #tradeBtn:disabled {
    color: rgba(231, 242, 247, .8);
    background: rgba(7, 19, 33, .38);
    border-color: rgba(231, 242, 247, .18);
    box-shadow: none;
    cursor: not-allowed;
}

.dsh-trade #tradeBtn:disabled::before {
    content: "\f00c";
}

.trade-result-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 8, 16, .76);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(6px);
    transition: opacity .2s ease, visibility .2s ease;
}

.trade-result-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.trade-result-modal {
    width: min(100%, 380px);
    padding: 24px 20px 20px;
    color: var(--nx-text);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37, 214, 196, .14), transparent 55%),
        linear-gradient(160deg, #12243a, #081525);
    border: 1px solid rgba(37, 214, 196, .28);
    border-radius: 18px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .48);
    transform: translateY(10px) scale(.98);
    transition: transform .2s ease;
}

.trade-result-overlay.is-visible .trade-result-modal {
    transform: translateY(0) scale(1);
}

.trade-result-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 13px;
    place-items: center;
    color: var(--nx-green);
    font-size: 1.25rem;
    background: rgba(18, 203, 145, .12);
    border: 1px solid rgba(18, 203, 145, .3);
    border-radius: 50%;
}

.trade-result-icon.error {
    color: var(--nx-danger);
    background: rgba(255, 93, 108, .1);
    border-color: rgba(255, 93, 108, .28);
}

.trade-result-icon.info {
    color: var(--nx-accent);
    background: rgba(37, 214, 196, .1);
    border-color: rgba(37, 214, 196, .28);
}

.trade-result-modal h2 {
    margin: 0 0 7px;
    color: var(--nx-text);
    font-size: 1.12rem;
    font-weight: 700;
}

.trade-result-modal > p {
    margin: 0;
    color: var(--nx-muted);
    font-size: .84rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.trade-result-details:not([hidden]) {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 13px;
    text-align: left;
    background: rgba(7, 19, 33, .65);
    border: 1px solid var(--nx-card-border);
    border-radius: 11px;
}

.trade-result-details > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--nx-muted);
    font-size: .78rem;
}

.trade-result-details strong {
    color: var(--nx-accent);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.trade-result-modal .trade-result-close {
    width: 100%;
    min-height: 44px;
    margin-top: 17px;
    color: #04221d;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5af0d2, #20c997);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    cursor: pointer;
    transition: filter .18s ease;
}

.trade-result-modal .trade-result-close:hover {
    filter: brightness(1.08);
}

/* ---------- quick actions ---------- */
.dsh-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.dsh-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 70px;
    color: var(--nx-text);
    font-size: .78rem;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(18, 44, 56, .9), rgba(12, 30, 44, .9));
    border: 1px solid rgba(30, 215, 200, .3);
    border-radius: 10px;
    transition: border-color .15s, transform .05s;
}

.dsh-actions a:hover {
    border-color: var(--nx-field-focus);
}

.dsh-actions a:active {
    transform: translateY(1px);
}

.dsh-actions a i {
    font-size: 1.1rem;
    color: #19e0a0;
}

/* ---------- banner ---------- */
.dsh-banner {
    position: relative;
    height: 112px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(130, 170, 185, .22);
}

.dsh-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dsh-banner-track::-webkit-scrollbar {
    display: none;
}

.dsh-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.dsh-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsh-banner .b-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: .7rem;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
}

.dsh-banner .b-arrow.l {
    left: 10px;
}

.dsh-banner .b-arrow.r {
    right: 10px;
}

/* ---------- pills ---------- */
.dsh-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.dsh-pills .pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: .85rem;
    color: var(--nx-text);
    text-decoration: none;
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 999px;
}

.dsh-pills .pill.active {
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border-color: transparent;
    color: #fff;
}

.dsh-pills .pill.gear {
    width: 40px;
    justify-content: center;
    padding: 8px 0;
}

/* ---------- coin cards ---------- */
.dsh-coins {
    display: flex;
    gap: 12px;
    margin: 0 -14px 14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.dsh-coins::-webkit-scrollbar {
    display: none;
}

.dsh-coin {
    flex: 0 0 82%;
    max-width: 260px;
    scroll-snap-align: start;
    padding: 14px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
}

.dsh-coin .c-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsh-coin .c-ico {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
}

.dsh-coin .c-sym {
    font-size: .78rem;
    color: var(--nx-muted);
}

.dsh-coin .c-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.dsh-coin .c-chg {
    margin-left: auto;
    align-self: flex-start;
    padding: 2px 7px;
    font-size: .68rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
}

.dsh-coin .c-spark {
    width: 100%;
    height: 64px;
    margin-top: 10px;
    overflow: visible;
}

.dsh-coin .c-spark path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.dsh-coin .c-spark path.up {
    stroke: #19c98a;
}

.dsh-coin .c-spark path.dn {
    stroke: #f6465d;
}

/* ---------- quick trade ---------- */
.dsh-quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-color: rgba(30, 215, 200, .4);
}

.dsh-quick .pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 1rem;
    background: rgba(10, 38, 48, .6);
    border: 1px solid var(--nx-card-border);
    border-radius: 8px;
}

.dsh-quick .pair i {
    color: #7ed957;
    font-size: .8rem;
}

.dsh-quick .buy {
    color: #19c98a;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
}

/* ---------- live chart ---------- */
.dsh-chart {
    padding: 12px 12px 8px;
}

.dsh-chart .ch-title {
    font-size: .9rem;
    margin-bottom: 8px;
}

.dsh-chart canvas {
    display: block;
    width: 100%;
    height: 110px;
}

/* ---------- earners ---------- */
.dsh-earners h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 4px 0 14px 8px;
}

.dsh-earners .earners-demo-note {
    margin: -8px 8px 8px;
    color: var(--nx-muted);
    font-size: .68rem;
}

.e-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
}

.e-rank {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    color: #1a1a1a;
    background: transparent;
}

.e-rank.r1 {
    background: #f5c542;
    box-shadow: 0 0 10px rgba(245, 197, 66, .5);
}

.e-rank.r2 {
    background: #c7d0d8;
}

.e-rank.r3 {
    background: #cd8a5a;
}

.e-rank.r4,.e-rank.r5,.e-rank.r6,.e-rank.r7,.e-rank.r8,.e-rank.r9,.e-rank.r10 {
    background: #19c98a;
}

.e-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #dfe9ef;
    background: #1a2740;
    border: 1px solid var(--nx-card-border);
    border-radius: 50%;
}

.e-name {
    flex: 1;
    font-size: 1rem;
}

.e-stats {
    text-align: right;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--nx-text);
}

.e-stats b {
    color: #19c98a;
    font-weight: 600;
}

/* ---------- footer ---------- */
.dsh-copy {
    text-align: center;
    font-size: .75rem;
    color: var(--nx-muted);
    padding: 10px 0 6px;
}

/* ---------- bottom nav ---------- */
.dsh-bottom {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 22, 40, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--nx-card-border);
    border-radius: 16px 16px 0 0;
}

.dsh-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    font-size: .68rem;
    color: var(--nx-muted);
    text-decoration: none;
    border-radius: 10px;
}

.dsh-bottom a i {
    font-size: 1.15rem;
}

.dsh-bottom a.active {
    color: #19e0a0;
    background: rgba(25, 224, 160, .10);
    box-shadow: inset 0 -2px 0 #19e0a0;
}

@media (prefers-reduced-motion: reduce) {
    .dsh-track {
        animation: none;
    }
}

/* ===== Assets / My Profile add-on. Append to your existing CSS. =====
   Reuses: .dsh-card, --nx-* vars. */

/* ---------- green sub header ---------- */
.ast-sub {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 -14px 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #19c98a, #12b57a);
    color: #fff;
}

.ast-sub a {
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
}

.ast-sub .ast-back i,
.ast-sub .ast-dep i {
    margin-right: 6px;
}

.ast-sub .ast-dep {
    justify-self: end;
}

.ast-sub .ast-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- tabs ---------- */
.ast-tabs {
    display: flex;
    gap: 18px;
    padding: 14px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ast-tabs::-webkit-scrollbar {
    display: none;
}

.ast-tabs a {
    position: relative;
    padding-bottom: 6px;
    white-space: nowrap;
    font-size: .9rem;
    color: var(--nx-text);
    text-decoration: none;
}

.ast-tabs a.active {
    color: #19d8c0;
}

.ast-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #19e0a0;
}

/* ---------- profile card ---------- */
.ast-profile {
    padding: 18px 16px 16px;
    border-color: rgba(30, 215, 200, .55);
    box-shadow: 0 0 24px rgba(30, 215, 200, .14), inset 0 0 40px rgba(25, 201, 138, .05);
}

.ast-id {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ast-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 1.5rem;
    color: #dfe9ef;
    background: #1a2740;
    border: 2px solid #19e0a0;
    border-radius: 50%;
}

.ast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ast-edit {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    font-size: .8rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border-radius: 10px;
}

.ast-name .n {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.ast-lv {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border-radius: 999px;
}

.ast-lv i {
    color: #f5c542;
}

.ast-uid {
    margin-left: auto;
    text-align: right;
}

.ast-uid span {
    display: block;
    font-size: .78rem;
    color: var(--nx-muted);
}

.ast-uid b {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* mobile row */
.ast-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    margin-bottom: 8px;
    font-size: .95rem;
    background: linear-gradient(90deg, rgba(60, 80, 100, .45), rgba(40, 60, 80, .35));
    border: 1px solid rgba(130, 170, 185, .22);
    border-radius: 8px;
}

.ast-mobile>i:first-child {
    color: var(--nx-muted);
}

.ast-mobile .l {
    color: var(--nx-muted);
}

.ast-mobile .v {
    margin-left: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ast-mobile #astEye {
    margin-left: 8px;
    color: var(--nx-muted);
    cursor: pointer;
}

/* info rows */
.ast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ast-row .l {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: #c9d6de;
}

.ast-row .l i {
    width: 18px;
    text-align: center;
    color: var(--nx-muted);
}

.ast-row .v {
    font-size: .95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ast-row .green {
    color: #19c98a;
}

.ast-row .cyan {
    color: #2fd0d8;
}

.ast-row .red {
    color: #f6465d;
}

.ast-dot {
    font-size: .5rem;
    margin-right: 6px;
    vertical-align: middle;
}

/* buttons */
.ast-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
}

.ast-btn-dep {
    color: #fff;
    background: linear-gradient(180deg, #1fd28b, #12b57a);
    box-shadow: 0 8px 22px rgba(18, 181, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.ast-btn-dep:hover {
    color: #fff;
    filter: brightness(1.07);
}

.ast-btn-wd {
    color: #fff;
    margin-top: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .35);
}

.ast-btn-wd:hover {
    color: #fff;
    border-color: #fff;
}

/* ---------- stat grid ---------- */
.ast-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.ast-stat {
    padding: 16px 10px 14px;
    text-align: center;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border: 1px solid rgba(40, 150, 230, .55);
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(40, 150, 230, .18), inset 0 0 18px rgba(40, 150, 230, .06);
}

.ast-stat .val {
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ast-stat .val.money {
    color: #19c98a;
}

.ast-stat .val.num {
    color: #2fd0d8;
}

.ast-stat .lbl {
    margin-top: 4px;
    font-size: .82rem;
    color: #c9d6de;
}

.ast-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(130, 170, 185, .22);
    border-color: rgba(30, 215, 200, .55);
    box-shadow: 0 0 24px rgba(30, 215, 200, .14), inset 0 0 40px rgba(25, 201, 138, .05);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border-radius: 12px;
}

.ast-shortcut {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    color: #e7f2f7;
    text-align: center;
    text-decoration: none;
    background: rgba(8, 14, 27, .8);
    border: 1px solid rgba(130, 170, 185, .22);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border-radius: 10px;
}

.ast-shortcut i {
    color: #19c98a;
    font-size: 1.1rem;
}

.ast-shortcut span {
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.15;
}

.ast-shortcut:hover {
    color: #fff;
    border-color: #19c98a;
}

.ast-shortcut.logout {
    color: #f6465d;
    border-color: #f6465d;
}

.ast-shortcut.logout i {
    color: #f6465d;
}

/* ===== Activation page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, .dsh-balance, .login-input-wrapper, .login-input,
          .ast-sub (from assets-additions.css), --nx-* vars. */

/* balances */
.act-bal .lbl {
    font-size: .85rem;
    color: var(--nx-muted);
    margin: 0 0 6px;
}

.act-bal .amt {
    font-size: 1.3rem;
    font-weight: 700;
}

.act-bal .amt.green {
    color: #19c98a;
}

.act-bal .amt.cyan {
    color: #2fd0d8;
}

.act-bal .r {
    text-align: right;
}

/* amount card */
.act-label {
    display: block;
    margin-bottom: 10px;
    font-size: .95rem;
    color: #c9d6de;
}

.act-input {
    min-height: 58px;
    padding: 0 14px;
}

.act-input .login-input {
    font-size: 1.5rem;
    font-weight: 700;
    height: 56px;
    padding: 0 10px;
}

.act-input .pre {
    font-size: 1.4rem;
    font-weight: 700;
    color: #19e0a0;
}

.act-input .suf {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--nx-muted);
}

.act-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.act-chip {
    padding: 7px 16px;
    font: inherit;
    font-size: .85rem;
    color: var(--nx-text);
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.act-chip:hover {
    border-color: var(--nx-field-focus);
    color: #19e0a0;
}

.act-chip.max {
    color: #19e0a0;
    border-color: rgba(25, 224, 160, .5);
}

.act-hint {
    margin-top: 12px;
    font-size: .78rem;
    color: var(--nx-muted);
}

.act-hint b {
    color: #c9d6de;
    font-weight: 600;
}

/* summary */
.act-sum .r {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .92rem;
}

.act-sum .r span {
    color: #c9d6de;
}

.act-sum .r b {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.act-sum .r.total {
    border-bottom: 0;
    padding-bottom: 2px;
}

.act-sum .r.total b {
    color: #19c98a;
    font-size: 1.05rem;
}

.act-sum .r.total b.neg {
    color: #f6465d;
}

/* warning */
.act-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: .85rem;
    color: #ffb3bb;
    background: rgba(246, 70, 93, .10);
    border: 1px solid rgba(246, 70, 93, .4);
    border-radius: 8px;
}

.act-warn[hidden] {
    display: none;
}

.act-warn a {
    color: #19e0a0;
    font-weight: 600;
    text-decoration: none;
}

/* button */
.act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-bottom: 14px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg, #1fd28b, #12b57a);
    box-shadow: 0 8px 22px rgba(18, 181, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: filter .15s, transform .05s;
}

.act-btn:hover {
    filter: brightness(1.07);
}

.act-btn:active {
    transform: translateY(1px);
}

.act-btn.is-off {
    filter: grayscale(.7) brightness(.75);
    box-shadow: none;
}

.act-btn:disabled {
    cursor: wait;
    filter: brightness(.85);
}

/* note */
.act-note {
    padding: 14px 18px;
}

.act-note ul {
    margin: 0;
    padding-left: 18px;
    font-size: .8rem;
    line-height: 1.7;
    color: var(--nx-muted);
}

/* ===== Deposit page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, .login-input-wrapper, .login-input, .ast-sub (assets-additions.css),
          .act-* classes (activate-additions.css), --nx-* vars. */

.dep-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .95rem;
    font-weight: 600;
}

.dep-step span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: .75rem;
    color: #fff;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border-radius: 50%;
}

/* network options */
.dep-nets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dep-net {
    margin: 0;
    cursor: pointer;
}

.dep-net input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dep-net .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: .82rem;
    text-align: center;
    color: var(--nx-text);
    background: rgba(10, 38, 48, .55);
    border: 1px solid var(--nx-card-border);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}

.dep-net .box i {
    font-size: 1.2rem;
    color: var(--nx-muted);
}

.dep-net .box b {
    font-weight: 600;
}

.dep-net input:checked+.box {
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(40, 235, 215, .14), 0 0 16px rgba(30, 215, 200, .22);
}

.dep-net input:checked+.box i {
    color: #19e0a0;
}

/* address + qr */
.dep-addr {
    margin-top: 16px;
    text-align: center;
}

.dep-qr {
    display: inline-block;
    padding: 8px;
    min-width: 148px;
    min-height: 148px;
    background: #fff;
    border-radius: 10px;
}

.dep-qr img,
.dep-qr canvas {
    display: block;
}

.dep-lbl {
    margin: 12px 0 8px;
    font-size: .8rem;
    color: var(--nx-muted);
}

.dep-addr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-align: left;
    background: rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .45);
    border-radius: 8px;
}

.dep-addr-row code {
    flex: 1;
    min-width: 0;
    font-size: .78rem;
    color: #19e0a0;
    word-break: break-all;
    background: none;
}

.dep-addr-row button {
    flex: 0 0 34px;
    height: 34px;
    color: var(--nx-text);
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--nx-card-border);
    border-radius: 8px;
    cursor: pointer;
}

.dep-addr-row button:hover {
    border-color: var(--nx-field-focus);
}

.dep-warn {
    margin-top: 12px;
    padding: 9px 12px;
    font-size: .76rem;
    line-height: 1.5;
    text-align: left;
    color: #ffd98a;
    background: rgba(245, 197, 66, .08);
    border: 1px solid rgba(245, 197, 66, .35);
    border-radius: 8px;
}

.dep-warn i {
    margin-right: 4px;
}

/* upload */
.dep-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 12px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    background: rgba(10, 38, 48, .35);
    border: 1.5px dashed rgba(30, 215, 200, .55);
    border-radius: 10px;
    transition: background .15s, border-color .15s;
}

.dep-drop:hover {
    background: rgba(10, 38, 48, .6);
    border-color: var(--nx-field-focus);
}

.dep-drop[hidden] {
    display: none;
}

.dep-drop i {
    font-size: 1.8rem;
    color: #19e0a0;
}

.dep-drop .t {
    font-size: .92rem;
    font-weight: 600;
    color: var(--nx-text);
}

.dep-drop .s {
    font-size: .74rem;
    color: var(--nx-muted);
}

.dep-prev {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .45);
    border-radius: 10px;
}

.dep-prev[hidden] {
    display: none;
}

.dep-prev img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.dep-prev .meta {
    flex: 1;
    min-width: 0;
}

.dep-prev .nm {
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dep-prev .sz {
    font-size: .72rem;
    color: var(--nx-muted);
}

.dep-prev button {
    width: 32px;
    height: 32px;
    color: #f6465d;
    background: rgba(246, 70, 93, .10);
    border: 1px solid rgba(246, 70, 93, .4);
    border-radius: 8px;
    cursor: pointer;
}

/* ===== Orders page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, .ast-sub (assets-additions.css), .act-btn (activate-additions.css), --nx-* vars. */

/* filter */
.ord-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ord-filter::-webkit-scrollbar {
    display: none;
}

.ord-filter a {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: .85rem;
    color: var(--nx-text);
    text-decoration: none;
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 999px;
}

.ord-filter a.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
}

.ord-meta {
    margin: 0 2px 10px;
    font-size: .78rem;
    color: var(--nx-muted);
}

.ord-meta b {
    color: #c9d6de;
    font-weight: 600;
}

/* order card */
.ord-card {
    padding: 14px 16px;
    margin-bottom: 12px;
}

.ord-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ord-id {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ord-id span {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ord-copy {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    font-size: .72rem;
    color: var(--nx-muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--nx-card-border);
    border-radius: 6px;
    cursor: pointer;
}

.ord-copy:hover {
    color: #19e0a0;
    border-color: var(--nx-field-focus);
}

.ord-badge {
    flex: 0 0 auto;
    padding: 3px 10px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 999px;
}

.ord-badge.pending {
    color: #f5c542;
    background: rgba(245, 197, 66, .12);
    border: 1px solid rgba(245, 197, 66, .4);
}

.ord-badge.ok {
    color: #19e0a0;
    background: rgba(25, 224, 160, .12);
    border: 1px solid rgba(25, 224, 160, .4);
}

.ord-badge.no {
    color: #f6465d;
    background: rgba(246, 70, 93, .12);
    border: 1px solid rgba(246, 70, 93, .4);
}

.ord-amt {
    margin: 10px 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #19c98a;
    font-variant-numeric: tabular-nums;
}

.ord-amt small {
    font-size: .7rem;
    font-weight: 600;
    color: var(--nx-muted);
    letter-spacing: .06em;
}

.ord-rows>div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: .82rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.ord-rows span {
    color: var(--nx-muted);
}

.ord-rows b {
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.ord-rows b.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .76rem;
}

.ord-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: .8rem;
    color: #19e0a0;
    text-decoration: none;
}

.ord-proof:hover {
    text-decoration: underline;
}

/* empty */
.ord-empty {
    text-align: center;
    padding: 34px 16px;
}

.ord-empty i {
    font-size: 2.2rem;
    color: var(--nx-muted);
}

.ord-empty .t {
    margin: 10px 0 16px;
    color: var(--nx-muted);
}

.ord-empty-btn {
    width: auto;
    display: inline-flex;
    padding: 0 22px;
    margin: 0;
    text-decoration: none;
}

/* pagination */
.ord-pg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 14px;
}

.ord-pg .num,
.ord-pg .arrow,
.ord-pg .gap {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    font-size: .85rem;
    color: var(--nx-text);
    text-decoration: none;
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 8px;
}

.ord-pg .gap {
    background: none;
    border-color: transparent;
    color: var(--nx-muted);
    min-width: 20px;
    padding: 0;
}

.ord-pg a:hover {
    border-color: var(--nx-field-focus);
    color: #19e0a0;
}

.ord-pg .num.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
}

.ord-pg .arrow.off {
    opacity: .35;
    cursor: not-allowed;
}

/* ===== Reports page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, .ast-sub (assets-additions.css), --nx-* vars. */

.rpt-card {
    padding: 0;
    overflow: hidden;
    border-color: rgba(25, 201, 138, .55);
    box-shadow: 0 0 18px rgba(25, 201, 138, .10);
}

.rpt-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(10, 20, 40, .55);
    border-bottom: 1px solid rgba(25, 201, 138, .45);
}

.rpt-head i {
    font-size: 1.1rem;
    color: #19c98a;
}

.rpt-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px 16px;
}

.rpt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    color: var(--nx-text);
    text-decoration: none;
    background: rgb(8 22 39);
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 12px;
    transition: border-color .15s, background .15s, transform .05s;
}

.rpt-item:hover {
    color: var(--nx-text);
    background: rgba(34, 44, 86, .85);
    border-color: rgba(30, 215, 200, .4);
}

.rpt-item:active {
    transform: translateY(1px);
}

.rpt-ico {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    border-radius: 10px;
}

.rpt-ico.orange {
    color: #f5a623;
    background: rgba(245, 166, 35, .16);
}

.rpt-ico.red {
    color: #e8645f;
    background: rgba(232, 100, 95, .16);
}

.rpt-ico.blue {
    color: #5b9cf5;
    background: rgba(91, 156, 245, .18);
}

.rpt-name {
    flex: 1;
    font-size: .92rem;
    font-weight: 600;
}

.rpt-go {
    font-size: .8rem;
    color: var(--nx-muted);
}

.rpt-item:hover .rpt-go {
    color: #19e0a0;
}
/* ===== Invitation page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, .ast-sub (assets-additions.css), --nx-* vars. */

.inv-card { padding: 0; overflow: hidden; border-radius: 18px; }

.inv-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #1a8a58, #14724a);
}

.inv-head i { font-size: 1.4rem; }

.inv-body { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 14px; }

/* banner */
.inv-banner {
    padding: 18px 14px;
    text-align: center;
    background: radial-gradient(ellipse at 80% 20%, rgba(25, 201, 138, .18), transparent 60%), #07140f;
    border: 1px solid rgba(25, 201, 138, .65);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(25, 201, 138, .15);
}

.inv-banner .t { font-size: 1.55rem; font-weight: 800; color: #4ade80; line-height: 1.2; }
.inv-banner .t span { color: #facc15; }
.inv-banner .s { margin-top: 8px; font-size: .8rem; color: #d6e4dc; }
.inv-banner .s i { margin-right: 6px; color: #19e0a0; }

/* code + link boxes */
.inv-box {
    padding: 12px;
    background: rgba(14, 22, 42, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
}

.inv-lbl {
    margin-bottom: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #8ea3c0;
}

.inv-lbl i { margin-right: 6px; color: #19c98a; }

.inv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    background: rgba(8, 14, 30, .9);
    border: 1px solid rgba(60, 80, 130, .55);
    border-radius: 12px;
}

.inv-row .val {
    flex: 1;
    min-width: 0;
    font-size: .88rem;
    font-weight: 600;
    word-break: break-all;
    user-select: all;
}

.inv-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #1a8a58, #12663f);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: filter .15s, transform .05s;
}

.inv-copy:hover { filter: brightness(1.12); }
.inv-copy:active { transform: translateY(1px); }

/* share */
.inv-share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.inv-share a,
.inv-share button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.inv-share .wa { background: #1f9d55; }
.inv-share .tg { background: #2a8bd6; }
.inv-share .more { background: rgba(255, 255, 255, .08); border: 1px solid var(--nx-card-border); }
.inv-share a:hover,
.inv-share button:hover { color: #fff; filter: brightness(1.1); }

/* ===== Trade page add-on. Append to your existing CSS. =====
   Needs: .dsh-card, --nx-* vars. */

/* coin pills */
.trd-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trd-pills::-webkit-scrollbar { display: none; }

.trd-pills button {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 8px 16px;
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
    color: var(--nx-text);
    background: transparent;
    border: 1px solid #19c98a;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.trd-pills button:hover { background: rgba(25, 201, 138, .12); }
.trd-pills button.active { color: #fff; background: #1a7f52; border-color: #1a7f52; }

/* pair header */
.trd-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.trd-ico {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: #1a7f52;
    border-radius: 50%;
}

.trd-head > b { font-size: 1rem; letter-spacing: .01em; }

.trd-status { font-size: .85rem; font-weight: 600; color: #8ea3a8; }
.trd-status.on { color: #19c98a; }
.trd-status.on::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: #19c98a;
    animation: trdPulse 1.4s ease-in-out infinite;
}

@keyframes trdPulse { 50% { opacity: .25; } }

.trd-real {
    margin-left: auto;
    padding: 4px 10px;
    font-size: .74rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid #f5c542;
    border-radius: 8px;
    background: #0b1224;
}

/* live stats */
.trd-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(14, 22, 42, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.trd-stats .px b { display: block; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.trd-stats .px span { font-size: .8rem; font-weight: 600; }

.trd-stats .g { display: flex; gap: 14px; text-align: right; }
.trd-stats .g span { display: block; font-size: .64rem; color: var(--nx-muted); white-space: nowrap; }
.trd-stats .g b { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.trd-up { color: #0ecb81; }
.trd-dn { color: #f6465d; }

@media (max-width: 420px) {
    .trd-stats { flex-direction: column; align-items: flex-start; }
    .trd-stats .g { width: 100%; justify-content: space-between; text-align: left; }
}

/* chart */
.trd-chart { padding: 0; overflow: hidden; background: #000; }
#tvBox { width: 100%; height: 560px; }

/* recent trades */
.trd-trades { padding: 18px 14px 12px; }
.trd-trades h3 { margin: 0 0 14px 4px; font-size: 1.15rem; font-weight: 700; }

.trd-wrap { overflow-x: auto; border-radius: 8px; scrollbar-width: thin; }

.trd-wrap table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .8rem; }

.trd-wrap thead th {
    padding: 12px 10px;
    text-align: left;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--nx-muted);
    background: rgba(30, 40, 80, .55);
}

.trd-wrap tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trd-wrap tbody td.q { color: #19c98a; }
.trd-wrap tbody tr.empty td { text-align: center; color: var(--nx-muted); padding: 26px 10px; }

.trd-wrap tbody tr.flash { animation: trdFlash .9s ease-out; }
@keyframes trdFlash { from { background: rgba(25, 201, 138, .18); } }

.trd-side {
    display: inline-block;
    padding: 5px 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 6px;
}

.trd-side.buy { color: #19e0a0; background: rgba(25, 224, 160, .12); }
.trd-side.sell { color: #f6465d; background: rgba(246, 70, 93, .12); }

@media (prefers-reduced-motion: reduce) {
    .trd-status.on::before, .trd-wrap tbody tr.flash { animation: none; }
}

.roi-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    cursor: pointer;
    border: none;
}

.roi-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.roi-modal.show {
    display: flex;
}

.roi-modal-content {
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--card-bg, #12182b);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
}

.roi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.roi-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary, #fff);
}

.roi-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.order-item-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.order-id {
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.order-date {
    display: block;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-top: 4px;
}

.order-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-col small {
    display: block;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 4px;
}

.order-col strong {
    font-size: 16px;
    color: var(--text-primary, #fff);
}

.status-badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.approved {
    color: #22c55e;
    background: rgba(34,197,94,.12);
}

.status-badge.rejected {
    color: #ef4444;
    background: rgba(239,68,68,.12);
}

/* Wallet address page */
.wallet-address-page {
    width: min(100%, 720px);
    margin: 0 auto;
    padding-bottom: 20px;
}

.wallet-address-page .accounts-main-card {
    padding: 18px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.wallet-address-page .accounts-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wallet-address-page .accounts-card-header .card-title {
    margin: 0;
    color: var(--nx-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.wallet-address-page .btn-toggle-add,
.wallet-address-page .btn-save-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    font: inherit;
    font-weight: 600;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border: 1px solid rgba(37, 214, 196, .35);
    border-radius: 10px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.wallet-address-page .btn-toggle-add:hover,
.wallet-address-page .btn-save-account:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.wallet-address-page .btn-toggle-add.is-cancel {
    background: rgba(246, 70, 93, .16);
    border-color: rgba(246, 70, 93, .55);
}

.wallet-address-page .add-account-form-wrapper {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(5, 15, 27, .7);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.wallet-address-page .input-form-group {
    margin-bottom: 14px;
}

.wallet-address-page .form-input-label {
    display: block;
    margin-bottom: 7px;
    color: var(--nx-muted);
    font-size: .85rem;
    font-weight: 600;
}

.wallet-address-page .form-input-control {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--nx-text);
    font: inherit;
    background: rgba(7, 19, 33, .9);
    border: 1px solid var(--nx-card-border);
    border-radius: 9px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wallet-address-page .form-input-control::placeholder {
    color: #71879a;
}

.wallet-address-page .form-input-control:focus {
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(63, 240, 220, .12);
}

.wallet-address-page select.form-input-control option {
    color: var(--nx-text);
    background: #071321;
}

.wallet-address-page .btn-save-account {
    width: 100%;
    margin-top: 2px;
}

.wallet-address-page .saved-accounts-list {
    display: grid;
    gap: 10px;
}

.wallet-address-page .saved-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    background: rgba(7, 19, 33, .68);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.wallet-address-page .acc-info {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.wallet-address-page .acc-icon-box {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--nx-accent);
    background: rgba(37, 214, 196, .1);
    border: 1px solid rgba(37, 214, 196, .2);
    border-radius: 11px;
}

.wallet-address-page .acc-name {
    margin: 0 0 4px;
    color: var(--nx-text);
    font-size: .92rem;
    font-weight: 650;
}

.wallet-address-page .acc-detail {
    margin: 0;
    color: var(--nx-muted);
    font-size: .78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wallet-address-page .acc-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--nx-green);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(18, 203, 145, .1);
    border: 1px solid rgba(18, 203, 145, .28);
    border-radius: 999px;
}

.wallet-address-page .empty-accounts-box {
    padding: 28px 16px;
    text-align: center;
    background: rgba(7, 19, 33, .55);
    border: 1px dashed rgba(130, 170, 185, .3);
    border-radius: 12px;
}

.wallet-address-page .empty-wallet-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    place-items: center;
    color: var(--nx-accent);
    font-size: 1.3rem;
    background: rgba(37, 214, 196, .1);
    border-radius: 50%;
}

.wallet-address-page .empty-account-title {
    margin: 0 0 6px;
    color: var(--nx-text);
    font-size: 1rem;
}

.wallet-address-page .empty-account-sub,
.wallet-address-page .account-warning-text {
    color: var(--nx-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.wallet-address-page .empty-account-sub {
    margin: 0;
}

.wallet-address-page .account-warning-text {
    margin: 12px 2px 0;
}

.wallet-address-page .btn-back-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 14px;
    color: var(--nx-text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(20, 36, 52, .85);
    border: 1px solid var(--nx-card-border);
    border-radius: 10px;
    transition: border-color .2s ease, color .2s ease;
}

.wallet-address-page .btn-back-wallet:hover {
    color: var(--nx-accent);
    border-color: var(--nx-accent);
}

@media (max-width: 480px) {
    .wallet-address-page .accounts-main-card {
        padding: 14px;
    }

    .wallet-address-page .add-account-form-wrapper {
        padding: 12px;
    }

    .wallet-address-page .saved-account-card {
        align-items: flex-start;
        padding: 11px;
    }
}

/* Profile update page */
.profile-update-page {
    width: min(100%, 720px);
    margin: 0 auto;
    padding-bottom: 20px;
}

.profile-update-page .profile-topbar {
    margin: 0 0 10px;
    padding: 0 2px;
}

.profile-update-page .profile-topbar.mt-3 {
    margin-top: 20px !important;
}

.profile-update-page .profile-topbar h2 {
    margin: 0;
    color: var(--nx-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.profile-update-page .profile-card {
    padding: 18px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.profile-update-page .form-group-custom {
    margin-bottom: 15px;
}

.profile-update-page .form-group-custom > label {
    display: block;
    margin-bottom: 7px;
    color: var(--nx-muted);
    font-size: .85rem;
    font-weight: 600;
}

.profile-update-page .input-icon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    color: var(--nx-accent);
    background: rgba(7, 19, 33, .9);
    border: 1px solid var(--nx-card-border);
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-update-page .input-icon-box:focus-within {
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(63, 240, 220, .12);
}

.profile-update-page .form-control-custom {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 0;
    color: var(--nx-text);
    font: inherit;
    background: transparent;
    border: 0;
    outline: none;
}

.profile-update-page .form-control-custom::placeholder {
    color: #71879a;
}

.profile-update-page .form-control-custom[readonly] {
    color: var(--nx-muted);
    cursor: default;
}

.profile-update-page select.form-control-custom option {
    color: var(--nx-text);
    background: #071321;
}

.profile-update-page .btn-update-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-weight: 650;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border: 1px solid rgba(37, 214, 196, .35);
    border-radius: 10px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.profile-update-page .btn-update-profile:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .profile-update-page .profile-card {
        padding: 14px;
    }
}

/* Withdrawal page */
.withdraw-page {
    width: 100%;
    padding-bottom: 20px;
}

.withdraw-page .withdraw-card,
.withdraw-page .withdraw-minimum {
    padding: 18px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.withdraw-page .withdraw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.withdraw-page .withdraw-title {
    margin: 0;
    color: var(--nx-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.withdraw-page .withdraw-card-header img {
    height: 26px;
    object-fit: contain;
}

.withdraw-page .withdraw-balance {
    padding: 16px;
    background: linear-gradient(135deg, rgba(37, 214, 196, .12), rgba(18, 203, 145, .06));
    border: 1px solid rgba(37, 214, 196, .28);
    border-radius: 12px;
}

.withdraw-page .withdraw-balance-label {
    margin-bottom: 5px;
    color: var(--nx-muted);
    font-size: .82rem;
}

.withdraw-page .withdraw-balance-amount {
    color: var(--nx-text);
    font-size: 1.55rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.withdraw-page .withdraw-balance-amount span {
    color: var(--nx-accent);
    font-size: .85rem;
    font-weight: 600;
}

.withdraw-page .withdraw-section-label {
    margin-bottom: 10px;
    color: var(--nx-text);
    font-size: .9rem;
    font-weight: 600;
}

.withdraw-page .withdraw-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.withdraw-page .method-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 12px 14px;
    color: var(--nx-text);
    background: rgba(7, 19, 33, .68);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.withdraw-page .method-pill:focus-within,
.withdraw-page .method-pill:has(input:checked) {
    background: rgba(37, 214, 196, .08);
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(63, 240, 220, .1);
}

.withdraw-page .method-pill input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--nx-accent);
}

.withdraw-page .method-pill > span {
    min-width: 0;
    font-size: .9rem;
    font-weight: 600;
}

.withdraw-page .method-pill small {
    margin-top: 4px;
    color: var(--nx-muted);
    font-size: .76rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.withdraw-page .withdraw-empty {
    padding: 13px;
    color: var(--nx-danger);
    font-size: .82rem;
    background: rgba(255, 93, 108, .08);
    border: 1px solid rgba(255, 93, 108, .22);
    border-radius: 10px;
}

.withdraw-page .withdraw-amount {
    min-height: 50px;
}

.withdraw-page .withdraw-summary {
    padding: 14px;
    color: var(--nx-muted);
    font-size: .82rem;
    background: linear-gradient(135deg, rgba(37, 214, 196, .08), rgba(18, 203, 145, .04));
    border: 1px solid rgba(37, 214, 196, .22);
    border-radius: 12px;
}

.withdraw-page .withdraw-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.5;
}

.withdraw-page .withdraw-summary-row > span:last-child {
    flex: 0 0 auto;
    color: var(--nx-text);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.withdraw-page .withdraw-summary-total {
    margin-top: 9px;
    padding-top: 10px;
    color: var(--nx-text);
    font-weight: 650;
    border-top: 1px solid rgba(130, 170, 185, .2);
}

.withdraw-page .withdraw-summary-total > span:last-child {
    color: var(--nx-accent);
    font-weight: 700;
}

.withdraw-page .withdraw-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-weight: 650;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border: 1px solid rgba(37, 214, 196, .35);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(10, 138, 83, .2);
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.withdraw-page .withdraw-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.withdraw-page .withdraw-submit:focus-visible {
    outline: 2px solid var(--nx-field-focus);
    outline-offset: 3px;
}

.withdraw-page .withdraw-minimum {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 13px 15px;
    color: var(--nx-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.withdraw-page .withdraw-minimum-icon {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--nx-accent);
    font-size: .75rem;
    font-weight: 700;
    border: 1px solid rgba(37, 214, 196, .35);
    border-radius: 50%;
}

@media (max-width: 480px) {
    .withdraw-page .withdraw-card {
        padding: 14px;
    }

    .withdraw-page .withdraw-balance {
        padding: 14px;
    }
}

/* Team page */
.team-page-wrapper {
    width: 100%;
    padding-bottom: 20px;
}

.team-page-wrapper .team-commission-header {
    margin-bottom: 14px;
    padding: 20px 18px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(37, 214, 196, .16), transparent 58%),
        linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid rgba(37, 214, 196, .28);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.team-page-wrapper .header-label {
    display: block;
    margin-bottom: 7px;
    color: var(--nx-muted);
    font-size: .82rem;
}

.team-page-wrapper .total-earned-amount {
    margin: 0;
    color: var(--nx-accent);
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.team-page-wrapper .members-payout-stats {
    margin: 7px 0 0;
    color: var(--nx-text);
    font-size: .82rem;
}

.team-page-wrapper .level-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}

.team-page-wrapper .level-card {
    display: flex;
    min-width: 0;
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 11px 12px;
    color: var(--nx-text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(11, 26, 44, .92));
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.team-page-wrapper .level-card:hover {
    border-color: rgba(37, 214, 196, .55);
    transform: translateY(-1px);
}

.team-page-wrapper .level-card.active {
    background: linear-gradient(145deg, rgba(20, 92, 91, .55), rgba(11, 36, 49, .96));
    border-color: var(--nx-accent);
    box-shadow: 0 0 18px rgba(37, 214, 196, .12);
}

.team-page-wrapper .level-card:focus-visible {
    outline: 2px solid var(--nx-field-focus);
    outline-offset: 2px;
}

.team-page-wrapper .level-tag {
    color: var(--nx-muted);
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: .06em;
}

.team-page-wrapper .level-count {
    margin-top: 3px;
    color: var(--nx-text);
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.team-page-wrapper .level-earned {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: var(--nx-green);
    font-size: .72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-page-wrapper .team-card-section {
    margin-bottom: 14px;
    padding: 16px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
}

.team-page-wrapper .section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-page-wrapper .section-card-title {
    margin: 0;
    color: var(--nx-text);
    font-size: 1rem;
    font-weight: 650;
}

.team-page-wrapper .members-stat-right {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: var(--nx-accent);
    font-size: .78rem;
    font-weight: 700;
    background: rgba(37, 214, 196, .1);
    border: 1px solid rgba(37, 214, 196, .22);
    border-radius: 999px;
}

.team-page-wrapper .section-desc {
    margin: 5px 0 14px;
    color: var(--nx-muted);
    font-size: .78rem;
}

.team-page-wrapper .team-member-list {
    display: grid;
    gap: 10px;
}

.team-page-wrapper .team-pagination-summary {
    margin-top: 14px;
    color: var(--nx-muted);
    font-size: .75rem;
    text-align: center;
}

.team-page-wrapper .team-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 9px;
}

.team-page-wrapper .team-pagination a,
.team-page-wrapper .team-pagination .disabled,
.team-page-wrapper .team-pagination .current-page {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: var(--nx-text);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(7, 19, 33, .72);
    border: 1px solid var(--nx-card-border);
    border-radius: 10px;
}

.team-page-wrapper .team-pagination a:hover {
    color: var(--nx-accent);
    border-color: var(--nx-accent);
}

.team-page-wrapper .team-pagination .current-page {
    color: var(--nx-accent);
    background: rgba(37, 214, 196, .08);
    border-color: rgba(37, 214, 196, .3);
    font-variant-numeric: tabular-nums;
}

.team-page-wrapper .team-pagination .disabled {
    color: rgba(145, 168, 186, .45);
}

.team-page-wrapper .team-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: rgba(7, 19, 33, .68);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.team-page-wrapper .acc-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-page-wrapper .acc-icon-box {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--nx-accent);
    background: rgba(37, 214, 196, .1);
    border: 1px solid rgba(37, 214, 196, .2);
    border-radius: 11px;
}

.team-page-wrapper .acc-info > div:last-child {
    min-width: 0;
}

.team-page-wrapper .acc-name {
    margin: 0 0 4px;
    color: var(--nx-text);
    font-size: .88rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.team-page-wrapper .acc-detail {
    margin: 2px 0 0;
    color: var(--nx-muted);
    font-size: .7rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.team-page-wrapper .team-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    border: 1px solid transparent;
    border-radius: 999px;
}

.team-page-wrapper .team-status.active {
    color: var(--nx-green);
    background: rgba(18, 203, 145, .1);
    border-color: rgba(18, 203, 145, .25);
}

.team-page-wrapper .team-status.inactive {
    color: var(--nx-danger);
    background: rgba(255, 93, 108, .1);
    border-color: rgba(255, 93, 108, .25);
}

.team-page-wrapper .empty-members-box {
    padding: 22px 14px;
    text-align: center;
    background: rgba(7, 19, 33, .48);
    border: 1px dashed rgba(130, 170, 185, .3);
    border-radius: 12px;
}

.team-page-wrapper .empty-icon {
    margin-bottom: 9px;
    color: var(--nx-accent);
    font-size: 1.3rem;
}

.team-page-wrapper .empty-title {
    margin: 0 0 6px;
    color: var(--nx-text);
    font-size: .9rem;
    font-weight: 650;
}

.team-page-wrapper .empty-sub {
    margin: 0;
    color: var(--nx-muted);
    font-size: .75rem;
    line-height: 1.5;
}

@media (max-width: 360px) {
    .team-page-wrapper .level-selector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-page-wrapper .team-card-section {
        padding: 13px;
    }

    .team-page-wrapper .team-member-card {
        align-items: flex-start;
    }
}

/* Support page */
.support-container {
    width: 100%;
    padding-bottom: 20px;
}

.support-container .support-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(37, 214, 196, .16), transparent 58%),
        linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid rgba(37, 214, 196, .28);
    border-radius: 16px;
}

.support-container .support-banner-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--nx-accent);
    font-size: 1.15rem;
    background: rgba(37, 214, 196, .1);
    border: 1px solid rgba(37, 214, 196, .22);
    border-radius: 13px;
}

.support-container .support-banner h2 {
    margin: 0 0 4px;
    color: var(--nx-text);
    font-size: 1.1rem;
    font-weight: 700;
}

.support-container .support-banner p {
    margin: 0;
    color: var(--nx-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.support-container .support-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px;
    background: rgba(7, 19, 33, .78);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.support-container .tab-btn {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--nx-muted);
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.support-container .tab-btn:hover {
    color: var(--nx-text);
}

.support-container .tab-btn.active {
    color: #fff;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border-color: rgba(37, 214, 196, .3);
}

.support-container .tab-btn:focus-visible,
.support-container .btn-submit:focus-visible {
    outline: 2px solid var(--nx-field-focus);
    outline-offset: 2px;
}

.support-container .tab-content {
    display: none;
}

.support-container .tab-content.active {
    display: block;
}

.support-container .support-card {
    margin-bottom: 14px;
    padding: 16px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.support-container .card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--nx-text);
    font-size: .98rem;
    font-weight: 650;
}

.support-container .card-title i {
    color: var(--nx-accent);
}

.support-container .support-card-note {
    margin: -5px 0 16px;
    color: var(--nx-muted);
    font-size: .78rem;
}

.support-container .form-group {
    margin-bottom: 14px;
}

.support-container .form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--nx-muted);
    font-size: .82rem;
    font-weight: 600;
}

.support-container .form-control {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--nx-text);
    font: inherit;
    font-size: .88rem;
    background: rgba(7, 19, 33, .9);
    border: 1px solid var(--nx-card-border);
    border-radius: 9px;
    box-shadow: none;
}

.support-container .form-control:focus {
    color: var(--nx-text);
    background: rgba(7, 19, 33, .96);
    border-color: var(--nx-field-focus);
    box-shadow: 0 0 0 3px rgba(63, 240, 220, .12);
}

.support-container .form-control::placeholder {
    color: #71879a;
}

.support-container select.form-control option {
    color: var(--nx-text);
    background: #071321;
}

.support-container textarea.form-control {
    min-height: 132px;
    resize: vertical;
    line-height: 1.5;
}

.support-container .char-count {
    margin-top: 6px;
    color: var(--nx-muted);
    font-size: .72rem;
    text-align: right;
}

.support-container .btn-submit {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border: 1px solid rgba(37, 214, 196, .35);
    border-radius: 10px;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}

.support-container .btn-submit:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.support-container .btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.support-container .history-ticket-card {
    margin-bottom: 10px;
    padding: 13px;
    background: rgba(7, 19, 33, .68);
    border: 1px solid var(--nx-card-border);
    border-radius: 12px;
}

.support-container .ticket-header-row,
.support-container .ticket-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.support-container .ticket-header-row {
    margin-bottom: 8px;
}

.support-container .ticket-code {
    color: var(--nx-accent);
    font-size: .82rem;
    font-weight: 700;
}

.support-container .ticket-subject {
    margin-left: 5px;
    color: var(--nx-muted);
    font-size: .7rem;
}

.support-container .support-status-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 999px;
}

.support-container .support-status-badge.status-open {
    color: #f5c542;
    background: rgba(245, 197, 66, .1);
    border-color: rgba(245, 197, 66, .24);
}

.support-container .support-status-badge.status-progress {
    color: var(--nx-accent);
    background: rgba(37, 214, 196, .1);
    border-color: rgba(37, 214, 196, .24);
}

.support-container .support-status-badge.status-resolved {
    color: var(--nx-green);
    background: rgba(18, 203, 145, .1);
    border-color: rgba(18, 203, 145, .24);
}

.support-container .ticket-meta {
    margin-bottom: 9px;
    color: var(--nx-muted);
    font-size: .68rem;
}

.support-container .ticket-meta strong {
    color: var(--nx-accent);
    font-weight: 600;
}

.support-container .ticket-msg-text {
    margin: 0;
    color: var(--nx-text);
    font-size: .8rem;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.support-container .admin-reply-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(37, 214, 196, .05);
    border-left: 3px solid var(--nx-accent);
    border-radius: 8px;
}

.support-container .admin-reply-title {
    margin-bottom: 5px;
    color: var(--nx-accent);
    font-size: .7rem;
    font-weight: 700;
}

.support-container .admin-reply-message {
    color: var(--nx-text);
    font-size: .76rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.support-container .admin-reply-date {
    margin-top: 5px;
    color: var(--nx-muted);
    font-size: .64rem;
    text-align: right;
}

.support-container .support-empty-state {
    padding: 28px 14px;
    text-align: center;
    background: rgba(7, 19, 33, .48);
    border: 1px dashed rgba(130, 170, 185, .3);
    border-radius: 12px;
}

.support-container .support-empty-state > i {
    margin-bottom: 10px;
    color: var(--nx-accent);
    font-size: 1.8rem;
}

.support-container .support-empty-state h3 {
    margin: 0 0 6px;
    color: var(--nx-text);
    font-size: .95rem;
    font-weight: 700;
}

.support-container .support-empty-state p {
    margin: 0 0 14px;
    color: var(--nx-muted);
    font-size: .78rem;
}

.support-container .support-empty-action {
    width: auto;
    margin: 0 auto;
    padding-right: 18px;
    padding-left: 18px;
}

@media (max-width: 380px) {
    .support-container .support-banner,
    .support-container .support-card {
        padding: 14px;
    }

    .support-container .ticket-header-row,
    .support-container .ticket-meta {
        align-items: flex-start;
    }

    .support-container .ticket-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* Announcements page */
.announcements-container {
    width: 100%;
    padding-bottom: 20px;
}

.announcements-container .announce-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 16px 18px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(37, 214, 196, .14), transparent 58%),
        linear-gradient(160deg, rgba(18, 36, 58, .96), rgba(8, 21, 37, .96));
    border: 1px solid rgba(37, 214, 196, .24);
    border-radius: 14px;
}

.announcements-container .title-box h2 {
    margin: 0;
    color: var(--nx-text);
    font-size: 1.1rem;
    font-weight: 700;
}

.announcements-container .announce-list {
    display: grid;
    gap: 10px;
}

.announcements-container .announce-card {
    padding: 14px;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(8, 21, 37, .96));
    border: 1px solid var(--nx-card-border);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.announcements-container .announce-card:hover {
    border-color: rgba(37, 214, 196, .5);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}

.announcements-container .announce-card:focus-visible {
    outline: 2px solid var(--nx-field-focus);
    outline-offset: 2px;
}

.announcements-container .card-header-row,
.announcements-container .card-body-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.announcements-container .card-header-row {
    margin-bottom: 8px;
}

.announcements-container .pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: var(--nx-accent);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(37, 214, 196, .1);
    border: 1px solid rgba(37, 214, 196, .24);
    border-radius: 999px;
}

.announcements-container .announce-date {
    margin-left: auto;
    color: var(--nx-muted);
    font-size: .7rem;
    white-space: nowrap;
}

.announcements-container .card-body-row > div {
    min-width: 0;
}

.announcements-container .announce-title {
    color: var(--nx-text);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.announcements-container .announce-desc {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--nx-muted);
    font-size: .76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.announcements-container .chevron-icon {
    flex: 0 0 auto;
    color: var(--nx-accent);
    font-size: .8rem;
}

.announcements-container .empty-state {
    padding: 30px 16px;
    text-align: center;
    background: linear-gradient(160deg, rgba(18, 36, 58, .92), rgba(8, 21, 37, .96));
    border: 1px dashed rgba(130, 170, 185, .3);
    border-radius: 14px;
}

.announcements-container .empty-state > i {
    margin-bottom: 10px;
    color: var(--nx-accent);
    font-size: 1.7rem;
}

.announcements-container .empty-state h3 {
    color: var(--nx-text);
}

.announcements-container .empty-state p {
    margin-bottom: 0;
    color: var(--nx-muted) !important;
}

#announceModal.modal-overlay {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 8, 16, .78);
    backdrop-filter: blur(5px);
}

#announceModal .modal-card {
    width: min(100%, 480px);
    max-height: min(80vh, 680px);
    overflow-y: auto;
    padding: 18px;
    color: var(--nx-text);
    background: linear-gradient(160deg, #12243a, #081525);
    border: 1px solid rgba(37, 214, 196, .3);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

#announceModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#announceModal .modal-header > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--nx-muted);
    background: rgba(7, 19, 33, .72);
    border: 1px solid var(--nx-card-border);
    border-radius: 9px;
    cursor: pointer;
}

#announceModal .modal-header > i:hover {
    color: var(--nx-text);
    border-color: var(--nx-accent);
}

#announceModal .modal-title {
    color: var(--nx-text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#announceModal .modal-date {
    margin-top: 6px;
    color: var(--nx-muted);
    font-size: .74rem;
}

#announceModal .modal-content {
    margin-top: 15px;
    color: var(--nx-text);
    font-size: .86rem;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#announceModal .modal-close-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    color: #fff;
    font: inherit;
    font-size: .86rem;
    font-weight: 650;
    background: linear-gradient(180deg, #14c27a, #0a8a53);
    border: 1px solid rgba(37, 214, 196, .3);
    border-radius: 10px;
    cursor: pointer;
}

#announceModal .modal-close-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 380px) {
    .announcements-container .announce-topbar,
    .announcements-container .announce-card {
        padding: 13px;
    }

    #announceModal .modal-card {
        padding: 15px;
    }
}

/* ===== Trade page add-on (prefix tx-). Append to your existing CSS. =====
   Needs: .dsh-card, --nx-* vars. Replaces the old .trd-* trade styles. */

/* ---------- header ---------- */
.tx-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tx-head h1 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }

.tx-chg { font-size: .9rem; font-weight: 600; color: var(--nx-muted); font-variant-numeric: tabular-nums; }
.tx-chg.up, #stPx.up { color: #0ecb81; }
.tx-chg.dn, #stPx.dn { color: #f6465d; }

.tx-status {
    margin-left: auto;
    padding: 3px 10px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #f5c542;
    background: rgba(245, 197, 66, .12);
    border: 1px solid rgba(245, 197, 66, .4);
    border-radius: 999px;
}

.tx-status.on { color: #19e0a0; background: rgba(25, 224, 160, .12); border-color: rgba(25, 224, 160, .4); }
.tx-status.on::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: #19e0a0;
    animation: txPulse 1.4s ease-in-out infinite;
}

@keyframes txPulse { 50% { opacity: .25; } }

/* ---------- chart card ---------- */
.tx-chartcard { padding: 0; overflow: hidden; }

.tx-charthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 8px;
}

.tx-charthead .l b { display: block; font-size: .95rem; font-weight: 700; }

.tx-tf { display: flex; gap: 4px; margin-top: 6px; }

.tx-tf button {
    padding: 3px 10px;
    font: inherit;
    font-size: .78rem;
    color: var(--nx-muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tx-tf button:hover { color: var(--nx-text); }
.tx-tf button.active { color: #19e0a0; border-bottom-color: #19e0a0; }

#tvBox { width: 100%; height: 420px; background: #000; }

/* ---------- chart style select ---------- */
.tx-sel select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: .85rem;
    color: var(--nx-text);
    cursor: pointer;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2391a8ba' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 12px center,
        rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .55);
    border-radius: 8px;
}

.tx-sel select { padding: 7px 30px 7px 12px; }
.tx-sel select option { background: #101d34; color: var(--nx-text); }

.tx-sel select:focus { outline: 0; border-color: var(--nx-field-focus); box-shadow: 0 0 0 3px rgba(40, 235, 215, .14); }

/* ---------- order book ---------- */
.tx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tx-grid .dsh-card { margin-bottom: 14px; padding: 12px; }

/* order book */
.tx-bookhead {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: .7rem;
    color: var(--nx-muted);
}

.tx-bookhead b { font-weight: 500; }

.tx-side { display: flex; flex-direction: column; gap: 2px; min-height: 120px; }

.tx-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 4px;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    border-radius: 3px;
}

.tx-row i { position: absolute; top: 0; right: 0; bottom: 0; opacity: .14; pointer-events: none; }
.tx-row span { position: relative; }
.tx-row .q { color: #c9d6de; }
.tx-row.ask .p { color: #f6465d; }
.tx-row.ask i { background: #f6465d; }
.tx-row.bid .p { color: #0ecb81; }
.tx-row.bid i { background: #0ecb81; }
.tx-load { padding: 28px 0; text-align: center; font-size: .75rem; color: var(--nx-muted); }

.tx-mid {
    margin: 8px 0;
    padding: 9px 4px;
    text-align: center;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
}

.tx-mid b { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    .tx-status.on::before { animation: none; }
}
/* ===== Market page add-on (prefix mk-). Append to your existing CSS. =====
   Needs: .dsh-card, --nx-* vars. */

/* toolbar */
.mk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.mk-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: rgba(10, 38, 48, .55);
    border: 1px solid rgba(30, 215, 200, .55);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}

.mk-search:focus-within { border-color: var(--nx-field-focus); box-shadow: 0 0 0 3px rgba(40, 235, 215, .14); }
.mk-search i { font-size: .85rem; color: var(--nx-muted); }

.mk-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    font: inherit;
    font-size: .88rem;
    color: var(--nx-text);
    background: transparent;
    border: 0;
    outline: 0;
}

.mk-search input::placeholder { color: #8aa3b0; }

.mk-status {
    flex: 0 0 auto;
    padding: 4px 11px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #f5c542;
    background: rgba(245, 197, 66, .12);
    border: 1px solid rgba(245, 197, 66, .4);
    border-radius: 999px;
}

.mk-status.on { color: #19e0a0; background: rgba(25, 224, 160, .12); border-color: rgba(25, 224, 160, .4); }
.mk-status.on::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: #19e0a0;
    animation: mkPulse 1.4s ease-in-out infinite;
}

@keyframes mkPulse { 50% { opacity: .25; } }

/* table card */
.mk-card { padding: 4px 10px 8px; }
.mk-wrap { overflow-x: auto; scrollbar-width: thin; }

.mk-table { width: 100%; min-width: 340px; border-collapse: collapse; }

.mk-table thead th {
    padding: 14px 6px 12px;
    text-align: right;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
    color: #c9d6de;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    cursor: pointer;
    user-select: none;
}

.mk-table thead th.l { text-align: left; }
.mk-table thead th:hover { color: #19e0a0; }

.mk-table thead th i { display: inline-block; width: 8px; margin-left: 3px; font-style: normal; font-size: .6rem; color: #19e0a0; }
.mk-table thead th.asc i::before { content: "▲"; }
.mk-table thead th.desc i::before { content: "▼"; }

.mk-table tbody td {
    padding: 13px 6px;
    text-align: right;
    font-size: .8rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mk-table tbody td.l { text-align: left; }
.mk-table tbody td.pair { font-weight: 700; }

.mk-table tbody tr.go { cursor: pointer; }
.mk-table tbody tr.go:hover { background: rgba(255, 255, 255, .035); }
.mk-table tbody tr[hidden] { display: none; }

.mk-table tbody tr.mk-empty td { padding: 30px 6px; text-align: center; color: var(--nx-muted); }

/* price flash */
.mk-table .px.f-up { animation: mkUp .8s ease-out; }
.mk-table .px.f-dn { animation: mkDn .8s ease-out; }
@keyframes mkUp { from { color: #0ecb81; } }
@keyframes mkDn { from { color: #f6465d; } }

/* change pill */
.mk-table td.ch { width: 82px; }

.mk-chg {
    display: inline-block;
    min-width: 68px;
    padding: 9px 8px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: #6b7280;
    border-radius: 9px;
}

.mk-chg.up { background: linear-gradient(180deg, #1a9e1a, #12800f); }
.mk-chg.dn { background: linear-gradient(180deg, #d9384f, #b02339); }

@media (prefers-reduced-motion: reduce) {
    .mk-status.on::before,
    .mk-table .px.f-up,
    .mk-table .px.f-dn { animation: none; }
}