/* NEON//CORE — кибер-терминал: магента, циан, срезанные углы, HUD-рамки. */

body.theme-neon {
  --bg: #06060a;
  --bg-2: #0a0a10;
  --panel: #0c0c14;
  --panel-solid: #0a0a11;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef2f7;
  --muted: rgba(222, 232, 245, .58);
  --dim: rgba(210, 224, 240, .30);
  --accent: #ff2d78;
  --accent-2: #00e5ff;
  --accent-3: #ffb020;
  --pos: #3df5c8;
  --neg: #ff4d6a;
  --warn: #ffb020;
  --radius: 0px;
  --radius-sm: 0px;
  --seg1: #ff2d78;
  --seg2: #00e5ff;
  --seg3: #ffb020;
  --seg4: #a06bff;
  --seg5: #3df5c8;
  --seg6: rgba(255, 255, 255, .25);
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --sidebar: 238px;
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(0, 229, 255, .07), transparent 60%),
    radial-gradient(60% 50% at 8% 100%, rgba(255, 45, 120, .09), transparent 65%),
    #06060a;
  position: relative;
}

/* сетка на фоне */
body.theme-neon::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 10%, transparent 80%);
}
/* CRT-развёртка */
body.theme-neon::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  opacity: .55;
}
body.theme-neon .app { position: relative; z-index: 2; }
body.theme-neon ::selection { background: #ff2d78; color: #06060a; }

/* ---------- каркас ---------- */
body.theme-neon .sidebar {
  background: linear-gradient(180deg, #07070c, #050509);
  border-right: 1px solid rgba(255, 45, 120, .18);
  padding: 20px 0 16px;
}
body.theme-neon .brand { padding: 2px 18px 24px; gap: 10px; }
body.theme-neon .brand__mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 45, 120, .55);
  border-radius: 2px;
  background: rgba(255, 45, 120, .08);
  box-shadow: 0 0 18px rgba(255, 45, 120, .35), inset 0 0 12px rgba(255, 45, 120, .18);
}
body.theme-neon .brand__mark i { border-color: rgba(0, 229, 255, .8); border-radius: 0; }
body.theme-neon .brand__mark i:nth-child(3) { background: #ff2d78; box-shadow: 0 0 10px #ff2d78; }
body.theme-neon .brand__text b {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 45, 120, .55);
}
body.theme-neon .brand__text small { font-size: 8px; letter-spacing: .22em; color: rgba(255, 45, 120, .65); }
body.theme-neon .nav { counter-reset: nav; padding: 0 12px; }
body.theme-neon .nav__caption { padding: 16px 8px 8px; color: rgba(255, 255, 255, .28); }
body.theme-neon .nav__item {
  counter-increment: nav;
  border-radius: 0;
  border-left: 2px solid transparent;
  padding: 12px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  gap: 8px;
}
body.theme-neon .nav__item::before {
  content: "0" counter(nav);
  font-size: 8px;
  color: rgba(255, 255, 255, .25);
}
body.theme-neon .nav__ico { width: 15px; height: 15px; opacity: .55; }
body.theme-neon .nav__ico svg { width: 14px; height: 14px; }
body.theme-neon .nav__item:hover { background: rgba(255, 255, 255, .03); color: #fff; }
body.theme-neon .nav__item.is-active {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 45, 120, .18), rgba(255, 45, 120, 0) 85%);
  color: #fff;
}
body.theme-neon .nav__item.is-active::before { color: var(--accent); }
body.theme-neon .nav__item.is-active .nav__ico { opacity: 1; color: var(--accent-2); }
body.theme-neon .nav__badge { border-radius: 0; border-color: rgba(0, 229, 255, .35); color: var(--accent-2); font-size: 8px; }
body.theme-neon .learn { margin: 0 12px 12px; border-radius: 0; border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .015); }
body.theme-neon .learn .eyebrow { color: var(--accent); }
body.theme-neon .sidebar__status { padding-left: 20px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- топбар ---------- */
body.theme-neon .topbar {
  background: rgba(6, 6, 10, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: 58px;
}
body.theme-neon .topbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 25%, transparent 75%, var(--accent-2));
  opacity: .55;
}
body.theme-neon .chains { gap: 4px; }
body.theme-neon .chain {
  border-radius: 0;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  border: 1px solid transparent;
}
body.theme-neon .chain::before { content: "["; color: rgba(255, 255, 255, .2); margin-right: 4px; }
body.theme-neon .chain::after { content: "]"; color: rgba(255, 255, 255, .2); margin-left: 4px; }
body.theme-neon .chain:hover { color: #fff; border-color: rgba(255, 255, 255, .12); }
body.theme-neon .chain.is-active {
  color: #06060a;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 45, 120, .45);
}
body.theme-neon .chain.is-active::before,
body.theme-neon .chain.is-active::after { color: transparent; margin: 0; }
body.theme-neon .chain.is-active .chain__dot { background: #06060a; }
body.theme-neon .chain__dot { border-radius: 1px; }
body.theme-neon .chain__all { border-radius: 1px; background: var(--accent-2); }
body.theme-neon .wallet-chip { border-radius: 0; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .02); }
body.theme-neon .wallet-chip__text small { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; }
body.theme-neon .wallet-chip__dot { border-radius: 1px; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
body.theme-neon .icon-btn { border-radius: 0; }

/* ---------- панели ---------- */
body.theme-neon .panel {
  background: linear-gradient(160deg, #0d0d16 0%, #09090f 60%, #0b0b12 100%);
  border: 0;
  border-radius: 0;
  padding: 22px;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
body.theme-neon .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--accent), transparent) left top / 26px 1px no-repeat,
    linear-gradient(180deg, var(--accent), transparent) left top / 1px 26px no-repeat,
    linear-gradient(270deg, var(--accent-2), transparent) right bottom / 26px 1px no-repeat,
    linear-gradient(0deg, var(--accent-2), transparent) right bottom / 1px 26px no-repeat;
  opacity: .9;
}
body.theme-neon .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .023) 1px, transparent 1px);
  background-size: 100% 26px;
  opacity: .5;
}
body.theme-neon .panel > * { position: relative; z-index: 1; }
body.theme-neon .panel__head h2 { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
body.theme-neon .eyebrow { color: rgba(255, 255, 255, .35); }
body.theme-neon .eyebrow .dot--live { background: var(--pos); }

/* ---------- hero ---------- */
body.theme-neon .hero {
  border: 0;
  border-radius: 0;
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  background:
    linear-gradient(120deg, rgba(255, 45, 120, .16), transparent 42%),
    linear-gradient(300deg, rgba(0, 229, 255, .12), transparent 40%),
    #0a0a12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  padding: 32px;
}
body.theme-neon .hero::before { display: none; }

body.theme-neon .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
body.theme-neon .hero h1 em {
  color: var(--accent);
  text-shadow: 2px 0 rgba(0, 229, 255, .35), -1px 0 rgba(255, 45, 120, .4);
}
body.theme-neon .lead { font-size: 12.5px; color: rgba(222, 232, 245, .6); max-width: 52ch; }
body.theme-neon .wallet-form {
  border-radius: 0;
  background: rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .16);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  padding: 5px 5px 5px 14px;
}
body.theme-neon .wallet-form:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 1px rgba(0, 229, 255, .35), 0 0 30px -12px var(--accent-2); }
body.theme-neon .btn {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 16px;
}
body.theme-neon .btn--primary { background: var(--accent); color: #06060a; box-shadow: 0 0 30px -6px rgba(255, 45, 120, .7); font-weight: 700; }
body.theme-neon .btn--ghost { border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .65); }
body.theme-neon .btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
body.theme-neon .chip--demo { border-radius: 0; border-color: rgba(255, 255, 255, .1); }
body.theme-neon .chip--demo b { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
body.theme-neon .chip--demo:hover, body.theme-neon .chip--demo.is-active { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
body.theme-neon .hero__card {
  border-radius: 0;
  border: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background: linear-gradient(160deg, rgba(255, 45, 120, .09), rgba(0, 229, 255, .04) 55%, rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  padding: 18px;
}
body.theme-neon .hero__total {
  color: var(--accent-2);
  text-shadow: 0 0 26px rgba(0, 229, 255, .45);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: -.02em;
}
body.theme-neon .hero__profit span { color: var(--pos); text-shadow: 0 0 16px rgba(61, 245, 200, .3); }
body.theme-neon .spark { stroke: var(--accent-2); }
body.theme-neon .link-btn { color: var(--accent-2); font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- периоды / график ---------- */
body.theme-neon .periods { gap: 1px; background: rgba(255, 255, 255, .1); margin: 16px 0 18px; }
body.theme-neon .period {
  border: 0;
  border-radius: 0;
  background: #0a0a11;
  padding: 10px 9px;
  position: relative;
}
body.theme-neon .period::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--accent-2);
  opacity: 0;
}
body.theme-neon .period--hero { background: linear-gradient(180deg, rgba(255, 45, 120, .16), rgba(255, 45, 120, .02)); }
body.theme-neon .period--hero::before { opacity: 1; background: var(--accent); }
body.theme-neon .period--hero .period__value { color: #fff; }
body.theme-neon .period__value { font-size: 12.5px; color: var(--accent-2); }
body.theme-neon .chart__line { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 45, 120, .65)); stroke-width: 1.6; }
body.theme-neon .chart__stop-a { stop-color: var(--accent); stop-opacity: .34; }
body.theme-neon .chart__dot { fill: var(--accent); }
body.theme-neon .chart__halo { fill: var(--accent); opacity: .2; }
body.theme-neon .chart__grid { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 1 5; }
body.theme-neon .chart__x { color: rgba(255, 255, 255, .25); }

/* ---------- AI ---------- */
body.theme-neon .orb { width: 60px; height: 60px; }
body.theme-neon .orb__ring { border-radius: 2px; border-color: rgba(0, 229, 255, .2); border-top-color: var(--accent-2); }
body.theme-neon .orb__ring--2 { border-radius: 50%; border-top-color: var(--accent); }
body.theme-neon .orb__core {
  inset: 20px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(255, 45, 120, .9);
  animation: neonBlink 2.6s steps(1) infinite;
}
@keyframes neonBlink { 50% { opacity: .35; } }
body.theme-neon .ai-head__text h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
body.theme-neon .score b { color: var(--accent-2); text-shadow: 0 0 14px rgba(0, 229, 255, .35); }
body.theme-neon .score-bar { border-radius: 0; height: 2px; }
body.theme-neon .score-bar i { border-radius: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
body.theme-neon .insights { gap: 12px; }
body.theme-neon .insight__dot { border-radius: 0; width: 4px; height: 4px; background: var(--pos); box-shadow: 0 0 8px var(--pos); }
body.theme-neon .insight b { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
body.theme-neon .insight p { font-size: 11px; }
body.theme-neon .ai-actions { border-top: 1px dashed rgba(255, 255, 255, .1); }
body.theme-neon .ai-actions li { font-size: 10.5px; }
body.theme-neon .ai-actions li span { color: var(--accent); }
body.theme-neon .ai-foot { border-top: 1px dashed rgba(255, 255, 255, .1); }
body.theme-neon .tag { border-radius: 0; border-color: rgba(255, 255, 255, .12); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; }
body.theme-neon .tag--ghost { color: rgba(255, 255, 255, .3); }

/* ---------- таблица ---------- */
body.theme-neon .table-panel { padding: 0; clip-path: none; }
body.theme-neon .table-toolbar { border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .012); }
body.theme-neon .search { border-radius: 0; background: rgba(0, 0, 0, .3); }
body.theme-neon .dtable th { font-size: 8px; letter-spacing: .13em; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .32); }
body.theme-neon .dtable td { border-bottom: 1px solid rgba(255, 255, 255, .05); }
body.theme-neon .dtable .row:hover { background: rgba(255, 45, 120, .055); }
body.theme-neon .dtable .row:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
body.theme-neon .dtable .row.is-open { background: rgba(255, 45, 120, .07); }
body.theme-neon .proto-logo {
  border-radius: 1px;
  background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .14);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
}
body.theme-neon .asset { border-radius: 0; border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }
body.theme-neon .profit span { color: var(--pos); }
body.theme-neon .profit--main span { color: #fff; text-shadow: 0 0 12px rgba(61, 245, 200, .2); }
body.theme-neon .apy { color: var(--accent-2); }
body.theme-neon .dtable tfoot td { background: rgba(255, 45, 120, .06); border-top: 1px solid var(--accent); }
body.theme-neon .row-detail > td { background: #08080e; }
body.theme-neon .detail__stats b { color: var(--accent-2); }
body.theme-neon .dbar__track { border-radius: 0; background: rgba(255, 255, 255, .05); }
body.theme-neon .dbar__track i { border-radius: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
body.theme-neon .hint { border-radius: 0; }

/* ---------- прочее ---------- */
body.theme-neon .donut { border-radius: 0; }
body.theme-neon .donut::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 0; }
body.theme-neon .donut__inner { border-radius: 0; background: #09090f; }
body.theme-neon .legend i { border-radius: 0; }
body.theme-neon .bar__track { border-radius: 0; }
body.theme-neon .bar__track i { border-radius: 0; }
body.theme-neon .stat { border-radius: 0; background: #0a0a11; }
body.theme-neon .stat b { color: var(--accent-2); }
body.theme-neon .notice { border-radius: 0; background: rgba(255, 45, 120, .05); border-left: 2px solid var(--accent); }
body.theme-neon .pcard, body.theme-neon .ccard, body.theme-neon .learn-grid, body.theme-neon .learn-grid article { border-radius: 0; }
body.theme-neon .pcard__id h3 { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
body.theme-neon .pcard__stats { border-color: rgba(255, 255, 255, .08); }
body.theme-neon .risk i { border-radius: 0; }
body.theme-neon .toast { border-radius: 0; background: #0e0e17; border-color: var(--accent); }
body.theme-neon .tip { border-radius: 0; background: #0e0e17; border-color: rgba(0, 229, 255, .4); }
body.theme-neon .steps { border-radius: 0; }
body.theme-neon .steps li { background: #0a0a11; }
body.theme-neon .steps .is-done { background: rgba(255, 45, 120, .16); }
body.theme-neon .steps .is-done b, body.theme-neon .steps .is-done small { color: var(--accent); }
body.theme-neon .footer { border-top-color: rgba(255, 255, 255, .07); }
body.theme-neon .page-head h1 { text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }

@media (max-width: 980px) {
  body.theme-neon .sidebar { padding: 10px 14px; border-right: 0; border-bottom: 1px solid rgba(255, 45, 120, .25); }
  body.theme-neon .brand { padding: 0 12px 0 0; }
  body.theme-neon .nav { padding: 0; }
  body.theme-neon .nav__item::before { display: none; }
  body.theme-neon .nav__item { padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  body.theme-neon .nav__item.is-active { border-left: 0; border-bottom-color: var(--accent); background: linear-gradient(0deg, rgba(255, 45, 120, .16), transparent); }
  body.theme-neon .learn, body.theme-neon .sidebar__status { display: none; }
  body.theme-neon .topbar { min-height: 52px; }
}
