/* RocketScience theme: ivory paper, white cards, ink text, one warm accent. */
:root {
  --bg: #f7f5f0; --bg-2: #efebe3; --panel: #ffffff; --panel-2: #f9f7f3;
  --line: #e9e4da; --line-2: #dcd5c8;
  --text: #1b1d22; --muted: #5d636e; --dim: #8c919a;
  --brand: #e2621b; --grad: linear-gradient(135deg, #f08a24 0%, #e2621b 50%, #d6336c 100%);
  --yes: #13805b; --no: #c23a4f; --hold: #6b7280; --model: #4c51bf; --market: #a3a9b4; --shock: #b7791f; --news: #7c4dcc;
  --yes-bg: #e7f4ee; --no-bg: #fbecee; --hold-bg: #f1eee8; --shock-bg: #fbf3e2;
  --yes-soft: #d5ede2; --no-soft: #f6dade;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 29, 34, .04), 0 12px 32px -18px rgba(27, 29, 34, .16);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden;
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.num, .kv, .p-num, .uc-price, .edge, .dl { font-variant-numeric: tabular-nums; }
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 520px at 0% -10%, rgba(240, 138, 36, .10), transparent 60%),
              radial-gradient(900px 520px at 100% -5%, rgba(76, 81, 191, .07), transparent 60%), var(--bg); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 12px 28px;
  background: rgba(247, 245, 240, .85); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 6px 16px -8px rgba(226, 98, 27, .55); }
.word { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.word b { color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 500; transition: .15s; }
.nav a:hover { color: var(--text); background: #fff; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: #229ed9; background: #fff; transition: .15s; }
.icon-btn:hover { background: #eef7fc; }
.cta { border: 0; cursor: pointer; background: var(--grad); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(214, 51, 108, .6); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(214, 51, 108, .7); }
.cta.big { padding: 13px 22px; font-size: 15px; }
.ghost { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; transition: .15s; }
.ghost:hover { border-color: var(--text); }
.conn { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hold); }
.conn.ok .dot { background: var(--yes); animation: ping 2s infinite; }
.conn.bad .dot { background: var(--no); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(19, 128, 91, .45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(19, 128, 91, 0); } }

/* ---------- ticker tape ---------- */
.tape { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-track { display: flex; gap: 36px; width: max-content; padding: 9px 0; animation: tape 90s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.tk b { color: var(--text); font-weight: 600; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.tk .up { color: var(--yes); font-weight: 600; } .tk .dn { color: var(--no); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 28px 34px; max-width: 1440px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line-2); background: #fff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); animation: ping 2s infinite; }
.hero h1 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.8vw, 78px); line-height: .98; letter-spacing: -.015em; }
.grad { font-style: italic; color: var(--brand); }
.lede { margin: 0 0 26px; color: var(--muted); font-size: 16.5px; max-width: 600px; }
.y { color: var(--yes); } .n { color: var(--no); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pulse-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; background: #fff; }
.kl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.kv { font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.1; }
.kv.split { display: flex; align-items: baseline; gap: 8px; } .kv.split b { font-weight: 400; } .kv.split i { color: var(--dim); font-style: normal; font-size: 32px; }
.ks { font-size: 12px; color: var(--dim); }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding: 22px 24px 14px; }
.sec-head h2, .feed h2, .track h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 760px; }
.hint a { color: var(--brand); text-decoration: none; font-weight: 600; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- Up/Down ---------- */
.ud { margin: 8px 28px 24px; max-width: 1384px; }
@media (min-width: 1441px) { .ud { margin-left: auto; margin-right: auto; } }
.bolt { font-size: .75em; }
.live-tag { font-family: Inter, system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 9px; border-radius: 999px; color: var(--no); background: var(--no-bg);
  animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.ud-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips, .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-2); }
.chips button, .seg button { border: 0; background: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chips button.on, .seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(27, 29, 34, .12); }
.seg button span { font-size: 11px; color: var(--dim); margin-left: 3px; font-weight: 500; }
.score-pill { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--yes-bg); color: var(--yes); }
.ud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; padding: 4px 24px 24px; }
.uc { position: relative; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line);
  cursor: pointer; transition: transform .15s, box-shadow .15s; }
.uc:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(27, 29, 34, .35); }
.uc.up { border-top-color: var(--yes); } .uc.dn { border-top-color: var(--no); }
.uc-top { display: flex; align-items: center; gap: 10px; }
.coin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; flex: none; }
.coin.BTC { background: #f7931a; } .coin.ETH { background: #627eea; } .coin.SOL { background: linear-gradient(135deg, #9945ff, #14f195); }
.coin.XRP { background: #2b3138; } .coin.DOGE { background: #c2a633; }
.uc-name { font-weight: 700; line-height: 1.2; } .uc-win { font-size: 12px; color: var(--muted); font-weight: 500; }
.uc-phase { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--hold-bg); color: var(--muted); white-space: nowrap; }
.uc-phase.live { background: var(--no-bg); color: var(--no); }
.uc-phase.live::before { content: "● "; animation: blink 1.4s infinite; }
.uc-phase.done { background: var(--yes-bg); color: var(--yes); }
.uc-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.uc-prices div { padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.uc-prices span { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.uc-price { font-weight: 700; font-size: 15px; }
.uc-move { font-size: 12px; font-weight: 600; margin-left: 4px; display: inline !important; }
.uc-prog { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-bottom: 12px; }
.uc-prog i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width 1s linear; }
.uc-split { display: flex; height: 30px; border-radius: 9px; overflow: hidden; position: relative; font-size: 12.5px; font-weight: 700; }
.uc-split .u { background: var(--yes-soft); color: var(--yes); display: flex; align-items: center; padding-left: 10px; transition: width .6s ease; white-space: nowrap; }
.uc-split .d { flex: 1; background: var(--no-soft); color: var(--no); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; white-space: nowrap; }
.uc-split .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; transition: left .6s ease; }
.uc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ucall { font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--hold-bg); color: var(--hold); }
.ucall.YES { background: var(--yes-bg); color: var(--yes); } .ucall.NO { background: var(--no-bg); color: var(--no); }
.uc-sig { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.35; }
.uc-sig b.bull { color: var(--yes); } .uc-sig b.bear { color: var(--no); }
.uc-macd { margin-left: auto; width: 84px; height: 26px; flex: none; }
.uc-macd .p { fill: var(--yes); opacity: .7; } .uc-macd .n { fill: var(--no); opacity: .7; }

/* ---------- markets ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 0 28px 24px; max-width: 1440px; margin: 0 auto; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 0 24px 14px; }
.seg { border-radius: 12px; } .seg button { border-radius: 9px; font-size: 13px; padding: 7px 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search], .filters select { background: #fff; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font: inherit; outline: none; }
.filters input[type=search]:focus, .filters select:focus { border-color: var(--brand); }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { width: 32px; height: 18px; border-radius: 999px; background: #d9d3c8; position: relative; transition: .2s; }
.tog span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tog input:checked + span { background: var(--brand); } .tog input:checked + span::after { left: 16px; }
.tog input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.list-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 220px 96px 76px; gap: 14px; align-items: center; }
.list-head { padding: 9px 24px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.list-head span:nth-child(2), .list-head span:nth-child(5) { text-align: right; }
.row { padding: 14px 24px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.row:hover { background: var(--panel-2); }
.list .row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.r-title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tag { padding: 1px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; }
.tag.pm { color: #3657c9; background: #eef1fb; border-color: #dfe5f7; } .tag.ks { color: #0f7a5c; background: #e9f5f0; border-color: #d5ece2; }
.tag.shock { color: var(--shock); border-color: #f1e2bf; background: var(--shock-bg); }
.tag.news-YES { color: var(--yes); } .tag.news-NO { color: var(--no); }
.dl { text-align: right; color: var(--muted); font-weight: 500; }
.probs .p-num { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; color: var(--muted); }
.probs .p-num b { color: var(--model); font-weight: 700; }
.bar { position: relative; height: 7px; border-radius: 6px; background: var(--bg-2); }
.bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; opacity: .35; }
.bar .m { position: absolute; top: -3px; width: 2px; height: 13px; background: var(--market); border-radius: 2px; }
.bar .p { position: absolute; top: -4px; width: 11px; height: 15px; margin-left: -5px; border-radius: 4px; background: var(--model); box-shadow: 0 2px 6px rgba(76, 81, 191, .35); }
.call { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--hold-bg); color: var(--hold); white-space: nowrap; }
.call.YES { background: var(--yes-bg); color: var(--yes); } .call.NO { background: var(--no-bg); color: var(--no); }
.edge { text-align: right; font-weight: 700; color: var(--muted); }
.edge.pos { color: var(--yes); } .edge.neg { color: var(--no); }
.sig { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.sig.BUY_YES { background: var(--yes-bg); color: var(--yes); } .sig.BUY_NO { background: var(--no-bg); color: var(--no); }
.flash { animation: flash 1.6s ease-out; } .flash-shock { animation: flashS 2.2s ease-out; }
@keyframes flash { from { background: #eceefb; } }
@keyframes flashS { from { background: #fbf0d6; } }

/* ---------- feed ---------- */
.feed { padding: 22px 22px 10px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 16px; border-left: 1px dashed var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 6px; cursor: pointer; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--model); box-shadow: 0 0 0 3px #fff; }
.timeline li.shock::before { background: var(--shock); } .timeline li.res::before { background: var(--yes); }
.timeline li.quiet { cursor: default; color: var(--muted); } .timeline li.quiet::before { background: var(--dim); }
.fm { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ft { font-weight: 600; margin: 2px 0; line-height: 1.35; }
.fd { font-size: 12px; color: var(--dim); }

/* ---------- track ---------- */
.track { margin: 0 28px 24px; padding: 26px; max-width: 1384px; }
@media (min-width: 1441px) { .track { margin-left: auto; margin-right: auto; } }
.track-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
.ring-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ring { --p: 0; width: 172px; height: 172px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yes) calc(var(--p) * 1%), var(--bg-2) 0); }
.ring > div { width: 144px; height: 144px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.ring b { font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1; } .ring span { font-size: 12px; color: var(--muted); }
.track-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.track-kpis div { padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: center; }
.track-kpis b { display: block; font-size: 17px; } .track-kpis span { font-size: 11.5px; color: var(--muted); }
.wins { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.wins li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.w-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--yes-bg); color: var(--yes); font-weight: 800; }
.w-body a { font-weight: 600; text-decoration: none; } .w-body a:hover { color: var(--brand); }
.w-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- misc ---------- */
.ssr-wrap { padding: 0 28px 20px; color: var(--muted); font-size: 13px; max-width: 1440px; margin: 0 auto; }
.ssr-wrap table { width: 100%; border-collapse: collapse; }
.ssr-wrap td, .ssr-wrap th { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.pipeline { margin: 0 28px 24px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; max-width: 1384px; }
@media (min-width: 1441px) { .pipeline { margin-left: auto; margin-right: auto; } }
.pipeline summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); list-style: none; }
.pipeline summary::-webkit-details-marker { display: none; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); }
.pipeline.warn .dot-ok { background: var(--shock); }
.pipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.svc { padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; }
.svc .name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.svc .name i { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); } .svc.down .name i { background: var(--no); }
.svc .role { color: var(--dim); margin-bottom: 6px; }
.svc .kv { display: flex; justify-content: space-between; font: 400 12px/1.5 Inter, system-ui, sans-serif; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 28px; display: grid; gap: 12px; max-width: 1440px; margin: 10px auto 0; }
.foot-brand { display: flex; align-items: baseline; gap: 12px; }
.foot-brand b { font-family: var(--serif); font-weight: 400; font-size: 26px; } .foot-brand b span { color: var(--brand); font-style: italic; }
.foot-brand > span { color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 13px; } .foot-links a:hover { color: var(--text); }
.fine { font-size: 12px; color: var(--dim); margin: 0; } .fine a { color: var(--muted); }

/* ---------- modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.modal.open, .drawer.open { visibility: visible; }
.modal-bg, .drawer-bg { position: absolute; inset: 0; background: rgba(27, 29, 34, .3); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.modal.open .modal-bg, .drawer.open .drawer-bg { opacity: 1; }
.modal-panel { position: relative; width: min(440px, calc(100% - 32px)); margin: 8vh auto 0; padding: 30px 28px; border-radius: 22px; text-align: center;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(27, 29, 34, .45);
  transform: translateY(12px) scale(.98); opacity: 0; transition: .22s; }
.modal.open .modal-panel { transform: none; opacity: 1; }
.su-badge { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: #fdf0e7; }
.modal-panel h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); font-size: 20px; cursor: pointer; }
.x:hover { color: var(--text); background: var(--bg-2); }
.interests { border: 0; padding: 0; margin: 18px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.interests legend { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.interests label input { position: absolute; opacity: 0; }
.interests label span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.interests label input:checked + span { background: #fdf0e7; border-color: #f1b58f; color: var(--text); }
.interests label input:focus-visible + span { outline: 2px solid var(--brand); }
.gbox { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--dim); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.su-form { display: flex; gap: 8px; }
.su-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; outline: none; }
.su-form input:focus { border-color: var(--brand); }
.su-msg { min-height: 20px; font-size: 13px; margin: 12px 0 6px; color: var(--muted); }
.su-msg.ok { color: var(--yes); } .su-msg.err { color: var(--no); }
.tg-btn { display: block; margin: 6px 0 14px; padding: 11px; border-radius: 999px; background: #eaf6fc; color: #1784b9; text-decoration: none; font-weight: 700; border: 1px solid #cfe9f6; }
.tg-btn:hover { background: #def0fa; }

/* ---------- drawer ---------- */
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(780px, 100%); overflow-y: auto; padding: 26px 28px 40px;
  background: #fff; border-left: 1px solid var(--line); box-shadow: -30px 0 80px -40px rgba(27, 29, 34, .4);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.drawer.open .drawer-panel { transform: none; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 40px; }
.d-head h2 { margin: 12px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.12; }
#dLink { color: var(--brand); text-decoration: none; font-size: 13px; font-weight: 600; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.stat { padding: 11px 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.stat .l { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.stat .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.chart-box { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.chart-box canvas { width: 100%; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: -8px; }
.lg.market { background: var(--market); } .lg.model { background: var(--model); }
.lg.shock { width: 8px; height: 8px; border-radius: 50%; background: var(--shock); } .lg.news { width: 8px; height: 8px; border-radius: 50%; background: var(--news); }
.d-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 18px; }
.d-cols h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
.why .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; cursor: default; }
.why .row:hover { background: none; }
.why .row span:last-child { text-align: right; color: var(--text); }
.rat { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.news li a { text-decoration: none; font-weight: 500; font-size: 13px; } .news li a:hover { color: var(--brand); }
.nm { display: flex; gap: 10px; font-size: 11.5px; color: var(--dim); }
.revs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.revs li { padding: 9px 11px; border-radius: 10px; background: var(--panel-2); border-left: 3px solid var(--model); }
.revs li.shock { border-left-color: var(--shock); } .revs li.news { border-left-color: var(--news); } .revs li.resolved { border-left-color: var(--yes); }
.rh { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.rd { font-size: 11.5px; color: var(--dim); }
.sim { margin-top: 22px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.sim summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.sim-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.sim-row input[type=password] { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text); }
.sim-row button { padding: 7px 14px; border-radius: 8px; border: 0; background: var(--shock); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .feed { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .track-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 10px; }
  .nav, .conn { display: none; }
  .cta { padding: 8px 13px; font-size: 13px; }
  .hero { padding: 28px 16px 18px; gap: 24px; }
  .kv { font-size: 34px; } .kpi { padding: 16px; }
  .ud, .track, .pipeline { margin-left: 16px; margin-right: 16px; }
  .layout { padding: 0 16px 16px; }
  .sec-head, .toolbar { padding-left: 16px; padding-right: 16px; }
  .ud-grid { padding: 4px 16px 16px; grid-template-columns: 1fr; }
  .list-head { display: none; }
  .row { grid-template-columns: 1fr auto; grid-template-areas: "t t" "p p" "c e"; gap: 8px 12px; padding: 14px 16px; }
  .row > :nth-child(1) { grid-area: t; } .row > :nth-child(2) { display: none; } .row > :nth-child(3) { grid-area: p; }
  .row > :nth-child(4) { grid-area: c; } .row > :nth-child(5) { grid-area: e; }
  .d-stats { grid-template-columns: repeat(2, 1fr); } .d-cols { grid-template-columns: 1fr; }
  .drawer-panel { padding: 22px 16px 32px; }
  .foot, .ssr-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------- access: locks, teasers, account ---------- */
.ghost.sm { padding: 8px 14px; font-size: 13px; cursor: pointer; }
.acct { display: inline-flex; align-items: center; gap: 8px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 700; font-size: 13px; }
.plan-chip { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--hold-bg); color: var(--muted); }
.plan-chip.pro { background: var(--grad); color: #fff; }
.link { border: 0; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 24px 16px; padding: 14px 18px;
  border-radius: 14px; background: linear-gradient(135deg, #fdf3ea, #fbeef3); border: 1px solid #f3dccb; font-size: 13.5px; color: var(--text); }
.teaser b { font-weight: 700; }
.t-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.lockchip { border: 1px solid #f1cdb5; background: #fdf0e7; color: var(--brand); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lockchip:hover { background: #fbe3d3; }
.lockchip.sm { padding: 2px 8px; font-size: 11px; }
.blur { filter: blur(5px); user-select: none; color: var(--model); }
.row.locked .r-title { color: var(--muted); }
.tag.pick { color: #8a5a00; background: #fdf4dc; border-color: #f3e2b5; font-weight: 600; }
.uc.locked .uc-split { filter: saturate(.2); opacity: .7; }
.uc.locked .uc-split .u, .uc.locked .uc-split .d { filter: blur(3px); }
.ucall.lockchip { padding: 3px 10px; }
.lockpanel { padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #fdf3ea, #fbeef3); border: 1px solid #f3dccb; }
.lockpanel p { color: var(--muted); margin: 6px 0 12px; }
.pro-panel { text-align: left; }
.pro-panel .su-badge, .pro-panel h2, .pro-panel > .hint { text-align: center; }
.pro-panel .su-badge { background: var(--grad); color: #fff; }
.pro-list { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pro-list li { padding-left: 26px; position: relative; color: var(--muted); font-size: 13.5px; }
.pro-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--yes-bg); color: var(--yes); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pro-list b { color: var(--text); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.plan { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.plan b { display: block; font-size: 14px; } .plan span { font-size: 12px; color: var(--muted); }
.plan.on { border-color: #f1b58f; background: #fdf0e7; }
.cta.wide { width: 100%; }
.story-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .teaser { margin: 0 16px 14px; } #loginBtn { display: none; } }

/* ---------- admin + building state ---------- */
.ring.building { background: conic-gradient(var(--brand) 0 25%, var(--bg-2) 0); }
.ring.building b { font-size: 34px; }
.admin-panel { width: min(980px, calc(100% - 32px)); text-align: left; max-height: 86vh; overflow: auto; }
.admin-panel h2 { text-align: left; }
.admin-panel h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.adm { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.adm th, table.adm td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.adm th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); background: var(--panel-2); }
table.adm .num { text-align: right; white-space: nowrap; }

.tg-verify { text-align: left; margin: 14px 0 4px; padding: 16px; border-radius: 14px; background: #eaf6fc; border: 1px solid #cfe9f6; }
.tg-verify p { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.tg-verify .cta { display: block; text-align: center; text-decoration: none; background: #229ed9; box-shadow: none; }
.tg-verify code { background: #fff; padding: 1px 6px; border-radius: 6px; }
.fine.disclaim { margin-top: 8px; max-width: 760px; line-height: 1.5; }
