@font-face {
    font-family: Inter;
    src: url("/Public/Mobile/app/font/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("/Public/Mobile/app/font/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("/Public/Mobile/app/font/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

.customer-ui {
    scrollbar-width: thin;
    scrollbar-color: #a7b7c6 transparent;
}

.customer-ui::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.customer-ui::-webkit-scrollbar-thumb {
    background: #a7b7c6;
    border-radius: 6px;
}

/* Shared palette for full customer pages. */
.customer-ui {
    --customer-ink: #142b42;
    --customer-muted: #465d73;
    --customer-accent: #0863a6;
    --customer-surface: #fff;
    --customer-canvas: #f2f7fb;
    --customer-border: #d8e2ec;
    background: var(--customer-canvas);
}

.customer-ui body {
    margin: 0;
    width: 100%;
    color: var(--customer-ink);
    background: var(--customer-canvas);
    font-family: Inter, system-ui, sans-serif !important;
}

.customer-ui :focus-visible {
    outline: 2px solid var(--customer-accent);
    outline-offset: 2px;
}

button:is(:focus, :focus-visible, :active),
[type="button"]:is(:focus, :focus-visible, :active),
[type="submit"]:is(:focus, :focus-visible, :active),
[type="reset"]:is(:focus, :focus-visible, :active),
[role="button"]:is(:focus, :focus-visible, :active) {
    outline: none !important;
}

.btn:is(:focus, :focus-visible, .focus) {
    outline: none !important;
    box-shadow: none;
}

.customer-ui :is(input, select, textarea) {
    accent-color: var(--customer-accent);
}

.customer-ui :is(input, select, textarea)::placeholder {
    color: var(--customer-muted);
}

.account-input-rule {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 5px 2px 0;
    color: #5f7183;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.account-input-rule > .bi {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #71879b;
    font-size: 13px;
}

.account-input-rule strong {
    color: #344b60;
    font-weight: 600;
}

.account-input-rule code {
    display: inline-flex;
    padding: 1px 5px;
    border-radius: 4px;
    background: #edf3f8;
    color: #29455d;
    font: 600 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .06em;
}

.auth-rule-separator {
    margin: 0 5px;
    color: #91a2b2;
}

.customer-auth-page .account-input-rule {
    margin: 5px 2px 17px;
    text-align: left;
}

.customer-auth-page .dela-presets-container-2 input[aria-describedby] {
    margin-bottom: 0 !important;
}

.customer-ui :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus {
    background-color: var(--customer-surface);
    color: var(--customer-ink);
}

.customer-ui :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus-visible {
    outline: none;
    box-shadow: inset 0 -2px var(--customer-accent);
}

@supports selector(:has(*)) {
    .customer-ui :is(.inputbox, .input_div, .zz_inputbox, .tx_inputbox, .customer-coin-search, .contract-amount, .recharge-amount):has(:is(input, select, textarea):focus-visible) {
        box-shadow: inset 0 -2px var(--customer-accent);
    }

    .customer-ui :is(.inputbox, .input_div, .zz_inputbox, .tx_inputbox, .customer-coin-search, .contract-amount, .recharge-amount) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):focus-visible {
        box-shadow: none;
    }
}

.customer-mobile :is(.no_header, .no_title) {
    background: var(--customer-surface) !important;
    color: var(--customer-ink);
}

.customer-mobile .no_header {
    box-shadow: 0 1px 0 var(--customer-border);
}

.customer-mobile .no_header .site-wordmark {
    font-size: clamp(20px, 5.7vw, 28px);
}

.customer-mobile :is(.no_content, .no_inbox) {
    background-color: var(--customer-canvas);
}

.customer-mobile :is(.no_header, .no_title, .no_inbox, .contentbox) :is(.fe6, .fe6im, .fce5) {
    color: var(--customer-ink) !important;
}

.customer-mobile :is(.no_inbox, .contentbox) :is(button, .btn, [role="button"]) :is(.fe6, .fe6im, .fce5) {
    color: inherit !important;
}

.customer-mobile :is(.ctbox, .container-fluid) {
    max-width: 100%;
}

.customer-mobile :is(.cinput, .input_div) {
    color: var(--customer-ink);
    background-color: var(--customer-surface);
    border-color: var(--customer-border);
}

.customer-ui .market-site-header {
    color: var(--customer-ink);
    background: var(--customer-surface);
    border-bottom-color: var(--customer-border) !important;
}

.customer-ui .market-site-header .site-wordmark,
.customer-ui .market-site-header .css-1tp5kus > a .css-vurnku,
.customer-ui .market-site-header .css-mu7imd > a .css-vurnku {
    color: var(--customer-ink) !important;
}

.customer-ui .market-site-header .site-wordmark::before {
    border-color: var(--customer-accent);
}

.customer-mobile .footer:has(.footer_op) {
    background: var(--customer-surface);
    border-top: 1px solid var(--customer-border);
    border-radius: 0;
}

.customer-mobile .footer .footer_op {
    position: relative;
}

.customer-mobile .footer .footer_op:has(.fcy)::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--customer-accent);
}

.customer-mobile .footer .footer_op img {
    filter: grayscale(1) contrast(.75);
}

.customer-mobile .footer .footer_op:has(.fcy) img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(86%) saturate(1374%) hue-rotate(176deg);
}

.customer-mobile .footer .footer_op .fcy { color: var(--customer-accent); }
.customer-mobile .footer .footer_op .fcch { color: var(--customer-muted); }

.market-wallet-page .wallet-content {
    width: min(100%, 660px);
    margin-inline: auto;
    padding: 14px 14px calc(76px + env(safe-area-inset-bottom, 0px));
}

.wallet-summary,
.wallet-asset {
    border: 1px solid var(--customer-border);
    border-radius: 10px;
    background: var(--customer-surface);
}

.wallet-summary { padding: 12px 14px 14px; }

.wallet-summary__heading,
.wallet-summary__label,
.wallet-summary__balance,
.wallet-asset__heading {
    display: flex;
    align-items: center;
}

.wallet-summary__heading { justify-content: space-between; gap: 8px; }
.wallet-summary__label { gap: 2px; min-width: 0; }

.wallet-summary h1 {
    margin: 0;
    color: var(--customer-muted);
    font-size: 13px;
    line-height: 1.35;
}

.wallet-icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--customer-accent);
    font-size: 18px;
}

.wallet-summary__balance {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 14px;
    color: var(--customer-muted);
    font-size: 12px;
}

.wallet-summary__balance strong {
    color: var(--customer-ink);
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.wallet-summary__pnl {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0 0 12px;
    color: var(--customer-muted);
    font-size: 13px;
}

.wallet-summary__pnl strong {
    color: var(--customer-ink);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.wallet-summary__pnl strong[data-sign="1"]:not(.is-masked) { color: #176344; }
.wallet-summary__pnl strong[data-sign="-1"]:not(.is-masked) { color: #aa302a; }

.wallet-actions,
.wallet-asset__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.market-wallet-page .wallet-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.market-wallet-page .wallet-actions :is(a, button) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid var(--customer-border);
    border-radius: 6px;
    background: var(--customer-canvas);
    color: var(--customer-accent);
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.wallet-deposit-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(340px, calc(100% - 32px));
    height: fit-content;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 20px;
    overflow: auto;
    border: 1px solid var(--customer-border);
    border-radius: 10px;
    color: var(--customer-ink);
    background: var(--customer-surface);
    box-shadow: 0 12px 32px rgb(8 24 40 / 20%);
    text-align: center;
}

.wallet-deposit-dialog::backdrop { background: rgb(8 24 40 / 48%); }
.wallet-deposit-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.wallet-deposit-dialog p { margin: 0 0 16px; }

.wallet-deposit-dialog__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wallet-deposit-dialog__actions :is(button, a) {
    display: grid;
    width: 100%;
    min-height: 44px;
    place-items: center;
    border: 1px solid var(--customer-border);
    border-radius: 6px;
    color: var(--customer-accent);
    background: var(--customer-canvas);
    text-align: center;
}

.wallet-deposit-dialog__actions a { color: #fff; background: var(--customer-accent); }

.wallet-actions i { font-size: 16px; }
.wallet-assets { margin-top: 18px; }
.wallet-assets h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.wallet-assets__list { display: grid; gap: 8px; }

.market-wallet-page .wallet-asset {
    display: block;
    min-width: 0;
    padding: 12px;
    color: var(--customer-ink);
}

.wallet-asset__heading {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}

.wallet-asset__heading i { color: var(--customer-accent); font-size: 14px; }
.wallet-asset__stats { margin: 0; }
.wallet-asset__stats div:last-child { text-align: end; }
.wallet-asset__stats dt { margin-bottom: 2px; color: var(--customer-muted); font-size: 12px; font-weight: 400; }
.wallet-asset__stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.market-trade-list .titlebox,
.market-trade-list .symboltitle {
    background: var(--customer-surface);
    border-bottom: 1px solid var(--customer-border);
}

.market-trade-list :is(.titlebox, .symboltitle, #tradebox) .fe6 {
    color: var(--customer-ink);
}

.market-trade-list #tradebox > a {
    display: block;
    color: var(--customer-ink);
    background: var(--customer-surface);
    border-bottom: 1px solid var(--customer-border);
}

@supports selector(::-webkit-scrollbar) {
    .customer-ui { scrollbar-width: auto; scrollbar-color: auto; }
}

.customer-announcements__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 52px;
    background: #fff;
    border-bottom: 1px solid var(--customer-border);
}
.customer-announcements__header a { display: grid; place-items: center; min-height: 44px; color: var(--customer-accent); font-size: 20px; }
.customer-announcements__header h1 { margin: 0; text-align: center; font-size: 16px; font-weight: 700; }
.customer-announcements__content { width: min(100% - 24px, 680px); margin: 0 auto; padding-block: 12px 24px; }
.announcement-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.announcement-card,
.announcement-detail { border: 1px solid var(--customer-border); border-radius: 7px; background: #fff; padding: 12px; color: var(--customer-ink); }
.customer-announcements .announcement-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 14px;
    gap: 8px;
    color: var(--customer-ink);
    text-decoration: none;
}
.announcement-card i { color: var(--customer-accent); }
.announcement-card h2,
.announcement-detail h2 { margin: 0; line-height: 1.35; overflow-wrap: anywhere; font-weight: 700; }
.announcement-card h2 { font-size: 14px; }
.announcement-detail h2 { font-size: 20px; }
.announcement-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 5px 0; color: var(--customer-muted); font-size: 13px; line-height: 1.45; }
.customer-announcements time { display: block; color: var(--customer-muted); font-size: 11px; margin-top: 5px; }
.announcement-detail > img { display: block; max-width: 100%; height: auto; margin-block: 12px; }
.announcement-detail__body { margin-top: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.announcement-detail__body img { max-width: 100%; height: auto; }

.customer-home :is(.pc-market-content, .pc-account, .pc-finance, .pc-projects, .pc-spot) > .App {
    min-height: 100vh;
    background: var(--customer-canvas);
}

.customer-home :is(.pc-market-content, .pc-account, .pc-finance, .pc-projects, .pc-spot) main {
    color: var(--customer-ink);
}

.customer-home .pc-market-content .css-1wr4jig,
.customer-home .pc-projects .css-1wr4jig {
    background: var(--customer-canvas) !important;
}

.customer-home .pc-market-content :is(.css-pnjgxq, .css-8pdsjp),
.customer-home .pc-projects :is(.css-1odg5z2, .css-1ax9bc0) {
    background: #e8f2fa;
    color: var(--customer-ink);
    border-color: var(--customer-border);
}

.customer-home .pc-market-content .css-qinc3w {
    display: block;
    padding: 12px 14px;
    margin-bottom: 7px;
    border: 1px solid var(--customer-border);
    border-radius: 5px;
    background: #fff;
    color: var(--customer-ink);
    line-height: 1.45;
}

.customer-home .pc-market-content .css-qinc3w:hover {
    background: #eef6fc;
    color: var(--customer-accent);
}

.customer-home :is(.pc-account, .pc-finance) :is(.css-foka8b, .css-10j588g, .cointitle, .coincontent) {
    border-color: var(--customer-border);
}

.customer-home :is(.pc-account, .pc-finance) .css-z87e9z,
.customer-home .pc-finance .cointitle {
    background: #e8f2fa;
    color: var(--customer-accent);
}

.customer-home :is(.pc-account, .pc-finance) :is(.css-hd27fe, .css-14thuu2) {
    color: var(--customer-accent);
}

.customer-home :is(.pc-projects, .pc-market-content, .pc-account, .pc-finance, .pc-spot, .desktop-contract) .customer-pc-footer {
    height: auto !important;
    border-top: 1px solid var(--customer-border);
    background: #fff;
}

.customer-home .customer-pc-footer .customer-pc-footer__inner { height: auto !important; }
.customer-home .pc-spot :is(.sy_list_box, .inputbox, .order-top, .order-main, .table td, .table th) {
    border-color: var(--customer-border);
}

.customer-home .pc-spot :is(.order-top, .order-main, .order-top-select) { background: #fff; color: var(--customer-ink); }
.customer-home .pc-spot .order-top-select { box-shadow: inset 0 -2px var(--customer-accent); }
.customer-home :is(.pc-spot, .desktop-contract) :is(.order-main, .order-top) :is(.fcf, .fcfs) { color: var(--customer-ink); }
.customer-home .pc-spot .order-main .empty-svg { display: none; }
.customer-home .pc-spot .table-history-more { padding: 14px; height: auto; }
.customer-home .pc-spot .sy_list_box { background: #fff; border-bottom: 1px solid var(--customer-border); }
.customer-home .pc-spot .sy_list_box:hover { background: #eef6fc; }
.customer-home .pc-spot .inputbox { background: #fff; border-radius: 5px; }

.customer-home .App { width: 100%; max-width: 100%; }

.spot-order-records .container-fluid { min-height: 100vh; }
.spot-order-records .contentbox_top { border-bottom: 1px solid var(--customer-border); }
.spot-order-records .titlebox .xztitile { color: var(--customer-accent) !important; border-color: var(--customer-accent); }
.spot-order-records .listbox { height: auto; min-height: 0; padding-inline: 10px; }
.spot-order-records .tlistbox {
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--customer-border);
    border-radius: 6px;
    background: #fff;
}
.spot-order-records .tlistbox_1 {
    height: auto;
    padding: 7px 10px 10px;
    border: 0;
    color: var(--customer-ink);
}
.spot-order-records .tlistbox_2 { display: flow-root; height: auto; border-bottom: 1px solid var(--customer-border); }
.spot-order-records .tlistbox_3 { overflow-wrap: anywhere; }
.spot-order-records .tlistbox_6 { display: flow-root; height: auto; }
.spot-order-records .tlistbox_7 { height: auto; min-width: 0; overflow-wrap: anywhere; }
.spot-order-records .emptybox { min-height: 0; height: auto; padding: 18px 10px; border: 1px solid var(--customer-border); border-radius: 6px; background: #fff; line-height: 1.5; }
.customer-home .customer-pc-footer { width: 100%; max-width: 100%; box-sizing: border-box; }

.customer-ui a:is(:hover, :focus, :active) { text-decoration: none; }

.announcement-detail__cover {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 6px;
}

.pc-market-content .announcement-publisher-logo {
    width: auto;
    max-width: 92px;
    height: 32px;
    margin-inline-end: 10px;
    object-fit: contain;
}

.contract-detail__header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 54px;
    padding: 4px 10px;
    border-bottom: 1px solid var(--customer-border);
    background: var(--customer-surface);
}

.contract-detail__header a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 6px;
    color: var(--customer-accent);
}

.contract-detail__header a:hover {
    background: var(--customer-canvas);
}

.contract-detail__arrow {
    position: relative;
    width: 17px;
    height: 2px;
    background: currentColor;
}

.contract-detail__arrow::before {
    position: absolute;
    top: -3px;
    left: 0;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
    content: "";
}

.contract-detail__header h1 {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.contract-detail__main {
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 16px 12px;
}

.contract-detail__card {
    overflow: hidden;
    border: 1px solid var(--customer-border);
    border-radius: 10px;
    background: var(--customer-surface);
}

.contract-detail__summary,
.contract-detail__rows > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: baseline;
    gap: 12px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
}

.contract-detail__summary {
    background: #eaf2f8;
    border-bottom: 1px solid var(--customer-border);
}

.contract-detail__summary h2 {
    margin: 0;
    font-size: 1.15rem;
}

.contract-detail__status {
    color: var(--customer-muted);
    text-align: end;
    font-size: .875rem;
}

.contract-detail__rows {
    margin: 0;
    font-size: .875rem;
}

.contract-detail__rows > div + div {
    border-top: 1px solid var(--customer-border);
}

.contract-detail__rows dt {
    color: var(--customer-muted);
}

.contract-detail__rows dd {
    margin: 0;
    text-align: end;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.contract-detail__rows .contract-detail__result {
    background: #f6f9fc;
}

.contract-detail__result dd {
    font-size: 1rem;
}

.contract-detail__positive {
    color: #176344;
}

.contract-detail__negative {
    color: #aa302a;
}

.contract-direction-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: middle;
    font-weight: 800;
}
.contract-direction-arrow svg {
    display: block;
}
.contract-direction-arrow--up {
    color: #0b9b63;
}
.contract-direction-arrow--down {
    color: #d9304a;
}
