@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/inter-tight-v8-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/inter-tight-v8-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/inter-tight-v8-ruble.woff2") format("woff2"); unicode-range: U+20BD; }

:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --card: rgb(28,28,30);
  --card-2: rgb(44,44,46);
  --fill: rgba(255,255,255,.07);
  --fill-2: rgba(255,255,255,.12);
  --text: #f8f8fa;
  --hint: #8e8e93;
  --accent: #0a84ff;
  --success: #34c759;
  --danger: #ff453a;
  --warning: #ff9f0a;
  --glass: rgba(28,28,30,.72);
  --glass-solid: rgba(28,28,30,.94);
  --glass-border: rgba(255,255,255,.08);
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --separator: rgba(255,255,255,.08);
  --glow-core: rgba(255,255,255,.3);
  --glow-mid: rgba(255,255,255,.13);
  --ease: cubic-bezier(.25,.1,.25,1);
  --ease-in: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.4,.5,1);
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --wide: 1180px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f7; --bg-2: #e9e9ef; --card: #fff; --card-2: #f2f2f7; --fill: rgba(120,120,128,.12);
    --fill-2: rgba(120,120,128,.2); --text: #000; --accent: #3d7afe; --glass: rgba(242,242,247,.72);
    --glass-solid: rgba(242,242,247,.94); --glass-border: rgba(0,0,0,.06); --shadow: 0 8px 30px rgba(0,0,0,.12);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.18); --separator: rgba(60,60,67,.12); --glow-core: rgba(255,255,255,.95);
    --glow-mid: rgba(255,255,255,.55); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f2f7; --bg-2: #e9e9ef; --card: #fff; --card-2: #f2f2f7; --fill: rgba(120,120,128,.12);
  --fill-2: rgba(120,120,128,.2); --text: #000; --accent: #3d7afe; --glass: rgba(242,242,247,.72);
  --glass-solid: rgba(242,242,247,.94); --glass-border: rgba(0,0,0,.06); --shadow: 0 8px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18); --separator: rgba(60,60,67,.12); --glow-core: rgba(255,255,255,.95);
  --glow-mid: rgba(255,255,255,.55); color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.hint { color: var(--hint); }
.pressable { transition: transform .18s var(--ease), opacity .18s var(--ease); }
.pressable:active { transform: scale(.97); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -.5px 0 rgba(255,255,255,.05), var(--shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }

.app { max-width: var(--wide); margin: 0 auto; padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 112px); }
.rise > * { animation: rise .46s var(--ease-in) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.screen-title { font-size: 30px; margin: 8px 4px 6px; }
.screen-sub { color: var(--hint); margin: 0 4px 18px; font-size: 15px; }
.section-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--hint); margin: 28px 4px 10px; letter-spacing: .02em; }
.section-title a { color: var(--accent); font-weight: 600; }

.st { display: inline-grid; place-items: center; width: var(--s, 28px); height: var(--s, 28px); flex: none; position: relative; vertical-align: middle; }
.st[data-url] { isolation: isolate; }
.st[data-url]::after { content: ""; position: absolute; inset: -42%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--glow-core) 0%, var(--glow-mid) 42%, rgba(255,255,255,0) 100%); opacity: 0; transition: opacity .46s var(--ease-in); }
.st[data-url].halo:not(.loading)::after { opacity: 1; }
.st > svg, .st > video, .st > img { width: 100% !important; height: 100% !important; display: block; object-fit: contain; }
.st > .st-fallback { font-size: calc(var(--s, 28px) * .78); line-height: 1; }
.st.repaint { color: var(--text); }
.st.repaint svg [fill^="rgb"] { fill: currentColor; }
.st.repaint svg [stroke^="rgb"] { stroke: currentColor; }
.st.loading::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: var(--fill); animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.rich .st { --s: 1.25em; margin: -.2em .05em 0; }
.rich blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--fill); border-radius: 0 12px 12px 0; }
.rich .tg-spoiler { background: var(--fill-2); color: transparent; border-radius: 4px; cursor: pointer; }
.rich .tg-spoiler.open { color: inherit; background: none; }
.rich a { color: var(--accent); }

.topbar { position: sticky; top: 12px; z-index: 30; max-width: var(--wide); margin: 12px auto 0; height: 64px; border-radius: 22px; display: flex; align-items: center; gap: 24px; padding: 0 12px 0 22px; width: calc(100% - 32px); }
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--hint); transition: background .18s var(--ease), color .18s var(--ease); }
.topnav a:hover { color: var(--text); background: var(--fill); }
.topnav a.active { color: var(--text); background: var(--fill-2); }
.topbar-side { display: flex; align-items: center; gap: 10px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--fill); font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-chip .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.avatar-link { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 2px var(--glass-border); }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--a1, #5ac8fa), var(--a2, #0a84ff)); color: #fff; font-weight: 700; font-size: 17px; background-size: cover; background-position: center; }

.hero { position: relative; border-radius: 30px; overflow: hidden; min-height: 210px; padding: 20px; isolation: isolate; background: #060d22; box-shadow: var(--shadow); display: flex; flex-direction: column; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--scene, linear-gradient(160deg, #1d2f5c, #060d22)) center / cover no-repeat, #081430; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-canvas { display: block; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(110% 70% at 0% 0%, rgba(3,7,20,var(--veil-corner)) 0%, rgba(3,7,20,0) 70%),
  radial-gradient(110% 75% at 0% 100%, rgba(3,7,20,var(--veil-corner)) 0%, rgba(3,7,20,0) 72%),
  linear-gradient(180deg, rgba(3,7,20,var(--veil-top)) 0%, rgba(3,7,20,calc(var(--veil-top) * .45)) 26%, rgba(3,7,20,0) 44%,
    rgba(3,7,20,0) 50%, rgba(3,7,20,calc(var(--veil-bottom) * .65)) 68%, rgba(3,7,20,var(--veil-bottom)) 100%); }
.hero { --veil-corner: .16; --veil-top: .26; --veil-bottom: .42; }
.hero-top, .hero-bottom { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(3,7,20,.45), 0 0 18px rgba(3,7,20,.45); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-name { font-size: 22px; line-height: 1.1; }
.hero-hello { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.glass-icon { position: relative; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)), rgba(8,14,32,.26); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -.5px 0 rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.28); }
.glass-icon::before { content: ""; position: absolute; inset: 1px 5px auto; height: 46%; border-radius: 999px; background: radial-gradient(ellipse at 50% 0, rgba(255,255,255,.6), rgba(255,255,255,0) 72%); opacity: .5; pointer-events: none; }
.glass-icon.round { border-radius: 50%; }
.glass-icon svg { position: relative; width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-icon { background: rgba(40,44,60,.9); } }
.hero-avatar { width: 48px; height: 48px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 8px 22px rgba(0,0,0,.3); }
.hero-avatar .avatar { width: 100%; height: 100%; font-size: 20px; }
.hero-bottom { margin-top: auto; padding-top: 28px; }
.hero-label { font-size: 13px; font-weight: 700; color: rgba(235,235,245,.62); letter-spacing: .1em; text-transform: uppercase; }
.hero-hello span, .hero-label { text-shadow: 0 0 10px rgba(3,7,20,.75), 0 0 3px rgba(3,7,20,.6), 0 1px 1px rgba(3,7,20,.5); }
.hero-balance { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.hero-balance .amount { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -.01em; }
.hero-balance .cur { font-size: 28px; font-weight: 700; color: rgba(255,255,255,.75); }
.hero-balance .glass-icon { margin-left: 4px; }

.walls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.wall { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0b1530 center / cover no-repeat; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .2s var(--ease), transform .18s var(--ease); }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
.wall span { position: absolute; left: 14px; bottom: 11px; z-index: 1; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.wall.on { box-shadow: inset 0 0 0 3px #fff, 0 6px 20px rgba(0,0,0,.3); }
.sheet-head.left { text-align: left; align-items: flex-start; padding: 4px 2px 10px; }
.sheet-head.left p { margin-left: 0; margin-right: 0; }
.sheet-head.left .display { font-size: 26px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.product { position: relative; text-align: left; background: var(--card); border-radius: 26px; padding: 18px; min-height: 200px; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product .badge { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--fill); }
.product .glow { position: absolute; width: 260px; height: 260px; left: -90px; top: -90px; border-radius: 50%; background: radial-gradient(closest-side, var(--tone) 0%, transparent 100%); opacity: .26; pointer-events: none; }
.product h3 { margin: 14px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.2; }
.product p { margin: 0; font-size: 14px; color: var(--hint); line-height: 1.35; }
.product .price { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.product .price small { font-size: 14px; color: var(--hint); font-weight: 600; }
.product .price b { font-family: var(--display); font-size: 24px; font-weight: 700; }
.product .price span { font-size: 16px; color: var(--hint); font-weight: 700; }

.row-card { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 22px; padding: 14px 16px; text-align: left; margin-top: 12px; transition: background .18s var(--ease); }
.row-card:hover { background: var(--card-2); }
.row-card .grow { flex: 1; min-width: 0; }
.row-card b { display: block; font-size: 16px; }
.row-card small { display: block; font-size: 13px; color: var(--hint); margin-top: 2px; }
.chevron { color: var(--hint); flex: none; }
.rows { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.grid[data-count="1"] > .product { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon title price" "icon text price"; column-gap: 16px; align-items: center; min-height: 0; }
.grid[data-count="1"] > .product > .st { grid-area: icon; }
.grid[data-count="1"] > .product h3 { grid-area: title; margin: 0 0 2px; align-self: end; }
.grid[data-count="1"] > .product p { grid-area: text; align-self: start; }
.grid[data-count="1"] > .product .price { grid-area: price; margin: 0; padding: 0 0 0 8px; }
.grid[data-count="1"] > .product:has(.badge) { grid-template-areas: "icon title badge" "icon text price"; }
.grid[data-count="1"] > .product .badge { position: static; grid-area: badge; justify-self: end; align-self: end; margin-bottom: 4px; }

.folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.folder { position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--card); border-radius: 24px; padding: 16px; min-height: 132px; transition: transform .25s var(--ease), background .2s var(--ease); }
.folder:hover { transform: translateY(-3px); background: var(--card-2); }
.folder b { font-size: 16px; line-height: 1.2; }
.folder small { color: var(--hint); font-size: 13px; margin-top: auto; }
.folder .from { font-family: var(--display); font-size: 17px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--fill); border-radius: 16px; height: 48px; padding: 0 14px; margin: 0 0 16px; }
.search input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; }
.search svg { width: 20px; height: 20px; color: var(--hint); }

.list { background: var(--card); border-radius: 22px; overflow: hidden; }
.list-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; position: relative; }
a.list-row:hover, button.list-row:hover { background: var(--fill); }
.list-row + .list-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--separator); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row, .folder { content-visibility: auto; contain-intrinsic-block-size: auto 76px; }
.folder { contain-intrinsic-block-size: auto 132px; }
.list-row b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { display: block; font-size: 13px; color: var(--hint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .side { text-align: right; flex: none; }
.list-row .side b { font-size: 15px; }
.pill { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--hint); }
.pill.ok { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.pill.wait { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.pill.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }

.empty { text-align: center; padding: 56px 24px; }
.empty .display { font-size: 24px; margin-top: 12px; }
.empty p { color: var(--hint); margin: 8px auto 20px; max-width: 380px; }
.skeleton { background: var(--card); border-radius: 22px; position: relative; overflow: hidden; min-height: 72px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--fill), transparent); transform: translateX(-100%); animation: shimmer 1.3s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.btn { height: 52px; border-radius: 999px; width: 100%; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s var(--ease), opacity .18s var(--ease), filter .18s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.secondary { background: var(--fill); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--hint); }
.btn.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.disabled { opacity: .45; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-ic { display: inline-grid; width: 20px; height: 20px; place-items: center; }
.nav-ic:empty { display: none; }
.channels { background: var(--card); border-radius: 22px; padding: 16px; margin-top: 12px; display: grid; gap: 4px; }
.channels b { font-size: 16px; }
.channels small { color: var(--hint); font-size: 13px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.channel-links .btn { width: auto; flex: 1 1 160px; }
.btn .spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.secondary .spinner { border-color: color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn + .btn { margin-top: 10px; }
:is(.chips, .row, .links, .channel-links, .hero-foot, .stat-toolbar, .actions-row, .head-actions) > .btn + .btn { margin-top: 0; }

.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 12px); z-index: 20; display: flex; justify-content: center; gap: 10px; padding: 0 16px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.tabbar { position: relative; flex: 1; max-width: 360px; height: 64px; border-radius: 999px; display: flex; padding: 4px; user-select: none; -webkit-user-select: none; }
.tab { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; opacity: .62; transition: opacity .18s var(--ease), color .18s var(--ease); }
.tab.active { opacity: 1; color: var(--accent); }
.tab svg { width: 26px; height: 26px; }
.tab span { font-size: 10px; font-weight: 600; }
.lens { position: absolute; z-index: 1; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; pointer-events: none; transition: transform .46s cubic-bezier(.34,1.3,.5,1), width .46s cubic-bezier(.34,1.3,.5,1), opacity .25s var(--ease); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(255,255,255,.07)); box-shadow: 0 10px 24px rgba(0,0,0,.34); }
:root[data-theme="light"] .lens { background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02) 55%, rgba(0,0,0,.05)); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.lens::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; background: conic-gradient(from var(--angle, 0deg), #78e1ff, transparent 12%, #6487ff 22%, rgba(255,255,255,.6) 30%, #b973ff 42%, transparent 52%, #ff82cd 62%, rgba(255,255,255,.5) 72%, #ffc391 84%, transparent 92%, #78e1ff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .9; }
.lens::after { content: ""; position: absolute; left: 12%; right: 12%; top: 2px; height: 46%; border-radius: 999px; background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.55), rgba(255,255,255,0)); opacity: .55; }
.round-btn { position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; transition: transform .25s var(--spring); }
.round-btn svg { position: relative; z-index: 1; width: 28px; height: 28px; opacity: .8; }
.round-lens { inset: 5px; top: 5px; left: 5px; width: auto; height: auto; border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease), transform .46s var(--spring); --angle: 210deg; }
.round-btn.active .round-lens { opacity: 1; transform: none; }
.round-btn.active svg { color: var(--accent); opacity: 1; }
.dock.on-profile .tabbar .lens { opacity: 0; }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .32s var(--ease); }
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; border-radius: 30px 30px 0 0; padding: 8px 18px calc(var(--safe-bottom) + 18px); max-height: 92vh; overflow-y: auto; transform: translateY(105%); visibility: hidden; transition: transform .46s var(--ease-in), visibility 0s linear .46s; overscroll-behavior: contain; background: var(--glass-solid); }
.sheet.open { transform: none; visibility: visible; transition: transform .46s var(--ease-in), visibility 0s; }
.grabber { width: 40px; height: 5px; border-radius: 999px; background: var(--hint); opacity: .4; margin: 0 auto 8px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); display: none; place-items: center; color: var(--hint); z-index: 2; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 14px; }
.sheet-head .display { font-size: 26px; margin-top: 8px; }
.sheet-head p { margin: 6px 0 0; color: var(--hint); font-size: 15px; line-height: 1.4; }
.sheet-desc { color: var(--hint); font-size: 14px; line-height: 1.5; margin: 0 0 14px; white-space: pre-line; max-height: 168px; overflow: auto; background: var(--fill); padding: 12px 14px; border-radius: 16px; }

.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--fill); border-radius: 999px; padding: 3px; margin: 4px 0 12px; }
.segment button { position: relative; z-index: 1; height: 38px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.segment button[disabled] { opacity: .4; }
.segment .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--card); box-shadow: 0 3px 10px rgba(0,0,0,.18); transition: transform .42s cubic-bezier(.34,1.36,.5,1); }
.segment[data-value="1"] .thumb { transform: translateX(100%); }

.field { display: flex; align-items: center; gap: 4px; background: var(--fill); border-radius: 16px; height: 52px; padding: 0 16px; margin-bottom: 12px; transition: box-shadow .18s var(--ease); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.field span { color: var(--hint); font-weight: 600; }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.field-hint { font-size: 13px; color: var(--hint); margin: -6px 4px 12px; }
.field-hint.bad { color: var(--danger); }
.field-hint.good { color: var(--success); }
.field-hint:empty { display: none; }
.label { font-size: 13px; font-weight: 600; color: var(--hint); margin: 4px 4px 8px; }
.amount-box { text-align: center; background: var(--fill); border-radius: 24px; padding: 18px 16px 14px; margin-bottom: 12px; }
.amount-box input { width: 100%; text-align: center; border: 0; background: none; outline: none; font-family: var(--display); font-weight: 700; font-size: 44px; font-variant-numeric: tabular-nums; }
.amount-box small { color: var(--hint); font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.presets button { flex: 1 0 calc(25% - 8px); height: 38px; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 15px; transition: background .18s var(--ease), color .18s var(--ease); }
.presets button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.plans { display: grid; gap: 10px; margin-bottom: 12px; }
.plan { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card-2); border-radius: 20px; padding: 14px 16px; transition: box-shadow .18s var(--ease), background .18s var(--ease); width: 100%; }
.plan.on { background: color-mix(in srgb, var(--accent) 14%, var(--card-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.plan .grow { flex: 1; min-width: 0; }
.plan b { display: block; font-size: 16px; }
.plan small { color: var(--hint); font-size: 13px; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hint); flex: none; transition: box-shadow .18s var(--ease); }
.plan.on .radio, .method.on .radio { box-shadow: inset 0 0 0 7px var(--accent); }
.methods { display: grid; gap: 8px; margin-bottom: 12px; }
.method { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card-2); border-radius: 18px; padding: 12px 14px; width: 100%; transition: box-shadow .18s var(--ease), background .18s var(--ease); }
.method.on { background: color-mix(in srgb, var(--accent) 14%, var(--card-2)); box-shadow: inset 0 0 0 2px var(--accent); }
.method[disabled] { opacity: .45; }
.method .grow { flex: 1; min-width: 0; }
.method b { display: block; font-size: 15px; }
.method small { color: var(--hint); font-size: 13px; }
.method .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--fill); flex: none; }
.method .ic svg { width: 20px; height: 20px; }
.assets { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.assets button { padding: 7px 12px; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 13px; }
.assets button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 4px 14px; }
.total span { color: var(--hint); font-size: 15px; }
.total b { font-family: var(--display); font-size: 28px; font-weight: 700; }
.total b.estimate { opacity: .5; }
.note { text-align: center; font-size: 13px; color: var(--hint); margin-top: 12px; line-height: 1.45; }
.result { text-align: center; padding: 16px 0 4px; }
.result .display { font-size: 28px; margin-top: 12px; }
.result p { color: var(--hint); margin: 8px 0 20px; font-size: 15px; line-height: 1.45; }

.order { max-width: 640px; margin: 0 auto; }
.order-card { background: var(--card); border-radius: 28px; padding: 24px; text-align: center; }
.order-card .display { font-size: 28px; margin: 14px 0 6px; }
.order-card p { color: var(--hint); margin: 0 auto; max-width: 440px; line-height: 1.45; }
.order-meta { display: grid; gap: 0; margin-top: 16px; background: var(--card); border-radius: 22px; overflow: hidden; }
.order-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 15px; }
.order-meta div + div { border-top: .5px solid var(--separator); }
.order-meta span { color: var(--hint); }
.order-meta b { text-align: right; word-break: break-all; }
.steps-line { display: flex; gap: 6px; margin: 18px auto 0; max-width: 360px; }
.steps-line i { flex: 1; height: 4px; border-radius: 999px; background: var(--fill-2); }
.steps-line i.on { background: var(--accent); }
.steps-line i.ok { background: var(--success); }
.account { text-align: left; background: var(--fill); border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.account div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.account span { color: var(--hint); }
.copyable { font-family: ui-monospace, "SF Mono", Menlo, monospace; cursor: pointer; word-break: break-all; text-align: right; }
.save-box { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: color-mix(in srgb, var(--warning) 12%, var(--card)); text-align: left; font-size: 14px; line-height: 1.45; }
.save-box b { display: block; margin-bottom: 4px; }

.login { min-height: calc(100vh - 80px); display: grid; place-items: center; }
.login-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 30px; padding: 28px 22px 22px; text-align: center; box-shadow: var(--shadow); }
.login-card .display { font-size: 30px; margin: 14px 0 6px; }
.login-card > p { color: var(--hint); margin: 0 0 22px; line-height: 1.45; }
.tg-login { min-height: 46px; display: flex; justify-content: center; margin-bottom: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--hint); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: .5px; background: var(--separator); }
.consent { display: flex; gap: 10px; text-align: left; font-size: 13px; color: var(--hint); line-height: 1.45; margin-bottom: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.alert { padding: 12px 14px; border-radius: 16px; font-size: 14px; margin-bottom: 16px; background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--text); text-align: left; }

.profile-head { position: relative; border-radius: 30px; overflow: hidden; padding: 32px 20px 24px; text-align: center; background: linear-gradient(160deg, #3a4a6b, #1c1f2e); color: #fff; }
.profile-head .avatar-big { width: 104px; height: 104px; margin: 0 auto 12px; }
.profile-head .avatar { font-size: 38px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.profile-head h2 { margin: 0; font-size: 26px; }
.profile-head small { display: block; margin-top: 4px; color: rgba(255,255,255,.75); font-size: 15px; }
.profile-head .balance-pill { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 700; background: rgba(255,255,255,.18); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.action { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; border-radius: 22px; background: var(--card); font-weight: 700; font-size: 16px; }
.action:hover { background: var(--card-2); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--fill); padding: 4px; border-radius: 999px; }
.themes button { height: 36px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.themes button.on { background: var(--card); box-shadow: 0 3px 10px rgba(0,0,0,.18); }

.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); z-index: 60; transform: translate(-50%, -160%); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; max-width: calc(100% - 32px); transition: transform .42s var(--spring); display: flex; gap: 8px; align-items: center; }
.toast.show { transform: translate(-50%, 0); }
.footer { text-align: center; color: var(--hint); font-size: 13px; padding: 36px 0 8px; line-height: 1.6; }
.footer a { color: var(--accent); }

@media (min-width: 760px) {
  .app { padding: 28px 24px 56px; }
  .dock { display: none !important; }
  .grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
  .folders { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
  .rows { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
  .grid[data-count="2"] > .product { min-height: 172px; }
  .hero { min-height: 260px; padding: 28px 30px; border-radius: 32px; }
  .hero-balance .amount { font-size: 54px; }
  .screen-title { font-size: 38px; }
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 520px; max-height: min(88vh, 860px); border-radius: 30px; padding: 22px 26px 26px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: transform .38s var(--ease-in), opacity .25s var(--ease); box-shadow: var(--shadow-lg); }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .grabber { display: none; }
  .sheet-close { display: grid; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  .side-col { position: sticky; top: 96px; }
}
@media (max-width: 759px) {
  .hero { min-height: 200px; padding: 18px; border-radius: 28px; }
  .hero-balance .amount { font-size: 42px; }
  .hero-balance .cur { font-size: 26px; }
  .product { min-height: 0; padding: 16px; border-radius: 24px; }
  .product h3 { font-size: 16px; margin-top: 12px; }
  .product p { font-size: 13px; }
  .product .price { padding-top: 12px; }
  .product .price b { font-size: 22px; }
  .grid > .product:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon title price" "icon text price"; column-gap: 14px; align-items: center; }
  .grid > .product:last-child:nth-child(odd) > .st { grid-area: icon; }
  .grid > .product:last-child:nth-child(odd) h3 { grid-area: title; margin: 0 0 2px; align-self: end; }
  .grid > .product:last-child:nth-child(odd) p { grid-area: text; align-self: start; }
  .grid > .product:last-child:nth-child(odd) .price { grid-area: price; margin: 0; padding: 0; }
  .grid > .product:last-child:nth-child(odd):has(.badge) { grid-template-areas: "icon title badge" "icon text price"; }
  .grid > .product:last-child:nth-child(odd) .badge { position: static; grid-area: badge; justify-self: end; align-self: end; margin-bottom: 4px; }
  .folders[data-count="1"] > .folder, .folders[data-count="3"] > .folder:last-child { grid-column: 1 / -1; min-height: 0;
    flex-direction: row; align-items: center; gap: 12px; }
  .folders[data-count="1"] > .folder small, .folders[data-count="3"] > .folder:last-child small { margin: 0 0 0 auto; }
  .topbar { display: none !important; }
  .side-col { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (min-width: 760px) {
  html { font-size: 15px; }
  .app { max-width: 1080px; padding: 22px 24px 48px; }
  .topbar { max-width: 1032px; height: 56px; border-radius: 18px; padding: 0 10px 0 18px; top: 10px; margin-top: 10px; }
  .brand { font-size: 19px; }
  .topnav a { padding: 7px 12px; font-size: 14px; }
  .balance-chip { height: 36px; font-size: 14px; padding: 0 12px 0 6px; }
  .balance-chip .plus { width: 24px; height: 24px; font-size: 16px; }
  .avatar-link { width: 36px; height: 36px; }
  .avatar { font-size: 15px; }
  .hero { min-height: 230px; padding: 24px 28px; border-radius: 28px; }
  .hero-name { font-size: 24px; }
  .hero-label { font-size: 12px; }
  .hero-balance .amount { font-size: 44px; }
  .hero-balance .cur { font-size: 26px; }
  .walls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-avatar { display: none; }
  .grid { gap: 12px; margin-top: 12px; }
  .product { min-height: 156px; padding: 16px; border-radius: 22px; }
  .product .st { --s: 40px !important; }
  .product h3 { font-size: 16px; margin: 10px 0 2px; }
  .product p { font-size: 13px; }
  .product .price { padding-top: 10px; }
  .product .price b { font-size: 20px; }
  .product .badge { top: 14px; right: 14px; font-size: 11px; padding: 4px 8px; }
  .row-card { padding: 11px 14px; border-radius: 18px; margin-top: 10px; }
  .row-card .st { --s: 30px !important; }
  .row-card b { font-size: 15px; }
  .section-title { margin: 22px 4px 8px; font-size: 12px; }
  .folders { gap: 12px; }
  .folder { min-height: 104px; padding: 14px; border-radius: 20px; gap: 8px; }
  .folder .st { --s: 30px !important; }
  .folder b { font-size: 14px; }
  .folder .from { font-size: 15px; }
  .search { height: 42px; font-size: 15px; }
  .screen-title { font-size: 28px; }
  .screen-sub { font-size: 14px; }
  .list-row { padding: 11px 14px; }
  .list-row b { font-size: 15px; }
  .sheet { width: 440px; padding: 18px 20px 20px; border-radius: 24px; }
  .sheet-head { padding: 0 0 10px; }
  .sheet-head .st { --s: 52px !important; }
  .sheet-head .display { font-size: 21px; margin-top: 6px; }
  .sheet-head p { font-size: 13px; }
  .sheet-close { width: 30px; height: 30px; top: 12px; right: 12px; }
  .segment button { height: 32px; font-size: 14px; }
  .field { height: 44px; border-radius: 14px; }
  .field input { font-size: 15px; }
  .amount-box { padding: 12px 14px 10px; border-radius: 18px; }
  .amount-box input { font-size: 32px; }
  .amount-box small { font-size: 12px; }
  .presets button { height: 32px; font-size: 13px; }
  .plan { padding: 10px 14px; border-radius: 16px; }
  .plan b { font-size: 15px; }
  .plan .price { font-size: 16px; }
  .methods { gap: 6px; }
  .method { padding: 8px 12px; border-radius: 14px; gap: 10px; }
  .method .ic { width: 30px; height: 30px; border-radius: 10px; }
  .method .ic svg { width: 17px; height: 17px; }
  .method b { font-size: 14px; }
  .method small { font-size: 12px; }
  .radio { width: 20px; height: 20px; }
  .plan.on .radio, .method.on .radio { box-shadow: inset 0 0 0 6px var(--accent); }
  .label { font-size: 12px; margin: 2px 4px 6px; }
  .total { padding: 6px 4px 10px; }
  .total b { font-size: 22px; }
  .btn { height: 46px; font-size: 15px; }
  .result .display { font-size: 22px; }
  .result .st { --s: 72px !important; }
  .order-card { padding: 20px; border-radius: 22px; }
  .order-card .st { --s: 64px !important; }
  .order-card .display { font-size: 22px; }
  .order-meta div { padding: 10px 14px; font-size: 14px; }
  .login-card { max-width: 400px; padding: 24px 20px 20px; }
  .login-card .display { font-size: 24px; }
  .login-card .st { --s: 64px !important; }
  .profile-head { padding: 24px 18px 20px; border-radius: 24px; }
  .profile-head .avatar-big { width: 80px; height: 80px; }
  .profile-head .avatar { font-size: 30px; }
  .profile-head h2 { font-size: 21px; }
  .action { height: 52px; border-radius: 18px; font-size: 15px; }
  .action .st { --s: 26px !important; }
  .empty .st { --s: 64px !important; }
  .empty .display { font-size: 21px; }
}
.promo-link { display: inline-flex; color: var(--accent); font-weight: 600; font-size: 15px; padding: 2px 4px 14px; }
.promo-row { display: flex; gap: 8px; align-items: flex-start; }
.promo-row .field { flex: 1; min-width: 0; margin-bottom: 8px; }
.promo-row .btn { width: auto; padding: 0 18px; flex: none; }
.promo-row .field input, .sheet .field #promo { text-transform: uppercase; letter-spacing: .04em; }
.promo-hint { margin: -2px 4px 12px; }
.promo-applied { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--success) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 40%, transparent); }
.promo-applied .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.promo-applied small { color: var(--success); font-weight: 600; font-size: 13px; }
.promo-applied button { color: var(--hint); font-weight: 600; font-size: 14px; }
.total b s { font-size: 17px; color: var(--hint); font-weight: 600; margin-right: 8px; text-decoration-thickness: 2px; }

:root[data-brand="partners"] {
  --bg: #05060a; --bg-2: #0a0c12; --card: #12141c; --card-2: #1a1d28; --fill: rgba(255,255,255,.07);
  --fill-2: rgba(255,255,255,.12); --text: #f6f5f3; --hint: #9a9aa6; --accent: #ff7a1a; --accent-2: #3b7bff;
  --glass: rgba(16,18,26,.72); --glass-solid: rgba(16,18,26,.95); --glass-border: rgba(255,255,255,.08);
  --separator: rgba(255,255,255,.08); color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root[data-brand="partners"]:not([data-theme="dark"]) {
    --bg: #f6f3ef; --bg-2: #efe9e2; --card: #fff; --card-2: #f6f3ef; --fill: rgba(120,100,80,.1);
    --fill-2: rgba(120,100,80,.18); --text: #14110e; --hint: #7d766f; --accent: #e8650a; --accent-2: #2f62e8;
    --glass: rgba(246,243,239,.76); --glass-solid: rgba(246,243,239,.95); --glass-border: rgba(0,0,0,.06);
    --separator: rgba(60,50,40,.12); color-scheme: light;
  }
}
:root[data-brand="partners"][data-theme="light"] {
  --bg: #f6f3ef; --bg-2: #efe9e2; --card: #fff; --card-2: #f6f3ef; --fill: rgba(120,100,80,.1);
  --fill-2: rgba(120,100,80,.18); --text: #14110e; --hint: #7d766f; --accent: #e8650a; --accent-2: #2f62e8;
  --glass: rgba(246,243,239,.76); --glass-solid: rgba(246,243,239,.95); --glass-border: rgba(0,0,0,.06);
  --separator: rgba(60,50,40,.12); color-scheme: light;
}
[data-brand="partners"] body { isolation: isolate; }
[data-brand="partners"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 0% -8%, rgba(255,122,26,.16), transparent 62%),
    radial-gradient(900px 560px at 100% 108%, rgba(59,123,255,.18), transparent 62%); }
[data-brand="partners"] .btn.primary { background: linear-gradient(135deg, #ff9a3c, #ff6a1a 55%, #f0550a); color: #fff;
  box-shadow: 0 10px 26px rgba(255,106,26,.32); }
[data-brand="partners"] .hero-bg { filter: saturate(1.05); }
[data-brand="partners"] .hero-fx { background: linear-gradient(115deg, rgba(255,122,26,.28), transparent 45%, rgba(59,123,255,.32)); }

.btn .btn-st { margin-right: 2px; }
