/* =====================================================================
   Lavelon cabinet — new design system (Figma "Lavelon labs").
   Light theme = "glass" gradients + inset highlights. Dark theme = flat surfaces (per design).
   Breakpoints: mobile < 768 · tablet 768–1279 (compact header) · desktop ≥ 1280 · full ≥ 1800.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-inter: "Inter", "Inter Tight", system-ui, sans-serif;

    --bg: #efefef;
    --bg-texture: none;
    --ink: #17171a;
    --ink-79: rgba(23, 23, 26, .79);
    --ink-77: rgba(23, 23, 26, .77);
    --ink-30: rgba(23, 23, 26, .3);
    --sub: #434347;
    --muted-title: #535356;
    --placeholder: #4c4c4f;
    --icon: #17171a;
    --line: rgba(23, 23, 26, .06);
    --line-strong: rgba(23, 23, 26, .15);
    --cell-rgb: 23, 23, 26;
    --green: #1f9d55;
    --orange: #f24a06;
    --orange-icon: #ff5a1f;

    /* white "glass" — header pills, nav track */
    --glass-1: linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.3) 12%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 75%, rgba(255,255,255,.3) 88%, rgba(255,255,255,.7) 100%), linear-gradient(180deg, #fff 0%, #f3f0ed 40%, #f6f4f2 75%, #fff 100%);
    --glass-1-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 11px 0 #fff;
    /* segmented tracks (white glass +20% white) */
    --track: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.2)), var(--glass-1);
    --track-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 12px 1px #fff;
    /* soft glass cards — ref link, distribution, coin rows */
    --glass-card: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.75)), var(--glass-1);
    --glass-card-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 11px 1px #fff;
    /* grey glass — secondary buttons on cards */
    --glass-2: linear-gradient(90deg, rgba(251,250,249,.8) 0%, rgba(251,250,249,.3) 12%, rgba(251,250,249,0) 25%, rgba(251,250,249,0) 75%, rgba(251,250,249,.3) 88%, rgba(251,250,249,.7) 100%), linear-gradient(180deg, #f7f6f4 0%, #e6e3df 45%, #ebe9e6 80%, #f7f6f4 100%);
    --glass-2-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 2px 0 rgba(255,255,255,.6), inset 0 0 10px 1px rgba(255,255,255,.9);
    /* white-backed glass — mobile search, tabs track, pager */
    --glass-white: linear-gradient(90deg, #fff, #fff), var(--glass-2);
    /* active pill */
    --active: linear-gradient(90deg, rgba(142,135,130,.8) 0%, rgba(142,135,130,.3) 12%, rgba(142,135,130,0) 25%, rgba(142,135,130,0) 75%, rgba(142,135,130,.3) 88%, rgba(142,135,130,.7) 100%), linear-gradient(180deg, #77716c 0%, #3a3633 18%, #161514 50%, #24211f 82%, #4a4541 100%);
    --active-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.35), inset 0 0 2px 0 rgba(255,255,255,.18), inset 0 0 10px 1px rgba(163,156,150,.75);
    --active-ink: #fff;
    --active-ink-77: rgba(255, 255, 255, .77);
    --active-ink-35: rgba(255, 255, 255, .35);
    /* orange primary */
    --primary: linear-gradient(90deg, rgba(255,241,230,.8) 0%, rgba(255,201,166,.3) 12%, rgba(255,201,166,0) 25%, rgba(255,201,166,0) 75%, rgba(255,201,166,.3) 88%, rgba(255,241,230,.7) 100%), linear-gradient(180deg, #ffd9bf 0%, #ffb27a 18%, #ff7a2e 42%, #ff5a12 62%, #f24a06 82%, #ff8a3d 100%);
    --primary-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.9), inset 0 0 3px 0 rgba(255,255,255,.5), inset 0 0 11px 0 rgba(255,243,234,.85);
    --peach: linear-gradient(90deg, rgba(255,246,240,.8) 0%, rgba(255,246,240,.3) 12%, rgba(255,246,240,0) 25%, rgba(255,246,240,0) 75%, rgba(255,246,240,.3) 88%, rgba(255,246,240,.7) 100%), linear-gradient(180deg, #fff1e8 0%, #ffd2b6 45%, #ffdcc6 80%, #fff3ec 100%);
    --peach-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.95), inset 0 0 2px 0 rgba(255,255,255,.6), inset 0 0 9px 0 #fff;

    --card: #fff;
    --kpi: #fff;
    --kpi-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 6px 0 rgba(255,255,255,.6), inset 0 0 24px 1px #fff;
    --kpi-texture: url(tex/kpi.svg);
    --row-hover: #f4f4f2;
    --row-texture: url(tex/row-hover.svg);
    --pager: #e4e4e2;
    --chip-done: linear-gradient(90deg, rgba(251,250,249,.8) 0%, rgba(251,250,249,.25) 15%, rgba(251,250,249,0) 30%, rgba(251,250,249,0) 70%, rgba(251,250,249,.25) 85%, rgba(251,250,249,.7) 100%), linear-gradient(180deg, #f7f6f4 0%, #e6e3df 45%, #ebe9e6 80%, #f7f6f4 100%);
    --chip-done-ink: #4a4a4e;
    --chip-pending: linear-gradient(90deg, rgba(255,246,240,.8) 0%, rgba(255,246,240,.25) 15%, rgba(255,246,240,0) 30%, rgba(255,246,240,0) 70%, rgba(255,246,240,.25) 85%, rgba(255,246,240,.7) 100%), linear-gradient(180deg, #fff1e8 0%, #ffd2b6 45%, #ffdcc6 80%, #fff3ec 100%);
    --chip-shadow: inset 0 0 1px 0 rgba(255,255,255,.95), inset 0 0 2px 0 rgba(255,255,255,.55), inset 0 0 7px 0 rgba(255,255,255,.95);
    --footer-pill: #efeeec;
    --footer-pill-shadow: inset 0 1px 1px 0 rgba(255,255,255,.9);
    --popover: #fff;
    --popover-shadow: 0 18px 48px rgba(23, 23, 26, .14), 0 2px 6px rgba(23, 23, 26, .06);

    --r-card: 44px;
    --gutter: 16px;
    --gap: 8px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #202020;
    --bg-texture: url(tex/bg-dark.png);
    --ink: #fff;
    --ink-79: rgba(255, 255, 255, .79);
    --ink-77: rgba(255, 255, 255, .77);
    --ink-30: rgba(255, 255, 255, .3);
    --sub: #c7c7c9;
    --muted-title: #b9b9bb;
    --placeholder: #bfbfc1;
    --icon: #f1f1f2;
    --line: rgba(241, 241, 242, .06);
    --line-strong: rgba(241, 241, 242, .15);
    --cell-rgb: 241, 241, 242;

    --glass-1: linear-gradient(#131315, #131315);
    --glass-1-shadow: none;
    --track: linear-gradient(#29292b, #29292b);
    --track-shadow: none;
    --glass-card: linear-gradient(#131315, #131315);
    --glass-card-shadow: none;
    --glass-2: linear-gradient(#29292b, #29292b);
    --glass-2-shadow: none;
    --glass-white: linear-gradient(#29292b, #29292b);
    --active: linear-gradient(#fff, #fff);
    --active-shadow: none;
    --active-ink: #1b1b1b;
    --active-ink-77: rgba(27, 27, 27, .77);
    --active-ink-35: rgba(27, 27, 27, .35);
    --primary: linear-gradient(155deg, #ff7216 6.35%, #ffb27a 22.06%, #ff7a2e 43.02%, #ff5a12 60.48%, #f24a06 77.94%, #ff8a3d 93.65%), linear-gradient(180deg, #ff7216 0%, #ffb27a 18%, #ff7a2e 42%, #ff5a12 62%, #f24a06 82%, #ff8a3d 100%);
    --primary-shadow: none;
    --peach-shadow: none;

    --card: #131315;
    --kpi: #131315;
    --kpi-shadow: none;
    --kpi-texture: url(tex/kpi-dark.svg);
    --row-hover: #1d1d1f;
    --row-texture: url(tex/row-hover-dark.svg);
    --pager: #353534;
    --chip-done: linear-gradient(#29292b, #29292b);
    --chip-done-ink: #c1c1c3;
    --chip-pending: linear-gradient(90deg, rgba(38,34,31,.8) 0%, rgba(38,34,31,.25) 15%, rgba(38,34,31,0) 30%, rgba(38,34,31,0) 70%, rgba(38,34,31,.25) 85%, rgba(38,34,31,.7) 100%), linear-gradient(180deg, #2d211a 0%, #58311a 45%, #4a2c1a 80%, #2a2420 100%);
    --chip-shadow: none;
    --footer-pill: #29292b;
    --footer-pill-shadow: none;
    --popover: #1b1b1d;
    --popover-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(241, 241, 242, .06);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lv-no-scroll { overflow: hidden; }
body.lv {
    margin: 0;
    min-height: calc(100vh / var(--lv-z, 1));
    font-family: var(--font);
    font-weight: 400;
    font-size: 15px;
    line-height: normal;
    letter-spacing: -.01em;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.lv::before { /* dark-theme dot texture (design: 192px tile @ 35% opacity) */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-texture) 0 0 / 192px 192px repeat;
    opacity: .35;
    pointer-events: none;
}
:where(.lv) a { color: inherit; text-decoration: none; }
:where(.lv) button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.lv) :is(h1, h2, h3, p, ul, dl, dd) { margin: 0; padding: 0; }
:where(.lv) ul { list-style: none; }
:where(.lv) h2 { font-size: inherit; font-weight: inherit; }
:where(.lv) img { display: block; max-width: none; }
.lv :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lv [hidden] { display: none !important; }
.lv-grow { flex: 1 1 auto; min-width: 0; }
.lv-inter { font-family: var(--font-inter); }
.is-positive { color: var(--green) !important; }
.lv-muted { color: var(--ink-77); }
.lv-muted-30 { color: var(--ink-30); }
/* visually hidden via clip, not left:-9999px: in RTL (ar) an element far to the left widens the page to ~10 000px */
.lv-skip { position: absolute; left: 16px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 20px; background: var(--card); width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lv-skip:focus { width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
[dir="rtl"] .lv-skip { left: auto; right: 16px; }

/* ---------- Icons (CSS masks → follow currentColor, so one file works in both themes) ---------- */
.ico {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.ico--14 { width: 14px; height: 14px; }
.ico--16 { width: 16px; height: 16px; }
.ico--18 { width: 18px; height: 18px; }
.ico--globe { -webkit-mask-image: url(icons/globe.svg); mask-image: url(icons/globe.svg); }
.ico--sun { -webkit-mask-image: url(icons/sun.svg); mask-image: url(icons/sun.svg); }
.ico--moon { -webkit-mask-image: url(icons/moon.svg); mask-image: url(icons/moon.svg); }
.ico--bell { -webkit-mask-image: url(icons/bell.svg); mask-image: url(icons/bell.svg); }
.ico--chevron-down { -webkit-mask-image: url(icons/chevron-down.svg); mask-image: url(icons/chevron-down.svg); }
.ico--chevron-right { -webkit-mask-image: url(icons/chevron-right.svg); mask-image: url(icons/chevron-right.svg); }
.ico--chevron-left { -webkit-mask-image: url(icons/chevron-left.svg); mask-image: url(icons/chevron-left.svg); }
.ico--check { -webkit-mask-image: url(icons/check.svg); mask-image: url(icons/check.svg); }
.ico--menu-dashboard { -webkit-mask-image: url(icons/menu-dashboard.svg); mask-image: url(icons/menu-dashboard.svg); width: 18px; height: 18px; }
.ico--menu-deposits { -webkit-mask-image: url(icons/menu-deposits.svg); mask-image: url(icons/menu-deposits.svg); width: 18px; height: 18px; }
.ico--menu-partners { -webkit-mask-image: url(icons/menu-partners.svg); mask-image: url(icons/menu-partners.svg); width: 18px; height: 18px; }
.ico--menu-mentor { -webkit-mask-image: url(icons/menu-mentor.svg); mask-image: url(icons/menu-mentor.svg); width: 18px; height: 18px; }
.ico--menu-news { -webkit-mask-image: url(icons/menu-news.svg); mask-image: url(icons/menu-news.svg); width: 18px; height: 18px; }
.ico--menu-marketing { -webkit-mask-image: url(icons/menu-marketing.svg); mask-image: url(icons/menu-marketing.svg); width: 18px; height: 18px; }
.ico--share { -webkit-mask-image: url(icons/share.svg); mask-image: url(icons/share.svg); }
.ico--plus { -webkit-mask-image: url(icons/plus.svg); mask-image: url(icons/plus.svg); }
.ico--arrow-up { -webkit-mask-image: url(icons/arrow-up.svg); mask-image: url(icons/arrow-up.svg); }
.ico--exchange { -webkit-mask-image: url(icons/exchange.svg); mask-image: url(icons/exchange.svg); }
.ico--copy { -webkit-mask-image: url(icons/copy.svg); mask-image: url(icons/copy.svg); }
.ico--arrow-up-right { -webkit-mask-image: url(icons/arrow-up-right.svg); mask-image: url(icons/arrow-up-right.svg); color: var(--orange-icon); }
.ico--arrow-diag { -webkit-mask-image: url(icons/arrow-diag.svg); mask-image: url(icons/arrow-diag.svg); }
.ico--search { -webkit-mask-image: url(icons/search.svg); mask-image: url(icons/search.svg); }
.ico--status { -webkit-mask-image: url(icons/status.svg); mask-image: url(icons/status.svg); }
.ico--clock { -webkit-mask-image: url(icons/clock.svg); mask-image: url(icons/clock.svg); }
.ico--page-prev { -webkit-mask-image: url(icons/page-prev.svg); mask-image: url(icons/page-prev.svg); }
.ico--page-next { -webkit-mask-image: url(icons/page-next.svg); mask-image: url(icons/page-next.svg); }
.ico--android { -webkit-mask-image: url(icons/android.svg); mask-image: url(icons/android.svg); }
.ico--windows { -webkit-mask-image: url(icons/windows.svg); mask-image: url(icons/windows.svg); }
.ico--brand-x { -webkit-mask-image: url(icons/brand-x.svg); mask-image: url(icons/brand-x.svg); }

/* ---------- Shared surfaces ---------- */
.glass { background-image: var(--glass-1); box-shadow: var(--glass-1-shadow); }
.glass-card { background-image: var(--glass-card); box-shadow: var(--glass-card-shadow); }
.lv-card { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.lv-card__head { display: flex; align-items: center; gap: 12px; }
.lv-card__title { flex: 1 1 auto; min-width: 0; font-weight: 300; font-size: 30px; letter-spacing: -.9px; white-space: nowrap; }
.lv-card__muted { color: var(--muted-title); }
.lv-section-title { font-weight: 300; font-size: 20px; letter-spacing: -.6px; padding: 8px 4px 0; }

.lv-pill { /* grey glass button on cards: «Поделиться», «Подробнее» */
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto;
    height: 40px; padding: 0 16px 0 14px; border-radius: 20px;
    background-image: var(--glass-2); box-shadow: var(--glass-2-shadow);
    font-size: 14px; letter-spacing: -.14px; color: var(--ink); white-space: nowrap;
}
.lv-pill .ico { color: var(--icon); }
.lv-pill--44 { height: 44px; padding: 0 18px; border-radius: 22px; gap: 10px; font-size: 15px; letter-spacing: -.15px; }
.lv-pill--block { display: flex; width: 100%; }
.lv-round-sm {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 20px; color: var(--icon);
    background-image: var(--glass-2); box-shadow: var(--glass-2-shadow);
}
.lv-pill:hover, .lv-round-sm:hover, .lv-fpill:hover { filter: brightness(.97); }
:root[data-theme="dark"] .lv-pill:hover, :root[data-theme="dark"] .lv-round-sm:hover, :root[data-theme="dark"] .lv-fpill:hover { filter: brightness(1.2); }

.lv-casino { /* orange «Казино» with white arrow circle */
    display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto;
    height: 56px; padding: 0 6px 0 30px; border-radius: 28px;
    background-image: var(--primary); box-shadow: var(--primary-shadow);
    color: #fff; font-size: 15px; letter-spacing: -.225px; white-space: nowrap;
}
.lv-casino__arrow, .lv-cta__arrow {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 22px; background: #fff;
}
.lv-casino:hover, .lv-cta:hover { filter: saturate(1.1) brightness(1.03); }

.lv-avatar {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    border-radius: 50%; overflow: hidden; background-image: var(--peach); box-shadow: var(--peach-shadow);
    color: #8a4a26; font-size: 15px;
}
.lv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lv-avatar--44 { width: 44px; height: 44px; }
.lv-avatar--36 { width: 44px; height: 44px; }

.lv-alert { margin: 0 var(--gutter) var(--gap); padding: 14px 20px; border-radius: 22px; background: var(--card); font-size: 14px; }
.lv-alert--error { color: #c2410c; }
.lv-card .lv-alert, .lv-side .lv-alert, .lv-content .lv-alert { margin: 0; }

/* ---------- Popovers ---------- */
.lv-pop-wrap { position: relative; }
.lv-pop {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
    min-width: 220px; max-height: min(calc(70vh / var(--lv-z, 1)), 520px); overflow: auto;
    padding: 6px; border-radius: 22px; background: var(--popover); box-shadow: var(--popover-shadow);
}
.lv-pop--right, .lv-pop--user { left: auto; right: 0; }
.lv-pop--lang { min-width: 240px; }
.lv-pop__item {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px 0 16px; border-radius: 18px;
    font-size: 15px; white-space: nowrap;
}
.lv-pop__item > span:first-child { flex: 1 1 auto; }
.lv-pop__item:hover { background: var(--row-hover); }
.lv-pop__item.is-active { background-image: var(--glass-2); box-shadow: var(--glass-2-shadow); }
.lv-pop__code { color: var(--ink-77); font-size: 13px; }
/* dashboard transactions: date range (from–to) popover */
.lv-range { display: flex; flex-direction: column; gap: 12px; width: 300px; max-width: calc(100vw / var(--lv-z, 1) - 32px); padding: 16px; }
.lv-range__title { font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-range__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-range__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink-77); }
.lv-range__field input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 0; border-radius: 14px; background: var(--row-hover); font: inherit; font-size: 14px; color: var(--ink); color-scheme: inherit; }
.lv-range__buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lv-range__reset { margin-right: auto; font-size: 13px; color: var(--ink-77); text-decoration: underline; text-underline-offset: 3px; }
.lv-range__apply { height: 40px; padding: 0 18px; border-radius: 20px; background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); font: inherit; font-size: 14px; }

/* ---------- Header ---------- */
.lv-header { padding: 16px var(--gutter) 0; }
.lv-header__row { display: flex; align-items: center; gap: 8px; }
.lv-header__tools { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.lv-header__row2 { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }

.lv-logo {
    display: flex; align-items: center; gap: 16px; flex: 0 0 auto;
    height: 48px; padding: 0 22px 0 18px; border-radius: 28px; color: var(--icon);
}
.lv-logo__art { position: relative; display: inline-flex; align-items: center; gap: 5.6px; color: var(--icon); }
.lv-logo__mark, .lv-logo__word1, .lv-logo__word2 { display: block; background: currentColor; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.lv-logo__mark { width: 20px; height: 17.86px; -webkit-mask-image: url(brand/logo-mark.svg); mask-image: url(brand/logo-mark.svg); }
.lv-logo__word1 { width: 85.7px; height: 8.75px; -webkit-mask-image: url(brand/logo-lavelon.svg); mask-image: url(brand/logo-lavelon.svg); }
.lv-logo__word2 { width: 48.82px; height: 8.69px; margin-left: 1.3px; -webkit-mask-image: url(brand/logo-labs.svg); mask-image: url(brand/logo-labs.svg); }
.lv-logo__sep, .lv-logo__caption { display: none; }
.lv-logo__sep { width: 1px; height: 18px; background: var(--line-strong); }
.lv-logo__caption { font-size: 13px; letter-spacing: -.13px; color: var(--placeholder); }

.lv-nav { display: none; }
.lv-round {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 28px; color: var(--icon);
}
.lv-menu-btn { height: 48px; padding: 0 20px; border-radius: 28px; font-size: 12px; letter-spacing: -.12px; white-space: nowrap; }
.lv-menu-btn[aria-expanded="true"] { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); min-width: 80px; }
.lv-lang { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 28px; font-size: 15px; letter-spacing: -.225px; }
.lv-lang .ico { color: var(--icon); }
.lv-theme { display: inline-flex; gap: 2px; padding: 4px; border-radius: 28px; }
.lv-theme__btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; color: var(--icon); }
.lv-theme__btn[aria-pressed="true"] { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); }

.lv-user {
    display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px; border-radius: 28px; text-align: left;
    background-image: var(--glass-1); box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 11px 1px #fff;
}
:root[data-theme="dark"] .lv-user { box-shadow: none; }
.lv-user--wide { width: 100%; }
.lv-user__link { display: flex; flex: 1 1 auto; align-items: center; gap: inherit; min-width: 0; height: 100%; border-radius: inherit; color: inherit; }
.lv-user__chev { flex: 0 0 auto; }
.lv-user__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.lv-user__name { font-size: 15px; letter-spacing: -.15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-user__sub { font-size: 12px; letter-spacing: -.12px; color: var(--ink-79); white-space: nowrap; }
.lv-user__chev {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px;
    background-image: var(--glass-2); box-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.95), inset 0 0 2px 0 rgba(255,255,255,.6), inset 0 0 9px 0 rgba(255,255,255,.9);
    color: var(--icon);
}
:root[data-theme="dark"] .lv-user__chev { box-shadow: none; }
.lv-header__row2 .lv-casino { padding-left: 20px; }

.lv-only-desktop { display: none !important; }
@media (max-width: 767.98px) { .lv-hide-mobile { display: none !important; } }

/* Mobile/tablet menu sheet */
.lv-menu { margin-top: 12px; }
.lv-menu__panel { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 32px; background: var(--card); }
.lv-menu__title { padding: 12px 14px 6px; font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-menu__title:first-child { padding-top: 10px; }
.lv-menu__list { display: flex; flex-direction: column; gap: 4px; }
.lv-menu__item { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px 0 20px; border-radius: 26px; color: var(--ink); }
.lv-menu__item .ico { color: var(--icon); }
.lv-menu__item .ico--chevron-right { opacity: .35; width: 14px; height: 14px; }
.lv-menu__label { flex: 1 1 auto; font-size: 17px; letter-spacing: -.17px; }
.lv-menu__here { font-size: 14px; letter-spacing: -.14px; color: var(--active-ink-35); }
.lv-menu__item.is-active { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); }
.lv-menu__item.is-active .ico { color: var(--active-ink); }
.lv-menu__item.is-active .ico--chevron-right { opacity: .8; }
.lv-menu__sep { height: 1px; margin: 0; border: 0; background: var(--line); }
.lv-menu__select {
    display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 18px; border-radius: 26px; text-align: left;
    background-image: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.2)), linear-gradient(#f4f4f2, #f4f4f2), var(--glass-1);
    box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 11px 1px #fff;
    font-size: 15px; letter-spacing: -.225px;
}
.lv-menu__select .ico { color: var(--icon); }
:root[data-theme="dark"] .lv-menu__select { background: #29292b; box-shadow: none; }
.lv-menu__theme { display: flex; gap: 4px; padding: 4px; border-radius: 26px; background-image: var(--track); box-shadow: var(--track-shadow); }
.lv-menu__theme button {
    display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 22px;
    font-family: var(--font-inter); font-size: 15px; letter-spacing: -.45px;
}
.lv-menu__theme button .ico { color: var(--icon); }
.lv-menu__theme button[aria-pressed="true"] { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); }
.lv-menu__theme button[aria-pressed="true"] .ico { color: var(--active-ink); }
.lv-menu__head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 6px; }
.lv-menu__back { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 16px; color: var(--icon); }
.lv-menu__head-title { flex: 1 1 auto; font-size: 17px; letter-spacing: -.17px; }
.lv-menu__head-count, .lv-menu__code { font-size: 13px; letter-spacing: -.13px; color: rgba(var(--cell-rgb), .76); }
:root[data-theme="dark"] .lv-menu__head-count, :root[data-theme="dark"] .lv-menu__code { color: rgba(255, 255, 255, .76); }
.lv-menu__langs { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.lv-menu__lang { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 20px; border-radius: 23px; font-size: 16px; letter-spacing: -.16px; }
.lv-menu__lang.is-active {
    background-image: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.2)), linear-gradient(#f4f4f2, #f4f4f2), var(--glass-1);
    box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.95), inset 0 0 3px 0 rgba(255,255,255,.6), inset 0 0 11px 1px #fff;
}
:root[data-theme="dark"] .lv-menu__lang.is-active { background: #29292b; box-shadow: none; }
.lv-menu__lang .ico { color: var(--icon); }
.lv-menu:not([hidden]) ~ * { display: none; }

/* ---------- Page layout ---------- */
.lv-main { padding: 8px var(--gutter) 28px; }
.lv-page { display: flex; flex-direction: column; gap: var(--gap); }
.lv-side, .lv-content { display: contents; }
/* mobile order follows the design: balance, ref, mentor, KPIs, accruals, currencies, partners, transactions */
.lv-balance { order: 1; } .lv-ref { order: 2; } .lv-mentor { order: 3; } .lv-kpis { order: 4; }
.lv-earn { order: 5; } .lv-cur { order: 6; } .lv-partners { order: 7; } .lv-tx { order: 8; }
html:has(.lv-menu:not([hidden])) .lv-header__row2, html:has(.lv-menu:not([hidden])) .lv-main, html:has(.lv-menu:not([hidden])) .lv-footer, html:has(.lv-menu:not([hidden])) .lv-assistant { display: none; }

/* ---------- Balance card ---------- */
.lv-balance {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 44px;
    background-image: var(--primary);
    color: #fff;
}
.lv-balance::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
    box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.9), inset 0 0 8px 0 rgba(255,255,255,.5), inset 0 0 30px 4px rgba(255,243,234,.85);
}
:root[data-theme="dark"] .lv-balance::after { box-shadow: none; }
.lv-balance__cat {
    position: absolute; z-index: -1; left: 139px; bottom: -22px; width: 366px; height: 227px;
    object-fit: contain; transform: scaleX(-1); filter: blur(3.5px); pointer-events: none;
}
.lv-balance__top { display: flex; align-items: center; gap: 8px; }
.lv-balance__title { flex: 1 1 auto; text-align: right; font-size: 16px; letter-spacing: -.16px; color: rgba(255, 255, 255, .92); }
/* «Общий баланс» opens the window with every currency (final edits 25.11) */
.lv-balance__open {
    display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer;
    transition: background-color .2s ease;
}
.lv-balance__open:hover { background: rgba(255, 255, 255, .26); }
.lv-balance__open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lv-pill-white {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 20px;
    background: #fff; color: var(--orange); font-size: 14px; letter-spacing: -.14px; white-space: nowrap;
}
.lv-balance__amount { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.lv-balance__value { display: flex; align-items: baseline; gap: 10px; }
.lv-dotnum { display: block; height: 30px; width: auto; color: #fff; }
.lv-balance__cur { font-size: 16px; letter-spacing: -.16px; color: rgba(255, 255, 255, .85); }
.lv-balance__delta { font-size: 14px; letter-spacing: -.14px; color: rgba(255, 255, 255, .85); }
.lv-balance__actions { display: flex; gap: 6px; }
.lv-bbtn {
    display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 10px; min-width: 0;
    height: 48px; padding: 0 8px; border-radius: 24px; overflow: hidden;
    background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(11.4px); backdrop-filter: blur(11.4px);
    color: #fff; font-size: 14px; letter-spacing: -.14px; white-space: nowrap;
}
.lv-bbtn .ico { display: none; }
.lv-bbtn--white { background: #fff; color: var(--ink); }
:root[data-theme="dark"] .lv-bbtn--white { color: #17171a; }
.lv-bbtn:hover { background: rgba(255, 255, 255, .3); }
.lv-bbtn--white:hover { background: #fff8f3; }

/* ---------- Referral link ---------- */
.lv-ref { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 12px 12px 12px 20px; border-radius: 30px; }
.lv-ref__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; font-family: var(--font-inter); letter-spacing: 0; color: var(--ink-79); }
.lv-ref__label { font-size: 12px; }
.lv-ref__link { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Mentor card ---------- */
.lv-mentor {
    display: flex; flex-direction: column; gap: 20px; padding: 20px; border-radius: 30px; overflow: hidden;
    background-image: linear-gradient(90deg, rgba(142,135,130,.8) 0%, rgba(142,135,130,.3) 12%, rgba(142,135,130,0) 25%, rgba(142,135,130,0) 75%, rgba(142,135,130,.3) 88%, rgba(142,135,130,.7) 100%), linear-gradient(180deg, #77716c 0%, #3a3633 18%, #161514 50%, #24211f 82%, #4a4541 100%);
    box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.4), inset 0 0 2px 0 rgba(255,255,255,.2), inset 0 0 7px 1px rgba(163,156,150,.75);
    color: #fff;
}
.lv-mentor__title { font-size: 20px; letter-spacing: -.2px; }
.lv-mentor__body { display: flex; flex-direction: column; gap: 10px; }
.lv-mentor__people { display: flex; align-items: center; gap: 10px; }
.lv-mentor__stack { display: flex; }
.lv-mentor__stack img { width: 40px; height: 40px; margin-inline-end: -15px; border-radius: 50%; object-fit: cover; }
/* the overlap is between neighbours only: the last item (a photo when there is no «+N») keeps clear of the text */
.lv-mentor__stack > :last-child { margin-inline-end: 0; }
.lv-mentor__more {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6.75px); backdrop-filter: blur(6.75px);
    font-size: 11px; letter-spacing: -.11px; color: rgba(255, 255, 255, .8);
}
.lv-mentor__count { display: flex; flex-direction: column; gap: 2px; }
.lv-mentor__count b { font-weight: 400; font-size: 15px; letter-spacing: -.15px; }
.lv-mentor__count span { font-size: 12px; letter-spacing: -.12px; color: rgba(255, 255, 255, .79); }
.lv-mentor__map { position: relative; width: 308px; max-width: 100%; height: 128px; background: url(tex/mentor-map-mobile.svg) 0 0 / 308px 128px no-repeat; }
.lv-mentor__glow { position: absolute; left: 156px; top: 60px; width: 8px; height: 8px; border-radius: 5px; background: var(--orange); box-shadow: 0 0 16px 0 rgba(255, 89, 13, .8); }
.lv-mentor__tile { position: absolute; width: 32px; height: 32px; padding: 2px; border-radius: 5px; overflow: hidden; background: rgba(242, 74, 6, .9); }
.lv-mentor__tile img { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
.lv-mentor__tile--0 { left: 24px; top: 24px; } .lv-mentor__tile--1 { left: 108px; top: 0; } .lv-mentor__tile--2 { left: 84px; top: 96px; }
.lv-mentor__tile--3 { left: 192px; top: 96px; } .lv-mentor__tile--4 { left: 240px; top: 12px; } .lv-mentor__tile--5 { left: 264px; top: 72px; }
.lv-mentor__foot { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; }
.lv-mentor__text { max-width: 113px; font-size: 12px; letter-spacing: -.12px; color: rgba(255, 255, 255, .81); }
/* phones: the white pixel field is toned down under the tiles, and the tile pulse / glow ping are slower and softer */
@keyframes lv-mentor-tile-soft { 0%, 100% { scale: 1; opacity: .95; } 50% { scale: .96; opacity: .85; } }
@keyframes lv-mentor-ping-soft { 0% { scale: 1; opacity: .4; } 70%, 100% { scale: 2.2; opacity: 0; } }
@media (max-width: 767.98px) {
    /* full card width: the 308px pixel grid repeats at its real size from the centre (308 = whole cells, seamless),
       the glow and tiles keep their exact cells of the design, measured from the centre */
    .lv-mentor__map { width: 100%; max-width: none; background: url(tex/mentor-map-mobile.svg) 50% 0 / 308px 128px repeat-x; }
    .lv-mentor__glow { left: calc(50% + 2px); }
    .lv-mentor__tile--0 { left: calc(50% - 130px); } .lv-mentor__tile--1 { left: calc(50% - 46px); } .lv-mentor__tile--2 { left: calc(50% - 70px); }
    .lv-mentor__tile--3 { left: calc(50% + 38px); } .lv-mentor__tile--4 { left: calc(50% + 86px); } .lv-mentor__tile--5 { left: calc(50% + 110px); }
    .lv-mentor__map::before { content: ""; position: absolute; inset: 0; background: rgba(14, 13, 12, .42); pointer-events: none; }
    .motion-ready .lv-mentor__map .lv-mentor__tile { animation: lv-mentor-tile-soft 7.5s ease-in-out infinite; }
    .motion-ready .lv-mentor__map .lv-mentor__tile:nth-child(2n) { animation-duration: 6.5s; animation-delay: -1.3s; }
    .motion-ready .lv-mentor__map .lv-mentor__tile:nth-child(3n) { animation-duration: 8.5s; animation-delay: -2.7s; }
    .motion-ready .lv-mentor__map .lv-mentor__glow::after { animation: lv-mentor-ping-soft 4.5s ease-out infinite; }
}

/* ---------- Mentor statistics card (active mentor period; Figma «Главная - ментор») ----------
   Shares the .lv-mentor shell (background, radius, place in the page, dark theme); same layout on phone and desktop. */
.lv-mentor.lv-mstat { gap: 16px; padding: 22px; }
.lv-mstat__head { display: flex; align-items: flex-start; gap: 10px; }
.lv-mstat__intro { display: flex; flex: 1 1 0; flex-direction: column; gap: 4px; min-width: 0; }
.lv-mstat__title { font-size: 20px; letter-spacing: -.2px; }
.lv-mstat__sub { font-size: 13px; letter-spacing: -.13px; color: rgba(255, 255, 255, .79); }
.lv-mstat__badge {
    display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 16px;
    background: rgba(31, 157, 85, .22); font-size: 12px; letter-spacing: -.12px; color: #7ee0a3; white-space: nowrap;
}
.lv-mstat__badge::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: url(icons/dot-active.svg) 0 0 / 6px 6px no-repeat; }
.lv-mstat__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.lv-mstat__tile { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.lv-mstat__tile dt { font-size: 12px; letter-spacing: -.12px; color: rgba(255, 255, 255, .79); }
.lv-mstat__tile dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; font-weight: 300; font-size: 26px; letter-spacing: -.78px; white-space: nowrap; }
/* a value is a number with an optional smaller unit (12 дней, 500 USDT); a unit that does not fit drops under its number */
.lv-mstat__tile dd span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; min-width: 0; }
.lv-mstat__tile dd b { font-weight: inherit; }
.lv-mstat__tile dd.is-empty { color: rgba(255, 255, 255, .76); }
.lv-mstat__tile small { font-weight: 400; font-size: 13px; letter-spacing: -.13px; color: rgba(255, 255, 255, .79); }
.lv-mstat__progress { display: flex; flex-direction: column; gap: 8px; }
.lv-mstat__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: -.12px; color: rgba(255, 255, 255, .79); white-space: nowrap; }
.lv-mstat__state { color: rgba(255, 255, 255, .35); }
.lv-mstat__state.is-set { color: #fff; }
.lv-mstat .lv-mstat__bar { --cell: 8px; --gap: 3px; height: 30px; }
.lv-mstat .lv-mstat__bar i { border-radius: 2.2px; }
.lv-mstat .lv-mstat__bar i.s1 { background: rgba(255, 255, 255, .04); } .lv-mstat .lv-mstat__bar i.s2 { background: rgba(255, 255, 255, .06); }
.lv-mstat .lv-mstat__bar i.s3 { background: rgba(255, 255, 255, .09); } .lv-mstat .lv-mstat__bar i.s4 { background: rgba(255, 255, 255, .12); }

.lv-cta {
    display: inline-flex; align-items: center; gap: 20px; flex: 0 0 auto; height: 56px; padding: 0 6px 0 26px; border-radius: 28px;
    background-image: var(--primary); box-shadow: var(--primary-shadow); color: #fff; font-size: 15px; letter-spacing: -.225px; white-space: nowrap;
}

/* ---------- Currencies ---------- */
.lv-cur { display: flex; flex-direction: column; gap: var(--gap); }
.lv-cur__head { display: flex; gap: 8px; padding: 16px 6px 6px; font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-dist { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; border-radius: 30px; }
.lv-dist__row { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-dist__dots { --cell: 9px; --pitch: 12.26px; display: flex; justify-content: space-between; height: 9px; }
.lv-dist__dots i { width: 9px; height: 9px; border-radius: 2.52px; opacity: var(--a, 1); }
.lv-dist__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 13px; letter-spacing: -.13px; }
.lv-dist__legend li { white-space: nowrap; }
.lv-dist__legend li { display: flex; align-items: center; gap: 6px; }
.lv-dist__legend i { width: 8px; height: 8px; border-radius: 2.24px; }
.lv-dist__legend span { color: var(--ink-77); }
.lv-dist__empty { font-size: 13px; color: var(--ink-77); }
.lv-coins { display: flex; flex-direction: column; gap: 6px; }
.lv-coin { display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 22px 0 5px; border-radius: 36px; }
.lv-coin__icon { width: 62px; height: 62px; border-radius: 50%; }
.lv-coin__l, .lv-coin__r { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lv-coin__l { flex: 1 1 auto; }
.lv-coin__r { align-items: flex-end; text-align: right; }
.lv-coin b { font-weight: 400; font-size: 15px; letter-spacing: -.15px; }
.lv-coin span span, .lv-coin__l > span, .lv-coin__r > span { font-size: 13px; letter-spacing: -.13px; color: var(--sub); }
.lv-coins__more-wrap { display: flex; flex-direction: column; gap: 6px; }
.lv-coins__more {
    display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 10px 0 16px; border-radius: 30px;
    background: rgba(255, 255, 255, .5); text-align: left; font-size: 15px; letter-spacing: -.15px; color: var(--ink-79);
}
:root[data-theme="dark"] .lv-coins__more { background: rgba(19, 19, 21, .6); }
.lv-coins__stack { display: flex; }
.lv-coins__stack img { width: 26px; height: 26px; margin-right: -8px; border-radius: 50%; }
.lv-coins__stack img:last-child { margin-right: 0; }
.lv-coins__more[aria-expanded="true"] .ico { transform: rotate(180deg); }

/* ---------- KPI cards ---------- */
.lv-kpis { display: flex; flex-direction: column; gap: 8px; }
.lv-kpis__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lv-kpi {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end; min-height: 101px; padding: 16px 18px; border-radius: 30px;
    background: var(--kpi-texture) right bottom / auto 129px no-repeat, var(--kpi); box-shadow: var(--kpi-shadow);
}
.lv-kpi__bars { --cols: 6; position: absolute; z-index: -1; right: 14px; bottom: 0; display: flex; align-items: flex-end; gap: 2px; }
.lv-kpi__bars span { display: flex; flex-direction: column; gap: 2px; }
.lv-kpi__bars i { width: 6px; height: 6px; border-radius: 1.7px; background: rgba(31, 157, 85, var(--a)); }
.lv-kpi__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-kpi__label { font-size: 14px; letter-spacing: -.14px; color: var(--ink-79); white-space: nowrap; }
.lv-kpi__value { font-weight: 300; font-size: 20px; letter-spacing: -.6px; white-space: nowrap; }
.lv-kpi__sub { font-size: 13px; letter-spacing: -.13px; color: var(--ink-77); white-space: nowrap; }

/* ---------- Segmented control ---------- */
.lv-seg { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px; border-radius: 18px; background-image: var(--track); box-shadow: var(--track-shadow); }
.lv-seg__item { display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; letter-spacing: -.13px; white-space: nowrap; }
.lv-seg__item.is-active { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); }
.lv-seg__item:not(.is-active):hover { background: rgba(var(--cell-rgb), .05); }

/* ---------- Accruals card ---------- */
.lv-earn { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 14px; border-radius: 32px; }
.lv-earn .lv-card__title { font-size: 20px; letter-spacing: -.2px; }
.lv-earn__stats { display: flex; align-items: flex-end; gap: 40px; }
.lv-earn__stats div { display: flex; flex-direction: column; gap: 4px; }
.lv-earn__stats b { font-weight: 300; font-size: 36px; letter-spacing: -1.08px; }
.lv-earn__stats span { font-size: 13px; letter-spacing: -.13px; color: var(--ink-77); }
.lv-earn__stats-m { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lv-earn__stats-m b { font-weight: 300; font-size: 20px; letter-spacing: -.2px; }
.lv-earn__stats-m span { font-size: 12px; letter-spacing: -.12px; color: var(--ink-77); }
.lv-chart { --cell: 9px; --gap: 3px; --rows: 6; display: flex; flex-direction: column; gap: 8px; width: 100%; min-height: 78px; }
.lv-chart__grid { display: flex; align-items: flex-end; justify-content: flex-end; gap: var(--gap); }
.lv-chart__col { display: flex; flex-direction: column; gap: var(--gap); }
.lv-chart__col.is-out { opacity: .38; }
.lv-chart i, .lv-goal__bar i, .lv-pixbar i { display: block; width: var(--cell); height: var(--cell); border-radius: 2.5px; }
.lv-chart i.on, .lv-goal__bar i.on, .lv-pixbar i.on { background: rgba(242, 74, 6, var(--a)); }
i.s1 { background: rgba(var(--cell-rgb), .03); } i.s2 { background: rgba(var(--cell-rgb), .06); }
i.s3 { background: rgba(var(--cell-rgb), .08); } i.s4 { background: rgba(var(--cell-rgb), .12); }
.lv-chart__labels { position: relative; height: 13px; font-size: 10px; letter-spacing: -.1px; color: var(--sub); }
.lv-chart__labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.lv-chart__labels span.is-last { transform: translateX(calc(-100% + 4.5px)); }
.lv-chart__grid + .lv-chart__labels { width: 100%; }

/* ---------- Partners card ---------- */
.lv-partners { display: flex; flex-direction: column; gap: 20px; padding: 22px 20px 20px; border-radius: 32px; }
.lv-partners .lv-card__title { font-size: 20px; letter-spacing: -.6px; }
.lv-partners__stats { display: flex; flex-wrap: wrap; gap: 14px 8px; }
.lv-partners__stats > div { display: flex; flex-direction: column; gap: 3px; width: calc((100% - 16px) / 3); min-width: 0; }
.lv-partners__stats dt { font-size: 12px; letter-spacing: -.12px; color: var(--ink-79); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-partners__stats dd { font-weight: 300; font-size: 16px; letter-spacing: -.16px; white-space: nowrap; }
/* Допки 2: mentor's next-rank bonus (tpl/en/udp/main/partners.tpl) — black glass with an orange glow, an orange tile
   with the mentor icon (::before tile + ::after icon, same grid cell) and the amount in orange. Phone: one row
   [tile | label + level | amount]; desktop (below): a compact card at the end of the stats row. */
.lv-partners__stats > .lv-partners__mbonus {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center;
    column-gap: 12px; row-gap: 1px; width: 100%; padding: 12px 16px 12px 12px; border-radius: 20px; overflow: hidden; color: #fff;
    background-image:
        radial-gradient(70% 150% at 100% 100%, rgba(255, 90, 18, .62) 0%, rgba(242, 74, 6, .2) 48%, rgba(242, 74, 6, 0) 75%),
        linear-gradient(90deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,.06) 100%),
        linear-gradient(180deg, #2b2826 0%, #141312 42%, #0b0a0a 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 0 rgba(255, 122, 46, .35), 0 10px 24px -14px rgba(242, 74, 6, .75);
}
.lv-partners__mbonus::before {
    content: ""; grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px;
    background-image: var(--primary); box-shadow: var(--primary-shadow), 0 4px 14px -4px rgba(255, 90, 18, .8);
}
.lv-partners__mbonus::after {
    content: ""; grid-column: 1; grid-row: 1 / 3; justify-self: center; width: 18px; height: 18px; background: #fff;
    -webkit-mask: url(icons/menu-mentor.svg) center / contain no-repeat; mask: url(icons/menu-mentor.svg) center / contain no-repeat;
}
.lv-partners__stats .lv-partners__mbonus dt { grid-column: 2; grid-row: 1; align-self: end; white-space: normal; overflow: visible; color: rgba(255, 255, 255, .74); }
.lv-partners__stats .lv-partners__mbonus dd { display: contents; }
.lv-partners__mbonus b {
    grid-column: 3; grid-row: 1 / 3; font-weight: 400; font-size: 20px; letter-spacing: -.4px; white-space: nowrap; color: #ff7a2e;
    background: linear-gradient(180deg, #ffc49a 0%, #ff8a3d 45%, #ff5a12 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lv-partners__mbonus small { grid-column: 2; grid-row: 2; align-self: start; min-width: 0; font-size: 12px; line-height: 1.25; letter-spacing: -.12px; color: rgba(255, 255, 255, .5); }
.lv-partners__level { display: flex; flex-direction: column; gap: 12px; }
.lv-partners__level-head { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-partners__level-head span + span { color: rgba(var(--cell-rgb), .76); }
:root[data-theme="dark"] .lv-partners__level-head span + span { color: rgba(255, 255, 255, .76); }
.lv-partners__goals { display: flex; flex-direction: column; gap: 14px; }
.lv-goal { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lv-goal__row { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: -.13px; }
.lv-goal__value { color: var(--ink-79); white-space: nowrap; }
.lv-goal__pct { color: var(--orange); }
.lv-goal__bar { --cell: 9px; --gap: 3px; display: flex; gap: 3px; height: 33px; overflow: hidden; }
.lv-goal__bar span { display: flex; flex-direction: column; gap: 3px; }

/* ---------- Transactions ---------- */
.lv-tx { display: flex; flex-direction: column; gap: 12px; background: transparent; border-radius: 0; overflow: visible; }
.lv-tx__head { flex-wrap: wrap; padding: 16px 0 0 4px; }
.lv-tx .lv-card__title { font-size: 20px; letter-spacing: -.6px; }
.lv-search {
    order: 3; display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 8px 0 18px; border-radius: 24px;
    background-image: var(--glass-white); box-shadow: var(--glass-2-shadow); color: var(--icon);
}
.lv-search input {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15px; letter-spacing: -.15px; color: var(--ink);
}
.lv-search input::placeholder { color: var(--placeholder); opacity: 1; }
.lv-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.lv-search:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.lv-tx__head { row-gap: 12px; }
.lv-tx__bar { display: flex; flex-direction: column; gap: 4px; margin-top: -8px; }
.lv-tabs {
    display: flex; gap: 2px; padding: 4px; border-radius: 28px; overflow-x: auto; scrollbar-width: none;
    background-image: linear-gradient(90deg, #fff, #fff), var(--glass-1); box-shadow: var(--track-shadow);
}
:root[data-theme="dark"] .lv-tabs { background: #29292b; }
.lv-tabs::-webkit-scrollbar { display: none; }
.lv-tabs__item { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 2px; height: 40px; padding: 0 12px; border-radius: 24px; font-size: 12px; letter-spacing: -.12px; white-space: nowrap; }
.lv-tabs__item span { color: var(--ink-77); }
.lv-tabs__item.is-active { background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); }
.lv-tabs__item.is-active span { color: var(--active-ink-77); }
.lv-tabs__item:not(.is-active):hover { background: rgba(var(--cell-rgb), .05); }
.lv-tx__filters { display: flex; gap: 8px; }
.lv-tx__filters .lv-pop-wrap { flex: 1 1 0; min-width: 0; }
.lv-filter {
    display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 14px; border-radius: 20px;
    background: rgba(255, 255, 255, .6); font-size: 14px; letter-spacing: -.14px; white-space: nowrap; text-align: left;
}
.lv-filter .ico { color: var(--icon); width: 16px; height: 16px; }
.lv-filter .ico--14 { width: 14px; height: 14px; }
.lv-filter .lv-grow { overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .lv-filter { background: #131315; }
.lv-table { display: none; }
.lv-txcards { display: flex; flex-direction: column; gap: 4px; }
.lv-txcard { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 30px; background: var(--card); }
.lv-txcard__top { display: flex; align-items: center; gap: 12px; }
.lv-txcard__top img { width: 36px; height: 36px; border-radius: 50%; }
.lv-txcard__src { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-txcard__src b { font-weight: 400; font-size: 15px; letter-spacing: -.15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-txcard__src span { font-size: 12px; letter-spacing: -.12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-txcard__bottom { display: flex; align-items: flex-end; gap: 8px; }
.lv-txcard__amount { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-txcard__amount > span { font-size: 12px; letter-spacing: -.12px; color: var(--ink-77); }
.lv-txcard__amount b { display: flex; align-items: center; gap: 10px; font-weight: 300; font-size: 24px; letter-spacing: -.72px; white-space: nowrap; }
.lv-txcard__time { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.lv-txcard__time b { font-weight: 400; font-size: 15px; letter-spacing: -.15px; }
.lv-txcard__time span { font-size: 11px; letter-spacing: -.11px; color: var(--sub); }
.lv-pixbar { --cell: 6px; display: inline-flex; flex: 0 0 auto; gap: 2px; }
.lv-pixbar i { border-radius: 1.68px; }
.lv-chip {
    display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; height: 32px; padding: 0 14px 0 12px; border-radius: 16px;
    background-image: var(--chip-done); box-shadow: var(--chip-shadow); color: var(--chip-done-ink); font-size: 13px; letter-spacing: -.13px; white-space: nowrap;
}
.lv-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--icon); opacity: .35; }
.lv-chip--pending { background-image: var(--chip-pending); color: #c2410c; }
.lv-chip--pending::before { background: var(--orange-icon); opacity: 1; }
.lv-chip--canceled { color: #b42318; }
.lv-chip--canceled::before { background: #b42318; opacity: .7; }
.lv-tx__empty { padding: 28px 20px; border-radius: 30px; background: var(--card); text-align: center; color: var(--ink-77); }
.lv-tx__foot { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; padding-top: 8px; }
.lv-tx__shown { font-size: 13px; letter-spacing: -.13px; color: var(--sub); }
.lv-pager { display: flex; gap: 4px; }
.lv-pager--desktop { display: none; }
.lv-pager__btn {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px;
    background-image: var(--glass-white); box-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.95), inset 0 0 2px 0 rgba(255,255,255,.6), inset 0 0 10px 0 rgba(255,255,255,.9);
    font-size: 15px; letter-spacing: -.15px; color: var(--ink);
}
:root[data-theme="dark"] .lv-pager__btn { background: var(--pager); box-shadow: none; }
.lv-pager__btn .ico { color: var(--icon); }
.lv-pager__btn.is-disabled .ico { color: #b4b4b7; }
:root[data-theme="dark"] .lv-pager__btn.is-disabled .ico { color: #6b6b6e; }
.lv-pager__btn.is-active { background-image: var(--active); box-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.35), inset 0 0 2px 0 rgba(255,255,255,.18), inset 0 0 10px 0 rgba(163,156,150,.75); color: var(--active-ink); }
:root[data-theme="dark"] .lv-pager__btn.is-active { background: #fff; box-shadow: none; }
.lv-pager__btn.is-gap { cursor: default; }
a.lv-pager__btn:hover { filter: brightness(.97); }

/* ---------- Footer ---------- */
.lv-footer { position: relative; margin-top: 12px; border-radius: 36px 36px 0 0; background: var(--card); overflow: hidden; }
.lv-footer__top { display: flex; flex-direction: column; gap: 28px; padding: 40px var(--gutter) 0; }
.lv-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.lv-logo__art--lg { gap: 11.6px; }
.lv-logo__art--lg .lv-logo__mark { width: 41.68px; height: 37.2px; }
.lv-logo__art--lg .lv-logo__word1 { width: 178.54px; height: 18.23px; }
.lv-logo__art--lg .lv-logo__word2 { width: 101.71px; height: 18.11px; margin-left: 2.8px; }
.lv-footer__tagline { max-width: 520px; font-size: 16px; letter-spacing: -.16px; color: var(--sub); }
.lv-footer__buttons { display: flex; gap: 8px; }
.lv-footer__buttons > a { flex: 1 1 0; }
.lv-footer__buttons .lv-casino { padding-left: 26px; }
.lv-profile-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px 0 6px; border-radius: 28px;
    background-image: var(--active); box-shadow: var(--active-shadow); color: var(--active-ink); font-size: 16px; letter-spacing: -.16px; white-space: nowrap;
}
:root[data-theme="dark"] .lv-profile-btn { background: #fff; color: #1b1b1b; }
:root[data-theme="dark"] .lv-mentor { background: #131315; box-shadow: none; }
.lv-footer__links { display: flex; flex-direction: column; gap: 28px; }
.lv-footer__group { display: flex; flex-direction: column; gap: 10px; }
.lv-footer__group--nav { order: 1; } .lv-footer__group--apps { order: 2; } .lv-footer__group--social { order: 3; }
.lv-footer__title { font-size: 13px; letter-spacing: -.13px; color: var(--ink-79); }
.lv-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lv-footer__col { display: flex; gap: 6px; }
.lv-footer__col > li { flex: 1 1 0; min-width: 0; }
.lv-footer__row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lv-fpill {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 10px; border-radius: 28px;
    background: var(--footer-pill); box-shadow: var(--footer-pill-shadow); font-size: 15px; letter-spacing: -.15px; white-space: nowrap;
}
.lv-fpill .ico { color: var(--icon); }
.lv-footer__col .lv-fpill { font-size: 14px; letter-spacing: -.14px; }
.lv-fpill--app { justify-content: flex-start; padding: 0 25px; font-family: var(--font-inter); font-size: 14px; letter-spacing: -.14px; }
/* Допки 4: six social links — 3 per row on phones; a not-yet-available app (Windows terminal, licence pending) is a plain label */
.lv-footer__col--social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv-footer__col--social .lv-fpill { gap: 6px; padding: 0 6px; }
:root[data-theme="dark"] .lv-fpill__mono { filter: invert(1); }
.lv-fpill.is-soon { pointer-events: none; cursor: default; color: var(--ink-79); }
.lv-fpill.is-soon .ico { opacity: .6; }
.lv-footer__cat { position: relative; z-index: 0; height: 250px; pointer-events: none; }
.lv-footer__cat img { position: absolute; left: 50%; top: -19.5px; width: 280px; height: auto; transform: translateX(-50%); }
.lv-footer__band {
    position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; padding: 40px var(--gutter) 36px;
    border-radius: 36px 36px 0 0; overflow: hidden; background: #17171a url(tex/footer-mobile.svg) left top / 390px auto repeat-x; color: #fff;
}
.lv-footer__big { display: flex; align-items: center; gap: 12px; color: #fff; }
.lv-footer__big-mark, .lv-footer__big-word1, .lv-footer__big-word2 { display: block; flex: 0 0 auto; background: currentColor; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.lv-footer__big-mark { width: 42.88px; height: 38.27px; -webkit-mask-image: url(brand/logo-mark.svg); mask-image: url(brand/logo-mark.svg); }
.lv-footer__big-word1 { width: 183.68px; height: 18.76px; -webkit-mask-image: url(brand/logo-lavelon.svg); mask-image: url(brand/logo-lavelon.svg); }
.lv-footer__big-word2 { width: 104.64px; height: 18.63px; margin-left: 2.9px; -webkit-mask-image: url(brand/logo-labs.svg); mask-image: url(brand/logo-labs.svg); }
.lv-footer__legal { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; font-size: 14px; letter-spacing: -.14px; }
.lv-footer__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.lv-footer__legal a:hover { color: #ffb27a; }

/* ---------- Assistant button ---------- */
.lv-assistant {
    position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 6px; border-radius: 28px;
    background-image: var(--primary);
    box-shadow: inset 0 0 1.2px .4px rgba(255,255,255,.9), inset 0 0 3px 0 rgba(255,255,255,.5), inset 0 0 11px 1px rgba(255,243,234,.85), 0 8px 24px rgba(242, 74, 6, .35);
    color: #fff;
}
.lv-assistant__avatar { position: relative; width: 44px; height: 44px; border-radius: 22px; overflow: hidden; background: #17171a; }
.lv-assistant__avatar img { position: absolute; left: -33px; bottom: -28px; width: 99px; height: auto; }
.lv-assistant__dot { position: absolute; left: 40px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #73d959; box-shadow: 0 0 0 2px #fff; }
.lv-assistant__text { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.lv-assistant__title { font-size: 15px; letter-spacing: -.15px; }
.lv-assistant__sub { font-size: 12px; letter-spacing: -.12px; color: rgba(255, 255, 255, .8); }

/* ---------- Toast ---------- */
.lv-toast {
    position: fixed; z-index: 60; left: 50%; bottom: 88px; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 22px; background: #17171a; color: #fff; font-size: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
:root[data-theme="dark"] .lv-toast { background: #fff; color: #1b1b1b; }

/* =====================================================================
   ≥ 768 — tablet: compact header stays; content becomes a two-column grid.
   ===================================================================== */
@media (min-width: 768px) {
    :root { --gutter: 24px; }
    .lv-only-mobile { display: none !important; }
    .lv-header__row2 { justify-content: flex-end; }
    .lv-header__row2 .lv-grow { flex: 0 1 360px; }
    .lv-menu { max-width: 420px; margin-left: auto; }

    .lv-page { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
    .lv-page > * > * { grid-column: 1 / -1; }
    .lv-balance, .lv-mentor { grid-column: auto; }
    .lv-balance { order: 1; } .lv-mentor { order: 2; } .lv-ref { order: 3; }

    .lv-balance { gap: 27px; }
    .lv-balance__cat { left: auto; right: -96px; bottom: -36px; width: 436px; height: 270px; filter: blur(4.2px); }
    .lv-bbtn { padding: 0 14px; }
    .lv-bbtn .ico { display: inline-block; }
    .lv-dotnum { height: 42px; }
    .lv-balance__actions { margin-top: auto; }

    .lv-cur { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
    .lv-cur__head, .lv-dist { grid-column: 1 / -1; }
    .lv-coins { display: contents; }
    .lv-coins__more-wrap { grid-column: 1 / -1; }
    .lv-coins--empty { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; }
    .lv-coins--empty[hidden] { display: none !important; }

    .lv-kpis__grid { grid-template-columns: repeat(4, 1fr); }
    .lv-kpi__bars { --cols: 8; }

    .lv-earn, .lv-partners { gap: 24px; padding: 28px 32px; border-radius: var(--r-card); }
    .lv-earn .lv-card__title, .lv-partners .lv-card__title, .lv-tx .lv-card__title { font-size: 26px; letter-spacing: -.78px; }
    .lv-earn__stats-m { display: none !important; }
    .lv-seg { gap: 4px; padding: 4px; border-radius: 34px; }
    .lv-seg__item { height: 44px; padding: 0 20px; border-radius: 28px; font-size: 15px; letter-spacing: -.15px; }
    .lv-chart { --rows: 12; gap: 12px; min-height: 160px; }
    .lv-chart__labels { height: 14px; font-size: 11px; letter-spacing: -.11px; }

    .lv-partners__stats { flex-wrap: nowrap; gap: 0; }
    .lv-partners__stats > div { flex: 1 1 0; width: auto; gap: 4px; padding: 0 12px 0 16px; overflow: hidden; }
    .lv-partners__stats > div:first-child { padding-left: 0; }
    .lv-partners__stats dt { font-size: 13px; letter-spacing: -.13px; }
    .lv-partners__stats dd { font-size: 20px; letter-spacing: -.2px; }
    .lv-partners__stats > .lv-partners__mbonus {
        flex: 0 0 auto; grid-template-columns: 44px auto; grid-template-rows: auto auto auto; align-self: center; column-gap: 12px;
        width: auto; max-width: 250px; padding: 10px 20px 10px 10px; margin-inline-start: 8px; border-radius: 22px;
    }
    .lv-partners__mbonus::before { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 14px; }
    .lv-partners__mbonus::after { grid-row: 1 / 4; width: 20px; height: 20px; }
    .lv-partners__mbonus b { grid-column: 2; grid-row: 2; font-size: 22px; letter-spacing: -.44px; line-height: 1.15; }
    .lv-partners__mbonus small { grid-row: 3; font-size: 11px; letter-spacing: -.11px; }
    .lv-partners__goals { flex-direction: row; gap: 32px; }
    .lv-goal { flex: 1 1 0; }

    .lv-tx { gap: 0; padding-bottom: 20px; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
    .lv-tx__head { flex-wrap: nowrap; padding: 28px 24px 20px 32px; }
    .lv-search { order: 0; flex: 0 1 300px; width: auto; border-radius: 28px; padding: 0 8px 0 20px; background-image: var(--glass-2); }
    .lv-tx__bar { flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0 24px 20px 32px; }
    .lv-tabs { flex: 0 1 auto; gap: 4px; border-radius: 34px; background-image: var(--track); }
    :root[data-theme="dark"] .lv-tabs { background: #29292b; }
    .lv-tabs__item { flex: 0 0 auto; gap: 8px; height: 48px; padding: 0 20px; border-radius: 28px; font-size: 15px; letter-spacing: -.15px; }
    .lv-tx__filters { margin-left: auto; flex: 0 0 auto; gap: 12px; }
    .lv-tx__filters .lv-pop-wrap { flex: 0 0 auto; }
    .lv-filter { gap: 10px; height: 48px; padding: 0 18px; border-radius: 24px; background-image: var(--glass-2); box-shadow: var(--glass-2-shadow); font-size: 15px; letter-spacing: -.15px; }
    :root[data-theme="dark"] .lv-filter { background: #29292b; box-shadow: none; }
    .lv-filter .ico { width: 20px; height: 20px; }
    .lv-filter .ico--14 { display: none !important; }
    .lv-txcards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 20px; }
    .lv-txcard { background-image: linear-gradient(var(--row-hover), var(--row-hover)); }
    .lv-tx__empty { margin: 0 24px; background: var(--row-hover); }
    .lv-tx__foot { flex-direction: row; justify-content: space-between; padding: 16px 24px 0 44px; }
    .lv-tx__shown { font-size: 14px; letter-spacing: -.14px; }
    .lv-pager--mobile { display: none; }
    .lv-pager--desktop { display: flex; gap: 8px; }
    .lv-pager--desktop .lv-pager__btn { background: var(--pager); box-shadow: none; }
    .lv-pager--desktop .lv-pager__btn.is-active { background-image: var(--active); box-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.35), inset 0 0 2px 0 rgba(255,255,255,.18), inset 0 0 10px 0 rgba(163,156,150,.75); }
    :root[data-theme="dark"] .lv-pager--desktop .lv-pager__btn.is-active { background: #fff; box-shadow: none; }

    .lv-footer { border-radius: 56px 56px 0 0; }
    .lv-footer__top { padding: 64px var(--gutter) 0; gap: 40px; }
    .lv-footer__buttons > a { flex: 0 0 auto; }
    .lv-footer__links { display: grid; grid-template-columns: minmax(0, 406px) minmax(0, 220px); gap: 40px; }
    .lv-footer__group--nav { order: 1; } .lv-footer__group--social { order: 2; } .lv-footer__group--apps { order: 3; grid-column: 1 / -1; }
    .lv-footer__group { gap: 14px; }
    .lv-footer__col { flex-direction: column; }
    .lv-fpill { height: 56px; padding: 0 25px; justify-content: flex-start; gap: 13px; font-size: 16px; letter-spacing: -.16px; }
    .lv-footer__col .lv-fpill { font-size: 16px; padding: 0 26px; gap: 10px; }
    .lv-footer__row { flex-direction: row; flex-wrap: wrap; }
    .lv-fpill--app { padding: 0 16px 0 14px; gap: 8px; font-size: 16px; letter-spacing: -.16px; }
    .lv-footer__col--social { display: flex; }
    .lv-footer__col--social .lv-fpill { gap: 10px; padding: 0 26px; }
    .lv-footer__cat { height: 300px; }
    .lv-footer__cat img { width: 340px; top: -20px; }
    .lv-footer__band { gap: 36px; padding: 40px var(--gutter); border-radius: 56px 56px 0 0; background: #17171a url(tex/footer.svg) left top / 1920px 326px repeat-x; } /* repeat-x: screens wider than 1920 (no zoom there) — the 12px cube grid tiles seamlessly */
    .lv-footer__big { width: 100%; gap: 3.3%; }
    .lv-footer__big-mark { width: 12%; height: auto; aspect-ratio: 216.56 / 193.29; }
    .lv-footer__big-word1 { flex: 0 1 auto; width: 51.3%; height: auto; aspect-ratio: 927.62 / 94.72; }
    .lv-footer__big-word2 { flex: 0 1 auto; width: 29.2%; height: auto; aspect-ratio: 528.45 / 94.08; margin-left: 4.1%; }
    .lv-footer__legal { flex-direction: row; justify-content: space-between; width: 100%; }
    .lv-footer__legal-links { gap: 24px; }
    .lv-footer__copy { margin-right: auto; }
}

/* 768–1023: narrow tablet — KPIs 2×2, transaction filters on their own row */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .lv-kpis__grid { grid-template-columns: 1fr 1fr; }
    .lv-tx__bar { flex-wrap: wrap; }
    .lv-tabs { flex: 1 1 100%; }
    .lv-tabs__item { flex: 1 0 auto; }
    .lv-tx__filters { flex: 1 1 100%; margin-left: 0; }
    .lv-tx__filters .lv-pop-wrap { flex: 1 1 0; }
}

/* =====================================================================
   ≥ 1280 — desktop: two columns (side 360 → 420), full header from 1440.
   ===================================================================== */
@media (min-width: 1280px) {
    :root { --gutter: 32px; }
    .lv-page { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
    .lv-side, .lv-content { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
    .lv-content { gap: 6px; }
    .lv-page > * > * { grid-column: auto; order: 0 !important; }
    .lv-main { padding-top: 24px; padding-bottom: 40px; }

    .lv-balance { padding: 24px; }
    .lv-balance__cat { right: -110px; }
    .lv-balance__actions { margin-top: 42px; }
    .lv-dotnum { height: 42px; }

    .lv-cur { display: flex; flex-direction: column; }
    .lv-coins { display: flex; }
    .lv-coins--empty { display: flex !important; flex-direction: column; }
    .lv-cur__head { padding: 22px 6px 6px; }

    .lv-mentor { gap: 14px; padding: 22px; }
    .lv-mentor__body { gap: 14px; }
    .lv-mentor__people { gap: 12px; }
    .lv-mentor__stack img { margin-inline-end: -12px; }
    .lv-mentor__map { width: 100%; background: url(tex/mentor-map.svg) 0 0 / 368px 128px no-repeat; }
    .lv-mentor__glow { left: 180px; }
    .lv-mentor__tile--1 { left: 120px; } .lv-mentor__tile--2 { left: 96px; } .lv-mentor__tile--3 { left: 228px; }
    .lv-mentor__tile--4 { left: 288px; } .lv-mentor__tile--5 { left: 324px; }
    .lv-mentor__foot { flex-direction: row; }
    .lv-mentor__text { max-width: 146px; font-size: 14px; letter-spacing: -.14px; }

    .lv-kpi { min-height: 129px; padding: 20px 24px; }
    .lv-kpi__bars { --cols: 12; }
    .lv-kpi__value { font-size: 36px; letter-spacing: -1.08px; }

    .lv-earn { padding: 32px 40px 28px; }
    .lv-partners { gap: 26px; padding: 28px 40px; }
    .lv-earn .lv-card__title, .lv-partners .lv-card__title, .lv-tx .lv-card__title { font-size: 30px; letter-spacing: -.9px; }
    .lv-partners__stats dd { font-size: 22px; letter-spacing: -.22px; }
    .lv-tx__head { padding: 32px 28px 24px 40px; }
    .lv-tx__bar { padding: 0 28px 20px 40px; }

    .lv-txcards { display: none; }
    .lv-table { display: table; width: calc(100% - 48px); margin: 0 24px; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
    .lv-table th { height: 40px; padding: 0 10px; font-weight: 400; font-size: 13px; letter-spacing: -.13px; color: var(--sub); text-align: left; }
    .lv-table th:first-child { width: 14%; padding-left: 20px; } .lv-table th:nth-child(2) { width: 32%; }
    .lv-table th:nth-child(3) { width: 20%; } .lv-table th:nth-child(4) { width: 14%; } .lv-table th:nth-child(5) { width: 20%; text-align: right; }
    .lv-table__status-head { display: inline-block; width: 106px; text-align: left; }
    .lv-table td { height: 62px; padding: 0 10px; vertical-align: middle; }
    .lv-table td:first-child { padding-left: 20px; border-radius: 22px 0 0 22px; }
    .lv-table td:last-child { border-radius: 0 22px 22px 0; text-align: right; }
    .lv-table tbody tr:hover td { background: var(--row-texture) left top / auto 62px repeat-x, var(--row-hover); background-attachment: local; }
    .lv-table tbody tr:hover td:not(:first-child) { background-position: calc(-1 * var(--x, 0px)) top; }
    .lv-table td > b, .lv-table td > span:not(.lv-chip) { display: block; }
    .lv-table td b { font-weight: 400; font-size: 15px; letter-spacing: -.15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lv-table td > span:not(.lv-chip) { margin-top: 2px; font-size: 11px; letter-spacing: -.11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lv-table__amount b { display: flex !important; align-items: center; gap: 10px; }
    .lv-table__cur { white-space: nowrap; font-size: 15px; letter-spacing: -.15px; }
    .lv-table__cur img { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; border-radius: 50%; }
    .lv-tx__foot { padding: 12px 24px 0 44px; }
}

/* 1280–1679: narrower content column — smaller KPI figures, transaction filters wrap below tabs */
@media (min-width: 1280px) and (max-width: 1359.98px) {
    .lv-kpi { padding: 20px; }
    .lv-kpi__value { font-size: 28px; letter-spacing: -.84px; }
    .lv-kpi__bars { --cols: 8; }
}
@media (min-width: 1280px) and (max-width: 1359.98px) {
    .lv-tx__bar { flex-wrap: wrap; }
    .lv-tx__filters { margin-left: 0; }
}

@media (min-width: 1360px) {
    :root { --gutter: 56px; }
    .lv-only-compact { display: none !important; }
    .lv-only-desktop { display: inline-flex !important; }
    .lv-pop-wrap.lv-only-desktop { display: block !important; }
    .lv-menu { display: none !important; }
    .lv-header { padding-top: 24px; }
    .lv-header__row { gap: 24px; }
    .lv-logo { height: 56px; padding: 0 22px 0 24px; }
    .lv-logo__mark { width: 27.79px; height: 24.8px; }
    .lv-logo__word1 { width: 119.03px; height: 12.15px; }
    .lv-logo__word2 { width: 67.81px; height: 12.07px; margin-left: 2.6px; }
    .lv-logo__art { gap: 7.75px; }
    .lv-nav { display: flex; gap: 4px; padding: 4px; border-radius: 34px; background-image: var(--track); box-shadow: var(--track-shadow); }
    :root[data-theme="dark"] .lv-nav { background: #131315; }
    .lv-nav__item { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 28px; font-size: 15px; letter-spacing: -.15px; white-space: nowrap; }
    .lv-nav__item.is-active { background-image: var(--active); box-shadow: inset 0 0 1.2px 0 rgba(255,255,255,.35), inset 0 0 2px 0 rgba(255,255,255,.18), inset 0 0 10px 0 rgba(163,156,150,.75); color: var(--active-ink); }
    :root[data-theme="dark"] .lv-nav__item.is-active { box-shadow: none; }
    .lv-nav__item:not(.is-active):hover { background: rgba(var(--cell-rgb), .05); }
    .lv-round { width: 56px; height: 56px; }
    .lv-user { padding: 0 8px 0 6px; gap: 12px; }
    .lv-user__text { display: none; }
    .lv-user__chev { width: 36px; height: 36px; border-radius: 18px; }
    .lv-user .lv-user__name { font-size: 14px; letter-spacing: -.14px; }
    .lv-user .lv-user__sub { font-size: 11px; letter-spacing: -.11px; }
    .lv-assistant { right: 56px; bottom: 32px; height: 64px; padding: 0 24px 0 6px; border-radius: 32px; }
    .lv-assistant__avatar { width: 52px; height: 52px; border-radius: 26px; }
    .lv-assistant__avatar img { left: -39px; bottom: -33px; width: 117px; }
    .lv-assistant__dot { left: 48px; }
    .lv-assistant__title { font-size: 16px; letter-spacing: -.16px; }
    .lv-assistant__sub { font-size: 13px; letter-spacing: -.13px; }
}

@media (min-width: 1360px) {
    .lv-page { grid-template-columns: 420px minmax(0, 1fr); }
    .lv-user__text { display: flex; }
    .lv-dotnum { height: 42px; }
    .lv-mentor__map { background-size: 368px 128px; }

    /* footer: brand left, cat in the middle gap, links right; dark band overlaps the cat */
    .lv-footer__top { flex-direction: row; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 56px; min-height: 497px; } /* bottom padding (24.11): 5 socials + 2 rows of apps reached the band */
    .lv-footer__brand { width: 520px; gap: 20px; }
    .lv-footer__links { grid-template-columns: 406px 220px; width: 666px; }
    .lv-footer__cat { position: absolute; left: 31%; top: 58px; height: auto; }
    .lv-footer__cat img { position: static; width: 496px; transform: none; }
    .lv-footer__band { margin-top: 0; }
}

@media (min-width: 1360px) {
    .lv-nav__item { padding: 0 22px; }
    .lv-logo { width: 420px; }
    .lv-logo__sep, .lv-logo__caption { display: block; }
    .lv-logo__art { margin-right: auto; }
    .lv-header__row { gap: 40px; }
    .lv-header__tools { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* In-place filters (lavelon.js «data-lv-partial»): the section dims while the fresh one loads */
[data-lv-partial] { transition: opacity .15s ease; }
[data-lv-partial].is-loading { opacity: .55; pointer-events: none; }

/* Text fields in focus (правки 18.11): no outline rectangle on the input itself — the rounded field around it gets a
   soft 1px ring instead (same look as the sign-in page). Checkboxes, radios, sliders and buttons keep the outline. */
.lv input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,
.lv input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus-visible,
.lv textarea:focus, .lv textarea:focus-visible, .lv select:focus-visible { outline: none; }
.lv .lv-search:focus-within, .lv .lvd-input:focus-within, .lv .mkt-input:focus-within, .lv .lvn-search:focus-within, .lv .lvw-amount:focus-within, .lv .lvw-box:focus-within,
.lv .lvp-field:focus-within {
    outline: none;
    box-shadow: 0 0 0 1px rgba(242, 74, 6, .45);
}
.lv .lvai__field:focus-within, .lv .lvpf-input:focus-within { outline: none; box-shadow: var(--glass-2-shadow), 0 0 0 1px rgba(242, 74, 6, .45); }
.lv .lv-range__field input:focus { box-shadow: 0 0 0 1px rgba(242, 74, 6, .45); }

/* Transactions: an open filter popover (status, dates) is not cut by the card when the list is short or empty */
.lv-tx:has(.lv-pop:not([hidden])) { overflow: visible; position: relative; z-index: 6; }

/* KPI tiles (дешборд, депозиты, партнёры), правки 18.11:
   – the dot texture repeats sideways from the right edge, so it fills the whole card at any width (it is 332 / 397 px wide);
   – the pixel bars «breathe»: each column slowly dims and lights up again, a wave from left to right. */
.lv-kpi { background-repeat: repeat-x, no-repeat; }
.lv-kpi__bars span, .lvd-kpi__bars span {
    animation: lv-kpi-breathe 4.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -.35s);
    will-change: opacity;
}
@keyframes lv-kpi-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* Допки 4 (24.11, customer): a small Lavelon logo in the top-left corner of every cabinet modal, before the title
   (customer's orange mark, brand/modal-logo.png 96×86). The AI chat keeps its cat avatar instead. */
.lvm__head::before, .lvabs__head::before, .lvsh__head::before, .lvntf__head::before, .mkt-viewer__head::before, .mkt-player__head::before {
    content: ''; flex: 0 0 auto; align-self: center; width: 34px; height: 30px; background: url(brand/modal-logo.png) center / contain no-repeat;
}
.lvabs__head, .lvsh__head { justify-content: flex-start; }
.lvabs__close, .lvsh__close { margin-left: auto; }
@media (min-width: 768px) {
    .lvm__head::before, .lvabs__head::before, .lvsh__head::before, .lvntf__head::before, .mkt-viewer__head::before, .mkt-player__head::before { width: 44px; height: 39px; }
}
