@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import "tailwindcss";

:root {
  --paper: #f1eadc;
  --paper-soft: #fbf7ee;
  --ink: #181713;
  --ink-soft: #25241f;
  --red: #a52a37;
  --red-dark: #6e1721;
  --gold: #d8a137;
  --gold-pale: #efd593;
  --green: #197658;
  --muted: #6d665b;
  --line: rgba(24, 23, 19, .12);
  --line-light: rgba(251, 247, 238, .14);
  --shadow: 0 26px 70px -34px rgba(24, 23, 19, .5);
  --display: "Anton", Impact, sans-serif;
  --body: "Plus Jakarta Sans", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1220px, calc(100% - 44px)); margin: 0 auto; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241, 234, 220, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-family: var(--display); letter-spacing: .04em; font-size: 1.15rem; line-height: 1; font-weight: 400; }
.brand small { margin-top: 5px; color: var(--red); font-weight: 700; font-size: .58rem; letter-spacing: .08em; }
.brand-mark { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-mark::before { content: "KS"; color: var(--paper-soft); font-family: var(--display); font-size: 13px; letter-spacing: .04em; z-index: 2; }
.brand-mark i { position: absolute; width: 2px; background: var(--gold); bottom: 8px; border-radius: 3px; opacity: .75; }
.brand-mark i:nth-child(1) { height: 10px; left: 9px; }
.brand-mark i:nth-child(2) { height: 20px; left: 15px; }
.brand-mark i:nth-child(3) { height: 15px; right: 9px; }
.header-inner nav { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(251,247,238,.6); }
.header-inner nav button { border: 0; background: transparent; padding: 9px 17px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: .2s ease; }
.header-inner nav button:hover, .header-inner nav button.active { background: var(--ink); color: var(--paper-soft); }
.mode-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mode-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216,161,55,.16); }
.mode-pill.live span { background: var(--green); box-shadow: 0 0 0 5px rgba(25,118,88,.16); animation: livePulse 2s infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 9px rgba(25,118,88,0); } }

.hero { min-height: 690px; position: relative; overflow: hidden; background: var(--paper); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 78%); opacity: .34; }
.hero::after { content: ""; position: absolute; width: 470px; height: 470px; right: -160px; top: -210px; border-radius: 50%; border: 90px solid var(--red); opacity: .92; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(165,42,55,.32); animation: orbit 30s linear infinite; }
.orbit-one { width: 470px; height: 470px; right: 5%; top: 105px; }
.orbit-two { width: 590px; height: 590px; right: 0; top: 45px; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); gap: 70px; align-items: center; position: relative; z-index: 2; padding: 70px 0 90px; }
.hero-grid > *, .hero-copy, .workspace-head > *, .signal-card > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; background: rgba(251,247,238,.62); }
.hero h1 { margin: 20px 0 24px; font-family: var(--display); font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: .93; font-weight: 400; letter-spacing: -.015em; text-transform: uppercase; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 620px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.button { border: 2px solid transparent; border-radius: 999px; min-height: 48px; padding: 13px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-primary { background: var(--red); color: var(--paper-soft); box-shadow: 0 16px 30px -18px rgba(165,42,55,.85); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--ink); color: var(--paper-soft); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: .82rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 17px 26px; font-size: .78rem; font-weight: 800; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--red); }
.reveal-in { animation: revealIn .75s ease both; }
.delay-one { animation-delay: .12s; }
@keyframes revealIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-ticket { width: min(100%, 480px); justify-self: end; position: relative; padding: 32px; background: var(--ink); color: var(--paper-soft); border-radius: 32px; box-shadow: var(--shadow); transform: rotate(1.5deg); overflow: hidden; }
.hero-ticket::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line-light); border-radius: 25px; pointer-events: none; }
.ticket-stamp { position: absolute; right: -20px; top: 100px; transform: rotate(90deg); font-family: var(--display); color: rgba(239,213,147,.17); font-size: 4.3rem; line-height: .8; letter-spacing: .03em; }
.ticket-top, .ticket-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.ticket-top > span:first-child { font-family: var(--mono); color: var(--gold-pale); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.direction-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; border-radius: 999px; padding: 7px 12px; font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.direction-badge.buy { color: #baf1d9; background: rgba(25,118,88,.28); border: 1px solid rgba(128,220,182,.4); }
.direction-badge.sell { color: #ffd0d5; background: rgba(165,42,55,.3); border: 1px solid rgba(239,132,144,.35); }
.ticket-pair { display: grid; margin: 34px 0 26px; position: relative; z-index: 2; }
.ticket-pair small { color: var(--gold); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; }
.ticket-pair strong { font-family: var(--display); font-size: 3.5rem; font-weight: 400; letter-spacing: .02em; line-height: 1.15; }
.ticket-pair span { color: #97d4bb; font-weight: 700; }
.ticket-levels { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px dashed rgba(251,247,238,.22); padding: 20px 0; position: relative; z-index: 2; }
.ticket-levels div { padding: 0 12px; border-right: 1px solid var(--line-light); }
.ticket-levels div:first-child { padding-left: 0; }
.ticket-levels div:last-child { border: 0; }
.ticket-levels span { display: block; color: rgba(251,247,238,.5); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; }
.ticket-levels b { display: block; margin-top: 6px; font-family: var(--mono); font-size: .84rem; }
.ticket-chart { height: 116px; margin: 17px 0 6px; position: relative; z-index: 2; border-radius: 15px; overflow: hidden; background: var(--ink-soft); }
.ticket-foot { font-family: var(--mono); font-size: .66rem; color: rgba(251,247,238,.58); padding-top: 12px; }

.ticker-strip { overflow: hidden; background: var(--red); color: var(--paper-soft); padding: 14px 0; border-block: 1px solid rgba(24,23,19,.15); }
.ticker-track { display: flex; gap: 50px; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span { display: flex; align-items: center; gap: 13px; white-space: nowrap; font-family: var(--mono); font-size: .75rem; }
.ticker-track b { font-family: var(--display); font-size: .88rem; font-weight: 400; letter-spacing: .06em; }
.ticker-track i { font-style: normal; color: var(--gold-pale); }
.ticker-track em { font-style: normal; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

.workspace { padding: 100px 0; }
.workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-script { font-family: var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: .72rem; }
.workspace-head h2, .principles h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.05; margin: 8px 0 0; }
.workspace-head p { max-width: 480px; color: var(--muted); }
.market-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.market-card { appearance: none; text-align: left; min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: var(--paper-soft); color: var(--ink); transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease; }
.market-card:hover, .market-card.is-active { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(165,42,55,.48); }
.market-card.is-active { box-shadow: inset 0 -4px 0 var(--red), var(--shadow); }
.market-card-top, .market-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.market-symbol { font-family: var(--display); font-size: 1rem; letter-spacing: .04em; }
.mini-direction { font-family: var(--mono); font-size: .62rem; font-weight: 700; border-radius: 999px; padding: 4px 8px; }
.mini-direction.buy { background: rgba(25,118,88,.12); color: var(--green); }
.mini-direction.sell { background: rgba(165,42,55,.1); color: var(--red); }
.mini-direction.wait { background: rgba(216,161,55,.15); color: #8b6214; }
.market-card > strong { display: block; margin: 13px 0 7px; font-family: var(--mono); font-size: 1.25rem; }
.market-meta { color: var(--muted); font-size: .68rem; font-weight: 700; }
.market-card .sparkline { margin-top: 14px; height: 54px; }
.sparkline { width: 100%; display: block; overflow: visible; }
.spark-green { color: var(--green); }
.spark-red { color: var(--red); }
.spark-gold { color: var(--gold); }
.toolbar { margin: 26px 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.filter-row, .action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.filter-row { padding: 5px; border: 1px solid var(--line); background: rgba(251,247,238,.62); border-radius: 999px; }
.filter-row button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 14px; font-size: .72rem; font-weight: 800; }
.filter-row button:hover, .filter-row button.active { background: var(--ink); color: var(--paper-soft); }
.view-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-top: 35px; }
.view-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 14px 18px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.view-tabs button span { min-width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(165,42,55,.1); color: var(--red); font-size: .68rem; }
.view-tabs button:hover, .view-tabs button.active { color: var(--red); border-bottom-color: var(--red); }

.signal-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 22px; padding-top: 28px; }
.signal-list { display: grid; gap: 18px; }
.signal-card { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: var(--paper-soft); position: relative; overflow: hidden; box-shadow: 0 18px 45px -40px rgba(24,23,19,.6); }
.signal-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--green); }
.signal-card.signal-sell::before { background: var(--red); }
.signal-card-head, .signal-card-foot, .signal-status-row { display: flex; align-items: center; }
.signal-card-head { justify-content: space-between; gap: 18px; }
.signal-kicker { color: var(--muted); font-family: var(--mono); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }
.signal-card h3 { margin: 5px 0 0; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }
.signal-status-row { margin: 18px 0; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216,161,55,.13); }
.status-dot.active, .status-dot.tp1_hit, .status-dot.tp2_hit { background: var(--green); box-shadow: 0 0 0 5px rgba(25,118,88,.13); }
.status-dot.stop_loss { background: var(--red); }
.status-time { margin-left: auto; font-family: var(--mono); font-size: .65rem; font-weight: 400; }
.price-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.price-block { padding: 15px 17px; border-right: 1px solid var(--line); }
.price-block:last-child { border: 0; }
.price-block span { display: block; color: var(--muted); font-size: .63rem; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.price-block strong { display: block; margin-top: 6px; font-family: var(--mono); font-size: .83rem; }
.price-block.stop strong { color: var(--red); }
.price-block.target strong { color: var(--green); }
.signal-chart-wrap { height: 145px; margin: 22px 0 16px; position: relative; border-radius: 17px; background: var(--ink); overflow: hidden; }
.candlestick-chart { width: 100%; height: 100%; min-width: 0; position: relative; }
.candlestick-chart > div, .candlestick-chart canvas { max-width: 100%; }
.signal-card-foot { gap: 15px; border-top: 1px dashed var(--line); padding-top: 18px; }
.score-ring { --score: 0; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at center, var(--paper-soft) 61%, transparent 63%), conic-gradient(var(--gold) calc(var(--score) * 1%), var(--line) 0); }
.score-ring b { font-family: var(--mono); font-size: .78rem; }
.score-ring span { font-size: .52rem; color: var(--muted); }
.signal-card-foot p { flex: 1; color: var(--muted); font-size: .78rem; }
.text-link { border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: .75rem; font-weight: 800; padding: 8px; }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform .2s ease; }
.method-card { align-self: start; position: sticky; top: 104px; background: var(--ink); color: var(--paper-soft); padding: 30px; border-radius: 28px; overflow: hidden; }
.method-card::after { content: ""; position: absolute; width: 170px; height: 170px; border: 40px solid var(--red); border-radius: 50%; right: -100px; top: -100px; opacity: .7; }
.method-card .section-script { color: var(--gold-pale); }
.method-card h3 { position: relative; z-index: 2; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; line-height: 1.1; margin: 8px 0 25px; }
.method-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.method-card li { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 17px 0; border-top: 1px solid var(--line-light); }
.method-card li > b { font-family: var(--mono); color: var(--gold); font-size: .7rem; }
.method-card li span { color: rgba(251,247,238,.62); font-size: .78rem; }
.method-card li strong { display: block; margin-bottom: 3px; color: var(--paper-soft); font-size: .84rem; }
.method-note { margin-top: 22px; display: flex; gap: 12px; border-radius: 16px; padding: 14px; background: rgba(251,247,238,.07); color: var(--gold-pale); }
.method-note svg { flex: 0 0 auto; }
.method-note p { margin: 0; color: rgba(251,247,238,.6); font-size: .72rem; }
.empty-state { padding: 70px 30px; text-align: center; border: 1px dashed var(--line); border-radius: 28px; }
.empty-state span { font-family: var(--display); font-size: 3.2rem; color: var(--gold); }
.empty-state h3 { margin: 4px 0; }
.empty-state p { color: var(--muted); }

.history-panel, .backtest-panel { padding-top: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.stats-grid > div { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper-soft); }
.stats-grid span, .stats-grid small { display: block; color: var(--muted); }
.stats-grid span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.stats-grid strong { display: block; margin: 8px 0 3px; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.stats-grid small { font-size: .65rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 23px; background: var(--paper-soft); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 800px; }
.table-wrap th { color: var(--muted); background: rgba(24,23,19,.035); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 14px 18px; }
.table-wrap td { padding: 17px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; }
.table-wrap td:first-child b { display: block; font-family: var(--body); font-size: .82rem; }
.table-wrap td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-family: var(--body); font-size: .66rem; }
.table-direction, .result-chip { display: inline-flex; border-radius: 999px; padding: 6px 9px; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.table-direction.buy { color: var(--green); background: rgba(25,118,88,.1); }
.table-direction.sell { color: var(--red); background: rgba(165,42,55,.09); }
.result-chip { color: #83601b; background: rgba(216,161,55,.13); }
.result-chip.tp1_hit, .result-chip.tp2_hit { color: var(--green); background: rgba(25,118,88,.1); }
.result-chip.stop_loss { color: var(--red); background: rgba(165,42,55,.09); }
.result-chip.expired { color: var(--muted); background: rgba(109,102,91,.1); }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: var(--ink); color: var(--paper-soft); }

.backtest-panel { border: 1px solid var(--line); border-radius: 28px; padding: 30px; margin-top: 28px; background: var(--paper-soft); }
.backtest-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.backtest-head h3 { font-family: var(--display); font-size: 2.1rem; font-weight: 400; margin: 5px 0 0; }
.backtest-head p { color: var(--muted); font-size: .72rem; margin-bottom: 0; }
.backtest-body { display: grid; grid-template-columns: 1.45fr .55fr; gap: 18px; margin-top: 28px; }
.equity-card, .backtest-metrics { border-radius: 19px; background: var(--ink); color: var(--paper-soft); }
.equity-card { padding: 20px; min-width: 0; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: rgba(251,247,238,.62); }
.chart-heading strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.equity-chart { width: 100%; height: 250px; display: block; }
.grid-line { stroke: rgba(251,247,238,.08); stroke-width: 1; }
.backtest-metrics { padding: 15px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.backtest-metrics div { padding: 15px 5px; border-bottom: 1px solid var(--line-light); }
.backtest-metrics span { display: block; color: rgba(251,247,238,.52); font-size: .62rem; }
.backtest-metrics strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 1rem; }
.backtest-footnote { margin: 16px 0 0; color: var(--muted); font-size: .68rem; }

.principles { background: var(--ink); color: var(--paper-soft); padding: 95px 0; position: relative; overflow: hidden; }
.principles::after { content: "KS"; position: absolute; right: -20px; bottom: -85px; font-family: var(--display); font-size: 20rem; color: rgba(251,247,238,.025); line-height: 1; }
.principles .section-script { color: var(--gold-pale); }
.principles-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 75px; position: relative; z-index: 2; }
.principle-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.principle-list article { border-top: 1px solid var(--line-light); padding-top: 17px; }
.principle-list b { color: var(--gold); font-family: var(--mono); font-size: .7rem; }
.principle-list h3 { margin: 15px 0 9px; font-size: .9rem; }
.principle-list p { color: rgba(251,247,238,.58); font-size: .74rem; line-height: 1.7; }
footer { background: #0f0f0d; color: var(--paper-soft); border-top: 1px solid var(--line-light); }
.footer-inner { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p, .footer-inner > span { color: rgba(251,247,238,.46); font-size: .72rem; }
.footer-brand small { color: var(--gold); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(15,15,13,.68); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.detail-modal { width: min(840px,100%); max-height: calc(100vh - 44px); overflow-y: auto; position: relative; background: var(--paper-soft); color: var(--ink); border-radius: 30px; padding: 34px; box-shadow: 0 40px 110px rgba(0,0,0,.35); animation: modalIn .28s ease; }
.modal-close { position: absolute; top: 18px; right: 18px; border: 1px solid var(--line); background: var(--paper); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-right: 44px; }
.modal-title-row h2 { margin: 6px 0; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.modal-title-row h2 em { color: var(--red); font-style: normal; }
.modal-chart { height: 252px; margin: 24px 0; border-radius: 19px; background-color: var(--ink); overflow: hidden; }
.modal-levels { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.modal-levels div { padding: 15px; border-right: 1px solid var(--line); }
.modal-levels div:last-child { border: 0; }
.modal-levels span { display: block; color: var(--muted); font-size: .62rem; text-transform: uppercase; font-weight: 800; }
.modal-levels strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: .74rem; }
.analysis-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; margin-top: 28px; }
.analysis-grid h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.analysis-grid ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.analysis-grid li { display: grid; grid-template-columns: 31px 1fr; gap: 10px; color: var(--muted); font-size: .77rem; }
.analysis-grid li b { color: var(--red); font-family: var(--mono); font-size: .65rem; }
.analysis-grid dl { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.analysis-grid dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: .68rem; }
.analysis-grid dl div:last-child { border: 0; }
.analysis-grid dt { color: var(--muted); }
.analysis-grid dd { margin: 0; font-family: var(--mono); }
.modal-warning { display: flex; gap: 12px; margin-top: 24px; background: rgba(216,161,55,.13); color: #73500f; padding: 14px; border-radius: 15px; }
.modal-warning svg { flex: 0 0 auto; }
.modal-warning p { margin: 0; font-size: .72rem; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: min(420px,calc(100% - 48px)); background: var(--ink); color: var(--paper-soft); border: 1px solid var(--line-light); border-radius: 14px; padding: 14px 17px; display: flex; align-items: center; gap: 10px; font-size: .78rem; box-shadow: var(--shadow); animation: toastIn .3s ease; }
.toast svg { color: var(--gold); flex: 0 0 auto; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(15px); } }

@media (max-width: 1020px) {
  .header-inner nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-top: 80px; }
  .hero-ticket { justify-self: start; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .signal-layout { grid-template-columns: 1fr; }
  .method-card { position: static; }
  .backtest-body { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1220px); }
  .site-header { backdrop-filter: none; }
  .header-inner { height: 68px; }
  .brand { gap: 9px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand strong { font-size: .98rem; }
  .brand small { display: none; }
  .mode-pill { padding: 8px 10px; font-size: .63rem; }
  .hero, .hero-grid { min-height: auto; }
  .hero::after, .hero-orbit { display: none; }
  .hero-grid { padding: 48px 0 64px; gap: 42px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.5rem,11.8vw,3.65rem); line-height: .96; overflow-wrap: anywhere; }
  .hero-copy > p { font-size: .94rem; }
  .hero-ticket { width: 100%; transform: none; padding: 25px; justify-self: stretch; }
  .ticket-pair strong { font-size: 2.8rem; }
  .ticket-levels { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ticket-levels div { min-width: 0; padding: 12px 7px; }
  .ticket-levels b { font-size: .68rem; overflow-wrap: anywhere; }
  .trust-row { display: grid; }
  .workspace { padding: 70px 0; }
  .workspace-head { align-items: start; flex-direction: column; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-row { width: 100%; flex-wrap: nowrap; overflow-x: auto; border-radius: 18px; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row button { flex: 0 0 auto; }
  .action-row { width: 100%; }
  .action-row .button { flex: 1; }
  .view-tabs { overflow-x: auto; }
  .view-tabs button { min-width: max-content; padding: 13px 11px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-block { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-block:last-child { border: 0; }
  .signal-card { padding: 22px; }
  .signal-card-foot { align-items: flex-start; flex-wrap: wrap; }
  .signal-card-foot p { flex-basis: calc(100% - 75px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .backtest-panel { padding: 22px; }
  .backtest-head { align-items: stretch; flex-direction: column; }
  .principle-list { grid-template-columns: 1fr; }
  .footer-inner { padding: 35px 0; align-items: flex-start; flex-direction: column; }
  .modal-backdrop { padding: 10px; }
  .detail-modal { max-height: calc(100dvh - 20px); padding: 25px 18px; border-radius: 23px; }
  .modal-title-row { flex-direction: column; }
  .modal-chart { height: 235px; margin-inline: -4px; }
  .modal-levels { grid-template-columns: 1fr 1fr; }
  .modal-levels div:nth-child(2) { border-right: 0; }
  .modal-levels div { border-bottom: 1px solid var(--line); }
  .modal-levels div:nth-child(3), .modal-levels div:nth-child(4) { border-bottom: 0; }
  .analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .eyebrow { font-size: .63rem; padding: 8px 11px; }
  .mode-pill { gap: 6px; padding: 7px 9px; font-size: .58rem; }
  .mode-pill span { width: 7px; height: 7px; }
  .ticket-pair strong { font-size: clamp(2.05rem,11vw,2.65rem); }
  .signal-card { padding: 20px 18px; border-radius: 23px; }
  .signal-status-row { flex-wrap: wrap; }
  .status-time { width: 100%; margin-left: 17px; }
  .action-row { flex-direction: column; }
  .action-row .button { width: 100%; }
  .view-tabs { margin-inline: -2px; }
  .ticket-stamp { display: none; }
  .signal-card-head { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .backtest-metrics { grid-template-columns: 1fr 1fr; }
  .modal-levels { grid-template-columns: 1fr; }
  .modal-levels div, .modal-levels div:nth-child(2), .modal-levels div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-levels div:last-child { border-bottom: 0; }
}

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