.px { image-rendering: pixelated; shape-rendering: crispEdges; }

/* ---------- шапка ---------- */
.logo { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.status b { font-weight: 500; }
.notice { margin: 12px 16px 0; padding: 10px 12px; border-radius: var(--r); font-size: 13px; line-height: 1.4; }
.warn-box { background: var(--warn-soft); border: 1px solid rgba(245,196,81,.3); color: var(--warn); }

/* ---------- инструмент и стратегии ---------- */
.seg { margin: 12px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { min-height: 38px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.strip#chips { padding: 10px 16px 10px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.strip .chip { scroll-snap-align: start; }
#chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
#chips.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px); mask-image: linear-gradient(90deg, transparent 0, #000 14px); }
.chip { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.chip:active { transform: scale(.96); }
.chip .run { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }

/* ---------- график ---------- */
.chart-box { margin: 0 16px; position: relative; contain: layout; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 240px;
  transition: height .45s cubic-bezier(.2,.8,.2,1); }
.chart-box.expanded { height: calc(100vh - 170px); height: calc(100dvh - 170px); }
#chart { position: absolute; inset: 0; }
#chart.swap { animation: chartIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes chartIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chart-box .tag { position: absolute; left: 10px; top: 9px; z-index: 3; max-width: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 7px; background: rgba(15,19,26,.85); color: var(--muted); border: 1px solid var(--line); }
.chart-box .tag.busy { color: var(--warn); }
.chart-box .tag.live { color: var(--up); border-color: rgba(31,199,160,.35); }
.chart-box .tag.locked { color: var(--warn); border-color: rgba(245,196,81,.35); }
.chart-box .tag.replay { color: var(--link); background: rgba(30,26,58,.9); border-color: rgba(125,103,244,.4); }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 14px; text-align: center; padding: 20px; }
.no-tp { display: none !important; }
.chart-tools { margin: 8px 16px 0; display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; }
.tool { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.tool svg { margin-right: 7px; flex-shrink: 0; color: var(--link); }
.tool.icon svg { margin: 0; color: var(--muted); }
.tool.on { background: var(--accent-soft); border-color: rgba(125,103,244,.55); }
.tool:active { transform: scale(.97); }
.chart-toggle .i-close, .chart-toggle[aria-expanded="true"] .i-open { display: none; }
.chart-toggle[aria-expanded="true"] .i-close { display: block; }
.zones { position: absolute; left: 0; top: 0; right: 62px; bottom: 28px; z-index: 1; pointer-events: none; overflow: hidden; }
.zones i, .zones b { position: absolute; display: block; }
.zones .pz-risk { background: rgba(242,84,107,.06); }
.zones .pz-win { background: rgba(31,199,160,.08); }
.zones .pz-loss { background: rgba(242,84,107,.09); }
.zones .pz-risk.on { background: rgba(242,84,107,.12); }
.zones .pz-win.on { background: rgba(31,199,160,.18); }
.zones .pz-loss.on { background: rgba(242,84,107,.18); }
.zones .pl-entry, .zones .pl-stop, .zones .pl-win, .zones .pl-loss { height: 0; border-top: 2px solid var(--warn); }
.zones .pl-stop { border-top: 2px dashed var(--down); }
.zones .pl-win { border-top-color: var(--up); }
.zones .pl-loss { border-top-color: var(--down); }
.zones .pm-entry { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.zones .pm-entry.up { border-bottom: 8px solid var(--warn); }
.zones .pm-entry.down { border-top: 8px solid var(--warn); }
.zones .pm-exit { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg2); }
.zones .pm-dot { width: 6px; height: 6px; border-radius: 50%; opacity: .8; }
.zones .win { background: var(--up); } .zones .loss { background: var(--down); }

/* ---------- история сделок ---------- */
.hist-panel { margin: 10px 16px 0; display: flex; flex-direction: column; gap: 8px; animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }
.hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hp-head > span:first-child { font-size: 14px; font-weight: 600; color: var(--white); }
.hp-head #hp-sum { font-size: 13px; color: var(--muted); }
.hp-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; }
.hp-strip::-webkit-scrollbar { display: none; }
.hp-chip { flex-shrink: 0; min-width: 100px; white-space: nowrap; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); scroll-snap-align: center; }
.hp-chip.on { border-color: rgba(125,103,244,.6); background: var(--accent-soft); }
.hp-chip .d { font-size: 12px; color: var(--dim); }
.hp-chip .r { font-size: 15px; font-weight: 600; }
.hp-sel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hp-sel:empty { display: none; }
.hp-sel-l { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.hp-sel-l .mono { font-size: 12px; font-family: inherit; }
.hp-sel-r { font-size: 18px; font-weight: 700; flex-shrink: 0; }

/* ---------- карточка стратегии в офисе ---------- */
.card { margin: 12px 16px 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.card-link { cursor: pointer; }
.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-name { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more { font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.res { display: flex; flex-direction: column; gap: 4px; }
.res-cap { font-size: 13px; color: var(--muted); }
.res-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.res-main b { font-size: 34px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.res-main span { font-size: 16px; font-weight: 500; color: var(--muted); }
.stats3, .stats2 { display: grid; gap: 8px; }
.stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats3 div, .stats2 div { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: var(--bg2); border-radius: 10px; }
.stats3 span, .stats2 span { font-size: 12px; color: var(--muted); }
.stats3 b, .stats2 b { font-size: 16px; font-weight: 600; color: var(--white); }
.stats2 b.down { color: var(--down); }
.money-line { font-size: 13px; color: var(--muted); line-height: 1.45; }
.money-line:empty { display: none; }
.money-line b { color: var(--text); font-weight: 600; }
.money-line button, .watch-line button, .linkbtn { background: none; border: none; padding: 0; color: var(--link); font: inherit; font-weight: 500; cursor: pointer; }
.since-join { padding: 10px 12px; background: var(--bg2); border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--text); }
.since-join b { font-weight: 600; }
.free-now { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.free-now svg { flex-shrink: 0; margin-top: 2px; color: var(--up); }
.free-now b { color: var(--text); font-weight: 600; }
.act-stack { display: flex; flex-direction: column; gap: 8px; }
.watch-line { font-size: 13px; color: var(--muted); line-height: 1.4; }
.watch-line:empty { display: none; }
.watch-line .on { color: var(--up); }
.run-state { display: flex; gap: 10px; align-items: center; }
.run-state .btn { flex-shrink: 0; min-height: 44px; }
.run-state span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }

/* ---------- живой сетап под графиком ---------- */
.live-info { margin: 10px 16px 0; padding: 14px; background: var(--panel); border: 1px solid rgba(31,199,160,.35); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }
.live-info .li-head { font-size: 14px; color: var(--text); line-height: 1.4; }
.live-info .li-grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 14px; align-items: baseline; }
.live-info .li-grid span { color: var(--muted); }
.live-info .li-grid b { text-align: right; font-weight: 600; }
.live-info .li-note { font-size: 12px; color: var(--dim); line-height: 1.45; }

/* ---------- комната: живая иллюстрация в рамке ---------- */
.room-wrap { margin: 14px 16px 0; position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: #141A26; height: calc(350px * var(--k, .92)); }
.room { width: 390px; height: 350px; position: relative; overflow: hidden; transform: scale(var(--k, .92)); transform-origin: top left; contain: layout paint; filter: saturate(.72); }
.room.off, .room.off * { animation-play-state: paused !important; }
.room .abs { position: absolute; }
.room .wall { left: 0; top: 0; width: 100%; height: 130px; background: #141A26; }
.room .floor { left: 0; top: 130px; width: 100%; height: 220px; background-color: #171D2A; background-image: linear-gradient(#1C2332 1px, transparent 1px), linear-gradient(90deg, #1C2332 1px, transparent 1px); background-size: 32px 32px; }
.room .lbl { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; }
.room .name { color: #8A93A3; white-space: nowrap; }
.room .tagname { position: absolute; left: -8px; top: 50px; }
.room .signboard { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: #9AA3B2; }
.room .signsub { color: #6E7686; font-size: 10px; }
.room .bub { display: none !important; }
.room .ticker { display: none !important; }
.room .cat { cursor: pointer; }
.speech { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; background: rgba(15,19,26,.92); border: 1px solid var(--line); border-radius: 12px; transition: opacity .3s, transform .3s; }
.speech.fade { opacity: 0; transform: translateY(4px); }
.speech.none { display: none; }
.sp-ava { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; background: var(--panel2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--white); }
.sp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-who { font-size: 11px; color: var(--dim); }
.sp-txt { font-size: 13px; line-height: 1.4; color: var(--text); }
.room-status { margin: 8px 16px 24px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.room-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.room-status.live i { background: var(--up); }
.room .z1 { animation: zzz 2.6s linear infinite; }
.room .z2 { animation: zzz 2.6s linear infinite 1.3s; }
.room .core { animation: dim 4s ease-in-out infinite; }
.room .news { left: 236px; top: 220px; }
.room .particles, .room.live .cup { display: none; }
.room .cup { animation: sip 5s ease-in-out infinite; transform-origin: bottom right; }
.room .bigbtn { background: #4A2A36; border-top: 3px solid #6A4A56; }
.room.live .analyst { animation: type .4s steps(2) infinite; }
.room.live .trader { animation: bob .9s steps(2) infinite; }
.room.live .risk { animation: walk 9s linear infinite; }
.room.live .news { left: 0; top: 232px; animation: run 7s linear infinite 1.5s; }
.room.live .legA { animation: legA .35s steps(1) infinite; }
.room.live .legB { animation: legB .35s steps(1) infinite; }
.room.live .core { animation: pulse 2.4s ease-in-out infinite; }
.room.live .particles { display: block; }
.room.live .p1 { animation: rise 2.4s linear infinite; }
.room.live .p2 { animation: rise 2.4s linear infinite .8s; }
.room.live .p3 { animation: rise 2.4s linear infinite 1.6s; }
.room.live .scr { animation: scr 2s linear infinite; }
.room.live .bigbtn { background: #B8475E; border-top-color: #D87A8C; }
.room.replay .bigbtn.hit { background: #E0566F; transform: translateY(3px); }
.room.win .z1, .room.win .z2 { display: none; }
.room.win .cat { animation: hop .45s steps(2) 3; }
.confetti { display: none !important; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes type { 0%,100% { transform: translateY(0) } 25% { transform: translateY(-1px) } 75% { transform: translateY(1px) } }
@keyframes walk { 0% { transform: translateX(0) scaleX(1) } 45% { transform: translateX(150px) scaleX(1) } 50% { transform: translateX(150px) scaleX(-1) } 95% { transform: translateX(0) scaleX(-1) } 100% { transform: translateX(0) scaleX(1) } }
@keyframes run { from { transform: translateX(-60px) } to { transform: translateX(480px) } }
@keyframes legA { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
@keyframes legB { 0%,49% { opacity: 0 } 50%,100% { opacity: 1 } }
@keyframes pulse { 0%,100% { opacity: .6; transform: scale(1) } 50% { opacity: 1; transform: scale(1.08) } }
@keyframes dim { 0%,100% { opacity: .35 } 50% { opacity: .6 } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 } 100% { transform: translateY(-70px); opacity: 0 } }
@keyframes zzz { 0% { transform: translate(0,0); opacity: 0 } 20% { opacity: 1 } 100% { transform: translate(10px,-22px); opacity: 0 } }
@keyframes scr { to { transform: translateX(-40px) } }
@keyframes sip { 0%,70%,100% { transform: rotate(0) } 78%,90% { transform: rotate(-25deg) } }
@keyframes hop { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---------- анимации экранов ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes screenIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes areaIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dotPulse { 0%,100% { r: 4; opacity: 1; } 50% { r: 7; opacity: .35; } }
[data-screen].enter { animation: screenIn .32s cubic-bezier(.2,.8,.2,1); }
.rise > * { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.rise > *:nth-child(2) { animation-delay: .04s } .rise > *:nth-child(3) { animation-delay: .08s } .rise > *:nth-child(4) { animation-delay: .12s }
.rise > *:nth-child(5) { animation-delay: .16s } .rise > *:nth-child(n+6) { animation-delay: .2s }
.curve .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.45,.05,.2,1) .15s forwards; }
.curve .area { opacity: 0; animation: areaIn .9s ease .7s forwards; }
.curve .end { animation: areaIn .3s ease 1.5s both; }
.curve .end-pulse { animation: dotPulse 1.8s ease-in-out 1.6s infinite; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .curve .line { stroke-dashoffset: 0; } .curve .area, .curve .end { opacity: 1; }
}

/* ---------- повтор дня ---------- */
.replaying .chart-tools, .replaying .seg, .replaying #chips, .replaying #office-card, .replaying #hist-panel, .replaying .live-info { display: none !important; }
.rp { margin: 10px 16px 0; padding: 14px; background: var(--panel); border: 1px solid rgba(125,103,244,.45); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; animation: fadeUp .35s cubic-bezier(.2,.8,.2,1) both; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.35; }
.rp-x { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; }
.rp-bar, .quiz-bar { height: 4px; background: var(--line); overflow: hidden; border-radius: 2px; }
.rp-bar i, .quiz-bar i { display: block; height: 4px; width: 0; background: var(--up); transition: width .2s linear; }
.quiz-bar { margin: 0; border-radius: 0; }
.quiz-bar i { background: var(--accent); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.rp-end { display: flex; flex-direction: column; gap: 10px; animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; }
.rp-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rp-sum b { font-size: 26px; font-weight: 700; }
.rp-explain { font-size: 13px; line-height: 1.5; color: var(--muted); }
.rp-explain b { color: var(--text); font-weight: 600; }
.rp-days { margin: 0 -14px; padding: 2px 14px; }
.rp-day { flex-shrink: 0; min-width: 78px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; }
.rp-day .d { font-size: 12px; color: var(--dim); }
.rp-day .r { font-size: 14px; font-weight: 600; }
.rp-day.on { border-color: rgba(125,103,244,.6); background: var(--accent-soft); }
.rp-days-wrap { display: flex; flex-direction: column; gap: 8px; }
.rp-pop { position: absolute; left: 50%; top: 42%; z-index: 4; transform: translate(-50%, -50%); font-weight: 700; font-size: 30px; padding: 10px 18px; background: rgba(21,26,35,.95); border: 1px solid var(--line); border-radius: 12px; pointer-events: none; animation: popIn .45s cubic-bezier(.2,1.3,.4,1) both; white-space: nowrap; text-align: center; }
.rp-pop small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- подбор стратегии ---------- */
.q-title { font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.3; }
.q-hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: -4px; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 15px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.q-opt:active { transform: scale(.98); }
.q-opt.on { border-color: rgba(125,103,244,.6); background: var(--accent-soft); }
.q-opt b { font-size: 16px; font-weight: 600; color: var(--white); }
.q-opt span { font-size: 13px; color: var(--dim); }
.q-skip { align-self: center; padding: 10px; color: var(--muted) !important; font-size: 14px; }
.q-rec { padding: 16px; background: var(--panel); border: 1px solid rgba(125,103,244,.5); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.q-rec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; line-height: 1.45; }
.q-rec li { padding-left: 22px; position: relative; }
.q-rec li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.q-money { padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.5; color: var(--text); }
.q-money b { font-weight: 700; }
.q-note { padding: 12px 14px; background: var(--warn-soft); border: 1px solid rgba(245,196,81,.3); border-radius: var(--r); color: var(--text); font-size: 13px; line-height: 1.5; }
.q-note b { color: var(--warn); }

/* ---------- калькулятор, «чего ожидать», приглашения ---------- */
.risk-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.risk-chips button { min-height: 44px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; cursor: pointer; }
.risk-chips button.on { border-color: var(--accent); background: var(--accent-soft); }
.expect { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.expect > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--row); }
.expect > div:last-child { border-bottom: none; }
.expect > div b { color: var(--white); white-space: nowrap; font-weight: 600; }
.ref-box { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ref-link { font-family: var(--mono); font-size: 12px; color: var(--white); word-break: break-all; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }

/* ---------- тарифы и оплата ---------- */
.launch { padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(125,103,244,.4); font-size: 14px; line-height: 1.5; }
.launch b { color: var(--white); }
.pkgs { display: flex; flex-direction: column; gap: 10px; }
.pkg { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; color: var(--text); width: 100%; font: inherit; }
.pkg.on { border-color: rgba(125,103,244,.7); background: var(--accent-soft); }
.pkg .dot { margin: 0; }
.pkg.on .dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.pkg .pk-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkg .pk-days { font-size: 16px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pkg .pk-sub { font-size: 12px; color: var(--muted); }
.pkg .pk-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pkg .pk-price { font-size: 20px; font-weight: 700; color: var(--white); white-space: nowrap; }
.pkg .pk-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pkg .pk-old { font-size: 12px; color: var(--dim); text-decoration: line-through; white-space: nowrap; }
.pkg .pk-save { font-size: 11px; font-weight: 600; color: var(--up); white-space: nowrap; }
.benefits { display: flex; flex-direction: column; gap: 10px; }
.benefit { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.benefit b { color: var(--text); font-weight: 600; }
.benefit svg { flex-shrink: 0; margin-top: 2px; color: var(--up); }
.trust { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.trust div { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.trust div b { color: var(--text); font-weight: 600; }
.trust svg { flex-shrink: 0; margin-top: 1px; color: var(--link); }
.my-strat { padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.my-strat b { color: var(--text); }
.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.step-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-t { font-size: 15px; font-weight: 600; color: var(--white); padding-top: 3px; }
.copy-row { display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.copy-row .val { flex: 1; min-width: 0; }
.copy-row .btn { min-height: 40px; padding: 0 12px; font-size: 13px; flex-shrink: 0; }
.copy-row .btn.done { color: var(--up); border-color: rgba(31,199,160,.45); }
.amount { font-size: 24px; font-weight: 700; color: var(--white); }
.amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
.addr { font-family: var(--mono); font-size: 13px; color: var(--white); word-break: break-all; }
.src-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.src-tabs button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.src-tabs button.on { background: var(--accent-soft); border-color: rgba(125,103,244,.6); }
.howto { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.howto ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.howto b { color: var(--text); }
.qr { align-self: center; padding: 12px; background: #fff; line-height: 0; border-radius: 12px; }
.qr img, .qr svg { width: 168px; height: 168px; image-rendering: pixelated; }
.ok-box { padding: 14px; background: var(--up-soft); border: 1px solid rgba(31,199,160,.4); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.wait { display: flex; align-items: center; gap: 12px; }

/* ---------- прочие экраны ---------- */
.curve { width: 100%; height: 160px; display: block; }
.trades { font-size: 13px; overflow: hidden; }
.trades > div { display: grid; grid-template-columns: 46px 1fr 62px 66px; gap: 6px; padding: 11px 12px; border-bottom: 1px solid var(--row); align-items: center; }
.trades > div:last-child { border-bottom: none; }

#quiz-body { padding-bottom: 230px; }
section[data-screen="paywall"] .content, section[data-screen="payment"] .content { padding-bottom: 240px; }

/* ---------- тарифы и оплата: тексты и блоки ---------- */
.h1 { font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.25; }
.h2 { font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.3; }
.lead { font-size: 14px; line-height: 1.5; color: var(--muted); }
.fine { font-size: 12px; line-height: 1.45; color: var(--dim); }
.fine a { color: var(--link); }
.center { text-align: center; }
.pk-gift { font-size: 12px; font-weight: 600; color: var(--warn); }
section[data-screen="paywall"] .seg { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field-err { font-size: 13px; line-height: 1.4; color: var(--down); }
.src-list { display: flex; flex-direction: column; gap: 8px; }
.src-list button { min-height: 50px; padding: 0 16px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; }
.src-list button.on { background: var(--accent-soft); border-color: rgba(125,103,244,.7); color: var(--white); font-weight: 600; }
.net-line { font-size: 13px; color: var(--muted); }
.net-line b { color: var(--text); font-weight: 600; }
.warn-box { padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid rgba(245,196,81,.35); font-size: 13px; line-height: 1.5; color: #EADBB0; }
.warn-box b { color: var(--warn); }
.small-link { font-size: 13px; font-weight: 600; text-decoration: none; align-self: flex-start; padding: 4px 0; }
.qr-wrap { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.wait-box { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.wait-box b { color: var(--white); font-size: 15px; }
.wait-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ok-box b { color: var(--up); font-size: 14px; }
.ok-box span { font-size: 13px; line-height: 1.45; color: #CDEFE6; }
.small-row { font-size: 12px; color: var(--muted); min-height: 32px; }
.small-row a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.ok-badge { width: 84px; height: 84px; border-radius: 50%; background: var(--up); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,199,160,.3); }
.steps-mini { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.steps-mini div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.steps-mini i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--link); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.steps-mini b { color: var(--text); }
section[data-screen="payreview"] .content { padding-bottom: 60px; }
.src-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: var(--r); border: 1px solid rgba(125,103,244,.6); background: var(--accent-soft); font-size: 15px; }
.src-picked b { color: var(--white); font-weight: 600; }
.src-picked a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.sub-box { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sub-box.on { border-color: rgba(125,103,244,.5); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 6px; border-radius: 3px; background: var(--up); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--link); }
#pending { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(125,103,244,.45); display: flex; flex-direction: column; gap: 10px; }
#pending.hidden { display: none; }
.pend { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pend b { color: var(--white); font-weight: 600; }
.pend-wrap { padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(125,103,244,.45); display: flex; flex-direction: column; gap: 10px; }
.fee-calc { display: flex; align-items: flex-end; gap: 10px; font-size: 13px; color: var(--muted); }
.fee-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; width: 120px; }
.fee-calc .input { min-height: 44px; }
.fee-calc span { padding-bottom: 12px; }
.inv-dead .copy-row .amount { color: var(--dim); text-decoration: line-through; }
.inv-hold .step ~ .step, .inv-hold .howto { display: none; }
.no-disc .disc { display: none !important; }

/* ---------- премиальная кнопка покупки: блик, мягкое свечение, отклик на нажатие ---------- */
.btn.shine { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #8A75FF 0%, #6E56F0 48%, #5536E0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.2), 0 8px 24px rgba(110,86,240,.34);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), filter .2s, box-shadow .2s;
  animation: ctaGlow 3.6s ease-in-out infinite; }
/* бегущий блик */
.btn.shine::before { content: ''; position: absolute; top: -60%; left: 0; width: 42%; height: 220%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.08) 70%, rgba(255,255,255,0) 100%);
  transform: translateX(-140%) skewX(-22deg); animation: ctaShine 3.6s cubic-bezier(.45,.05,.25,1) .8s infinite; }
/* тонкая светлая кромка сверху-слева, как у стекла */
.btn.shine::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn.shine:hover { filter: brightness(1.06); }
.btn.shine:active { transform: scale(.965); filter: brightness(1.12) saturate(1.1); background: linear-gradient(135deg, #8A75FF 0%, #6E56F0 48%, #5536E0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 2px 10px rgba(0,0,0,.18), 0 4px 14px rgba(110,86,240,.5); }
/* при нажатии блик пробегает сразу и быстро */
.btn.shine:active::before { animation: ctaShineTap .5s cubic-bezier(.2,.8,.2,1) forwards; }
.btn.shine:disabled { background: var(--panel2); box-shadow: none; animation: none; }
.btn.shine:disabled::before, .btn.shine:disabled::after { display: none; }
@keyframes ctaShine { 0% { transform: translateX(-140%) skewX(-22deg); } 32%, 100% { transform: translateX(280%) skewX(-22deg); } }
@keyframes ctaShineTap { from { transform: translateX(-140%) skewX(-22deg); } to { transform: translateX(280%) skewX(-22deg); } }
@keyframes ctaGlow { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.2), 0 8px 24px rgba(110,86,240,.30); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.2), 0 10px 34px rgba(125,103,244,.52); } }
@media (prefers-reduced-motion: reduce) {
  .btn.shine, .btn.shine::before { animation: none !important; }
  .btn.shine::before { display: none; }
}

/* ---------- тур по офису: затемнение с окном, палец, карточка ---------- */
body.touring { overflow: hidden; }
.tour { position: fixed; inset: 0; z-index: 90; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: tourIn .25s ease both; }
.tour.out { animation: tourOut .2s ease both; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(4,6,10,.80); outline: 2px solid rgba(164,140,255,.9); outline-offset: 2px; transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; pointer-events: none; animation: tourRing 1.6s ease-in-out infinite; }
.tour.no-hole .tour-hole { outline: none; animation: none; }
.tour.moving .tour-finger { opacity: 0; }
.tour-finger { position: fixed; z-index: 2; pointer-events: none; transition: left .35s ease, top .35s ease, opacity .2s; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); animation: tourTap 1.3s ease-in-out infinite; transform-origin: 15px 2px; }
.tour-finger svg { display: block; }
.tour-finger .tour-tap { position: absolute; left: 3px; top: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: tourRipple 1.3s ease-out infinite; }
.tour-finger.swipe { animation: tourSwipe 2.2s ease-in-out infinite; }
.tour-finger.swipe .tour-tap { display: none; }
.tour-card { position: fixed; left: 12px; right: 12px; max-width: 456px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.6); cursor: default; animation: tourCard .3s ease both; }
.tour-card.mid { top: 50%; bottom: auto; transform: translateY(-50%); }
.tour-top { display: flex; align-items: center; justify-content: space-between; }
.tour-n { font-size: 13px; font-weight: 600; color: var(--link); }
.tour-skip { background: none; border: none; color: var(--dim); font-size: 13px; padding: 6px 0 6px 12px; cursor: pointer; }
.tour-title { font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.25; }
.tour-text { margin: 0; font-size: 16px; line-height: 1.5; color: #C9CEDA; }
.tour-text b { color: var(--white); }
.tour-text .t-up { color: var(--up); } .tour-text .t-down { color: var(--down); }
.tour-mini:empty { display: none; }
.tour-mini { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 8px; }
.tm-path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: tmDraw 2.4s ease-out infinite; }
.tm-dot { opacity: 0; animation: tmDot 2.4s ease-out infinite; }
.tour-next { margin-top: 4px; font-size: 17px; }
.tour-foot:empty { display: none; }
.tour-foot { font-size: 12px; color: var(--dim); text-align: center; }
@keyframes tourIn { from { opacity: 0; } }
@keyframes tourOut { to { opacity: 0; } }
@keyframes tourCard { from { opacity: 0; transform: translateY(10px); } }
.tour-card.mid { animation: none; }
@keyframes tourRing { 50% { outline-color: rgba(164,140,255,.35); } }
@keyframes tourTap { 0%, 100% { transform: translateY(6px) scale(1); } 45% { transform: translateY(0) scale(.92); } }
@keyframes tourRipple { 0%, 40% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes tourSwipe { 0% { transform: translate(-40px, 30px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(60px, -50px); opacity: 1; } 100% { transform: translate(60px, -50px); opacity: 0; } }
@keyframes tmDraw { 0% { stroke-dashoffset: 340; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes tmDot { 0%, 65% { opacity: 0; } 75%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour-finger, .tour-finger.swipe, .tour-hole, .tm-path, .tm-dot { animation: none; } .tm-path { stroke-dashoffset: 0; } .tm-dot { opacity: 1; } }
.tour-note:empty { display: none; }
.tour-note { margin: 0; padding: 10px 12px; font-size: 14px; line-height: 1.45; color: #C9CEDA; background: var(--bg2); border: 1px solid var(--line2); border-left: 3px solid var(--warn); border-radius: 10px; }
.tour-note b { color: var(--white); }

/* выбор языка: первый шаг тура и профиль */
.lang-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lang-chip { min-height: 40px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--white); }
.tour-langs:empty { display: none; }
.pad-lang { padding: 8px; }

/* голос в туре: кнопка звука, пульсирует, пока браузер ждёт касания */
.tour-tr { display: flex; align-items: center; gap: 4px; }
.tour-snd { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tour-snd span:empty { display: none; }
.tour.speaking .tour-snd { border-color: var(--accent); color: var(--white); }
.tour.blocked .tour-snd { border-color: var(--warn); color: var(--white); animation: sndPulse 1.2s ease-in-out infinite; }
@keyframes sndPulse { 50% { box-shadow: 0 0 0 6px rgba(245,196,81,.18); } }
@media (prefers-reduced-motion: reduce) { .tour.blocked .tour-snd { animation: none; } }

/* повтор: «в этот момент бот прислал бы тебе» - карточка как сообщение в Telegram поверх графика */
.rp-note { position: absolute; left: 12px; right: 12px; top: 46px; z-index: 5; display: flex; flex-direction: column; gap: 6px; pointer-events: none; animation: noteIn .45s cubic-bezier(.2,1.2,.4,1) both; }
.rp-note.out { animation: noteOut .3s ease both; }
.rp-note .cap { align-self: flex-start; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #FFD447; background: rgba(11,10,22,.88); border: 1px solid rgba(255,212,71,.35); border-radius: 999px; }
.rp-note .msg { display: flex; gap: 10px; padding: 11px 12px; background: rgba(28,26,48,.97); border: 1px solid rgba(125,103,244,.55); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.rp-note .ava { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #191633 url(/shared/logo.svg) center / 62% no-repeat; border: 1px solid rgba(125,103,244,.5); }
.rp-note .bd { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.4; color: var(--text); }
.rp-note .rn-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.rp-note .rn-top b { color: var(--white); font-weight: 600; }
.rp-note .rn-h { font-weight: 700; color: var(--white); }
.rp-note .rn-lv { display: flex; flex-wrap: wrap; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.rp-note .rn-lv span { white-space: nowrap; }
.rp-note .rn-lv i { font-style: normal; font-weight: 600; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes noteOut { to { opacity: 0; transform: translateY(-8px); } }

/* подбор: вопрос сверху, иллюстрация посередине, варианты внизу - под большой палец */
#quiz-body.q-screen { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.q-art { flex: 1; min-height: 140px; display: grid; place-items: center; }
.q-art svg { width: 100%; max-width: 300px; max-height: 210px; height: auto; display: block; overflow: visible; }
.q-art.leave { animation: qaLeave .22s ease-in both; }
.q-screen .q-skip { margin-top: -4px; }
.q-opts.rise .q-opt { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.q-opts.rise .q-opt:nth-child(2) { animation-delay: .06s; } .q-opts.rise .q-opt:nth-child(3) { animation-delay: .12s; }
.q-opts.rise .q-opt:nth-child(4) { animation-delay: .18s; } .q-opts.rise .q-opt:nth-child(5) { animation-delay: .24s; }
/* общие движения: всё ставится на место по очереди (--d), потом живёт своей жизнью */
.q-art svg * { transform-box: fill-box; transform-origin: center; }
.qa-glow { transform-origin: 140px 86px !important; transform-box: view-box !important; animation: qaGlow 5s ease-in-out infinite; }
.qa-in { opacity: 0; animation: qaFade .5s ease var(--d, 0s) forwards; }
.qa-pop { opacity: 0; animation: qaPop .7s cubic-bezier(.2,1.35,.35,1) var(--d, 0s) forwards; }
.qa-rise { animation: qaRise 1.2s cubic-bezier(.2,.9,.25,1) both; }
.qa-rays { opacity: 0; animation: qaFade .5s ease .7s forwards, qaRays 4s ease-in-out 1.2s infinite; }
.qa-ring { animation: qaRing 3s ease-out 1s infinite; }
.qa-hand-m { transform-origin: 160px 80px !important; transform-box: view-box !important; animation: qaSweep 1.3s cubic-bezier(.3,1.25,.4,1) .25s both, qaSpin 8s linear 1.55s infinite; }
.qa-hand-h { transform-origin: 160px 80px !important; transform-box: view-box !important; animation: qaSweepH 1.3s cubic-bezier(.3,1.25,.4,1) .25s both, qaSpin 96s linear 1.55s infinite; }
.qa-bob { animation: qaBob 3.4s ease-in-out infinite; }
.qa-slide-l { opacity: 0; animation: qaSlideL .8s cubic-bezier(.2,1.1,.3,1) .05s forwards; }
.qa-slide-r { opacity: 0; animation: qaSlideR .8s cubic-bezier(.2,1.1,.3,1) .2s forwards; }
.qa-sheen { animation: qaSheen 3.6s cubic-bezier(.5,0,.3,1) 1s infinite; transform-box: view-box !important; }
.qa-flip { animation: qaFlip 4.2s cubic-bezier(.6,0,.3,1) 1.2s infinite; }
.qa-twinkle { animation: qaTwinkle 2.4s ease-in-out infinite; }
.qa-star { opacity: .2; animation: qaStar 2.8s ease-in-out infinite; }
.qa-line { stroke-dasharray: 260; stroke-dashoffset: 260; }
.qa-line-a { animation: qaDraw .8s cubic-bezier(.4,.1,.3,1) .15s forwards; }
.qa-line-b { animation: qaDraw .9s cubic-bezier(.3,.1,.2,1) 1.35s forwards; filter: drop-shadow(0 0 4px rgba(46,242,208,.6)); }
.qa-area { opacity: 0; animation: qaFade .8s ease 1.8s forwards; }
.qa-stop { opacity: 0; animation: qaPop .5s cubic-bezier(.2,1.5,.4,1) var(--d, 0s) forwards; }
.qa-pulse { animation: qaPulse 2s ease-out 1.6s infinite; }
.qa-ping { animation: qaPing 2.2s ease-out 2.3s infinite; opacity: 0; }
.qa-coin { opacity: 0; animation: qaDrop .55s cubic-bezier(.25,1.45,.45,1) var(--d, 0s) forwards; }
/* реакция на выбор: выбранное крупнее и ярче, остальное уходит в тень */
.qa-o { transition: opacity .3s, transform .35s cubic-bezier(.2,1.4,.4,1), filter .3s; }
.q-art[data-pick] .qa-o { opacity: .25; filter: saturate(.4); }
.q-art[data-pick="morning"] .qa-o-morning, .q-art[data-pick="day"] .qa-o-day, .q-art[data-pick="rare"] .qa-o-rare,
.q-art[data-pick="gold"] .qa-o-gold, .q-art[data-pick="btc"] .qa-o-btc, .q-art[data-pick="both"] .qa-o,
.q-art[data-pick="d0"] .qa-o-d0, .q-art[data-pick="d1"] .qa-o-d1, .q-art[data-pick="d2"] .qa-o-d2, .q-art[data-pick="d3"] .qa-o-d3, .q-art[data-pick="none"] .qa-o,
.q-art[data-pick="s1"] .qa-o-s1, .q-art[data-pick="s2"] .qa-o-s1, .q-art[data-pick="s2"] .qa-o-s2, .q-art[data-pick="s3"] .qa-o { opacity: 1; filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); transform: scale(1.08); }
@keyframes qaGlow { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes qaFade { to { opacity: 1; } }
@keyframes qaPop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes qaRise { from { transform: translateY(34px); } to { transform: none; } }
@keyframes qaRays { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes qaRing { 0% { opacity: .5; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes qaSweep { from { transform: rotate(-300deg); } to { transform: none; } }
@keyframes qaSweepH { from { transform: rotate(-150deg); } to { transform: none; } }
@keyframes qaSpin { to { transform: rotate(360deg); } }
@keyframes qaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes qaSlideL { from { opacity: 0; transform: translateX(-46px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes qaSlideR { from { opacity: 0; transform: translateX(46px) rotate(10deg); } to { opacity: 1; transform: none; } }
@keyframes qaSheen { 0% { transform: translateX(0) skewX(-20deg); } 55%, 100% { transform: translateX(210px) skewX(-20deg); } }
@keyframes qaFlip { 0%, 70% { transform: scaleX(1); } 80% { transform: scaleX(.05); } 90%, 100% { transform: scaleX(1); } }
@keyframes qaTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .45; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes qaStar { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes qaDraw { to { stroke-dashoffset: 0; } }
@keyframes qaPulse { 0% { transform: scale(.8); opacity: .45; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes qaPing { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes qaDrop { 0% { opacity: 0; transform: translateY(-34px); } 50% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes qaLeave { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .q-art *, .q-art.leave, .q-opts.rise .q-opt { animation: none !important; }
  .qa-in, .qa-pop, .qa-slide-l, .qa-slide-r, .qa-rays, .qa-area, .qa-stop, .qa-coin { opacity: 1; }
  .qa-line { stroke-dashoffset: 0; } .qa-ping { opacity: 0; }
}

/* экран анализа ответов подбора */
.qa-an { min-height: calc(100dvh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; animation: fadeUp .4s cubic-bezier(.2,.8,.2,1) both; }
.qa-an-core { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 6px; }
.qa-an-core img { width: 46px; height: 46px; position: relative; z-index: 1; animation: qaCore 1.6s ease-in-out infinite; }
.qa-an-core::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.45), rgba(124,108,255,0) 70%); animation: qaGlow 2.4s ease-in-out infinite; }
.qa-an-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #7C6CFF; border-right-color: rgba(124,108,255,.35); animation: qaSpin 1.1s linear infinite; }
.qa-an-ring.r2 { inset: 12px; border-top-color: #2EF2D0; border-right-color: transparent; border-left-color: rgba(46,242,208,.35); animation-duration: 1.7s; animation-direction: reverse; }
.qa-an-title { font-size: 20px; font-weight: 700; color: var(--white); }
.qa-an-bar { width: 100%; max-width: 320px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.qa-an-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #7C6CFF, #2EF2D0); box-shadow: 0 0 12px rgba(46,242,208,.45); position: relative; overflow: hidden; }
.qa-an-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: qaBarSheen 1.2s ease-in-out infinite; }
.qa-an-pct { margin-top: -8px; font-size: 13px; color: var(--muted); }
.qa-an-list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.qa-an-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--dim); opacity: .35; transition: opacity .35s, color .35s; }
.qa-an-list li.on { opacity: 1; color: var(--text); }
.qa-an-dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.qa-an-list li.on .qa-an-dot { border-color: #7C6CFF; border-top-color: transparent; animation: qaSpin .8s linear infinite; }
.qa-an-list li.ok .qa-an-dot { animation: qaPop .4s cubic-bezier(.2,1.5,.4,1) both; border-color: #1FC7A0; background: #1FC7A0; }
.qa-an-list li.ok .qa-an-dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #0B0A16; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
@keyframes qaCore { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes qaBarSheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .qa-an *, .qa-an *::before, .qa-an *::after { animation: none !important; } }

/* результат подбора: кто подходит -> сколько в деньгах с кривой -> почему тебе -> что дальше */
.q-head { display: flex; flex-direction: column; gap: 4px; }
.q-name { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.2; }
.q-sub { font-size: 14px; color: var(--muted); }
.q-hero { padding: 16px 16px 12px; background: linear-gradient(180deg, rgba(46,242,208,.08), rgba(46,242,208,0) 60%), var(--panel); border: 1px solid rgba(46,242,208,.28); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 4px; animation-delay: .06s; }
.q-hero-l { font-size: 13px; color: var(--muted); }
.q-hero-v { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.q-hero-c { margin: 6px -4px 0; }
.q-hero-c svg { width: 100%; height: auto; display: block; }
.q-hero-s { font-size: 13px; color: var(--muted); }
.q-hero-s b { font-weight: 700; }
.q-why { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); animation-delay: .12s; }
.q-why > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text); }
.q-why-i { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; background: var(--bg2); border-radius: 9px; }
.q-why > div > span:last-child { padding-top: 5px; }
.q-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-next > div { padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.q-next b { color: var(--white); font-size: 13px; }
.q-next > div:last-child { border-color: rgba(124,108,255,.45); background: var(--accent-soft); }
.q-hero.neg { background: linear-gradient(180deg, rgba(242,84,107,.08), rgba(242,84,107,0) 60%), var(--panel); border-color: rgba(242,84,107,.3); }

/* профиль: карточка YouTube-канала */
.yt-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; background: linear-gradient(135deg, rgba(255,0,51,.12), rgba(255,0,51,0) 70%), var(--panel); border: 1px solid rgba(255,0,51,.3); border-radius: var(--r-lg); color: var(--text); font: inherit; cursor: pointer; transition: transform .12s; }
.yt-card:active { transform: scale(.98); }
.yt-ico { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,0,51,.12); border-radius: 12px; }
.yt-t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.yt-t b { font-size: 15px; color: var(--white); }
.yt-t span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.yt-go { color: var(--muted); font-size: 18px; }

/* ---------- зелёные кнопки: покупка подписки и тур (вместо фиолетовых) ---------- */
.btn.shine, .tour-next.btn.primary {
  background: linear-gradient(135deg, #4BEBC3 0%, #22CFA4 48%, #13AE88 100%); color: #032A20; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.14), 0 8px 24px rgba(31,199,160,.30); }
.btn.shine { animation: ctaGlowG 3.6s ease-in-out infinite; }
.btn.shine .sub, .tour-next .sub { color: rgba(3,42,32,.72); }
.btn.shine:active, .tour-next.btn.primary:active { background: linear-gradient(135deg, #5CF2CD 0%, #2BD9AE 48%, #17B891 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 2px 10px rgba(0,0,0,.12), 0 4px 14px rgba(31,199,160,.45); }
.btn.shine:disabled { background: var(--panel2); color: var(--muted); }
@keyframes ctaGlowG { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.14), 0 8px 22px rgba(31,199,160,.26); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.14), 0 10px 32px rgba(31,199,160,.48); } }
@media (prefers-reduced-motion: reduce) { .btn.shine { animation: none !important; } }
/* тур целиком в зелёном акценте: номер шага, звук, выбранный язык */
.tour .tour-n { color: #4BEBC3; }
.tour.speaking .tour-snd { border-color: #22CFA4; }
.tour .lang-chip.on { border-color: #22CFA4; background: rgba(31,199,160,.14); }
.tour .tour-hole:not(.x) { outline-color: rgba(75,235,195,.85); }

/* ---------- кнопка оплаты: насыщенный изумруд, чёткая типографика, без «пульсации» ---------- */
.btn.shine { min-height: 62px; border-radius: 18px; border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, #3AE6B9 0%, #1CC497 52%, #10A57F 100%); color: #022219; letter-spacing: .1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.12), 0 14px 30px -10px rgba(28,196,151,.65), 0 2px 6px rgba(0,0,0,.35);
  animation: none; }
.btn.shine:not(.two) { font-size: 17px; }
.btn.shine.two { font-size: 17px; font-weight: 800; }
.btn.shine .sub { font-size: 12px; font-weight: 600; color: rgba(2,34,25,.66); opacity: 1; margin-top: 2px; letter-spacing: 0; }
.btn.shine::before { background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 35%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.06) 65%, rgba(255,255,255,0) 100%);
  animation: ctaShine 5.5s cubic-bezier(.45,.05,.25,1) 1.2s infinite; }
.btn.shine::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 45%); }
.btn.shine:active { transform: scale(.975); background: linear-gradient(180deg, #45EEC2 0%, #22CC9F 52%, #13AD86 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 2px 8px rgba(0,0,0,.14), 0 8px 18px -8px rgba(28,196,151,.7), 0 1px 3px rgba(0,0,0,.35); }
.tour-next.btn.primary { border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, #3AE6B9 0%, #1CC497 52%, #10A57F 100%); color: #022219;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.12), 0 12px 26px -10px rgba(28,196,151,.6); }
/* компактная галочка согласия на оплате */
.agree.sm { gap: 8px; align-items: center; font-size: 11.5px; line-height: 1.35; color: var(--dim); }
.agree.sm .check { width: 18px; height: 18px; flex-shrink: 0; }
.agree.sm a { color: var(--muted); }
/* «с тех пор как ты здесь» на экране оплаты */
.pw-since { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(31,199,160,.08); border: 1px solid rgba(31,199,160,.28); font-size: 13px; line-height: 1.45; color: var(--text); }
.pw-since-v { flex-shrink: 0; font-size: 22px; font-weight: 800; }

/* экран подписки: живой пример сделки, строка про стратегию, гарантия под кнопкой */
.pw-ex { padding: 14px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pw-ex-row { display: flex; flex-direction: column; gap: 0; position: relative; }
.pw-ex-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); padding-bottom: 10px; position: relative; }
.pw-ex-step:last-child { padding-bottom: 0; }
.pw-ex-step b { display: block; color: var(--white); font-size: 14px; font-weight: 600; }
.pw-ex-step i { flex-shrink: 0; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; position: relative; z-index: 1; }
.pw-ex-step i.d1 { background: #F5C451; box-shadow: 0 0 0 4px rgba(245,196,81,.15); }
.pw-ex-step i.d2 { background: #1FC7A0; box-shadow: 0 0 0 4px rgba(31,199,160,.15); }
.pw-ex-step:first-child::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 2px; background: linear-gradient(#F5C451, #1FC7A0); opacity: .5; }
.pw-ex-res { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pw-ex-res b { font-size: 24px; font-weight: 800; }
.pw-ex-res span { font-size: 13px; color: var(--muted); }
.pw-strat { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--muted); }
.pw-strat a { flex-shrink: 0; color: var(--link); font-weight: 600; text-decoration: none; }
.pw-guar { display: inline-flex; align-items: center; gap: 4px; color: var(--up); font-weight: 600; }
.pw-guar svg { width: 13px; height: 13px; }
.chart-box .tag.tap { cursor: pointer; pointer-events: auto; }
.chart-box .tag.tap:active { transform: scale(.97); }

/* способ оплаты: одна строка над кнопкой */
.pay-via { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.pay-via button { min-height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pay-via button small { font-size: 10.5px; font-weight: 500; color: var(--dim); }
.pay-via button.on { background: var(--panel); border-color: rgba(31,199,160,.45); color: var(--white); }
/* кнопка оплаты: заметный бегущий блик и мягкая пульсация */
.btn.shine { animation: payPulse 2.4s ease-in-out infinite; }
.btn.shine::before { background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.1) 32%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.1) 68%, rgba(255,255,255,0) 100%);
  animation: ctaShine 3.2s cubic-bezier(.45,.05,.25,1) .6s infinite; }
@keyframes payPulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.12), 0 14px 30px -10px rgba(28,196,151,.55), 0 2px 6px rgba(0,0,0,.35), 0 0 0 0 rgba(46,242,208,.35); }
  50% { transform: scale(1.015); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.12), 0 16px 36px -8px rgba(28,196,151,.75), 0 2px 6px rgba(0,0,0,.35), 0 0 0 7px rgba(46,242,208,0); } }
.btn.shine:active { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn.shine { animation: none !important; } }

/* ---------- экран подписки: появление один раз при открытии ---------- */
#paywall-body.pw-in > * { animation: pwUp .55s cubic-bezier(.2,.8,.2,1) both; }
#paywall-body.pw-in > *:nth-child(1) { animation-delay: .02s; } #paywall-body.pw-in > *:nth-child(2) { animation-delay: .08s; }
#paywall-body.pw-in > *:nth-child(3) { animation-delay: .16s; } #paywall-body.pw-in > *:nth-child(4) { animation-delay: .26s; }
#paywall-body.pw-in > *:nth-child(5) { animation-delay: .34s; } #paywall-body.pw-in > *:nth-child(6) { animation-delay: .42s; }
#paywall-body.pw-in > *:nth-child(n+7) { animation-delay: .5s; }
/* пример сделки: точка сетапа -> линия -> точка результата */
#paywall-body.pw-in .pw-ex-step i.d1 { animation: pwDot .45s cubic-bezier(.2,1.6,.4,1) .45s both; }
#paywall-body.pw-in .pw-ex-step:first-child::after { transform-origin: top; animation: pwLine .4s ease-out .7s both; }
#paywall-body.pw-in .pw-ex-step i.d2 { animation: pwDot .45s cubic-bezier(.2,1.6,.4,1) 1s both, pwFlash .9s ease-out 1.1s; }
#paywall-body.pw-in .pw-ex-step:last-child span { animation: pwUp .4s ease 1s both; }
#paywall-body.pw-in .pw-ex-res { animation: pwUp .45s ease 1.05s both; }
/* низ экрана - вслед за контентом */
.pw-in ~ .bottom, #paywall-bottom.pw-in { animation: pwUp .5s ease .3s both; }
/* смена пакета - мягко, без скачка */
.pkg { transition: border-color .25s, background .25s, transform .15s; }
.pkg:active { transform: scale(.985); }
.pkg.on .pk-price { animation: pwPrice .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pwUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pwDot { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes pwLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pwFlash { 0% { box-shadow: 0 0 0 4px rgba(31,199,160,.15), 0 0 0 0 rgba(31,199,160,.6); } 100% { box-shadow: 0 0 0 4px rgba(31,199,160,.15), 0 0 0 14px rgba(31,199,160,0); } }
@keyframes pwPrice { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #paywall-body.pw-in *, #paywall-body.pw-in *::after, .pkg.on .pk-price { animation: none !important; } }

/* «Бесплатный доступ» в шапке - кнопка на экран подписки */
#status.tap { cursor: pointer; transition: transform .12s, border-color .2s; }
#status.tap:active { transform: scale(.96); }
