@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ect-blue: #2f45ff;
  --ect-blue-deep: #1d34de;
  --ect-cyan: #39c9ef;
  --ect-ink: #101419;
  --ect-muted: #697783;
  --ect-line: #dbe7ee;
  --ect-line-strong: #c7d5de;
  --ect-paper: #f6fafc;
  --ect-surface: #ffffff;
  --ect-soft: #edf3ff;
  --ect-green: #159a72;
  --ect-red: #d95062;
  --ect-amber: #bd7a18;
  --ect-title: "Manrope", "Inter", sans-serif;
  --ect-body: "Inter", "Segoe UI", sans-serif;
  --ect-mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 1180px; background: var(--ect-paper); }
body { margin: 0; min-width: 1180px; min-height: 100vh; overflow-x: hidden; background: var(--ect-paper); color: var(--ect-ink); font-family: var(--ect-body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 284px auto;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--ect-line);
  background: rgba(255,255,255,.98);
}
.local-brand { display: inline-flex; align-items: center; gap: 9px; min-width: 188px; color: var(--ect-ink); text-decoration: none; font: 700 15px/1 var(--ect-title); text-transform: uppercase; white-space: nowrap; }
.local-brand span:last-child { color: var(--ect-blue); }
.local-mark { position: relative; width: 18px; height: 16px; }
.local-mark::before, .local-mark::after { content: ""; position: absolute; border: 2px solid var(--ect-blue); border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; transform: rotate(45deg); }
.local-mark::before { inset: 6px 3px 1px 7px; }
.local-mark::after { inset: 1px 8px 7px 2px; opacity: .52; }
.local-nav { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.local-nav a, .local-nav summary { height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid transparent; border-radius: 99px; color: #66727e; text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; list-style: none; }
.local-nav a:hover, .local-nav summary:hover { color: var(--ect-ink); background: #f2f6fa; border-color: #dfe8ee; }
.local-nav a.active, .local-nav details.active > summary { color: #fff; border-color: var(--ect-blue); background: var(--ect-blue); }
.local-nav details { position: relative; }
.local-nav summary { cursor: pointer; }
.local-nav summary::-webkit-details-marker { display: none; }
.local-nav-menu { position: absolute; top: 40px; right: 0; width: 220px; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--ect-line); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(28,46,58,.16); }
.local-nav-menu a { justify-content: flex-start; border-radius: 8px; }
.local-search { width: 100%; height: 36px; border: 1px solid var(--ect-line); border-radius: 12px; background: #f8fbfd; color: #66727e; padding: 0 14px; font-size: 12px; font-weight: 600; outline: none; }
.local-actions { display: flex; align-items: center; gap: 8px; }
.local-home { height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--ect-line); border-radius: 11px; background: #fff; color: #34404a; text-decoration: none; font-size: 11px; font-weight: 700; }
.local-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ect-ink); color: #fff; text-decoration: none; font: 800 10px/1 var(--ect-mono); }

.app-page { width: min(100%, 2320px); min-height: calc(100vh - 64px); margin: 0 auto; padding: 28px clamp(26px, 2vw, 48px) 40px; }
.page-heading { min-height: 66px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.page-heading .eyebrow { margin: 0 0 7px; color: var(--ect-blue); font: 700 10px/1 var(--ect-mono); letter-spacing: .08em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font: 700 clamp(29px, 2vw, 40px)/1.02 var(--ect-title); letter-spacing: 0; }
.page-heading p { max-width: 610px; margin: 0; color: var(--ect-muted); font-size: 13px; font-weight: 500; line-height: 1.55; text-align: right; }

.surface { border: 1px solid var(--ect-line); border-radius: 14px; background: var(--ect-surface); overflow: hidden; }
.surface-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--ect-line); }
.surface-head h2, .surface-head h3 { margin: 0; font: 700 15px/1.2 var(--ect-title); }
.surface-head small { color: #87939d; font: 700 9px/1 var(--ect-mono); letter-spacing: .05em; text-transform: uppercase; }
.surface-body { padding: 18px; }
.muted { color: var(--ect-muted); }
.up { color: var(--ect-green) !important; }
.down { color: var(--ect-red) !important; }
.blue { color: var(--ect-blue) !important; }
.mono { font-family: var(--ect-mono); }

.segmented { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--ect-line); border-radius: 10px; background: #f7fafc; }
.segmented button { height: 32px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: #6b7883; font-size: 10px; font-weight: 700; }
.segmented button.active { background: var(--ect-ink); color: #fff; box-shadow: 0 5px 14px rgba(16,20,25,.14); }
.tab-strip { display: flex; align-items: center; gap: 8px; }
.tab-strip button { height: 36px; padding: 0 14px; border: 1px solid var(--ect-line); border-radius: 9px; background: #fff; color: #687580; font-size: 11px; font-weight: 700; }
.tab-strip button.active { border-color: var(--ect-blue); background: var(--ect-blue); color: #fff; }
.primary-button, .secondary-button, .danger-button { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.primary-button { border: 1px solid var(--ect-blue); background: var(--ect-blue); color: #fff; }
.primary-button:hover { background: var(--ect-blue-deep); }
.secondary-button { border: 1px solid var(--ect-line-strong); background: #fff; color: #38444e; }
.secondary-button:hover { border-color: #9eadb8; background: #f9fbfc; }
.danger-button { border: 1px solid #f0d1d6; background: #fff; color: var(--ect-red); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translateY(1px); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ect-line); border-radius: 9px; background: #fff; color: #4a5761; font-size: 17px; }
.icon-button:hover { border-color: #afbdd0; color: var(--ect-blue); }

.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-bottom: 1px solid var(--ect-line); }
.metric-cell { min-height: 84px; padding: 17px 19px; border-right: 1px solid var(--ect-line); }
.metric-cell:last-child { border-right: 0; }
.metric-cell small { display: block; margin-bottom: 8px; color: #8a96a0; font: 700 9px/1 var(--ect-mono); text-transform: uppercase; }
.metric-cell strong { font: 700 23px/1 var(--ect-title); }
.metric-cell span { margin-left: 8px; font-size: 10px; font-weight: 700; }

.chart-shell { position: relative; min-height: 290px; }
.market-svg { width: 100%; height: 100%; min-height: 290px; display: block; overflow: visible; }
.chart-grid line { stroke: #e5edf2; stroke-width: 1; }
.chart-axis { fill: #84919c; font: 600 9px var(--ect-mono); }
.chart-line { fill: none; stroke: var(--ect-blue); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#ectArea); opacity: .7; }
.chart-secondary { fill: none; stroke: var(--ect-cyan); stroke-width: 2; stroke-dasharray: 7 7; }
.chart-cursor { stroke: #7b8dff; stroke-width: 1.5; stroke-dasharray: 4 6; }
.chart-dot { fill: var(--ect-blue); stroke: #fff; stroke-width: 4; }
.chart-tooltip { position: absolute; min-width: 146px; padding: 11px 13px; border: 1px solid #cbd4ff; border-radius: 9px; background: rgba(255,255,255,.97); box-shadow: 0 13px 36px rgba(48,65,85,.12); pointer-events: none; opacity: 0; transform: translate(-50%,-110%); transition: opacity .12s ease; }
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip small { color: #8996a1; font: 700 8px var(--ect-mono); text-transform: uppercase; }
.chart-tooltip strong { display: block; margin-top: 4px; font: 700 16px var(--ect-title); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 42px; border-bottom: 1px solid var(--ect-line); color: #87949e; font: 700 9px/1 var(--ect-mono); text-align: left; text-transform: uppercase; }
.data-table td { height: 52px; border-bottom: 1px solid #e8eef2; color: #53606b; font-size: 11px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfd; }
.data-table strong { color: var(--ect-ink); }
.asset-cell { display: flex; align-items: center; gap: 10px; }
.coin-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ect-soft); color: var(--ect-blue); font: 800 10px/1 var(--ect-mono); }
.coin-icon.orange { background: #fff1df; color: #c56c12; }
.coin-icon.green { background: #e5f8f1; color: #13815f; }
.coin-icon.dark { background: #edf0f3; color: #15191d; }
.sparkline { width: 90px; height: 30px; }

.details-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(310px,.65fr); gap: 16px; }
.dominance-panel { min-height: 490px; }
.dominance-panel .surface-body { height: calc(100% - 54px); display: grid; grid-template-rows: auto minmax(0,1fr); }
.market-summary { display: grid; gap: 16px; align-content: start; }
.donut-wrap { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 18px; }
.donut { position: relative; width: 144px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--ect-blue) 0 52%, var(--ect-cyan) 52% 70%, #111820 70% 82%, #c8d3dc 82% 100%); }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; }
.donut-center strong { font: 700 24px var(--ect-title); }
.donut-center small { color: var(--ect-muted); font-size: 9px; }
.legend { display: grid; gap: 10px; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; font-size: 10px; }
.legend-row i { width: 7px; height: 7px; border-radius: 2px; background: var(--dot); }

.package-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 16px; }
.package-feature { min-height: 580px; display: grid; grid-template-rows: auto 1fr auto; }
.package-feature .package-visual { min-height: 210px; display: grid; grid-template-columns: minmax(0,1fr) 270px; align-items: end; gap: 28px; padding: 34px; background: #101419; color: #fff; }
.package-kicker { color: #78ddff; font: 700 9px var(--ect-mono); text-transform: uppercase; }
.package-feature h2 { max-width: 560px; margin: 12px 0 0; font: 700 clamp(34px,3vw,56px)/1 var(--ect-title); }
.package-price { align-self: center; text-align: right; }
.package-price strong { display: block; font: 700 38px var(--ect-title); }
.package-price small { color: #aebbc5; }
.package-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--ect-line); }
.package-point { min-height: 102px; padding: 20px; background: #fff; }
.package-point b { display: block; margin-bottom: 6px; font: 700 12px var(--ect-title); }
.package-point p { margin: 0; color: var(--ect-muted); font-size: 10px; line-height: 1.5; }
.package-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--ect-line); background: #fbfdfe; }
.package-actions p { margin: 0; color: var(--ect-muted); font-size: 10px; }
.package-side { min-height: 580px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.channel-list { display: grid; align-content: start; gap: 0; }
.channel-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 70px; border-bottom: 1px solid var(--ect-line); }
.channel-row:last-child { border-bottom: 0; }
.channel-row .status-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #e8f8f3; color: var(--ect-green); font-weight: 800; }
.channel-row strong { display: block; font-size: 11px; }
.channel-row small { display: block; margin-top: 4px; color: var(--ect-muted); font-size: 9px; }
.channel-row b { color: var(--ect-green); font: 700 8px var(--ect-mono); }

.exchange-grid { display: grid; grid-template-columns: minmax(520px,.82fr) minmax(0,1.18fr); gap: 16px; }
.converter { min-height: 550px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.converter-body { display: grid; align-content: center; gap: 13px; padding: 28px; }
.currency-box { display: grid; grid-template-columns:minmax(0,1fr) 148px; gap: 10px; padding: 15px; border: 1px solid var(--ect-line); border-radius: 11px; background: #fbfdfe; }
.currency-box label { display: grid; gap: 7px; color: #89959f; font: 700 8px var(--ect-mono); text-transform: uppercase; }
.currency-box input { width: 100%; border: 0; background: transparent; color: var(--ect-ink); font: 700 25px var(--ect-title); outline: none; }
.currency-box select { border: 0; border-left: 1px solid var(--ect-line); background: transparent; color: var(--ect-ink); padding-left: 16px; font-size: 12px; font-weight: 700; outline: none; }
.swap-row { display: flex; align-items: center; gap: 12px; color: var(--ect-muted); font-size: 10px; }
.swap-row::before, .swap-row::after { content: ""; height: 1px; flex: 1; background: var(--ect-line); }
.quote-box { padding: 16px; border: 1px solid #cad4ff; border-radius: 10px; background: #f3f5ff; }
.quote-box small { color: #76838f; font-size: 9px; }
.quote-box strong { display: block; margin-top: 6px; font: 700 15px var(--ect-title); }
.route-table { min-height: 550px; }
.route-table .surface-body { padding-top: 6px; }
.route-choice { width: 100%; border: 0; background: transparent; text-align: left; }
.route-choice.selected td { background: #f2f5ff; }

.technical-layout { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 14px; }
.technical-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border: 1px solid var(--ect-line); border-radius: 13px; background: #fff; }
.technical-filters { display: flex; align-items: center; gap: 8px; }
.technical-filters select, .technical-filters input { height: 36px; border: 1px solid var(--ect-line); border-radius: 8px; background: #fbfdfe; color: #53606b; padding: 0 12px; font-size: 10px; font-weight: 600; }
.indicator-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.indicator-card { min-height: 224px; display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--ect-line); border-radius: 13px; background: #fff; }
.gauge { position: relative; width: 144px; height: 78px; overflow: hidden; }
.gauge::before { content: ""; position: absolute; inset: 0 0 auto; width: 144px; height: 144px; border-radius: 50%; background: conic-gradient(from 270deg, var(--ect-red) 0 18%, #efb24c 18% 36%, #dce6ed 36% 50%, transparent 50% 100%); }
.gauge::after { content: ""; position: absolute; left: 22px; top: 22px; width: 100px; height: 100px; border-radius: 50%; background: #fff; }
.gauge-needle { position: absolute; z-index: 2; left: 69px; bottom: 5px; width: 4px; height: 52px; border-radius: 3px; background: var(--ect-ink); transform-origin: 50% 47px; transform: rotate(var(--needle)); }
.gauge-needle::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ect-ink); }
.indicator-copy h2 { margin: 0; font: 700 16px var(--ect-title); }
.indicator-copy .signal { display: inline-flex; margin-top: 10px; padding: 6px 8px; border-radius: 6px; background: var(--signal-bg); color: var(--signal-color); font: 700 9px var(--ect-mono); text-transform: uppercase; }
.indicator-copy dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 16px 0 0; font-size: 9px; }
.indicator-copy dt { color: var(--ect-muted); }
.indicator-copy dd { margin: 0; font-weight: 700; }
.screener-panel { display: none; }
.screener-panel.active, .indicators-panel.active { display: block; }
.indicators-panel:not(.active) { display: none; }

.telegram-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); gap: 16px; }
.bot-card { min-height: 575px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.bot-banner { min-height: 180px; display: grid; grid-template-columns: minmax(0,1fr) 210px; align-items: center; gap: 20px; padding: 28px; background: #101419; color: #fff; }
.bot-banner h2 { margin: 9px 0 0; font: 700 36px/1.04 var(--ect-title); }
.bot-banner p { max-width: 520px; margin: 12px 0 0; color: #aeb9c2; font-size: 11px; line-height: 1.55; }
.bot-status { justify-self: end; width: 164px; height: 164px; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; text-align: center; }
.bot-status i { width: 9px; height: 9px; margin: 0 auto 10px; border-radius: 50%; background: var(--ect-green); box-shadow: 0 0 0 8px rgba(21,154,114,.13); }
.bot-status strong { font: 700 18px var(--ect-title); }
.bot-status small { margin-top: 5px; color: #aab6bf; font: 700 8px var(--ect-mono); text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--ect-line); gap: 1px; }
.step { min-height: 150px; padding: 20px; background: #fff; }
.step b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ect-soft); color: var(--ect-blue); font: 700 10px var(--ect-mono); }
.step h3 { margin: 16px 0 7px; font: 700 12px var(--ect-title); }
.step p { margin: 0; color: var(--ect-muted); font-size: 9px; line-height: 1.5; }
.command-list { display: grid; gap: 8px; }
.command { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ect-line); }
.command:last-child { border-bottom: 0; }
.command code { color: var(--ect-blue); font: 700 10px var(--ect-mono); }
.command span { color: var(--ect-muted); font-size: 9px; line-height: 1.45; }
.delivery-log { max-height: 210px; overflow: auto; }
.log-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 43px; border-bottom: 1px solid var(--ect-line); font-size: 9px; }
.log-row time { color: #89959f; font-family: var(--ect-mono); }
.log-row b { color: var(--ect-green); font-size: 8px; }

.support-grid { display: grid; grid-template-columns: minmax(440px,.72fr) minmax(0,1.28fr); gap: 16px; }
.ticket-form { min-height: 590px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.form-stack { display: grid; align-content: start; gap: 16px; padding: 22px; }
.field { display: grid; gap: 7px; }
.field label { color: #53606b; font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--ect-line); border-radius: 9px; background: #fbfdfe; color: var(--ect-ink); padding: 0 13px; font-size: 11px; outline: none; }
.field input, .field select { height: 42px; }
.field textarea { min-height: 132px; resize: vertical; padding-top: 12px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8c9bff; box-shadow: 0 0 0 3px rgba(47,69,255,.08); }
.ticket-list { min-height: 590px; }
.ticket-list .surface-body { padding-top: 4px; }
.ticket-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; font: 700 8px var(--ect-mono); text-transform: uppercase; }
.ticket-status.open { background: #e8f8f3; color: var(--ect-green); }
.ticket-status.waiting { background: #fff3df; color: var(--ect-amber); }
.ticket-status.closed { background: #eef2f4; color: #6e7a84; }
.academy-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(370px,.82fr); gap: 16px; }
.academy-feature { min-height: 500px; display: grid; grid-template-rows: 265px minmax(0,1fr) auto; }
.academy-feature-media { position: relative; overflow: hidden; background: #101419; }
.academy-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .52; filter: saturate(.6) contrast(1.08); }
.academy-feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(16,20,25,.92),rgba(16,20,25,.22)); }
.academy-feature-copy { position: absolute; z-index: 1; left: 28px; bottom: 27px; max-width: 560px; color: #fff; }
.academy-feature-copy h2 { margin: 10px 0 0; font: 700 31px/1.05 var(--ect-title); }
.academy-progress { display: grid; gap: 12px; padding: 22px; }
.progress-line { height: 6px; border-radius: 3px; overflow: hidden; background: #e8eef2; }
.progress-line i { display: block; height: 100%; background: var(--ect-blue); }
.academy-meta { display: flex; align-items: center; justify-content: space-between; color: var(--ect-muted); font-size: 10px; }
.course-list { display: grid; gap: 0; }
.course-row { min-height: 82px; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--ect-line); }
.course-row:last-child { border-bottom: 0; }
.course-row img { width: 76px; height: 50px; border-radius: 7px; object-fit: cover; }
.course-row strong { display: block; font-size: 11px; }
.course-row small { display: block; margin-top: 5px; color: var(--ect-muted); font-size: 9px; }
.course-row b { color: var(--ect-blue); font: 700 8px var(--ect-mono); }
.news-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 16px; }
.news-lead { min-height: 500px; display: grid; grid-template-rows: 225px minmax(0,1fr); }
.news-lead-visual { position: relative; display: grid; align-content: end; padding: 26px; overflow: hidden; background: #101419; color: #fff; }
.news-lead-visual::before { content: ""; position: absolute; inset: 0; opacity: .44; background: repeating-linear-gradient(90deg,transparent 0 74px,rgba(255,255,255,.05) 74px 75px),repeating-linear-gradient(0deg,transparent 0 54px,rgba(255,255,255,.04) 54px 55px); }
.news-lead-visual::after { content: ""; position: absolute; right: 5%; bottom: -42%; width: 420px; height: 420px; border: 1px solid rgba(57,201,239,.35); border-radius: 50%; box-shadow: inset 0 0 0 65px rgba(47,69,255,.07),inset 0 0 0 130px rgba(57,201,239,.04); }
.news-lead-copy { position: relative; z-index: 1; max-width: 760px; }
.news-lead-copy h2 { margin: 10px 0 0; font: 700 31px/1.08 var(--ect-title); }
.news-lead-body { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 26px; padding: 22px; }
.news-lead-body p { margin: 0; color: var(--ect-muted); font-size: 11px; line-height: 1.65; }
.news-facts { display: grid; gap: 12px; align-content: start; }
.news-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ect-line); font-size: 9px; }
.news-fact span { color: var(--ect-muted); }
.news-stream { display: grid; gap: 0; }
.news-item { min-height: 96px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--ect-line); }
.news-item:last-child { border-bottom: 0; }
.news-item time { color: #84919c; font: 700 9px var(--ect-mono); }
.news-item h3 { margin: 0; font: 700 12px/1.35 var(--ect-title); }
.news-item p { margin: 6px 0 0; color: var(--ect-muted); font-size: 9px; }
.news-item b { color: var(--ect-blue); font: 700 8px var(--ect-mono); text-transform: uppercase; }
.news-item[hidden] { display: none; }
.empty-state { padding: 54px 24px; text-align: center; }
.empty-state strong { display: block; font: 700 17px var(--ect-title); }
.empty-state p { margin: 8px auto 0; max-width: 350px; color: var(--ect-muted); font-size: 10px; line-height: 1.5; }
.toast { position: fixed; z-index: 100; right: 28px; bottom: 28px; min-width: 260px; padding: 14px 16px; border: 1px solid var(--ect-line); border-radius: 10px; background: #101419; color: #fff; box-shadow: 0 18px 50px rgba(16,20,25,.22); font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 2200px) {
  .topbar { height: 72px; padding: 0 38px; grid-template-columns: auto minmax(0,1fr) 360px auto; gap: 24px; }
  .local-brand { min-width: 230px; font-size: 17px; }
  .local-nav a, .local-nav summary { height: 36px; padding: 0 17px; font-size: 13px; }
  .local-search { height: 40px; font-size: 14px; }
  .local-home, .local-avatar { height: 38px; }
  .local-avatar { width: 38px; }
  .app-page { min-height: calc(100vh - 72px); padding-top: 34px; }
  .surface-head { min-height: 62px; padding-inline: 22px; }
  .surface-head h2, .surface-head h3 { font-size: 17px; }
  .indicator-card { min-height: 250px; }
}

@media (max-width: 1500px) {
  .topbar { grid-template-columns: auto minmax(0,1fr) 230px auto; gap: 12px; padding-inline: 20px; }
  .local-brand { min-width: 165px; font-size: 13px; }
  .local-nav a, .local-nav summary { padding-inline: 10px; }
  .page-heading h1 { font-size: 30px; }
  .indicator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  html, body { width: 100%; min-width: 0; min-height: 100%; overflow-x: hidden; }
  body { overflow-y: auto; }
  .app-page { width: 100%; min-height: 0; padding: 20px 16px 34px; }
  .page-heading { min-height: 0; display: grid; align-items: start; gap: 10px; margin-bottom: 17px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading > p { max-width: none; text-align: left; }
  .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-cell { border-bottom: 1px solid var(--ect-line); }
  .metric-cell:nth-child(2n) { border-right: 0; }
  .metric-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .details-grid,.package-grid,.exchange-grid,.telegram-grid,.support-grid,.academy-grid,.news-grid { grid-template-columns: minmax(0,1fr); }
  .surface-head { min-height: 56px; padding: 11px 14px; }
  .surface-body { padding: 15px; }
  .data-table { min-width: 680px; }
  .surface:has(.data-table),.route-table,.ticket-list { overflow-x: auto; }
  .donut-wrap { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .package-feature,.package-side,.converter,.route-table,.ticket-form,.ticket-list { min-height: 0; }
  .package-feature .package-visual { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 24px 20px; }
  .package-price { justify-self: start; text-align: left; }
  .package-content { grid-template-columns: minmax(0,1fr); }
  .package-actions { align-items: flex-start; flex-direction: column; }
  .currency-box { grid-template-columns: minmax(0,1fr); }
  .currency-box select { min-height: 42px; border-left: 0; border-top: 1px solid var(--ect-line); padding: 10px 0 0; }
  .technical-toolbar { min-height: 0; align-items: stretch; flex-direction: column; padding: 12px; }
  .technical-filters { display: grid; grid-template-columns: minmax(0,1fr); }
  .technical-filters select,.technical-filters input { width: 100%; }
  .indicator-grid { grid-template-columns: minmax(0,1fr); }
  .indicator-card { grid-template-columns: minmax(0,1fr); justify-items: center; text-align: center; }
  .indicator-copy dl { width: min(280px,100%); }
  .bot-banner { grid-template-columns: minmax(0,1fr); padding: 22px; }
  .bot-status { justify-self: center; }
  .steps { grid-template-columns: minmax(0,1fr); }
  .command { grid-template-columns: 78px minmax(0,1fr); }
  .form-stack { padding: 18px; }
  .academy-feature { grid-template-rows: 245px auto auto; }
  .academy-feature-copy { left: 20px; right: 20px; bottom: 20px; }
  .course-row { grid-template-columns: 64px minmax(0,1fr); padding: 10px 0; }
  .course-row img { width: 64px; }
  .course-row b { grid-column: 2; }
  .news-lead { grid-template-rows: 245px auto; }
  .news-lead-visual { padding: 20px; }
  .news-lead-copy h2 { font-size: 26px; }
  .news-lead-body { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 18px; }
  .news-item { grid-template-columns: 60px minmax(0,1fr); padding: 10px 0; }
  .news-item b { grid-column: 2; }
  .tab-strip,.segmented { max-width: 100%; overflow-x: auto; }
  .toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}

@media (max-width: 360px) {
  .app-page { padding-left: 12px; padding-right: 12px; }
  .page-heading h1 { font-size: 27px; }
  .metric-cell { padding: 14px 12px; }
  .metric-cell strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
