/* kyrs-extras.css — алерты, WebSocket-индикатор, вспышки цены */
.price-cell.flash-up { animation: mxFlashUp 1.1s ease-out; }
.price-cell.flash-down { animation: mxFlashDown 1.1s ease-out; }
@keyframes mxFlashUp { 0% { color: #4ade80; text-shadow: 0 0 10px rgba(74,222,128,.7); } 100% { text-shadow: none; } }
@keyframes mxFlashDown { 0% { color: #f87171; text-shadow: 0 0 10px rgba(248,113,113,.7); } 100% { text-shadow: none; } }
.hero-live.is-ws .live-dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }

#mxaBtn { position: fixed; left: 16px; bottom: 56px; z-index: 950; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-line, rgba(212,175,55,.45)); background: #17140c; color: var(--gold, #d4af37); font-size: 16px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
#mxaBtn:hover { border-color: var(--gold, #d4af37); }
#mxaBtn.has { color: #17130a; background: var(--gold, #d4af37); }
#mxaCount { position: absolute; top: -4px; right: -4px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #f87171; color: #fff; font: 700 12.5px/18px Onest, sans-serif; }
#mxaCount:empty { display: none; }
#mxaPanel { position: fixed; left: 16px; bottom: 108px; z-index: 951; width: min(340px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 14px; border-radius: 14px; border: 1px solid var(--gold-line, rgba(212,175,55,.35)); background: #17140c; color: #eee; font: 500 13px Onest, sans-serif; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
#mxaPanel[hidden] { display: none; }
body.light #mxaPanel, body.light #mxaBtn:not(.has) { background: #fff; color: #141414; }
.mxa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mxa-head i { color: var(--gold, #d4af37); margin-right: 6px; }
.mxa-head button, .mxa-item button { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; }
.mxa-head button:hover, .mxa-item button:hover { opacity: 1; }
#mxaForm { display: grid; gap: 8px; }
#mxaForm input, #mxaForm select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(128,128,128,.35); background: rgba(128,128,128,.12); color: inherit; font: inherit; }
.mxa-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.mxa-add { padding: 9px; border: 0; border-radius: 8px; background: var(--gold, #d4af37); color: #17130a; font: 700 13px Onest, sans-serif; cursor: pointer; }
.mxa-hint { min-height: 16px; font-size: 13px; opacity: .7; }
.mxa-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid rgba(128,128,128,.2); }
.mxa-item.done { opacity: .5; } .mxa-item em { color: #4ade80; font-style: normal; font-size: 12.5px; margin-left: 6px; }
.mxa-empty, .mxa-note { font-size: 12.5px; opacity: .55; padding-top: 8px; }
.mxa-toast { position: fixed; right: 20px; top: 20px; z-index: 99999; max-width: 340px; padding: 12px 16px; border-radius: 12px; background: #17140c; color: #fff; border: 1px solid var(--gold, #d4af37); font: 600 13px Onest, sans-serif; box-shadow: 0 10px 36px rgba(0,0,0,.6); animation: mxaIn .4s ease; }
.mxa-toast.out { opacity: 0; transition: opacity .3s cubic-bezier(.2,.8,.2,1); }
@keyframes mxaIn { from { transform: translateY(-12px); opacity: 0; } }
@media (max-width: 760px) { #mxaBtn { bottom: 70px; } #mxaPanel { bottom: 122px; } }

/* ===== kyrs-design: пульс, герои дня, мигание цен, поиск «/» ===== */
.mxd-pulse { position: relative; display: flex; align-items: center; gap: 14px; height: 54px; margin: 0 0 16px; padding: 0 14px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); overflow: hidden; }
.mxd-pulse-cap { flex: none; font: 600 11.5px/1.2 var(--mx-f-ui); letter-spacing: .1em; color: var(--text-secondary, #999); max-width: 150px; }
.mxd-pulse-bars { position: relative; z-index: 1; flex: 1; height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: center; }
.mxd-pulse-mid { position: absolute; left: 180px; right: 14px; top: 50%; height: 1px; background: var(--mx-line-strong); }
.mxd-bar { position: relative; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mxd-bar::before { content: ''; position: absolute; left: 10%; right: 10%; border-radius: 2px; height: calc(var(--h) * .5); transform-origin: 50% 0; animation: mxdGrow .7s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d); transition: filter .15s; }
.mxd-bar.up::before { bottom: 50%; background: linear-gradient(0deg, #4ade80, rgba(74,222,128,.35)); transform-origin: 50% 100%; }
.mxd-bar.down::before { top: 50%; background: linear-gradient(180deg, #f87171, rgba(248,113,113,.35)); }
.mxd-bar:hover::before { filter: brightness(1.4); }
@keyframes mxdGrow { from { transform: scaleY(0); } }
@media (max-width: 760px) { .mxd-pulse-cap { display: none; } .mxd-pulse-mid { left: 14px; } }

.mxd-heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mxd-hero[hidden] { display: none; }
.mxd-hero { padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.mxd-hero.up { border-left: 3px solid #4ade80; } .mxd-hero.down { border-left: 3px solid #f87171; }
.mxd-hero:hover { border-color: var(--mx-gold-line); transform: translateY(-2px); }
.mxd-hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mxd-hero-tag { font: 600 11.5px var(--mx-f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #999); }
.mxd-hero.up .mxd-hero-chg { color: #4ade80; } .mxd-hero.down .mxd-hero-chg { color: #f87171; }
.mxd-hero-chg { font: 700 18px var(--mx-f-display); }
.mxd-hero-main { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.mxd-hero-main img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.mxd-hero-name { font: 700 14px var(--mx-f-ui); } .mxd-hero-sym { margin-top: 2px; font: 500 13px var(--mx-f-ui); color: var(--text-secondary, #999); }
.mxd-hero-spark { margin-left: auto; width: 46%; height: 46px; }
@media (max-width: 760px) { .mxd-heroes { grid-template-columns: 1fr; } }

.price-cell.mxd-up { animation: mxFlashUp 1.1s ease-out; } .price-cell.mxd-down { animation: mxFlashDown 1.1s ease-out; }

.mxd-search { position: fixed; inset: 0; z-index: 99990; display: flex; flex-direction: column; align-items: center; padding-top: 14vh; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.mxd-search[hidden] { display: none; } .mxd-search.on { opacity: 1; }
.mxd-search-box, .mxd-search-list { width: min(620px, calc(100vw - 32px)); background: #17140c; border: 1px solid var(--mx-gold-line); }
.mxd-search-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px 14px 0 0; transform: translateY(-14px); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.mxd-search.on .mxd-search-box { transform: none; }
.mxd-search-box i { color: var(--gold, #d4af37); }
.mxd-search-box input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: 500 16px var(--mx-f-ui); }
.mxd-search-box kbd { padding: 2px 7px; border: 1px solid var(--mx-line-strong); border-radius: 5px; font: 600 12.5px var(--mx-f-ui); color: #999; }
.mxd-search-list { max-height: 50vh; overflow: auto; border-top: 0; border-radius: 0 0 14px 14px; }
.mxd-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #eee; cursor: pointer; font: 500 13px var(--mx-f-ui); }
.mxd-item.on, .mxd-item:hover { background: rgba(212,175,55,.12); }
.mxd-item img { width: 22px; height: 22px; border-radius: 50%; }
.mxd-item-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mxd-item-n b { margin-right: 6px; }
.mxd-item-n em { margin-left: 6px; padding: 1px 5px; border: 1px solid rgba(251,191,36,.45); border-radius: 5px; color: #fbbf24; font: 700 10.5px var(--mx-f-ui); font-style: normal; }
.mxd-item-c.up { color: #4ade80; } .mxd-item-c.down { color: #f87171; } .mxd-item-c { min-width: 62px; text-align: right; }
.mxd-none { padding: 18px; text-align: center; color: #888; }
body.light .mxd-search-box, body.light .mxd-search-list { background: #fff; } body.light .mxd-search-box input, body.light .mxd-item { color: #141414; }

/* мелкие правки: чип «Избранное» не переносится, бейдж ДЕМО не обрезается */
.chip-sep { margin: 0 4px; }
.asset-text { position: relative; }
.asset-name:has(.demo-badge) { padding-right: 44px; }
.asset-name .demo-badge { position: absolute; right: 0; top: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .mxd-bar::before, .price-cell.mxd-up, .price-cell.mxd-down { animation: none; } }
