html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2d6e9d #061426;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html.page-loading body { opacity: 0; }
html.page-ready body {
    opacity: 1;
    transition: opacity .12s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    html,
    body {
        cursor: url("assets/cursors/exora-default.svg") 3 2, default !important;
    }
    a,
    button,
    summary,
    label[for],
    select,
    [role="button"],
    .cursor-pointer,
    input[type="button"],
    input[type="submit"],
    input[type="checkbox"],
    input[type="radio"] {
        cursor: url("assets/cursors/exora-pointer.svg") 8 3, pointer !important;
    }
    input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    textarea,
    [contenteditable="true"] {
        cursor: url("assets/cursors/exora-text.svg") 10 10, text !important;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
body > main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 0 auto;
}
img,
svg,
video,
canvas {
    max-width: 100%;
}
main,
section,
article,
header,
footer,
nav,
form,
fieldset,
.site-header-inner,
.site-header-auth,
.site-header-member {
    min-width: 0;
}
input,
select,
textarea,
button {
    max-width: 100%;
}
html:not(.auth-ready) .site-header-auth,
html:not(.auth-ready) .site-header-member {
    visibility: hidden !important;
}
html:not(.auth-ready) body.auth-page main {
    visibility: hidden !important;
}
.site-header[data-auth-state="authenticated"] .site-header-auth {
    display: none !important;
}
.site-header[data-auth-state="authenticated"] .site-header-member {
    display: flex !important;
    visibility: visible !important;
}
.site-header[data-auth-state="guest"] .site-header-auth {
    display: flex !important;
    visibility: visible !important;
}
.site-header[data-auth-state="guest"] .site-header-member {
    display: none !important;
}

/*
 * One restrained scrollbar style for the document and every scrollable panel.
 * Component-specific rules below make compact menus slimmer without removing
 * keyboard, wheel or touch scrolling.
 */
* {
    scrollbar-width: thin;
    scrollbar-color: #2d6e9d rgba(5, 20, 36, .72);
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: rgba(5, 20, 36, .72);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
    min-width: 36px;
    min-height: 36px;
    border: 2px solid #061426;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #67e8f9, #3b82f6);
    background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
    background: #061426;
}
*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.asset-options,
.home-market-scroll,
.markets-scroll,
.market-tabs {
    scrollbar-width: thin;
    scrollbar-color: #327eb4 transparent;
}
.asset-options::-webkit-scrollbar,
.home-market-scroll::-webkit-scrollbar,
.markets-scroll::-webkit-scrollbar,
.market-tabs::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.asset-options::-webkit-scrollbar-track,
.home-market-scroll::-webkit-scrollbar-track,
.markets-scroll::-webkit-scrollbar-track,
.market-tabs::-webkit-scrollbar-track {
    margin: 5px;
    background: rgba(8, 28, 49, .55);
}
.asset-options::-webkit-scrollbar-thumb,
.home-market-scroll::-webkit-scrollbar-thumb,
.markets-scroll::-webkit-scrollbar-thumb,
.market-tabs::-webkit-scrollbar-thumb {
    border: 1px solid rgba(5, 20, 36, .75);
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    background-clip: padding-box;
}

@media (max-width: 760px), (pointer: coarse) {
    .home-market-scroll,
    .markets-scroll,
    .market-tabs {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .home-market-scroll::-webkit-scrollbar,
    .markets-scroll::-webkit-scrollbar,
    .market-tabs::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

body.site-ambient {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -20%, rgba(14, 116, 190, .3), transparent 45%),
        linear-gradient(145deg, #020a14 0%, #041426 45%, #020b16 100%) !important;
}
body.site-ambient::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(80, 175, 235, .052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 175, 235, .052) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.8) 55%, transparent 100%);
}
.site-ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .82;
}
.ambient-orb {
    position: fixed;
    z-index: 0;
    width: 34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: .17;
    will-change: transform;
}
.ambient-orb-one {
    top: 5%;
    left: -16rem;
    background: #0ea5e9;
    animation: ambient-drift-one 24s ease-in-out infinite alternate;
}
.ambient-orb-two {
    top: 40%;
    right: -19rem;
    background: #2563eb;
    animation: ambient-drift-two 29s ease-in-out infinite alternate;
}
.ambient-orb-three {
    bottom: -20rem;
    left: 34%;
    width: 28rem;
    background: #22d3ee;
    opacity: .11;
    animation: ambient-drift-three 32s ease-in-out infinite alternate;
}
body.site-ambient > *:not(.site-ambient-canvas):not(.ambient-orb):not(.cursor-neon-trail) {
    position: relative;
    z-index: 1;
}
.cursor-neon-trail {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    max-width: none !important;
    pointer-events: none;
    background: transparent;
    mix-blend-mode: screen;
    overflow: visible;
    opacity: 0;
    transition: opacity .08s linear;
}
.cursor-trail-glow,
.cursor-trail-line {
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cursor-trail-glow {
    stroke-width: 4.33;
    opacity: .62;
    filter: url(#cursorTrailGlow);
}
.cursor-trail-line {
    stroke-width: 1.5;
    opacity: 1;
}
.cursor-trail-tip {
    filter: drop-shadow(0 0 2.3px #38bdf8) drop-shadow(0 0 4px #2563eb);
}
body.site-ambient > .site-header { z-index: 100000; }
body.site-ambient > .global-market-ribbon { z-index: 99990; }
body.site-ambient > .portal-menu {
    position:fixed !important;
    z-index:2147483646 !important;
}
body.site-ambient > .staking-modal {
    position: fixed !important;
    z-index: 2147483646 !important;
}
body.site-ambient > .auth-overlay,
body.site-ambient > .auth-choice-modal,
body.site-ambient > .avatar-crop-backdrop,
body.site-ambient > .promo-asset-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
}
body.site-ambient > .scroll-top {
    position: fixed !important;
    z-index: 1000 !important;
}
body.site-ambient > section:first-of-type {
    background:
        radial-gradient(circle at 50% 0%, rgba(25, 101, 165, .18), transparent 52%),
        linear-gradient(to bottom, rgba(3, 15, 29, .64), rgba(5, 25, 45, .72)) !important;
    border-bottom: 1px solid rgba(55, 133, 190, .17);
}
body.site-ambient main .bg-dark-secondary,
body.site-ambient main .bg-dark-card {
    background-color: rgba(7, 28, 49, .74) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.site-ambient main h1,
body.site-ambient main h2,
body.site-ambient > section h1,
body.site-ambient > section h2 {
    text-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100000;
    width: 100%;
    overflow: visible;
    background: #07182b;
    border-bottom: 1px solid #173b5c;
    color: #c7d2df;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 8px 34px rgba(0, 0, 0, .14);
}
.site-header::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,.55), rgba(79,70,229,.45), transparent);
    animation: header-line-breathe 6s ease-in-out infinite;
}
.site-header-inner {
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 1.75rem;
}
.site-header-brand {
    color: #38bdf8;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 0 24px rgba(56, 189, 248, .18);
}
.site-header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    white-space: nowrap;
}
.site-header-nav a,
.site-header-login,
.site-header-member a,
.site-header-member button {
    color: #c7d2df;
    font-size: .95rem;
    transition: color .2s ease;
}
.site-header-nav a:hover,
.site-header-nav a[aria-current="page"],
.site-header-login:hover,
.site-header-member a:hover {
    color: #38bdf8;
}
.site-header-auth,
.site-header-member {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.site-header-signup {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.45rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff !important;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    position: relative;
    overflow: hidden;
}
.site-header-signup::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.36) 48%, transparent 70%);
    transform: translateX(-135%);
}
.site-header-signup:hover {
    transform: scale(1.04);
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(56, 189, 248, .24);
}
.site-header-signup:hover::after { animation: action-shine .9s ease; }
.site-header .hidden { display: none !important; }
.site-header-auth,
.site-header-member { justify-self: end; }
.site-header-member > a:not(.user-menu-trigger),
.site-header-member > button:not(.header-deposit-button) { display:none !important; }
.site-header-member > .user-menu-trigger { display:flex !important; }
.site-header-member > .user-menu-trigger ~ .user-menu-trigger { display:none !important; }
.user-menu-host { position: relative; z-index:100002; padding: .35rem 0; overflow:visible; }
.user-menu-host > button:not(.user-menu-logout):not(.header-deposit-button) { display: none !important; }
.header-deposit-button {
    display:inline-flex !important;
    min-height:38px;
    align-items:center;
    justify-content:center;
    gap:.45rem;
    padding:.45rem .9rem;
    border:1px solid #168a6a;
    border-radius:999px;
    background:linear-gradient(135deg,#0b493c,#0d6e59);
    color:#d8fff3 !important;
    font-size:.82rem !important;
    font-weight:800;
    box-shadow:0 0 20px rgba(16,185,129,.1);
    transition:transform .2s,border-color .2s,box-shadow .2s !important;
}
.header-deposit-button:hover {
    transform:translateY(-1px) scale(1.03);
    border-color:#35e0b0;
    box-shadow:0 8px 24px rgba(16,185,129,.2);
}
.user-menu-trigger { display:flex !important; align-items:center; gap:.55rem; padding:.35rem .6rem; border:1px solid transparent; border-radius:999px; }
.user-menu-trigger:hover,
.user-menu-trigger:focus-visible,
.user-menu-host.menu-open .user-menu-trigger { border-color:#2a638e; background:#0b2239; color:#fff; }
.user-menu-avatar { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; border-radius:50%; object-fit:cover; overflow:hidden; background:linear-gradient(180deg,#eaf7ff 0 52%,#79cf45 52%); color:#07182b; font-weight:900; box-shadow:0 0 0 2px #173b5c; }
.user-menu-chevron { width:7px; height:7px; border-right:1.5px solid #7893aa; border-bottom:1.5px solid #7893aa; transform:rotate(45deg); transition:transform .2s; }
.user-menu-trigger:hover .user-menu-chevron,
.user-menu-trigger:focus-visible .user-menu-chevron,
.user-menu-host.menu-open .user-menu-chevron { transform:rotate(225deg); }
.user-menu-dropdown { position:absolute; top:calc(100% - .35rem); right:0; width:330px; padding:.7rem; visibility:hidden; opacity:0; transform:translateY(8px) scale(.98); transform-origin:top right; pointer-events:none; border:1px solid #263d51; border-radius:16px; background:#09121c; box-shadow:0 26px 60px rgba(0,0,0,.58); transition:.18s ease; z-index:100003; }
.user-menu-host.menu-open .user-menu-dropdown { visibility:visible; opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.user-menu-dropdown.portal-menu {
    position:fixed;
    top:0;
    left:0;
    right:auto;
    width:min(330px, calc(100vw - 24px));
    max-height:calc(100vh - 74px);
    overflow-y:auto;
    z-index:2147483647;
    scrollbar-width:none;
}
.user-menu-dropdown.portal-menu::-webkit-scrollbar { display:none; }
.user-menu-dropdown.portal-menu.is-open {
    visibility:visible;
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}
.user-menu-profile { display:flex; align-items:center; gap:.8rem; margin-bottom:.65rem; padding:.75rem; border:1px solid #243746; border-radius:12px; background:#111a23; }
.user-menu-profile strong { display:block; color:#f0f7ff; overflow:hidden; text-overflow:ellipsis; }
.user-menu-profile small { color:#7d91a5; }
.user-menu-rank { margin-bottom:.65rem; padding:.7rem .8rem; border:1px solid #243746; border-radius:12px; color:#b8c7d5; background:#101923; }
.user-menu-rank span { display:block; margin-top:.35rem; color:#e9f4ff; font-weight:700; }
.user-menu-link, .user-menu-logout { width:100% !important; display:flex !important; align-items:center; gap:.7rem; margin:.35rem 0 !important; padding:.72rem .8rem; border:1px solid #243746; border-radius:11px; color:#d5e0e9 !important; background:#101923; text-align:left; transition:.18s ease; }
.user-menu-icon { width:27px; height:27px; flex:0 0 27px; border-radius:7px; object-fit:cover; background:#081725; box-shadow:0 0 0 1px rgba(56,189,248,.2),0 0 14px rgba(56,189,248,.1); }
.user-menu-link:hover, .user-menu-logout:hover { color:#7dd3fc !important; border-color:#2a638e; background:#11263a; transform:none !important; }
.user-menu-logout { margin-top:.65rem !important; border-color:#3c3037; color:#ff8d96 !important; }

.deposit-modal {
    position:fixed;
    inset:0;
    width:100%;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    padding:20px;
    border:0;
    background:transparent;
    color:#ddecf7;
    overflow-y:auto;
    place-items:center;
    z-index:2147483646;
}
.deposit-modal[open] { display:grid; }
.deposit-modal:not([open]) { display:none; }
.deposit-modal::backdrop { background:rgba(1,8,18,.88); backdrop-filter:blur(11px); }
.deposit-panel {
    width:min(580px,100%);
    max-height:calc(100dvh - 40px);
    overflow-y:auto;
    padding:26px;
    border:1px solid #278cc2;
    border-radius:20px;
    background:linear-gradient(155deg,#0a2338,#071827 68%);
    box-shadow:0 30px 90px rgba(0,0,0,.62),0 0 35px rgba(14,165,233,.1);
    scrollbar-width:thin;
    scrollbar-color:#239bd3 #071827;
}
.deposit-panel::-webkit-scrollbar { width:8px; height:8px; }
.deposit-panel::-webkit-scrollbar-track { background:#071827; border-radius:999px; }
.deposit-panel::-webkit-scrollbar-thumb { background:linear-gradient(#45d9ff,#1767db); border:2px solid #071827; border-radius:999px; }
.deposit-close { color:#8197aa; font-size:29px; line-height:1; }
.deposit-methods { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.deposit-method {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:58px;
    padding:9px 12px;
    border:1px solid #27465e;
    border-radius:12px;
    background:#0a1b2a;
    color:#a9bbca;
    text-align:left;
    font-weight:800;
}
.deposit-method > span { min-width:0; }
.deposit-method-icon {
    width:52px;
    height:52px;
    flex:0 0 52px;
    border:1px solid rgba(65,202,255,.62);
    border-radius:14px;
    object-fit:cover;
    box-shadow:0 0 18px rgba(24,184,239,.22),inset 0 0 10px rgba(64,208,255,.1);
    transition:transform .22s ease,box-shadow .22s ease;
}
.deposit-method:hover .deposit-method-icon,
.deposit-method.is-active .deposit-method-icon {
    transform:scale(1.05);
    box-shadow:0 0 24px rgba(37,189,236,.4),inset 0 0 12px rgba(64,208,255,.14);
}
.deposit-method.is-active { border-color:#25bdec; color:#eafaff; background:#0b2a42; box-shadow:0 0 20px rgba(37,189,236,.1); }
.deposit-method small { display:block; margin-top:3px; color:#72889b; font-weight:500; }
@media (max-width:520px) {
    .deposit-methods { grid-template-columns:1fr; }
}
.deposit-field { display:block; margin-top:16px; color:#c9d8e5; font-size:.86rem; }
.deposit-field select,.deposit-field input {
    width:100%;
    min-height:50px;
    margin-top:7px;
    padding:0 14px;
    border:1px solid #2a5878;
    border-radius:11px;
    outline:none;
    background:#061727;
    color:#edf9ff;
}
.deposit-field select:focus,.deposit-field input:focus { border-color:#35c7ff; box-shadow:0 0 0 3px rgba(53,199,255,.12); }
.deposit-field input::-webkit-outer-spin-button,
.deposit-field input::-webkit-inner-spin-button { margin:0; appearance:none; -webkit-appearance:none; }
.deposit-field input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
.deposit-primary {
    width:100%;
    min-height:50px;
    margin-top:20px;
    border-radius:11px;
    background:linear-gradient(135deg,#18b8ef,#2869ed);
    color:#fff;
    font-weight:850;
    transition:.2s;
}
.deposit-primary:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(35,151,239,.28); }
.deposit-primary:disabled { opacity:.5; transform:none; box-shadow:none; }
.deposit-status { min-height:22px; margin-top:15px; color:#7dd3fc; font-size:.86rem; line-height:1.55; }
.deposit-status.is-error { color:#fb7185; }
.deposit-status.is-success { color:#5ee6ad; font-weight:700; }
.deposit-maintenance { margin:0 0 16px; padding:13px 15px; border:1px solid rgba(251,113,133,.42); border-radius:12px; background:rgba(127,29,29,.16); color:#fda4af; font-size:.88rem; line-height:1.55; }
.deposit-maintenance[hidden] { display:none; }
.deposit-placeholder { margin-top:18px; padding:24px; border:1px dashed #31516a; border-radius:14px; color:#8ea3b6; text-align:center; background:#081827; }
.deposit-criteria { margin:8px 0 0; color:#71899c; font-size:12px; line-height:1.55; }
.deposit-crypto-choice { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.deposit-instructions { margin-top:20px; text-align:center; }
.deposit-qr { display:block; width:220px; height:220px; margin:0 auto 20px; padding:10px; border-radius:18px; background:#f8fbff; box-shadow:0 0 34px rgba(34,197,255,.18); }
.deposit-details { display:grid; gap:10px; margin:0; text-align:left; }
.deposit-details > div { padding:13px 14px; border:1px solid #29465d; border-radius:12px; background:#071929; }
.deposit-details dt { color:#7890a4; font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.deposit-details dd { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:6px 0 0; color:#e7f7ff; overflow-wrap:anywhere; }
.deposit-details button { flex:0 0 auto; color:#59d8ff; font-weight:750; }
.deposit-warning { margin:15px 0 0; color:#f5c76b; font-size:12px; line-height:1.6; text-align:left; }
.deposit-requests { margin-top:24px; padding-top:20px; border-top:1px solid #24465f; }
.deposit-requests h3 { margin:0; color:#eaf7ff; font-size:1rem; }
.deposit-requests > div > p { margin:5px 0 0; color:#71899c; font-size:.76rem; }
.deposit-request-list { display:grid; gap:9px; margin-top:14px; }
.deposit-request-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:11px; padding:12px 13px; border:1px solid #23445c; border-radius:11px; background:#071929; }
.deposit-request-item strong,.deposit-request-item small { display:block; }
.deposit-request-item strong { color:#deedf7; font-size:.84rem; }
.deposit-request-item small { margin-top:3px; color:#6f8799; font-size:.68rem; }
.deposit-request-status { padding:5px 9px; border:1px solid currentColor; border-radius:999px; font-size:.7rem; font-weight:850; }
.deposit-request-status.is-paid { color:#54e6a5; background:rgba(22,163,74,.1); }
.deposit-request-status.is-pending { color:#f6c95f; background:rgba(245,158,11,.1); }
.deposit-request-status.is-unpaid { color:#fb7185; background:rgba(225,29,72,.1); }
.deposit-request-cancel { padding:6px 9px; border:1px solid #824052; border-radius:8px; color:#ff9aaa; background:#28131d; font-size:.72rem; font-weight:750; }
.deposit-request-cancel:hover { border-color:#fb7185; background:#3a1824; }
.deposit-request-cancel:disabled { cursor:not-allowed; opacity:.5; border-color:#405266; background:#101c28; color:#8395a5; }
.deposit-request-empty { margin:0; padding:14px; border:1px dashed #294a61; border-radius:10px; color:#71899c; text-align:center; }
.deposit-success-toast { position:fixed; top:92px; left:50%; z-index:2147483647; max-width:min(520px,calc(100vw - 30px)); padding:15px 20px; border:1px solid #3be1a0; border-radius:14px; background:#092b29; color:#bfffe5; box-shadow:0 18px 55px rgba(0,0,0,.45),0 0 28px rgba(45,212,160,.18); font-weight:800; opacity:0; transform:translate(-50%,-15px); transition:opacity .3s,transform .3s; pointer-events:none; }
.deposit-success-toast.is-visible { opacity:1; transform:translate(-50%,0); }
@media(max-width:680px) {
    .header-deposit-button span { display:none; }
    .header-deposit-button { width:38px; padding:0; }
    .deposit-methods { grid-template-columns:1fr; }
    .deposit-crypto-choice { grid-template-columns:1fr; }
    .deposit-qr { width:190px; height:190px; }
    .deposit-request-item { grid-template-columns:minmax(0,1fr) auto; }
    .deposit-request-cancel { grid-column:1 / -1; }
}

.global-market-ribbon {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    border-bottom: 1px solid #173b5c;
    background: #091827;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.global-market-ribbon::before,
.global-market-ribbon::after {
    content:'';
    position:absolute;
    top:0;
    bottom:0;
    width:70px;
    z-index:2;
    pointer-events:none;
}
.global-market-ribbon::before { left:0; background:linear-gradient(90deg,#091827,transparent); }
.global-market-ribbon::after { right:0; background:linear-gradient(270deg,#091827,transparent); }
.global-market-track {
    display:flex;
    width:max-content;
    will-change:transform;
    animation: global-market-flow 38s linear infinite;
}
.global-market-group {
    flex:none;
    display:flex;
    align-items:center;
    gap:2.1rem;
    padding:.72rem 2.1rem .72rem 0;
}
.global-market-item {
    flex:none;
    display:flex;
    align-items:center;
    gap:.55rem;
    color:#dce8f2;
    font-size:.85rem;
    font-weight:750;
    white-space:nowrap;
}
.global-market-item img,
.global-market-fallback {
    width:27px;
    height:27px;
    border-radius:50%;
    object-fit:contain;
    background:#102c47;
}
.global-market-item img {
    pointer-events: none;
    -webkit-user-drag: none;
}
.global-market-fallback { display:grid; place-items:center; color:white; font-size:.72rem; }
.global-market-price { color:#8fa1b2; }
@keyframes global-market-flow { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .global-market-track { animation-duration:90s; }
}

.site-footer {
    position: relative;
    margin-top: auto;
    padding: 3.5rem max(1.5rem, calc((100% - 1100px) / 2)) 1.5rem;
    background: #071322;
    border-top: 1px solid #1e4d75;
    color: #94a9bf;
}

@property --site-search-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.site-search {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 2px;
    border-radius: 15px;
    background: #020712;
}
.site-search::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--site-search-angle), #18314d 0deg, #cf30aa 70deg, #6551ff 135deg, #22d3ee 205deg, #18314d 275deg, #cf30aa 325deg, #18314d 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: site-search-contour 6s linear infinite;
    pointer-events: none;
}
.site-search:focus-within::before { animation-duration: 3.5s; }
.site-search-input {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 52px;
    padding: 0 1rem 0 3.2rem !important;
    border: 0 !important;
    border-radius: 13px !important;
    outline: 0 !important;
    background: #020712 !important;
    color: #f4f7ff !important;
    box-shadow: none !important;
}
.site-search-input::placeholder { color: #9aa5b8; }
.site-search-icon {
    position: absolute;
    z-index: 2;
    left: 1.1rem;
    top: 50%;
    display: grid;
    place-items: center;
    color: #b7c8dc;
    pointer-events: none;
    transform: translateY(-50%);
}
.site-search-icon svg { display: block; }
.ui-arrow,
.swap-icon {
    display: block;
    margin: auto;
    pointer-events: none;
}
.referral-code-copy {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    border: 1px solid #285b82;
    border-radius: 8px;
    background: #071b30;
    color: #7dd3fc;
    font-size: .75rem;
    font-weight: 700;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.referral-code-copy:hover {
    transform: translateY(-1px);
    border-color: #38bdf8;
    background: #103252;
    box-shadow: 0 8px 18px rgba(14,165,233,.16);
}
.site-search.compact .site-search-input { height: 42px; padding-left: 2.7rem !important; }
.site-search.compact .site-search-icon { left: .85rem; }
@keyframes site-search-contour { to { --site-search-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    .site-search::before { animation: none; }
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, #4f46e5, transparent);
    opacity: .8;
}
.site-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer h3 { color: #e8f3ff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { display: block; width: fit-content; margin: .65rem 0; color: #8fa8c2; transition: color .2s, transform .2s; }
.site-footer a:hover { color: #7dd3fc; transform: translateX(4px); }
.site-footer-brand { color: #38bdf8 !important; font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem !important; }
.site-footer-bottom { border-top: 1px solid #17344e; margin-top: 3rem; padding-top: 1.25rem; text-align: center; font-size: .8rem; }
.footer-pill { display: inline-flex !important; align-items: center; justify-content: center; margin: 0 .35rem !important; padding: .55rem 1rem; border: 1px solid #2a638e; border-radius: 999px; color: #b9d9f2 !important; background: #0b2239; }
.footer-pill:hover { transform: translateY(-2px) scale(1.03) !important; border-color: #38bdf8; box-shadow: 0 8px 20px rgba(56,189,248,.2); }

.scroll-reveal { opacity: 0; filter: blur(7px); transform: translateY(30px) scale(.985); transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.scroll-reveal.is-visible { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.ambient-lift {
    transition: transform .32s cubic-bezier(.16,1,.3,1), border-color .32s ease, box-shadow .32s ease, background-color .32s ease;
}
.ambient-lift:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, .5) !important;
    box-shadow: 0 20px 45px rgba(0, 10, 25, .32), 0 0 28px rgba(56, 189, 248, .08);
}
.scroll-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 42px; height: 42px; border: 1px solid #2a638e; border-radius: 50%; background: #0b2239; color: #7dd3fc; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: linear-gradient(135deg,#0ea5e9,#2563eb); color: white; transform: translateY(-2px) scale(1.06); }
@keyframes ambient-drift-one { to { transform: translate3d(13rem, 8rem, 0) scale(1.13); } }
@keyframes ambient-drift-two { to { transform: translate3d(-14rem, -7rem, 0) scale(.88); } }
@keyframes ambient-drift-three { to { transform: translate3d(5rem, -10rem, 0) scale(1.15); } }
@keyframes header-line-breathe { 0%,100% { opacity: .35; transform: scaleX(.72); } 50% { opacity: .85; transform: scaleX(1); } }
@keyframes action-shine { to { transform: translateX(135%); } }
@media (max-width: 760px) { .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }
@media (max-width: 460px) { .site-footer-grid { grid-template-columns: 1fr 1fr; font-size: .9rem; } }
@media (max-width: 980px) {
    .site-header-inner { grid-template-columns: 1fr auto; padding: 0 1.25rem; }
    .site-header-nav { display: none; }
}
@media (max-width: 520px) {
    .site-header-brand { font-size: 1.25rem; }
    .site-header-inner { min-height: 58px; padding: 0 .75rem; gap: .5rem; }
    .site-header-auth, .site-header-member { gap: .5rem; }
    .site-header-login { font-size: .82rem; }
    .site-header-signup { min-height: 36px; padding: .45rem .7rem; font-size: .82rem; white-space: nowrap; }
    .header-deposit-button { min-height: 34px; padding: .38rem .6rem; font-size: .72rem !important; }
    .user-menu-trigger { gap: .35rem; padding: .25rem .4rem; font-size: .82rem; }
    .user-menu-avatar { width: 27px; height: 27px; flex-basis: 27px; }
    .user-menu-dropdown.portal-menu { width: calc(100% - 16px); max-height: calc(100dvh - 66px); }
    .deposit-modal { padding: 10px; }
    .deposit-panel { max-height: calc(100dvh - 20px); padding: 18px 14px; border-radius: 16px; }
    .deposit-request-item { grid-template-columns: minmax(0, 1fr) auto; }
    .deposit-request-cancel { grid-column: 1 / -1; width: 100%; }
    .site-footer { padding-inline: 1rem; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .site-footer-bottom { flex-wrap: wrap; justify-content: center; text-align: center; }
    .site-search { width: 100%; max-width: 100%; min-width: 0; }
    .site-search-input { min-width: 0; }
    .ambient-orb { width: 22rem; filter: blur(70px); }
    body.site-ambient::before { background-size: 38px 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .site-header::after,
    .site-header-signup::after { animation: none !important; }
    .scroll-reveal { opacity: 1; filter: none; transform: none; transition: none; }
    .ambient-lift { transition: none; }
}
