/* Skin 3 "vega" — base layer: reset, controls, header + mega menus, popovers, drawer, footer,
   phone tab bar, toasts. Every rule is scoped to body.vega so nothing leaks into skins 1/2. */

/* ---------- reset ---------- */
body.vega { margin: 0; background: var(--v-bg); color: var(--v-t1); font: 400 14px/1.5 var(--v-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "tnum" 1, "cv11" 1; }
/* :where() keeps the reset at zero specificity, so any component class beats it */
:where(.vega) *, :where(.vega) *::before, :where(.vega) *::after { box-sizing: border-box; }
:where(.vega) a { color: inherit; text-decoration: none; }
:where(.vega) img { max-width: 100%; }
:where(.vega) button { font: inherit; color: inherit; }
:where(.vega) :where(h1, h2, h3, h4, p) { margin: 0; }
.vega ::selection { background: var(--v-brand); color: var(--v-brand-ink); }
.vega :focus-visible { outline: 2px solid var(--v-brand); outline-offset: 2px; }
.vega .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:has(body.vega) { scrollbar-color: #36373a transparent; }
body.vega ::-webkit-scrollbar { width: 8px; height: 8px; }
body.vega ::-webkit-scrollbar-thumb { background: #36373a; border-radius: 8px; }
body.vega ::-webkit-scrollbar-track { background: transparent; }
.v-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -.01em; }
.vega .mono { font-family: var(--v-mono); }
.v-up { color: var(--v-up); }
.v-down { color: var(--v-down); }
.v-t2 { color: var(--v-t2); }
.v-t3 { color: var(--v-t3); }

.v-wrap { width: 100%; max-width: calc(var(--v-wrap) + 48px); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--v-h); padding: 0 18px; border: 0; border-radius: var(--v-r); font: 600 14px/1 var(--v-font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.v-btn:active { transform: translateY(1px); }
.v-btn:disabled, .v-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
.v-btn svg { flex: none; }
.v-btn--brand { background: var(--v-brand); color: var(--v-brand-ink); }
.v-btn--brand:hover { background: var(--v-brand-hover); }
.v-btn--brand:active { background: var(--v-brand-press); }
.v-btn--white { background: #fff; color: #101113; }
.v-btn--white:hover { background: #e6e7e9; }
.v-btn--dark { background: var(--v-raised); color: var(--v-t1); }
.v-btn--dark:hover { background: var(--v-press); }
.v-btn--line { background: transparent; color: var(--v-t1); box-shadow: inset 0 0 0 1px var(--v-line-strong); }
.v-btn--line:hover { box-shadow: inset 0 0 0 1px var(--v-t3); background: rgba(255, 255, 255, .03); }
.v-btn--ink { background: #1b1c23; color: var(--v-brand); }
.v-btn--ink:hover { background: #000; }
.v-btn--ghost { background: transparent; color: var(--v-t2); padding: 0 10px; }
.v-btn--ghost:hover { color: var(--v-t1); background: var(--v-raised); }
.v-btn--sm { height: var(--v-h-sm); padding: 0 12px; font-size: 14px; border-radius: var(--v-r-sm); }
.v-btn--lg { height: var(--v-h-lg); padding: 0 24px; font-size: 16px; }
.v-btn--block { width: 100%; }
.v-link { color: var(--v-brand); font-weight: 500; }
.v-link:hover { color: var(--v-brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.v-more { display: inline-flex; align-items: center; gap: 6px; color: var(--v-t1); font-weight: 600; }
.v-more svg { transition: transform .2s var(--v-ease); }
.v-more:hover { color: var(--v-brand); }
.v-more:hover svg { transform: translateX(-3px); }

/* ---------- fields ---------- */
.v-label { display: block; margin: 0 0 8px; color: var(--v-t2); font-size: 14px; font-weight: 500; }
.v-input { display: block; width: 100%; height: var(--v-h-lg); padding: 0 16px; border: 1px solid transparent; border-radius: var(--v-r); background: var(--v-raised); color: var(--v-t1); font: 500 16px/1 var(--v-font); outline: none; transition: border-color .15s, background-color .15s; }
.v-input::placeholder { color: var(--v-t3); font-weight: 400; }
.v-input:hover { border-color: var(--v-line-strong); }
.v-input:focus { border-color: var(--v-focus); background: var(--v-surface); }

/* ---------- tabs ---------- */
.v-tabs { display: flex; align-items: center; gap: 28px; }
.v-tab { position: relative; padding: 0; border: 0; background: none; color: var(--v-t2); font: 600 18px/1.3 var(--v-font); letter-spacing: -.01em; cursor: pointer; transition: color .15s; }
.v-tab:hover { color: var(--v-t1); }
.v-tab.is-on { color: var(--v-t1); }
.v-utabs { display: flex; gap: 28px; }
.v-utab { position: relative; padding: 0 0 10px; border: 0; background: none; color: var(--v-t2); font: 500 16px/1.2 var(--v-font); cursor: pointer; }
.v-utab.is-on { color: var(--v-t1); font-weight: 600; }
.v-utab.is-on::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--v-t1); }
.v-seg { display: flex; padding: 3px; border-radius: var(--v-r); background: var(--v-raised); }
.v-seg > * { flex: 1; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--v-t2); font: 600 14px/1 var(--v-font); cursor: pointer; }
.v-seg > .is-on { background: var(--v-t1); color: #101113; }

/* ---------- tags ---------- */
.v-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--v-r-xs); background: var(--v-raised); color: var(--v-t2); font: 500 11px/1 var(--v-font); letter-spacing: .01em; vertical-align: middle; }
.v-tag--brand { background: var(--v-brand-soft); color: var(--v-brand); }
.v-chg { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 72px; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- card ---------- */
.v-card { border: 1px solid var(--v-line); border-radius: var(--v-r-lg); background: var(--v-bg); }
.v-card--fill { background: var(--v-surface); border-color: transparent; }

/* =====================================================================
   Header (xt-style): brand · nav with mega menus · search · auth / account
   ===================================================================== */
.vh { position: sticky; top: 0; z-index: 60; height: var(--v-head-h); display: flex; align-items: center; gap: 28px; padding: 0 24px; background: var(--v-bg); transition: box-shadow .2s; }
.vh.is-scrolled { box-shadow: none; }
.vh__left { display: flex; align-items: center; gap: 10px; flex: none; }
.vh__brand { display: inline-flex; align-items: center; gap: 9px; height: 40px; --vh-fs: 19px; }
/* the domain's logo is as tall as the name beside it, at every size the name takes (--vh-fs = its font size) */
.vh__logo { display: block; flex: none; height: calc(var(--vh-fs) * 1.15); max-width: 132px; width: auto; object-fit: contain; }
.vh__name { font: 700 19px/1 var(--v-font); letter-spacing: -.03em; white-space: nowrap; }
.vh__burger.vh-ico, .vh__me.vh-ico { display: none; }

.vh-nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; }
.vh-nav__item { position: relative; }
.vh-nav__a { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 11px; border: 0; border-radius: var(--v-r); background: none; color: var(--v-t1); font: 600 14px/1 var(--v-font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: color .15s; }
.vh-nav__a svg.vh-chev { color: var(--v-t3); transition: transform .2s var(--v-ease), color .15s; }
.vh-nav__a:hover, .vh-nav__item:hover > .vh-nav__a, .vh-nav__item:focus-within > .vh-nav__a { color: var(--v-brand); }
.vh-nav__item:hover > .vh-nav__a svg.vh-chev, .vh-nav__item:focus-within > .vh-nav__a svg.vh-chev { transform: rotate(-180deg); color: var(--v-brand); }
.vh-nav__a.is-active { color: var(--v-brand); }
.vh-nav__fee { color: var(--v-brand); font: 600 13px/1 var(--v-font); }
.vh-nav__hot { width: 14px; height: 14px; margin-right: 2px; color: var(--v-warn); }

/* mega menu panel */
.vh-dd { position: absolute; top: 100%; right: -8px; z-index: 5; min-width: 340px; padding: 8px; border-radius: var(--v-r-lg); background: var(--v-surface); box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .2s var(--v-ease), visibility 0s linear .2s; }
.vh-nav__item::after { content: ""; position: absolute; right: 0; left: 0; top: 100%; height: 12px; }
.vh-nav__item:hover > .vh-dd, .vh-nav__item:focus-within > .vh-dd { opacity: 1; visibility: visible; transform: translateY(8px); transition-delay: 0s; }
.vh-dd__item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 0 14px; padding: 10px 12px; border-radius: var(--v-r-md); transition: background-color .12s; }
.vh-dd__item:hover, .vh-dd__item.is-on { background: var(--v-raised); }
.vh-dd__ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; color: var(--v-t2); transition: background-color .12s, color .12s; }
.vh-dd__item:hover .vh-dd__ico { color: var(--v-brand); }
.vh-dd__ico img { display: block; width: 32px; height: 32px; }
.vh-dd__t { display: flex; align-items: center; gap: 6px; font: 600 14px/1.25 var(--v-font); color: var(--v-t1); }
.vh-dd__s { grid-column: 2; font-size: 13px; line-height: 1.35; color: var(--v-t2); }
.vh-dd__go { grid-row: span 2; color: var(--v-t3); opacity: 0; transform: translateX(4px); transition: opacity .12s, transform .15s; }
.vh-dd__item:hover .vh-dd__go { opacity: 1; transform: none; color: var(--v-t1); }

.vh__right { display: flex; align-items: center; gap: 8px; flex: none; margin-right: auto; }
.vh-search { display: flex; align-items: center; gap: 8px; width: 188px; height: 36px; padding: 0 12px; border: 1px solid var(--v-line-2); border-radius: var(--v-r); background: var(--v-surface); color: var(--v-t3); transition: border-color .15s, width .25s var(--v-ease); }
.vh-search:focus-within { width: 240px; border-color: var(--v-focus); }
.vh-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--v-t1); font: 500 14px/1 var(--v-font); outline: none; }
.vh-search input::placeholder { color: var(--v-t3); }
.vh-search__hot { color: var(--v-warn); flex: none; }
.vh__login { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--v-r); font-weight: 600; color: var(--v-t1); white-space: nowrap; transition: background-color .15s; }
.vh__login:hover { background: var(--v-raised); color: var(--v-t1); }
.vh__signup { transition: background-color .15s, color .15s; }
.vh__signup:hover { background: var(--v-brand); color: var(--v-brand-ink); }
/* language picker (partials/lang-pop.ejs) */
.vh-lang__panel { width: 400px; padding: 14px; }
.vh-lang__h { margin: 2px 6px 10px; color: var(--v-t2); font-size: 13px; font-weight: 600; }
.vh-lang__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.vh-lang__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--v-r); color: var(--v-t1); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .12s; }
.vh-lang__item:hover { background: var(--v-raised); }
.vh-lang__item.is-on { color: var(--v-brand); }
.vh-lang__item svg { flex: none; color: var(--v-brand); }
.vh-lang:hover > .vh-ico, .vh-lang:focus-within > .vh-ico { background: var(--v-raised); }
.vh-ico { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--v-r); background: transparent; color: var(--v-t1); cursor: pointer; transition: background-color .15s, color .15s; }
.vh-ico:hover, .vh-ico.is-open { background: var(--v-raised); }
.vh-ico__dot { position: absolute; top: 4px; left: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--v-down); color: #fff; font: 600 11px/16px var(--v-font); text-align: center; box-shadow: 0 0 0 2px var(--v-bg); }
.vh__txt { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: var(--v-r); font-weight: 600; color: var(--v-t1); white-space: nowrap; }
.vh__txt:hover, .vh__txt.is-active { color: var(--v-brand); }

/* account popovers (wallet / profile / bell) */
.vh-pop { position: relative; }
.vh-pop__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: 300px; padding: 16px; border-radius: var(--v-r-lg); background: var(--v-surface); box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .2s var(--v-ease), visibility 0s linear .2s; }
.vh-pop::after { content: ""; position: absolute; right: 0; left: 0; top: 100%; height: 10px; }
.vh-pop:hover > .vh-pop__panel, .vh-pop:focus-within > .vh-pop__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.vh-bal__k { display: flex; align-items: center; gap: 6px; color: var(--v-t2); font-size: 13px; }
.vh-bal__eye { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--v-t3); cursor: pointer; }
.vh-bal__eye:hover { color: var(--v-t1); }
.vh-bal__eye [data-eye-off] { display: none; }
.is-veiled .vh-bal__eye [data-eye-on] { display: none; }
.is-veiled .vh-bal__eye [data-eye-off] { display: inline; }
.vh-bal__fig { margin: 6px 0 2px; font: 700 24px/1.2 var(--v-font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vh-bal__fig small { font: 500 14px var(--v-font); color: var(--v-t2); margin-right: 4px; }
.vh-bal__btc { color: var(--v-t3); font: 400 13px var(--v-font); font-variant-numeric: tabular-nums; }
.vh-bal .bal-mask { display: none; }
.is-veiled .vh-bal .bal-v { display: none; }
.is-veiled .vh-bal .bal-mask { display: inline; letter-spacing: .08em; }
.vh-bal__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.vh-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.vh-menu a, .vh-menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: var(--v-r); background: none; color: var(--v-t1); font: 500 14px/1 var(--v-font); text-align: right; cursor: pointer; }
.vh-menu a:hover, .vh-menu button:hover { background: var(--v-raised); }
.vh-menu svg { color: var(--v-t2); flex: none; }
.vh-menu img { display: block; width: 22px; height: 22px; flex: none; }
.vh-menu__sep { height: 1px; margin: 6px 0; background: var(--v-line); }
.vh-me { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.vh-me__ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--v-brand); color: var(--v-brand-ink); font: 700 16px/1 var(--v-font); text-transform: uppercase; flex: none; }
.vh-me__mail { font-weight: 600; font-size: 14px; word-break: break-all; }
.vh-me__uid { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--v-t2); font: 400 13px var(--v-mono); cursor: pointer; }
.vh-me__uid:hover { color: var(--v-t1); }
.vh-me__uid.is-ok { color: var(--v-brand); }

/* bell panel ([hidden] toggled by lk-app.js) */
.vh-bell { position: relative; }
.vh-bell__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 6; width: 380px; max-height: min(560px, calc(80vh / var(--vz, 1))); display: flex; flex-direction: column; border-radius: var(--v-r-lg); background: var(--v-surface); box-shadow: none; overflow: hidden; }
.vh-bell::after { content: ""; position: absolute; right: -12px; left: 0; top: 100%; height: 10px; }
.vh-bell:not(:hover)::after { display: none; }
.vh-bell__panel[hidden] { display: none; }
.vh-bell__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; font: 600 16px/1 var(--v-font); }
.vh-bell__head form { margin: 0; }
.vh-bell__all-read { padding: 0; border: 0; background: none; color: var(--v-brand); font: 500 14px var(--v-font); cursor: pointer; }
.vh-bell__head, .vh-bell__foot { flex: none; }
/* rows fade out before the button instead of being cut mid-line */
.vh-bell__list { min-height: 0; overflow: auto; padding: 0 8px 18px; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 44px); mask-image: linear-gradient(to top, transparent 0, #000 44px); }
.vh-bell__item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 8px; border-radius: var(--v-r-md); }
.vh-bell__item:hover { background: var(--v-raised); }
.vh-bell__ico { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: var(--v-t2); }
.vh-bell__ico--ok { color: var(--v-up); }
.vh-bell__ico--bad { color: var(--v-down); }
.vh-bell__item.is-unread .vh-bell__ico::after { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--v-brand); box-shadow: 0 0 0 2px var(--v-surface); }
.vh-bell__t { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.vh-bell__x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--v-t2); font-size: 13px; line-height: 1.4; }
.vh-bell__time { display: block; margin-top: 4px; color: var(--v-t3); font: 400 12px var(--v-font); }
.vh-bell__empty { padding: 28px 24px 32px; color: var(--v-t2); text-align: center; font-size: 14px; }
.vh-bell__empty img { display: block; width: 88px; height: 88px; margin: 0 auto 10px; }
.vh-bell__foot { display: block; margin: 8px; padding: 11px; border-radius: var(--v-r); background: var(--v-raised); text-align: center; font-weight: 600; font-size: 14px; }
.vh-bell__foot:hover { background: var(--v-press); }

/* =====================================================================
   Drawer (lk-app.js toggles .lk-sidebar--mobile-open; nova-mobile.js toggles .m-drawer-me)
   ===================================================================== */
.vd { position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; width: min(380px, 100vw); display: flex; flex-direction: column; background: var(--v-surface); transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--v-ease), visibility 0s linear .3s; }
.vd.lk-sidebar--mobile-open { transform: none; visibility: visible; transition-delay: 0s; }
.vd__backdrop { position: fixed; inset: 0; z-index: 89; background: var(--v-mask); animation: v-fade .2s ease; }
.vd__backdrop[hidden] { display: none; }
.vd__grab { display: none; }
.vd__top { display: flex; align-items: center; justify-content: space-between; height: var(--v-head-h); padding: 0 24px 0 16px; flex: none; }
.vd__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--v-t2); cursor: pointer; }
.vd__close:hover { color: var(--v-t1); }
.vd__scroll { flex: 1; overflow: auto; padding: 0 16px 24px; }
.vd__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 8px 16px; }
.vd__me { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 14px; border-radius: var(--v-r-md); background: var(--v-raised); }
.vd__title { margin: 14px 8px 6px; color: var(--v-t3); font: 600 12px/1 var(--v-font); text-transform: uppercase; letter-spacing: .08em; }
.vd__link { display: flex; align-items: center; gap: 14px; width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: var(--v-r-md); background: none; color: var(--v-t1); font: 500 16px/1 var(--v-font); text-align: right; cursor: pointer; }
.vd__link:hover, .vd__link.is-on { background: var(--v-raised); }
.vd__link.is-on { color: var(--v-brand); }
.vd__ico { display: grid; place-items: center; width: 24px; height: 24px; color: var(--v-t2); flex: none; }
.vd__link:hover .vd__ico { color: var(--v-t1); }
.vd__link.is-on .vd__ico { color: var(--v-brand); }
.vd__ico img { display: block; width: 24px; height: 24px; }
.vd__group--me { display: none; }
.vd.m-drawer-me .vd__group--me { display: block; }
.vd.m-drawer-me .vd__main { display: none; }
.vd__logout { margin: 12px 0 0; }
.vd__logout .vd__link { color: var(--v-down); }
@keyframes v-fade { from { opacity: 0; } }

/* =====================================================================
   Footer (Cwallet-style)
   ===================================================================== */
.vf { margin-top: 96px; padding: 64px 0 32px; background: var(--v-bg-deep); color: var(--v-t2); }
.vf__top { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.vf__brand .vh__brand { margin-bottom: 16px; color: var(--v-t1); }
.vf__blurb { max-width: 320px; font-size: 14px; line-height: 1.65; }
.vf__marks { display: flex; gap: 8px; margin-top: 22px; }
.vf__marks span { display: grid; place-items: center; height: 40px; }
.vf__marks img { height: 22px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; }
.vf .nova-foot__col h4 { margin: 0 0 16px; color: var(--v-t1); font: 600 16px/1.2 var(--v-font); }
.vf .nova-foot__col a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; transition: color .12s; }
.vf .nova-foot__col a:hover { color: var(--v-brand); }
.vf__legal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--v-line); font-size: 13px; line-height: 1.7; }
.vf__legal h4 { margin: 0 0 8px; color: var(--v-t1); font: 600 14px/1 var(--v-font); }
.vf__legal a { color: var(--v-t2); }
.vf__legal a:hover { color: var(--v-brand); }
.vf__legal strong { color: var(--v-t1); font-weight: 600; }
.vf__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.vf__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--v-line); font-size: 12px; line-height: 1.65; color: var(--v-t3); }
.vf__bottom p + p { margin-top: 10px; }
.vf__copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; color: var(--v-t2); font-size: 13px; }
.vf__copy nav { display: flex; gap: 18px; }
.vf__copy nav a:hover { color: var(--v-brand); }

/* =====================================================================
   Phone tab bar
   ===================================================================== */
.vtb { display: none; }

/* =====================================================================
   Toasts (nova-toast.js builds .ntoast-stack / .ntoast)
   ===================================================================== */
body.vega .ntoast-stack { position: fixed; top: 76px; right: 50%; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(50%); pointer-events: none; }
body.vega .ntoast { display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--v-r-md); background: var(--v-toast); color: #fff; font: 500 14px/1.4 var(--v-font); box-shadow: none; pointer-events: auto; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1280px) {
  .vh { gap: 16px; }
  .vh-nav__a { padding: 0 8px; }
  .vh-search { width: 150px; }
}
@media (max-width: 1140px) {
  .vh-nav, .vh-search, .vh__txt--desk { display: none; }
  .vh__burger.vh-ico { display: inline-grid; }
  .vf__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body.vega { font-size: 14px; }
  .v-wrap { padding: 0 16px; }
  .vh { padding: 0 16px 0 12px; gap: 8px; }
  .vh__name { font-size: 17px; }
  .vh__brand { --vh-fs: 17px; }
  .vh-pop--desk, .vh-bell--desk { display: none; }
  .vh__me.vh-ico { display: inline-grid; }
  .vh__signup { height: 34px; padding: 0 14px; }
}
/* narrow phones: Log in moves to the drawer (and the hero), so Sign up + globe + menu fit in every language */
@media (max-width: 480px) {
  .vh__login { display: none; }
  .vh__signup { white-space: nowrap; }
}
@media (max-width: 767px) {
  .vd { top: auto; right: 0; width: 100%; max-height: calc(88vh / var(--vz, 1)); border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .vd.lk-sidebar--dismiss-down { transition: transform .25s ease-in; }
  .vd__grab { display: flex; justify-content: center; padding: 10px 0 2px; flex: none; }
  .vd__grab span { width: 40px; height: 4px; border-radius: 2px; background: var(--v-press); }
  .vd__top { height: 52px; }
  .vf { margin-top: 64px; padding: 40px 0 120px; }
  .vf__top { grid-template-columns: 1fr; gap: 0; }
  .vf__brand { margin-bottom: 24px; }
  .vf .nova-foot__col { border-top: 1px solid var(--v-line); }
  .vf .nova-foot__col h4 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 16px 0; cursor: pointer; }
  .vf .nova-foot__col h4::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-left: 1.5px solid var(--v-t2); border-bottom: 1.5px solid var(--v-t2); transform: rotate(-45deg); transition: transform .2s; }
  .vf .nova-foot__col.is-open h4::after { transform: rotate(135deg); }
  .vf .nova-foot__col a { display: none; }
  .vf .nova-foot__col.is-open a { display: block; }
  .vf .nova-foot__col.is-open { padding-bottom: 12px; }
  .vf__legal, .vf__contacts { grid-template-columns: 1fr; }
  .vtb { position: fixed; right: 0; left: 0; bottom: 0; z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(16, 17, 19, .92); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: none; }
  .vtb__a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: var(--v-r); color: var(--v-t3); font: 500 11px/1 var(--v-font); }
  .vtb__a.is-on { color: var(--v-t1); }
  .vtb__a.is-on .vtb__ico { color: var(--v-brand); }
  body.vega.v-has-tabbar { padding-bottom: 64px; }
}

/* ---------- inputs inside a framed box own their focus ring ---------- */
.vega .ap-input:focus-visible, .vega .v-input:focus-visible, .vega .vx-join__in:focus-visible, .vega .vh-search input:focus-visible { outline: none; }

/* ---------- support widget (nova-support.js markup) restyled for vega ---------- */
body.vega .nsw-fab { background: var(--v-raised); color: var(--v-t1); box-shadow: 0 0 0 1px var(--v-line); }
body.vega .nsw-fab:hover { background: var(--v-press); }
body.vega .nsw-fab__badge { border-color: var(--v-bg); }
@media (max-width: 767px) {
  body.vega .nsw { left: 16px; bottom: 16px; }
  body.vega.v-has-tabbar .nsw { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  body.vega .nsw-fab { touch-action: none; }
  body.vega .nsw-hint { position: absolute; top: 50%; left: calc(100% + 10px); translate: 0 -50%; white-space: nowrap; pointer-events: none; padding: 8px 12px; border-radius: 999px; background: #fff; color: #101113; font-size: 14px; line-height: 18px; font-weight: 600; animation: v-fade .25s ease-out both; }
  body.vega .nsw-hint.is-right { left: auto; right: calc(100% + 10px); }
  body.vega .nsw-hint.is-out { opacity: 0; transition: opacity .2s; }
  body.vega .ntoast-stack { top: 72px; right: 16px; left: 16px; transform: none; }
}

/* skin 3: popovers are outlined, never shadowed */
.vh-dd, .vh-pop__panel, .vh-bell__panel, .hc-suggest { border: 1px solid var(--v-line-2); }
body.vega .asset-select__menu, body.vega .nsel__list { border: 1px solid var(--v-line-2) !important; }
body.vega .ntoast { border: 1px solid rgba(255, 255, 255, .08); }

/* skin 3: text fields never draw the browser focus ring — their frame turns lime instead
   (buttons and links keep the ring for keyboard users) */
body.vega :is(input, select, textarea):focus-visible { outline: none; }
body.vega img[src*="/img/vega/art/"] { object-fit: contain; }

/* Skin 3 rule: nothing moves on its own. The nova sheets loaded on account pages carry decorative loops
   (live dots, sonar, shine, flames, drifting strips, the support button nudge); they stand still here.
   Loading spinners and the brief price-change tint stay: they answer an event. */
body.vega .sk-live i, body.vega .sk-mkt.is-open i, body.vega .sk-geo__track, body.vega .lk-nav__new i,
body.vega .lk-nav__shine::after, body.vega .lk-nav__flame, body.vega .lk-nav__flame-core, body.vega .lk-sidebar__grab,
body.vega .lk-sidebar__grab *, body.vega .nsw-fab, body.vega .nsw.is-hinting .nsw-fab { animation: none !important; }
body.vega .lk-nav__shine::after { display: none; }

/* ---------- cookie notice (partials/cookie-bar.ejs) ---------- */
.v-cookie { position: fixed; right: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; align-items: center; gap: 24px; width: min(1260px, calc(100% - 32px)); padding: 16px 24px 16px 16px; border-radius: var(--v-r-xl); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--v-paper-ink); transform: translateX(50%); }
.v-cookie[hidden] { display: none; }
.v-cookie__text { flex: 1; margin: 0; color: #4b4d54; font-size: 14px; line-height: 1.5; }
.v-cookie__text .v-link { color: #5f8a00; font-weight: 600; }
.v-cookie__text .v-link:hover { color: #4a6d00; }
.v-cookie__acts { display: flex; flex: none; gap: 10px; }
.v-cookie__acts .v-btn { min-width: 96px; border-radius: var(--v-r-pill); }
.v-cookie__acts .v-btn--line { color: var(--v-paper-ink); box-shadow: inset 0 0 0 1px #d4d6da; }
.v-cookie__acts .v-btn--line:hover { background: #f1f2f4; box-shadow: inset 0 0 0 1px #b9bcc2; }
.v-cookie__acts .v-btn--brand { background: #1b1c23; color: #fff; }
.v-cookie__acts .v-btn--brand:hover { background: #000; }
@media (max-width: 767px) {
  .v-cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: var(--v-r-lg); }
  .v-cookie__text { font-size: 14px; }
  .v-cookie__acts .v-btn { flex: 1; }
  body.vega.v-has-tabbar .v-cookie { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Selected vs hovered menu items read differently (they shared one fill). */
.vh-dd__item:hover:not(.is-on), .vd__link:hover:not(.is-on) { background: rgba(255, 255, 255, .045); }
.vh-dd__item.is-on, .vh-dd__item.is-on:hover, .vd__link.is-on, .vd__link.is-on:hover { background: var(--v-raised); font-weight: 600; }
/* header balance: the veil class sits on the panel itself (.vh-bal.is-veiled) — show the asterisks there */
.vh-bal.is-veiled .bal-v { display: none; }
.vh-bal.is-veiled .bal-mask { display: inline; letter-spacing: .08em; }
.vh-bal.is-veiled .vh-bal__eye [data-eye-on] { display: none; }
.vh-bal.is-veiled .vh-bal__eye [data-eye-off] { display: inline; }

/* Support chat: no stock intro text — the feed shows only the worker's own greeting (if set) and real messages. */
body.vega .nsw-welcome { display: none !important; }

/* =====================================================================
   Footer v2: full width on the page background, filled cards, no rules,
   and the domain's own name in dots drifting along the bottom edge.
   (overrides the first footer block above, desktop and phone)
   ===================================================================== */
.vf { position: relative; margin: 96px 0 0; padding: 72px 0 0; overflow: hidden; border-radius: 0; background: var(--v-bg); color: var(--v-t2); }
/* name on top; under it the blurb and the marks share one row, centred on the same axis */
.vf__head { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 56px; }
.vf__brand { display: contents; }
.vf__brand .vh__brand { grid-column: 1; grid-row: 1; justify-self: start; }
.vf__blurb { grid-column: 1; grid-row: 2; margin: 0; }
.vf__marks { grid-column: 2; grid-row: 2; }
.vf__brand .vh__brand { margin-bottom: 14px; color: var(--v-t1); }
.vf__brand .vh__name { font-size: 26px; letter-spacing: -.035em; }
.vf__brand .vh__brand { --vh-fs: 26px; }
.vf__blurb { max-width: 470px; font-size: 15px; line-height: 1.6; }
.vf__marks { display: flex; flex: none; align-items: center; gap: 28px; margin-top: 0; }
.vf__marks span { display: grid; place-items: center; height: auto; padding: 0; border-radius: 0; background: none; }
.vf__marks img { height: 34px; width: auto; filter: grayscale(1) brightness(1.7); opacity: .85; }
.vf__top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.vf .nova-foot__col h4 { margin: 0 0 14px; color: var(--v-t3); font: 600 13px/1.2 var(--v-font); letter-spacing: .01em; }
.vf .nova-foot__col a { display: block; padding: 6px 0; color: var(--v-t2); font-size: 15px; line-height: 1.4; transition: color .15s var(--v-ease); }
.vf .nova-foot__col a:hover { color: var(--v-t1); }
.vf__legal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding-top: 0; border-top: 0; font-size: 13px; line-height: 1.7; }
.vf__card { min-width: 0; padding: 0; border-radius: 0; background: none; }
.vf__card:first-child { grid-column: span 2; }
.vf__card:last-child { grid-column: span 3; }
.vf__card h4 { margin: 0 0 14px; color: var(--v-t3); font: 600 13px/1.2 var(--v-font); }
.vf__card p { margin: 0; }
.vf__card strong { color: var(--v-t1); font-weight: 600; }
.vf__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin: 0; }
.vf__contacts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.vf__contacts dt { flex: none; color: var(--v-t3); }
.vf__contacts dd { min-width: 0; margin: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.vf__contacts a, .vf__legal a { color: var(--v-t1); }
.vf__contacts a:hover, .vf__legal a:hover { color: var(--v-brand); }
.vf__bottom { margin-top: 40px; padding-top: 0; border-top: 0; color: var(--v-t3); font-size: 12px; line-height: 1.65; }
.vf__copy { margin-bottom: 14px; color: var(--v-t2); font-size: 13px; }
.vf__copy nav a:hover { color: var(--v-t1); }
.vf__word { margin-top: 48px; overflow: hidden; user-select: none; -webkit-user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.vf__track { display: flex; width: max-content; gap: .28em; padding-top: .04em; font: 800 clamp(96px, 15vw, 250px)/.8 var(--v-font); letter-spacing: -.05em; white-space: nowrap; animation: vf-drift 90s linear infinite; }
.vf__track span { color: transparent; background: radial-gradient(circle, #3a3d44 0 1.6px, transparent 2.1px) 0 0 / 8px 8px; -webkit-background-clip: text; background-clip: text; }
@keyframes vf-drift { to { transform: translateX(calc(-1*(-50% - .14em))); } }
/* the dotted name drifts to the right (user, 2026-11-23): same loop, played backwards */
.vf__track { animation-direction: reverse; }
/* each word is a flex item exactly one .8em line tall, and its dots (background-clip: text) are painted only inside
   that box: the descenders (g, y, p, j) hung below it unpainted. The word's own box now reaches the descender. */
.vf__track span { padding-bottom: .17em; }
@media (prefers-reduced-motion: reduce) { .vf__track { animation: none; } }

@media (max-width: 1140px) {
  .vf__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf__brand { grid-column: auto; }
  .vf__legal { grid-template-columns: 1fr; gap: 32px; }
  .vf__card:first-child, .vf__card:last-child { grid-column: auto; }
}
@media (max-width: 767px) {
  /* the page itself already keeps room for the fixed tab bar (body padding): the footer ends right under the name */
  .vf { margin: 64px 0 0; padding: 40px 0 calc(12px + env(safe-area-inset-bottom)); }
  .vf__head { grid-template-columns: 1fr; row-gap: 0; }
  .vf__marks { grid-column: 1; grid-row: 3; margin-top: 24px !important; }
  .vf__marks { gap: 22px; }
  .vf__marks img { height: 30px; }
  .vf__brand { margin-bottom: 0; }
  .vf__brand .vh__name { font-size: 22px; }
  .vf__brand .vh__brand { --vh-fs: 22px; }
  /* link groups: an open two-column grid (the stacked accordion plates read heavy) */
  .vf__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin-top: 36px; }
  .vf .nova-foot__col { padding: 0; border: 0; border-radius: 0; background: none; }
  .vf .nova-foot__col h4 { margin: 0 0 10px; padding: 0; color: var(--v-t3); font-size: 13px; font-weight: 600; pointer-events: none; }
  .vf .nova-foot__col h4::after { content: none !important; display: none !important; }
  .vf .nova-foot__col a, .vf .nova-foot__col:not(.is-open) a { display: block; padding: 7px 0; font-size: 15px; }
  .vf__legal { margin-top: 32px; gap: 28px; }
  .vf__contacts { grid-template-columns: 1fr; }
  .vf__word { margin-top: 32px; }
  .vf__track { font-size: 30vw; }
}

/* Close (x) buttons of every skin 3 dialog, sheet, drawer and picker: a round plate on hover, a deeper
   plate + a small press-in on tap/click (the user asked for visible feedback; before only the colour moved) */
body.vega :is(.vq__x, .vu-rec__x, .vx__x, .vvp__x, .vm-lang__x, .vd__close, .kf-modal__x, .vsw-menu__x) {
  border-radius: 50% !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
@media (hover: hover) {
  body.vega :is(.vq__x, .vu-rec__x, .vx__x, .vvp__x, .vm-lang__x, .vd__close, .kf-modal__x):hover { background: rgba(255, 255, 255, .12) !important; color: var(--v-t1); }
  body.vega .vsw-menu__x:hover { background: rgba(0, 0, 0, .06) !important; }
}
body.vega :is(.vq__x, .vu-rec__x, .vx__x, .vvp__x, .vm-lang__x, .vd__close, .kf-modal__x):active { background: rgba(255, 255, 255, .2) !important; color: var(--v-t1); transform: scale(.88); }
body.vega .vsw-menu__x:active { background: rgba(0, 0, 0, .1) !important; transform: scale(.88); }

/* Drawer: neighbouring items keep 4px of air, so the selected / pressed fills never stick together */
.vd .vd__link + .vd__link { margin-top: 4px; }

/* Phones: moving between pages is one quick cross-fade; parts that are the same on both pages (header, tab bar)
   simply stay as they are. They are not lifted out as separate snapshots: that made the burger blur and jump for
   a moment (user, 2026-11-23). Same-origin page loads only; other browsers load the page as before. */
@media (max-width: 767px) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .14s; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Menu drawer: the fee next to a link ("Buy crypto 0%") is plain lime text right after the word — no plate, and
   not pushed away by the link's 14px icon gap (user, 2026-11-23) */
.vd .vd__link > .vh-nav__fee { margin-right: -8px; padding: 0; border-radius: 0; background: none; color: var(--v-brand); font: 600 13px/1 var(--v-font); }

/* Every skin 3 field: browser autofill never repaints it (Chrome's pale / dark plate ignored the field's rounding
   and colour). The fill colour change is held off by an endless transition; the text stays the theme's. */
body.vega input:is(:-webkit-autofill, :autofill), body.vega input:is(:-webkit-autofill, :autofill):is(:hover, :focus),
body.vega textarea:is(:-webkit-autofill, :autofill), body.vega select:is(:-webkit-autofill, :autofill) {
  -webkit-text-fill-color: var(--v-t1); caret-color: var(--v-t1); -webkit-box-shadow: none; box-shadow: none;
  transition: background-color 9999999s ease-in 0s, color 9999999s ease-in 0s;
}

/* Very large monitors (user, 2026-11-23): skin 3 is drawn in px for ~1440px screens, so on a 2560px+ monitor everything
   sat small in a sea of space. The whole page now scales up in steps, like the browser's own zoom. --vz is the factor;
   every "full screen height" in the CSS divides by it (calc(100vh / var(--vz, 1))) so it still fits the screen.
   Skin 2 never sets --vz, so its sheets keep factor 1. */
:root { --vz: 1; }
@media (min-width: 1800px) { :root { --vz: 1.1; } }
@media (min-width: 2100px) { :root { --vz: 1.22; } }
@media (min-width: 2400px) { :root { --vz: 1.36; } }
@media (min-width: 2800px) { :root { --vz: 1.58; } }
@media (min-width: 3300px) { :root { --vz: 1.85; } }
html:has(> body.vega) { zoom: var(--vz); }
/* the candle charts map the pointer in screen pixels: un-zoom their hosts (their text is scaled in trade-chart.js) */
body.vega [data-tc-canvas], body.vega [data-kx-osc-canvas], body.vega .price-chart__canvas { zoom: calc(1 / var(--vz)); }
