:root {
  --bg: #0c0e10;
  --card: #131517;
  --card2: #141618;
  --panel: #0f1113;
  --line: rgba(255, 255, 255, 0.05);
  --tx: #eef1f4;
  --mut: #6b7684;
  --mut2: #56616e;
  --green: #3ddc84;
  --blue: #1e58e8;
  --blue2: #2f6cf5;
  --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --bot: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--tx);
  font-size: 12.3px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }

#app { position: relative; width: min(520px, 100%); height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg); }
.screen {
  position: absolute; inset: 0 0 0 0;
  overflow-y: auto; overflow-x: hidden;
  padding: calc(var(--top) + 12px) 15px calc(104px + var(--bot));
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

/* ---------- нижняя навигация ---------- */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  padding: 11px 6px calc(10px + var(--bot));
  background: rgba(14, 16, 18, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #6f7881; font-size: 10.1px; font-weight: 500; transition: color .15s; }
.nav-btn svg { width: 29px; height: 29px; }
.nav-btn.on { color: var(--blue2); }

/* ---------- профиль ---------- */
.profile { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: 13.2px; color: #fff;
  background: linear-gradient(145deg, #c56cf0, #8b4bd8);
}
.profile .who { min-width: 0; flex: 1; }
.profile h1 { margin: 0; font-size: 14.5px; line-height: 1.17; font-weight: 600; letter-spacing: -0.01em; }
.profile p { margin: 2px 0 0; color: #4f6178; font-size: 12.3px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; background: #17191c; display: grid; place-items: center; color: #d5dae0; flex: none; }
.round-btn svg { width: 22px; height: 22px; }
.profile .acts { display: flex; gap: 11px; }

.banner {
  margin-top: 14px; padding: 15px 16px; border-radius: 18px; display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, #0f2a22, #0d2321); color: #e3ece7; font-size: 12.3px; line-height: 1.4;
}
.banner .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d27a; margin-top: 7px; flex: none; box-shadow: 0 0 0 4px rgba(52, 210, 122, 0.1); }

.row-head { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.row-head h2 { margin: 0; font-size: 15.0px; font-weight: 600; letter-spacing: -0.015em; flex: 1; }
.seg { display: flex; background: #131517; border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 13px; font-size: 11.4px; font-weight: 500; color: var(--mut); border-radius: 999px; }
.seg button.on { background: #17352b; color: #3ddc84; }
.info-btn { width: 30px; height: 30px; border-radius: 50%; background: #17191c; color: #7b8491; display: grid; place-items: center; }
.info-btn svg { width: 17px; height: 17px; }

/* ---------- герой ---------- */
.hero { position: relative; margin: 2px -15px 0; height: 232px; display: grid; place-items: center; }
.hero img { width: 330px; max-width: 92%; height: auto; display: block; user-select: none; -webkit-user-drag: none; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tool-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.pill { height: 32px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.8px; }
.pill svg { width: 17px; height: 17px; }
.pill.boost { background: linear-gradient(180deg, #ff6a6a, #f24848); color: #fff; box-shadow: 0 4px 16px rgba(255, 82, 82, 0.35); }
.pill.earn { background: #f5f23b; color: #1a1a00; box-shadow: 0 4px 16px rgba(245, 242, 59, 0.25); }
.skin { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #6b7684; font-size: 12.8px; font-weight: 500; }
.skin i { width: 7px; height: 7px; border-radius: 50%; background: #34d27a; box-shadow: 0 0 8px #34d27a; }
.skin svg { width: 16px; height: 16px; }

/* ---------- карточка сбора ---------- */
.collect {
  margin-top: 14px; padding: 14px 15px 13px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(100deg, #121e33 0%, #0f1724 60%, #0e1420 100%);
  min-height: 82px;
}
.collect .line { display: flex; align-items: center; gap: 8px; }
.collect .amt { font-size: 21.1px; font-weight: 700; letter-spacing: -0.02em; }
.collect .chev { width: 26px; height: 26px; border-radius: 50%; background: #1a2232; display: grid; place-items: center; color: #5d6b82; }
.collect .chev svg { width: 14px; height: 14px; transition: transform .2s; }
.collect .chev.open svg { transform: rotate(180deg); }
.collect .go { margin-left: auto; height: 34px; padding: 0 17px; border-radius: 11px; background: var(--blue); color: #fff; font-weight: 600; font-size: 12.3px; transition: opacity .2s, transform .1s; }
.collect .go:active { transform: scale(.97); }
.collect .go:disabled { opacity: 0.38; background: #1f4dc4; }
.collect small { display: block; margin-top: 11px; font-size: 10.1px; color: #8b95a3; }
.collect .done { color: #3ddc84; font-size: 12.3px; line-height: 1.35; flex: 1; padding-right: 12px; }
.collect .brk { margin-top: 10px; display: grid; gap: 6px; font-size: 11.4px; color: #9aa4b2; }
.collect .brk div { display: flex; justify-content: space-between; }
.collect .brk b { color: #e8edf2; font-weight: 600; }
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.block-title { margin: 22px 0 12px; font-size: 15.0px; font-weight: 600; letter-spacing: -0.015em; }

/* ---------- таблицы и панели ---------- */
.panel { background: var(--card2); border-radius: 18px; padding: 14px 15px; }
.dev-head, .dev-row { display: grid; grid-template-columns: 1fr 46px 72px 76px; align-items: center; }
.dev-head { font-size: 10.1px; letter-spacing: .09em; color: #4e5965; font-weight: 500; text-transform: uppercase; padding: 4px 0 0; }
.dev-head span:nth-child(n+2), .dev-row > :nth-child(n+2) { text-align: right; }
.dev-head span:nth-child(2), .dev-row > :nth-child(2) { text-align: center; }
.dev-row { margin-top: 18px; padding-bottom: 6px; min-height: 40px; }
.dev-row + .dev-row { margin-top: 12px; }
.dev-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dev-who img { width: 38px; height: 26px; object-fit: contain; border-radius: 4px; flex: none; }
.dev-who b { display: block; font-size: 12.8px; font-weight: 500; white-space: nowrap; }
.dev-who small { display: block; color: #4e5965; font-size: 10.6px; margin-top: 2px; }
.dev-row .q { color: #3ddc84; font-weight: 500; }
.dev-row .h { font-size: 11.4px; letter-spacing: -0.02em; }
.dev-row .d { color: #3ddc84; font-weight: 600; font-size: 11.4px; letter-spacing: -0.02em; }

.tok-panel { margin-top: 12px; background: var(--card2); border-radius: 18px; padding: 14px 8px 10px; }
.tok-panel h3, .chart-panel h3 { margin: 0; font-size: 12.8px; font-weight: 500; padding: 0 8px; }
.chips { display: flex; gap: 6px; margin: 10px 0 4px; padding: 0 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11.9px; color: #596472; font-weight: 500; border-radius: 10px; }
.chip.on { color: #3ddc84; }
.chip .ti { width: 17px; height: 17px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 12.8px; width: 100%; text-align: left; }
.trow .ti { width: 26px; height: 26px; }
.trow em { margin-left: auto; font-style: normal; color: #3ddc84; font-weight: 600; font-size: 11.9px; }

.chart-panel { margin-top: 12px; background: var(--card2); border-radius: 18px; padding: 16px 14px 14px; }
.chart-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.legend { display: flex; gap: 12px; font-size: 10.6px; color: #56616e; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.chart-wrap { position: relative; margin-top: 12px; height: 142px; touch-action: pan-y; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ylab { position: absolute; left: 0; font-size: 9.2px; color: #4e5965; transform: translateY(-50%); width: 38px; text-align: right; }
.xlab { display: flex; justify-content: space-between; margin: 8px 0 0 46px; font-size: 9.2px; color: #4e5965; }
.xlab span { flex: 1; text-align: center; }
.tip { position: absolute; z-index: 3; padding: 9px 11px; border-radius: 10px; background: #1b232d; border: 1px solid #2a3a4f; font-size: 10.6px; line-height: 1.55; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.tip .n { color: #5aa2ff; }
.tip .m { color: #3ddc84; }
.chart-foot { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 2px; font-size: 10.6px; color: #56616e; }
.chart-foot b { display: block; margin-top: 3px; font-size: 12.8px; font-weight: 600; }
.chart-foot .me b { color: #3ddc84; }
.chart-foot .net { text-align: right; }

/* ---------- заголовок вкладки ---------- */
.page-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.page-title .ic { width: 46px; height: 46px; border-radius: 50%; background: #17191c; display: grid; place-items: center; color: #cfd5dc; }
.page-title .ic svg { width: 24px; height: 24px; }
.page-title h2 { margin: 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- маркет ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: 20px; padding: 16px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 100px; }
.tile .bub { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.tile .bub svg { width: 22px; height: 22px; }
.tile strong { font-size: 13.2px; font-weight: 600; }
.tile span { font-size: 11.0px; color: #7f8ba0; }
.tile.swap { background: linear-gradient(160deg, #18304a, #132338); box-shadow: inset 0 0 0 1px rgba(80, 140, 255, 0.12); }
.tile.swap .bub { background: #2f5fa8; color: #cfe0ff; }
.tile.stake { background: linear-gradient(160deg, #35291a, #231b12); box-shadow: inset 0 0 0 1px rgba(230, 160, 60, 0.12); }
.tile.stake .bub { background: #b9861f; color: #fff1c9; }
.tile.stake span { color: #9b8a6c; }
.sort-row { display: flex; justify-content: flex-end; margin: 18px 4px 12px; }
.sort-btn { display: flex; align-items: center; gap: 7px; color: #5f7596; font-size: 12.8px; }
.sort-btn svg { width: 17px; height: 17px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gcard { background: var(--card); border-radius: 20px; padding: 10px 10px 10px; box-shadow: 0 0 28px rgba(30, 88, 232, 0.05); }
.gshot { position: relative; background: var(--panel); border-radius: 16px; height: 142px; overflow: hidden; display: grid; place-items: center; }
.gshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.i-btn { position: absolute; right: 8px; bottom: 8px; width: 20px; height: 20px; color: #4a5560; }
.gcard h3 { margin: 12px 4px 5px; font-size: 13.6px; font-weight: 500; }
.gspec { margin: 0 4px; display: flex; justify-content: space-between; color: #4f5a67; font-size: 11.9px; }
.greward { margin: 7px 4px 0; font-size: 10.6px; color: #4f5a67; }
.greward b { color: #e5e9ee; font-weight: 500; }
.gbuy { width: 100%; height: 43px; margin-top: 10px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13.2px; box-shadow: 0 6px 22px rgba(30, 88, 232, 0.28); }
.gbuy:active { transform: scale(.98); }

/* ---------- шторки ---------- */
.back { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.62); animation: bfade .25s ease; }
@keyframes bfade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100% - var(--top) - 24px); overflow-y: auto;
  background: #0f1113; border-radius: 22px 22px 0 0; padding: 20px 16px calc(24px + var(--bot));
  animation: up .32s cubic-bezier(.2, .85, .25, 1); scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet.closing { animation: down .22s ease forwards; }
.back.closing { animation: bout .22s ease forwards; }
@keyframes down { to { transform: translateY(100%); } }
@keyframes bout { to { opacity: 0; } }
.grab { width: 38px; height: 4px; border-radius: 3px; background: #2a2f36; margin: -8px auto 14px; }
.sh-top { position: relative; text-align: center; margin-bottom: 14px; }
.sh-top h3 { margin: 0; font-size: 15.0px; font-weight: 600; }
.sh-top p { margin: 14px 0 0; text-align: left; font-size: 12.3px; line-height: 1.45; color: #5f7596; }
.x { position: absolute; right: 0; top: 0; width: 26px; height: 26px; color: #6b7684; display: grid; place-items: center; }
.x svg { width: 15px; height: 15px; }
.sh-top.left { text-align: left; }
.sh-top.left h3 { font-size: 17.6px; }
.sh-top.left .x { top: 0; }

.prod-hero { background: var(--panel); border-radius: 18px; aspect-ratio: 1 / 0.97; overflow: hidden; }
.prod-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-name { margin: 22px 2px 14px; font-size: 18.5px; font-weight: 600; }
.prod-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 14px; }
.prod-stats small { display: block; color: #4e5965; font-size: 11.4px; margin-bottom: 5px; }
.prod-stats b { font-size: 13.2px; font-weight: 500; }
.prod-desc { color: #4a5663; font-size: 12.3px; line-height: 1.5; margin: 0 2px 14px; }
.box { background: var(--card); border-radius: 16px; padding: 6px 14px; margin-top: 10px; }
.box .r { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 12.8px; }
.box .r span:first-child { color: #4e5965; }
.box .r .tk { display: flex; align-items: center; gap: 7px; }
.box .r .tk .ti { width: 20px; height: 20px; }
.qty { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.qty .ctl { display: flex; align-items: center; gap: 12px; }
.qty .ctl button { width: 30px; height: 30px; border-radius: 50%; color: #4e5965; font-size: 17.6px; display: grid; place-items: center; }
.qty .ctl b { min-width: 22px; text-align: center; font-size: 14.1px; font-weight: 500; }
.qty small { grid-column: 1 / -1; }
.qty-wrap { background: var(--card); border-radius: 16px; padding: 14px; margin-top: 10px; }
.qty-wrap .top { display: flex; align-items: center; justify-content: space-between; font-size: 12.8px; }
.qty-wrap .mx { text-align: right; color: #4e5965; font-size: 10.6px; margin-top: 8px; }
.pay-label { margin: 18px 2px 8px; color: #4e5965; font-size: 12.3px; }
.pay { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border-radius: 16px; text-align: left; }
.pay .ti { width: 26px; height: 26px; }
.pay .nm { font-weight: 500; }
.pay .vl { margin-left: auto; text-align: right; font-weight: 500; }
.pay .vl small { display: block; color: #4e5965; font-size: 10.6px; font-weight: 400; }
.pay:disabled { opacity: .45; }
.fine { color: #4e5965; font-size: 11.0px; line-height: 1.45; text-align: center; margin: 14px 4px 0; }

.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 17px 16px; border-radius: 14px; background: #14171b; margin-bottom: 9px; font-size: 13.2px; transition: background .15s; }
.opt .rd { width: 18px; height: 18px; border-radius: 50%; background: #1d2127; }
.opt.on { background: var(--blue); box-shadow: 0 6px 20px rgba(30, 88, 232, .25); }
.opt.on .rd { background: #fff; }
.cta { width: 100%; height: 50px; margin-top: 12px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 13.6px; font-weight: 600; box-shadow: 0 6px 24px rgba(30, 88, 232, 0.28); }
.cta:active { transform: scale(.99); }
.cta:disabled { opacity: .45; }
.cta.ok { background: linear-gradient(90deg, #2159d8, #1b8aa0); }
.cta.or { background: linear-gradient(90deg, #b97a1b, #bf5a2c); box-shadow: 0 6px 24px rgba(200, 110, 40, .2); }

.warn-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px 15px; border-radius: 14px; background: linear-gradient(90deg, #2b2111, #231b10); color: #e6a23c; font-size: 12.3px; line-height: 1.4; margin-bottom: 14px; }
.warn-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.sw { border-radius: 16px; padding: 14px; background: #101c2a; margin-bottom: 8px; }
.sw label { display: block; color: #4da3ff; font-size: 11.4px; margin-bottom: 10px; }
.sw .rw { display: flex; gap: 10px; align-items: center; }
.sw .all { flex: 1; height: 50px; border-radius: 14px; background: #1c4fb8; color: #fff; font-weight: 600; opacity: .55; }
.sw .all.live { opacity: 1; }
.sw .pick { height: 50px; padding: 0 16px; border-radius: 14px; background: #131a24; color: #7b8697; display: flex; align-items: center; gap: 10px; }
.sw .pick svg { width: 14px; height: 14px; }
.sw .list { margin-top: 12px; display: grid; gap: 4px; }
.sw .list button { display: flex; align-items: center; gap: 11px; padding: 10px 6px; font-size: 14.1px; text-align: left; }
.sw .list .ti { width: 24px; height: 24px; }
.sw .recv { display: flex; align-items: center; justify-content: space-between; font-size: 21.1px; font-weight: 500; }
.sw .recv .pick { background: transparent; color: #cfd5dc; font-size: 13.2px; padding: 0; height: auto; }
.arrow-c { width: 38px; height: 38px; border-radius: 50%; background: #112238; color: #4da3ff; display: grid; place-items: center; margin: 0 auto 8px; }
.arrow-c svg { width: 18px; height: 18px; }
.st { border-radius: 16px; padding: 14px; background: linear-gradient(160deg, #1b1610, #16130f); margin-bottom: 10px; }
.st label { display: block; color: #e0a03a; font-size: 11.4px; margin-bottom: 10px; }
.st .sel { width: 100%; height: 46px; border-radius: 14px; background: var(--blue); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; }
.st .sel.empty { color: #7fa0ee; }
.st .opts { margin-top: 10px; display: grid; gap: 2px; }
.st .opts button { text-align: left; padding: 11px 6px; display: flex; justify-content: space-between; font-size: 13.2px; }
.st .opts button span { color: #e0a03a; font-weight: 600; }
.st input { width: 100%; background: transparent; border: 0; outline: 0; font-size: 19.4px; font-weight: 500; color: #eef1f4; padding: 2px 0; }
.st input::placeholder { color: #5c5f66; }
.st .hint { color: #6b7684; font-size: 11.0px; margin-top: 6px; }
.stk { background: var(--card); border-radius: 16px; padding: 14px; margin-top: 10px; }
.stk .t { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.8px; }
.stk .t span:last-child { color: #e0a03a; }
.stk .bar { height: 5px; background: #1e2227; border-radius: 3px; margin: 12px 0 8px; overflow: hidden; }
.stk .bar i { display: block; height: 100%; background: #e0a03a; border-radius: 3px; }
.stk .lr { display: flex; justify-content: space-between; color: #6b7684; font-size: 11.4px; margin-top: 4px; }
.stk .lr b { color: #e8edf2; font-weight: 500; }
.stk button { width: 100%; height: 40px; margin-top: 12px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; }
.stk button:disabled { opacity: .35; }

.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-help { margin: 10px 2px 0; font-size: 10.5px; line-height: 1.4; color: var(--mut); text-align: center; }
.pay-help .lnk { color: var(--blue2); cursor: pointer; }
.addr-box { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #12151a; border: 1px solid rgba(255,255,255,.06); }
.addr-box code { font-size: 12.5px; line-height: 1.4; word-break: break-all; color: #d7e0ea; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { height: 40px; border-radius: 12px; background: #1c2430; color: #e8edf2; font-size: 13px; font-weight: 600; }
.copy-btn:disabled { opacity: .4; }
.pay-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 4px 2px 8px; }
.pay-ring { position: relative; width: 132px; height: 132px; margin: 6px 0 4px; }
.pay-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pay-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.pay-ring circle.bg { stroke: rgba(255,255,255,.08); }
.pay-ring circle.fg { stroke: #3b82f6; transition: stroke-dasharray .4s linear; }
.pay-clock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; letter-spacing: .04em; color: #f3f6fa; font-variant-numeric: tabular-nums; }
.pay-wait-title { font-size: 16px; color: #e8edf2; line-height: 1.35; }
.pay-wait-title b { color: #5b9cff; }
.pay-wait-sub { margin: 0; font-size: 13px; line-height: 1.45; color: #5f7596; max-width: 320px; }
.pay-wait .st { width: 100%; text-align: left; }
.pay-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #12151a; border: 1px solid rgba(255,255,255,.05); font-size: 13px; color: #7a8899; }
.pay-meta b { color: #e8edf2; font-weight: 600; }
.w-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.w-row .ti { width: 34px; height: 34px; }
.w-row .nm { font-size: 13.2px; display: flex; align-items: center; gap: 8px; }
.w-row .nm svg { width: 15px; height: 15px; color: #56616e; }
.w-row .vl { margin-left: auto; font-size: 13.2px; font-weight: 500; }
.soon { padding: 6px 12px; border-radius: 12px; background: #23272c; color: #6b7684; font-size: 11.0px; }
.soon.go { background: var(--blue); color: #fff; font-weight: 600; }
.w-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 14px 10px; background: #12151a; border-radius: 16px; margin: 4px 0 18px; }
.w-top b { display: block; font-weight: 500; font-size: 14.1px; }
.w-top small { color: #3f5f80; font-size: 12.3px; }
.w-top button { padding: 12px 17px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; }
.w-h { font-size: 14.1px; font-weight: 500; margin: 16px 0 6px; }
.w-h b { color: #f2b25c; font-weight: 600; }
.n-row { display: flex; align-items: center; padding: 14px 0; font-size: 13.2px; }
.n-row .dt { color: #3f5368; font-size: 11.4px; width: 78px; }
.n-row .nm { flex: 1; font-weight: 500; }
.n-row .pl { color: #3ddc84; font-weight: 500; }
.empty-n { color: #4e5965; text-align: center; padding: 40px 0; }
.ok-btn { width: 100%; height: 50px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 14.1px; font-weight: 600; margin-top: 18px; }
.link { color: #3ddc84; text-decoration: underline; text-align: center; display: block; margin: 8px 0 0; font-size: 12.3px; }

/* ---------- лидеры ---------- */
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 14px; padding: 4px; margin: 0 0 18px; }
.tabs2 button { padding: 14px 0; text-align: center; color: #596472; font-size: 12.8px; font-weight: 500; border-radius: 11px; transition: all .2s; }
.tabs2 button.on { color: #fff; background: #181b1f; }
.lead { display: grid; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 14px 12px; background: var(--card); border-radius: 16px; min-height: 62px; }
.rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11.4px; font-weight: 600; flex: none; background: #181b1f; color: #3f4a56; }
.rk.g1 { background: linear-gradient(145deg, #f7c548, #e99a14); color: #fff; }
.rk.g2 { background: linear-gradient(145deg, #c7ccd2, #9aa1a9); color: #fff; }
.rk.g3 { background: linear-gradient(145deg, #f2a43a, #d9780f); color: #fff; }
.lav { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13.2px; }
.lav.no { background: transparent; }
.lrow .nm b { display: block; font-size: 13.2px; font-weight: 500; }
.lrow .nm small { color: #3f4a56; font-size: 11.4px; }
.lrow .v { margin-left: auto; font-size: 12.8px; font-weight: 500; }
.lrow.me { box-shadow: inset 0 0 0 1px rgba(47, 108, 245, .5); }

/* ---------- задания ---------- */
.sec-h { display: flex; justify-content: space-between; margin: 22px 2px 10px; font-size: 12.8px; font-weight: 500; }
.sec-h span { color: #3f4a56; font-size: 11.4px; }
.adrow { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border-radius: 18px; margin-bottom: 9px; min-height: 64px; }
.adrow .ico { width: 32px; height: 32px; color: #2f6cf5; display: grid; place-items: center; flex: none; }
.adrow .ico svg { width: 22px; height: 22px; }
.adrow b { display: block; font-size: 12.8px; font-weight: 500; }
.adrow small { display: block; color: #3ddc84; font-size: 11.4px; margin-top: 3px; }
.adrow .btn { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 11.9px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.adrow .btn:disabled { opacity: .4; }
.adrow .btn svg { width: 14px; height: 14px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; }
.counters div { background: #121416; border-radius: 16px; padding: 14px 6px; text-align: center; color: #3f4a56; font-size: 11.9px; }
.counters b { display: block; font-size: 15.0px; font-weight: 500; color: #eef1f4; margin-bottom: 3px; }
.counters .b b { color: #2f6cf5; }
.counters .g b { color: #3ddc84; }
.tnav { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 12px; font-size: 12.8px; }
.tnav .dots { display: inline-flex; gap: 5px; margin-left: 10px; vertical-align: middle; }
.tnav .dots i { width: 7px; height: 7px; border-radius: 50%; background: #2b313a; }
.tnav .dots i.on { background: var(--blue2); }
.tnav .ar { display: flex; gap: 8px; }
.tnav .ar button { width: 36px; height: 36px; border-radius: 50%; background: #17191c; display: grid; place-items: center; color: #a9b1bc; }
.tnav .ar svg { width: 14px; height: 14px; }
.tcard { background: var(--card); border-radius: 18px; overflow: hidden; padding-bottom: 20px; }
.tcard .bn { height: 86px; display: grid; place-items: center; font-size: 21.1px; font-weight: 600; letter-spacing: -0.02em; }
.tcard .in { padding: 22px 22px 0; }
.tcard h4 { margin: 0 0 16px; font-size: 16.7px; font-weight: 500; }
.tcard p { margin: 0 0 18px; color: #4a5663; font-size: 12.3px; line-height: 1.5; }
.tcard .rw { color: #4e5965; font-size: 12.8px; margin-bottom: 14px; }
.tcard .rw b { color: #3ddc84; font-weight: 500; margin-left: 6px; }
.tcard .cta { margin-top: 0; }

/* ---------- настройки ---------- */
.block { background: var(--card); border-radius: 22px; padding: 18px 16px; margin-bottom: 14px; }
.block h3 { margin: 0 0 14px; font-size: 15.0px; font-weight: 500; }
.block .hint { margin: 0 0 14px; text-align: center; color: #3f4a56; font-size: 12.3px; line-height: 1.5; padding: 0 8px; }
.block .cta { margin-top: 0; }
.block .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.block .hd h3 { margin: 0; }
.block .hd .mini { height: 40px; padding: 0 16px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; font-size: 12.3px; display: flex; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(30, 88, 232, .25); }
.block .hd .mini svg { width: 15px; height: 15px; }
.block .opt { margin-bottom: 8px; padding: 14px 16px; }
.block .stat { display: grid; gap: 10px; font-size: 12.3px; }
.block .stat div { display: flex; justify-content: space-between; color: #4e5965; }
.block .stat b { color: #e8edf2; font-weight: 500; }

/* ---------- toast ---------- */
#toast-root { position: absolute; left: 0; right: 0; bottom: calc(96px + var(--bot)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: #1a1d21; padding: 11px 16px; border-radius: 22px; font-size: 11.9px; color: #e8edf2; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); animation: pop .25s ease; }
.toast svg { width: 15px; height: 15px; color: #3ddc84; }
.collect .amt .u { font-size: 11.4px; color: #6b7684; font-weight: 500; margin-left: 4px; }

/* срок и окупаемость (под таблицей устройств) */
.lifep { margin-top: 12px; }
.lf { padding: 10px 0; border-top: 1px solid var(--line); }
.lf:first-of-type { border-top: 0; padding-top: 2px; }
.lf-t { display: flex; justify-content: space-between; font-size: 12.3px; font-weight: 500; }
.lf-t .w { color: #f2b25c; }
.lf-b { height: 4px; background: #1e2227; border-radius: 3px; margin: 9px 0 7px; overflow: hidden; }
.lf-b i { display: block; height: 100%; background: var(--blue2); border-radius: 3px; }
.lf-r { display: flex; justify-content: space-between; color: #56616e; font-size: 10.6px; gap: 8px; }
.lf-btn { width: 100%; height: 38px; margin-top: 10px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; font-size: 11.9px; }

/* ===== подгонка по замерам оригинала ===== */
.screen { padding-top: calc(var(--top) + 4px); }
.profile h1 { font-size: 16px; }
.profile p { font-size: 13px; }
.avatar { width: 43px; height: 43px; font-size: 14px; }
.row-head h2 { font-size: 16.4px; }
.seg { padding: 2px; }
.seg button { padding: 5px 12px; font-size: 10.8px; }
.block-title { font-size: 14.4px; font-weight: 500; margin: 20px 0 10px; }
.hero { height: 246px; margin-top: 0; }
.hero img { width: 282px; }
.tool-row { margin-top: 2px; }
.pill { height: 28px; padding: 0 11px; font-size: 12.5px; gap: 5px; }
.pill svg { width: 15px; height: 15px; }
.skin { font-size: 12.8px; }
.collect { padding: 13px 14px 11px; min-height: 80px; }
.collect .amt { font-size: 21px; }
.collect .chev { width: 24px; height: 24px; }
.collect .go { height: 28px; padding: 0 14px; border-radius: 9px; font-size: 11.5px; }
.collect small { font-size: 9.5px; margin-top: 10px; }
.collect .done { font-size: 12.4px; }
.collect .amt .u { font-size: 11px; }
.dev-head { font-size: 10px; white-space: nowrap; }
.dev-head, .dev-row { grid-template-columns: 1fr 52px 66px 74px; }
.dev-who b { font-size: 12.8px; }
.dev-who small { font-size: 10.5px; }
.dev-row .q { font-size: 12.5px; }
.dev-row .h, .dev-row .d { font-size: 11.6px; white-space: nowrap; }
.tok-panel h3, .chart-panel h3 { font-size: 12.9px; white-space: nowrap; }
.chart-panel h3 { font-size: 13.8px; }
.legend { font-size: 10.8px; gap: 10px; white-space: nowrap; }
.chip { font-size: 11.8px; }
.trow { font-size: 12.6px; }
.trow em { font-size: 11.8px; }
.page-title h2 { font-size: 20px; }
.nav-btn { font-size: 10.3px; gap: 4px; }
.nav-btn svg { width: 28px; height: 28px; }
.nav { padding-top: 12px; }
.ctl { display: flex; align-items: center; gap: 12px; }
.ctl button { width: 30px; height: 30px; border-radius: 50%; color: #4e5965; font-size: 20px; display: grid; place-items: center; }
.ctl b { min-width: 22px; text-align: center; font-size: 15px; font-weight: 500; }
.gshot img { object-fit: contain; }
.greward { white-space: nowrap; }
.dev-who img { background: transparent; }
.hero { height: 256px; }
.hero img { width: 316px; max-width: none; }
.tool-row { padding: 0 14px 0 13px; }
.nav { padding: 14px 6px calc(12px + var(--bot)); }
.nav-btn { gap: 5px; }
.nav-btn svg { width: 30px; height: 30px; }
.dev-row { cursor: pointer; }
.dev-row .h { text-align: center; }
.tok-panel h3 { font-size: 12.3px; }
.chart-panel h3 { font-size: 12.6px; }
.trow { padding: 7px 12px; }
.trow .ti { width: 19px; height: 19px; }
.chip .ti { width: 13px; height: 13px; }
.chips { gap: 8px; margin: 10px 0 6px; }
.lr2 { display: flex; justify-content: space-between; color: #56616e; font-size: 12.5px; margin-top: 9px; gap: 10px; }
.lr2 b { color: #e8edf2; font-weight: 500; text-align: right; }
.lf-t { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; }

/* ===== шторки: подгонка по замерам ===== */
.sheet { padding: 22px 21px calc(24px + var(--bot)); max-height: calc(100% - max(var(--top) - 14px, 12px)); }
.sh-top h3 { font-size: 18.5px; }
.sh-top p { font-size: 13.2px; }
.sh-top.left h3 { font-size: 19px; }
.x { right: -3px; top: -2px; }
.cta { height: 44px; border-radius: 22px; font-size: 14px; margin-top: 10px; }
.cta.or, .cta.ok { border-radius: 22px; }
.sw .all, .sw .pick { height: 38px; border-radius: 19px; font-size: 13px; }
.sw .all { font-size: 12.5px; }
.sw .pick { font-size: 13px; padding: 0 14px; }
.sw .recv { font-size: 21px; }
.sw .recv .pick { font-size: 13px; height: auto; border-radius: 0; }
.sw .list button { font-size: 14.5px; padding: 8px 8px; }
.sw .list .ti { width: 22px; height: 22px; }
.sw { padding: 14px 16px; border-radius: 18px; }
.sw label { font-size: 11.8px; }
.st { padding: 14px 16px; border-radius: 18px; }
.st label { font-size: 11.8px; }
.st .sel { height: 34px; border-radius: 17px; font-size: 13px; }
.st input { font-size: 19px; }
.opt { padding: 13px 16px; font-size: 13.5px; border-radius: 13px; margin-bottom: 8px; }
.warn-box { font-size: 13px; padding: 13px 14px; }
.prod-hero { border-radius: 16px; }
.box .r { padding: 11px 0; font-size: 13px; }
.box { padding: 4px 14px; border-radius: 16px; }
.gshot img { width: 92%; height: 92%; }
.pay-label, .prod-desc, .prod-stats small { font-size: 12.5px; }
.prod-stats b { font-size: 13.2px; }
.prod-name { font-size: 18.5px; margin: 20px 2px 12px; }
.fine { font-size: 11.5px; }
.ok-btn { height: 44px; border-radius: 22px; font-size: 14px; }
.tabs2 button { font-size: 13px; padding: 12px 0; }
.lrow .nm b { font-size: 13.5px; }
.lrow .nm small { font-size: 11.8px; }
.lrow .v { font-size: 13px; }
.sec-h { font-size: 12.8px; }
.adrow b { font-size: 12.8px; }
.adrow small { font-size: 11.8px; }
.tcard h4 { font-size: 16.5px; }
.tcard p { font-size: 12.5px; }
.block h3 { font-size: 15px; }
.block .hint { font-size: 12.3px; }

/* ===== финальная подгонка ===== */
.screen.t-other { padding-top: calc(var(--top) - 11px); }
.sheet.tall { min-height: calc(100% - 130px); }
.lrow { padding: 11px 12px; min-height: 58px; }
.lav { width: 35px; height: 35px; font-size: 13px; }
.rk { width: 28px; height: 28px; }
.tabs2 button.on { background: transparent; }
.block .opt { padding: 11px 16px; margin-bottom: 8px; }
.w-row .ti { width: 28px; height: 28px; }
.w-row .nm { font-size: 13.5px; }
.w-row .vl { font-size: 13.5px; }
.w-h { font-size: 14px; }
.w-top b { font-size: 14.5px; }
.dev-row.off { opacity: .5; }
.dev-row { position: relative; }
.dev-row .pb { grid-column: 1 / -1; margin-top: 8px; text-align: left !important; }
.dev-row .pb i { display: block; height: 3px; border-radius: 2px; background: var(--blue2); }
.dev-row .pb span { display: block; margin-top: 5px; font-size: 10px; color: #56616e; text-align: left; }

/* ===== первый вход ===== */
.welcome { text-align: center; padding: 6px 4px 4px; }
.welcome .duck { width: 150px; height: auto; margin: 6px auto 12px; display: block; animation: float 6s ease-in-out infinite; }
.welcome .wtext { margin: 0 6px 20px; color: #5f7596; font-size: 13.2px; line-height: 1.5; }
.welcome .wtitle { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.welcome .wsub { font-size: 11.8px; color: #56616e; margin-bottom: 14px; }
.welcome .cta { margin-top: 0; }
.welcome .duck { mix-blend-mode: lighten; }

/* ===== главная: карусель карт ===== */
.hero { position: relative; margin: 2px -15px 0; height: 262px; display: block; }
.hero::before { content: ""; position: absolute; left: 50%; top: 46%; width: 330px; height: 250px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(40, 150, 70, .55), rgba(20, 90, 40, .22) 55%, transparent 80%); animation: glow 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.hs { position: relative; display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hs::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.slide img { width: 300px; max-width: 86%; max-height: 196px; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none;
  animation: wobble 4.2s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55)); will-change: transform; }
@keyframes wobble {
  0%   { transform: translateY(2px) rotate(-1.6deg) scale(1); }
  25%  { transform: translateY(-8px) rotate(0deg) scale(1.025); }
  50%  { transform: translateY(-13px) rotate(1.6deg) scale(1.04); }
  75%  { transform: translateY(-6px) rotate(0deg) scale(1.02); }
  100% { transform: translateY(2px) rotate(-1.6deg) scale(1); }
}
.hcap { margin-top: 12px; font-size: 11.5px; color: #7b8896; letter-spacing: .01em; }
.hdots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 6px; }
.hdots i { width: 6px; height: 6px; border-radius: 50%; background: #2b313a; transition: all .2s; }
.hdots i.on { background: #3ddc84; width: 16px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .slide img, .hero::before { animation: none; } }

/* ===== таблица «Данные майнинга»: аккуратная раскладка ===== */
.dev-head { display: flex; justify-content: space-between; padding: 2px 0 0; }
.dev-head span:nth-child(n) { text-align: left; }
.dev-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; column-gap: 11px; row-gap: 9px; align-items: center; margin-top: 0; padding: 14px 0 12px; border-top: 1px solid rgba(255, 255, 255, .04); min-height: 0; }
.dev-head + .dev-row { margin-top: 10px; }
.dev-row > :nth-child(n+2) { text-align: left; }
.dimg { width: 44px; height: 30px; object-fit: contain; border-radius: 4px; display: block; }
.dname { min-width: 0; }
.dname b { display: block; font-size: 13.4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dname small { display: block; margin-top: 2px; color: #56616e; font-size: 11px; }
.dev-row .q { text-align: right; font-size: 13px; font-weight: 600; color: #3ddc84; }
.dstat { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.dstat > div { min-width: 0; }
.dstat span { display: block; font-size: 9.6px; letter-spacing: .09em; text-transform: uppercase; color: #4e5965; margin-bottom: 3px; }
.dstat b { display: block; font-size: 12.4px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dstat b.d { color: #3ddc84; font-weight: 600; }
.dev-row .pb { grid-column: 2 / 4; margin-top: 2px; }
.dev-row .pb .trk { height: 3px; border-radius: 2px; background: #22262c; overflow: hidden; }
.dev-row .pb .trk i { display: block; height: 100%; border-radius: 2px; background: var(--blue2); }
.dev-row .pb span { display: block; margin-top: 6px; font-size: 10px; color: #56616e; }
.dev-empty { padding: 18px 0 8px; color: #4e5965; font-size: 12.5px; }
.dev-row .dstat b.h, .dev-row .dstat b.d { text-align: left; font-size: 12.4px; }

/* ===== главная: лампочка у «Мои устройства», кошелёк ===== */
.row-head h2 { display: flex; align-items: center; gap: 9px; }
.row-head h2 .live { width: 7px; height: 7px; border-radius: 50%; background: #34d27a; box-shadow: 0 0 8px #34d27a; flex: none; }
.tool-row { justify-content: flex-start; }
.block .w-row { padding: 11px 0; }
.block .w-row + .w-row { border-top: 1px solid var(--line); }
.block .w-h { margin-top: 0; }
.block button.soon.go { border: 0; }
.block .w-h { margin-top: 0 !important; }

/* ===== Boost ===== */
.pill.boost { position: relative; transition: box-shadow .3s, background .3s; }
.pill.boost.on { background: linear-gradient(180deg, #3ddc84, #1faa5e); color: #04210f; box-shadow: 0 4px 22px rgba(61, 220, 132, .5); animation: boostPulse 1.8s ease-in-out infinite; }
.pill.boost.on svg circle { fill: #3ddc84; }
@keyframes boostPulse { 0%, 100% { box-shadow: 0 4px 16px rgba(61, 220, 132, .35); } 50% { box-shadow: 0 4px 28px rgba(61, 220, 132, .75); } }
.pill.boost .bdg { position: absolute; top: -7px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #d62f2f; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.bs-lead { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; color: #cdd5de; text-align: center; }
.bs-st { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.bs-st > div { background: var(--card); border-radius: 14px; padding: 12px 14px; }
.bs-st span { display: block; font-size: 11.5px; color: #56616e; margin-bottom: 4px; }
.bs-st b { font-size: 18px; font-weight: 600; }
.bs-on { background: linear-gradient(160deg, #123a26, #0d2318); border-radius: 16px; padding: 16px; text-align: center; margin-bottom: 4px; }
.bs-on small { display: block; color: #5fdc9a; font-size: 12px; margin-bottom: 4px; }
.bs-on b { display: block; font-size: 30px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bs-on span { display: block; margin-top: 6px; font-size: 12.5px; color: #8fb9a2; }
.bs-why { margin: 8px 2px 0; font-size: 12px; color: #f2b25c; text-align: center; }
.bs-inv { background: #1a1d21; box-shadow: none; margin-top: 8px; }
.bs-h { margin: 22px 2px 8px; font-size: 14px; font-weight: 600; }
.bs-steps, .bs-list { margin: 0; padding: 0 0 0 18px; color: #7d8996; font-size: 12.8px; line-height: 1.55; }
.bs-steps li, .bs-list li { margin-bottom: 8px; padding-left: 2px; }
.bs-list b { color: #cdd5de; font-weight: 600; }
.bs-tbl { background: var(--card); border-radius: 14px; padding: 8px 14px; margin-top: 12px; }
.bs-th { font-size: 11.5px; color: #56616e; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.bs-r { display: flex; justify-content: space-between; gap: 10px; font-size: 12.3px; padding: 7px 0; color: #7d8996; }
.bs-r b { color: #e8edf2; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* кнопка Boost как шкала: заливка убывает вместе со временем */
.pill.boost.on { overflow: hidden; z-index: 0; min-width: 142px; justify-content: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: #14492d; font-variant-numeric: tabular-nums; }
.pill.boost.on::before { content: ""; position: absolute; inset: 0; width: var(--p, 100%); background: linear-gradient(90deg, #2fbf73, #3ddc84); z-index: -1; transition: width 1s linear; border-radius: inherit; }
.pill.boost.on svg { position: relative; }
.pill.boost.on svg circle { fill: #14492d; }

/* ===== Boost: эффекты включения ===== */
.hero { overflow: visible; }
.bwave { position: absolute; left: 50%; top: 46%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid rgba(80, 255, 150, .95); box-shadow: 0 0 24px rgba(61, 220, 132, .8), inset 0 0 20px rgba(61, 220, 132, .5); pointer-events: none; z-index: 3; animation: bring 1.15s cubic-bezier(.15, .7, .3, 1) forwards; }
.bwave.bwave2 { animation-delay: .22s; border-width: 2px; opacity: 0; }
@keyframes bring { 0% { transform: scale(.4); opacity: .95; } 70% { opacity: .55; } 100% { transform: scale(5); opacity: 0; } }
.bflash { position: absolute; left: 50%; top: 46%; width: 340px; height: 260px; margin: -130px 0 0 -170px; background: radial-gradient(closest-side, rgba(120, 255, 180, .55), rgba(61, 220, 132, .16) 55%, transparent 80%); pointer-events: none; z-index: 2; animation: bfl 1.2s ease-out forwards; }
@keyframes bfl { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
/* пока Boost работает: карта «разогнана», свечение ярче */
.hero.boosted::before { background: radial-gradient(closest-side, rgba(61, 220, 132, .75), rgba(30, 150, 70, .3) 55%, transparent 80%); animation: glowTurbo 1.4s ease-in-out infinite; }
@keyframes glowTurbo { 0%, 100% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); } }
.hero.boosted .slide img { animation: wobbleTurbo 2s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px rgba(61, 220, 132, .45)); }
@keyframes wobbleTurbo {
  0%   { transform: translateY(2px) rotate(-2.4deg) scale(1); }
  25%  { transform: translateY(-9px) rotate(0deg) scale(1.04); }
  50%  { transform: translateY(-17px) rotate(2.4deg) scale(1.065); }
  75%  { transform: translateY(-8px) rotate(0deg) scale(1.035); }
  100% { transform: translateY(2px) rotate(-2.4deg) scale(1); }
}
.dstat b.flash { color: #8dffbf; text-shadow: 0 0 10px rgba(61, 220, 132, .85); transition: color .4s, text-shadow .4s; }
.dstat b { transition: color .6s, text-shadow .6s; }
@media (prefers-reduced-motion: reduce) { .hero.boosted .slide img, .hero.boosted::before, .bwave, .bflash { animation: none !important; } }

/* ===== список друзей ===== */
.fr-sum { font-size: 12.5px; color: #56616e; margin: -4px 0 12px; }
.fr-sum b { color: #e8edf2; font-weight: 600; }
.fr-list { display: grid; gap: 4px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fr-row:first-child { border-top: 0; }
.fr-row .nm { min-width: 0; flex: 1; }
.fr-row .nm b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row .nm small { display: block; margin-top: 2px; font-size: 11px; color: #56616e; }
.fr-st { flex: none; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 10px; white-space: nowrap; }
.fr-st.ok { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.fr-st.wait { background: rgba(242, 178, 92, .14); color: #f2b25c; }

/* ===== курс BTC и TON в реальном времени ===== */
.ticker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ticker + .row-head { margin-top: 20px; }
.ticker + .block { margin-top: 14px; }
.tk { padding: 12px 13px 11px; border-radius: 16px; background: var(--card); min-width: 0; transition: background .5s; }
.tk-top { display: flex; align-items: center; gap: 8px; }
.tk .ti { width: 22px; height: 22px; flex: none; }
.tk small { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: #8793a1; }
.tk .lv { width: 6px; height: 6px; border-radius: 50%; background: #34d27a; box-shadow: 0 0 6px #34d27a; animation: lvp 1.8s ease-in-out infinite; flex: none; }
.tk.stale .lv { background: #4a525c; box-shadow: none; animation: none; }
@keyframes lvp { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.tk .chg { margin-left: auto; font-size: 10.8px; font-weight: 600; padding: 3px 7px; border-radius: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk .chg.up { color: #3ddc84; background: rgba(61, 220, 132, .12); }
.tk .chg.dn { color: #ff6b6b; background: rgba(255, 107, 107, .12); }
.tk b { display: block; margin-top: 9px; font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.tk.fl-up { animation: flUp 1s ease-out; }
.tk.fl-dn { animation: flDn 1s ease-out; }
@keyframes flUp { 0% { background: rgba(61, 220, 132, .26); } 100% { background: var(--card); } }
@keyframes flDn { 0% { background: rgba(255, 107, 107, .24); } 100% { background: var(--card); } }

.sw .list button { justify-content: flex-start; }
.sw .list .am { margin-left: auto; font-size: 11.5px; color: #56616e; font-variant-numeric: tabular-nums; }
