:root {
  --bg: #f6efe3;
  --panel: rgba(255, 251, 244, 0.86);
  --line: rgba(120, 90, 50, 0.16);
  --text: #2e2418;
  --muted: #8a7a66;
  --accent: #0f8f84;
  --up: #1f9d63;
  --down: #c9474f;
  --warn: #b57d12;
  --soft: rgba(90, 60, 30, 0.05);
  --soft-2: rgba(90, 60, 30, 0.09);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(222, 184, 120, 0.28), transparent 55%),
    radial-gradient(700px 400px at 10% 100%, rgba(240, 206, 160, 0.35), transparent 50%),
    linear-gradient(180deg, #faf4ea 0%, #f3e9d8 100%);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ---------- Persistent BTC dependence strip (visible on every page) ---------- */
:root { --strip-h: 64px; }
body { padding-top: var(--strip-h); }
.btc-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: var(--strip-h);
  padding: 0.45rem 1rem 0.4rem;
  background: rgba(250, 244, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(90, 60, 30, 0.08);
}
.btc-strip-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.btc-id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  direction: ltr;
}
.btc-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f7931a;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.btc-price { font-size: 1rem; }
.btc-chg { font-size: 0.85rem; }
.btc-chg.up { color: var(--up); }
.btc-chg.down { color: var(--down); }
.btc-dep {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 260px;
}
.btc-dep-label { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.btc-meter {
  flex: 1;
  min-width: 90px;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
}
.btc-meter > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--up), var(--warn), var(--down));
  transition: width 0.6s ease;
}
.btc-score { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; direction: ltr; }
.btc-level {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--soft);
  white-space: nowrap;
}
.btc-level.high { color: var(--down); background: rgba(201, 71, 79, 0.12); }
.btc-level.medium { color: var(--warn); background: rgba(181, 125, 18, 0.12); }
.btc-level.low { color: var(--up); background: rgba(31, 157, 99, 0.12); }
.btc-level.decoupled { color: var(--accent); background: rgba(15, 143, 132, 0.12); }
.btc-extra {
  display: inline-flex;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--mono);
  direction: ltr;
  flex-wrap: wrap;
}
.btc-extra b { color: var(--text); font-weight: 600; }
.alert-toggle {
  appearance: none;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.alert-toggle.on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.alert-toggle:disabled {
  opacity: 0.7;
  cursor: default;
}
.btc-advice {
  margin: 0.25rem auto 0;
  max-width: 1200px;
  font-size: 0.78rem;
  color: var(--muted);
}
.btc-advice:empty { display: none; }
@media (max-width: 720px) {
  :root { --strip-h: 96px; }
  .btc-extra { display: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.25rem 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pwa-install {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.pwa-install[hidden] {
  display: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(181, 125, 18, 0.2);
}

.live-pill.on .dot {
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

.live-pill.off .dot {
  background: var(--down);
  box-shadow: 0 0 0 3px rgba(201, 71, 79, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0.5rem;
}

.search-wrap { flex: 1 1 220px; }

#search {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  outline: none;
}

#search:focus {
  border-color: rgba(15, 143, 132, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 143, 132, 0.12);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.chip:hover { color: var(--text); border-color: rgba(15, 143, 132, 0.4); }
.chip.active {
  color: #fffaf2;
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

#sort {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 1100px;
  margin: 0.5rem auto 0.75rem;
  padding: 0 1.25rem;
}

.stat {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.stat-n {
  display: block;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-l { color: var(--muted); font-size: 0.8rem; }
.stat.up .stat-n { color: var(--up); }
.stat.mid .stat-n { color: var(--accent); }
.stat.down .stat-n { color: var(--down); }

main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 2rem; }

.table-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 251, 244, 0.8);
  backdrop-filter: blur(12px);
}

.coins {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.coins th {
  text-align: right;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.coins td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(120, 180, 220, 0.08);
  vertical-align: middle;
}

.coins tbody tr:hover { background: rgba(15, 143, 132, 0.05); }
.coins tbody tr.flash-up td.price { color: var(--up); }
.coins tbody tr.flash-down td.price { color: var(--down); }

.sym {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sym small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.price, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.buy { background: rgba(31, 157, 99, 0.16); color: var(--up); }
.badge.bull { background: rgba(15, 143, 132, 0.14); color: var(--accent); }
.badge.dump { background: rgba(201, 71, 79, 0.14); color: var(--down); }
.badge.risk { background: rgba(181, 125, 18, 0.14); color: var(--warn); }
.badge.neutral { background: rgba(138, 122, 102, 0.14); color: var(--muted); }

.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--soft-2);
  overflow: hidden;
  margin-top: 0.3rem;
  max-width: 90px;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #3b6fd1);
}

.bar.risk > i { background: linear-gradient(90deg, var(--warn), var(--down)); }

.empty td {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.coins tbody tr { cursor: pointer; }
.coins tbody tr:active { background: rgba(15, 143, 132, 0.1); }

.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 20, 0.35);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf1 0%, #f7eedf 100%);
  box-shadow: 0 24px 80px rgba(90, 60, 30, 0.22);
  padding: 1rem 1.1rem 1.15rem;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.modal-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.modal-x {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.modal-x:hover { color: var(--text); }

.vp-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.vp-meta .m {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: var(--soft);
}
.vp-meta .k { display: block; color: var(--muted); font-size: 0.72rem; }
.vp-meta .v {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
}
.vp-meta .v.poc { color: var(--warn); }
.vp-meta .v.up { color: var(--up); }
.vp-meta .v.down { color: var(--down); }

.vp-chart {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 220px;
}
.vp-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.45rem;
  align-items: center;
  min-height: 7px;
}
.vp-row.poc .vp-price { color: var(--warn); font-weight: 700; }
.vp-row.va .track {
  outline: 1px solid rgba(15, 143, 132, 0.22);
  outline-offset: -1px;
}
.vp-price {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-align: left;
  direction: ltr;
}
.track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
  display: flex;
  direction: ltr;
}
.track .buy {
  height: 100%;
  background: linear-gradient(90deg, rgba(31, 157, 99, 0.85), rgba(31, 157, 99, 0.45));
}
.track .sell {
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 71, 79, 0.45), rgba(201, 71, 79, 0.85));
}
.vp-loading, .vp-error {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}
.vp-error { color: var(--down); }

.vp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.vp-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.lg {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.lg.buy { background: var(--up); }
.lg.sell { background: var(--down); }
.lg.poc { background: var(--warn); }
.lg.va { background: rgba(15, 143, 132, 0.55); }

/* —— Full-screen focus —— */
.focus[hidden] { display: none !important; }
.focus {
  position: fixed;
  inset: 0;
  top: var(--strip-h);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(800px 420px at 50% 12%, rgba(222, 184, 120, 0.3), transparent 55%),
    linear-gradient(180deg, #faf4ea 0%, #f1e6d3 100%);
  overflow-x: hidden;
  overflow-y: auto;
}
.focus-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(250, 244, 234, 0.9);
  position: sticky;
  top: 0;
  z-index: 2;
}
.focus-back {
  font: inherit;
  color: var(--text);
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.focus-back:hover { border-color: var(--accent); color: var(--accent); }

.focus-hero {
  padding: 1rem 1.25rem 0.5rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.focus-chart-wrap {
  padding: 0.5rem 1.25rem 0.25rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.chart-panel { padding-bottom: 0.75rem; }
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.chart-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.chart-iv {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.pattern-pill {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 0.82rem;
  color: var(--text);
}
.pattern-pill.bullish {
  color: var(--up);
  border-color: rgba(31, 157, 99, 0.3);
  background: rgba(31, 157, 99, 0.1);
}
.pattern-pill.bearish {
  color: var(--down);
  border-color: rgba(201, 71, 79, 0.3);
  background: rgba(201, 71, 79, 0.1);
}
.pattern-pill.neutral {
  color: var(--warn);
  border-color: rgba(181, 125, 18, 0.35);
  background: rgba(181, 125, 18, 0.1);
}
.price-chart {
  width: 100%;
  height: 320px;
  display: block;
  background: #fffaf2;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.chart-stage { position: relative; }
.price-chart { height: 340px; }

/* ---- Active board ---- */
.chart-head-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--down);
  background: rgba(201, 71, 79, 0.1);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  vertical-align: middle;
  margin-left: 0.3rem;
}
.live-tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--down);
  animation: pulse 1.2s ease-in-out infinite;
}
.countdown {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  direction: rtl;
}
.countdown.soon { color: var(--warn); border-color: rgba(181, 125, 18, 0.4); }

.live-alert {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--soft);
}
.live-alert.enter { color: #fffaf2; background: var(--accent); border-color: var(--accent); }
.live-alert.t1, .live-alert.t2 { color: #fffaf2; background: var(--up); border-color: var(--up); }
.live-alert.sl { color: #fffaf2; background: var(--down); border-color: var(--down); }
.live-alert.flash { animation: alertFlash 0.4s ease-in-out 3; }
@keyframes alertFlash {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.25); }
}

.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPulse 1.6s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.live-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.live-board .lb {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
  background: var(--soft);
  min-width: 0;
}
.live-board .lb .k { display: block; color: var(--muted); font-size: 0.7rem; margin-bottom: 0.15rem; }
.live-board .lb .v { font-weight: 700; font-size: 0.9rem; display: block; }
.live-board .lb .v.mono { font-family: var(--mono); direction: ltr; text-align: right; }
.live-board .lb.entry { border-color: rgba(15, 143, 132, 0.4); }
.live-board .lb.entry .v { color: var(--accent); }
.live-board .lb.stop { border-color: rgba(201, 71, 79, 0.4); }
.live-board .lb.stop .v { color: var(--down); }
.live-board .lb.target { border-color: rgba(31, 157, 99, 0.4); }
.live-board .lb.target .v { color: var(--up); }
.live-board .lb.rr .v { color: var(--warn); }
.live-board .lb.enter { background: rgba(15, 143, 132, 0.14); border-color: var(--accent); }
.live-board .lb.enter .v { color: var(--accent); }
.live-board .lb.t1, .live-board .lb.t2 { background: rgba(31, 157, 99, 0.14); border-color: var(--up); }
.live-board .lb.t1 .v, .live-board .lb.t2 .v { color: var(--up); }
.live-board .lb.sl { background: rgba(201, 71, 79, 0.14); border-color: var(--down); }
.live-board .lb.sl .v { color: var(--down); }
.live-board .lb.wait .v { color: var(--warn); }

.lg-mark { font-style: normal; font-size: 0.8rem; }
.lg-mark.entry { color: var(--up); }
.lg-mark.exit { color: var(--down); }

.events-wrap { margin-top: 0.8rem; }
.events-wrap h4 { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  max-height: 180px;
  overflow: auto;
}
.events li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: var(--soft);
  border-right: 3px solid var(--muted);
  font-size: 0.82rem;
}
.events li.muted { color: var(--muted); grid-template-columns: 1fr; border-right-color: transparent; }
.events li.enter { border-right-color: var(--accent); }
.events li.leave { border-right-color: var(--muted); color: var(--muted); }
.events li.t1, .events li.t2 { border-right-color: var(--up); }
.events li.sl { border-right-color: var(--down); }
.events .ev-time, .events .ev-price { font-family: var(--mono); color: var(--muted); font-size: 0.74rem; direction: ltr; }
.events .ev-text { font-weight: 600; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }

.decision-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.95), rgba(249, 241, 228, 0.92));
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.decision-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.decision-badge {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.decision-badge.buy {
  color: #fffaf2;
  background: var(--up);
  box-shadow: 0 0 30px rgba(31, 157, 99, 0.3);
}
.decision-badge.sell {
  color: #fffaf2;
  background: var(--down);
  box-shadow: 0 0 30px rgba(201, 71, 79, 0.3);
}
.decision-badge.wait {
  color: #fffaf2;
  background: var(--warn);
  box-shadow: 0 0 30px rgba(181, 125, 18, 0.3);
}
.decision-text { min-width: 0; flex: 1; }
.decision-structure {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.decision-conf {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.plan-grid .p {
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--soft);
  min-width: 0;
}
.plan-grid .p .k {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}
.plan-grid .p .v {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  direction: ltr;
  display: block;
  text-align: right;
  overflow-wrap: anywhere;
}
.plan-grid .p.entry { border-color: rgba(15, 143, 132, 0.4); }
.plan-grid .p.entry .v { color: var(--accent); }
.plan-grid .p.stop { border-color: rgba(201, 71, 79, 0.4); }
.plan-grid .p.stop .v { color: var(--down); }
.plan-grid .p.target { border-color: rgba(31, 157, 99, 0.4); }
.plan-grid .p.target .v { color: var(--up); }
.plan-grid .p.rr .v { color: var(--warn); }
.plan-grid .p.txt .v { font-family: inherit; direction: rtl; text-align: right; font-size: 0.88rem; }
.reasons {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.reasons li {
  position: relative;
  padding-right: 1.1rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}
.reasons li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.reasons li.mgmt { color: var(--muted); }
.reasons li.mgmt::before { background: var(--warn); }
.reasons li.cond { color: var(--accent); font-weight: 600; }
.reasons li.cond::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--mono);
  direction: ltr;
}

.focus-inds {
  padding: 0.75rem 1.25rem 0.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.focus-center {
  text-align: center;
  padding: 1.35rem 1.1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 143, 132, 0.22);
  background: rgba(255, 251, 244, 0.9);
  box-shadow: 0 0 60px rgba(15, 143, 132, 0.07);
}
.focus-coin {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.focus-pair {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.focus-price {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700;
  transition: color 0.25s ease;
  direction: ltr;
  unicode-bidi: isolate;
}
.focus-price.up { color: var(--up); }
.focus-price.down { color: var(--down); }
.focus-signal { margin: 0.75rem 0 0.3rem; }
.focus-bias {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0 0.5rem;
}
.focus-meters {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  text-align: right;
}
.focus-meters .mrow {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.focus-meters .mrow .num {
  font-family: var(--mono);
  color: var(--text);
  text-align: left;
  direction: ltr;
}
.focus-meters .bar {
  max-width: none;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.focus-sec-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.inds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}
.inds-grid .ind {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 251, 244, 0.75);
  min-width: 0;
  overflow: hidden;
}
.inds-grid .ind .k {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.inds-grid .ind .v {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.inds-grid .ind .v.good { color: var(--up); }
.inds-grid .ind .v.bad { color: var(--down); }
.inds-grid .ind .v.warn { color: var(--warn); }
.inds-grid .ind .v.accent { color: var(--accent); }

.focus-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.75rem 1.25rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.focus-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 251, 244, 0.85);
  padding: 0.85rem 1rem 1rem;
  min-width: 0;
  overflow: hidden;
}
.focus-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.vp-meta.compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.focus-vp {
  max-height: 240px;
  overflow: auto;
}
.vp-scenario { margin-bottom: 0.6rem; }
.vp-sc {
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--soft);
  border-right: 4px solid var(--muted);
}
.vp-sc.bullish { border-right-color: var(--up); background: rgba(31, 157, 99, 0.09); }
.vp-sc.bearish { border-right-color: var(--down); background: rgba(201, 71, 79, 0.08); }
.vp-sc.neutral { border-right-color: var(--warn); background: rgba(181, 125, 18, 0.08); }
.vp-sc-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.vp-sc-loc { font-weight: 700; font-size: 0.9rem; }
.vp-sc-conf { color: var(--muted); font-size: 0.72rem; }
.vp-sc-read { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; }
.vp-sc-act { margin: 0.25rem 0 0; font-size: 0.88rem; font-weight: 600; }
.vp-sc.bullish .vp-sc-act { color: var(--up); }
.vp-sc.bearish .vp-sc-act { color: var(--down); }
.vp-sc.neutral .vp-sc-act { color: var(--warn); }
.vp-sc-dist {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  direction: ltr;
  justify-content: flex-end;
}
.vp-playbook { margin-top: 0.7rem; }
.vp-playbook summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.82rem;
  user-select: none;
}
.vp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}
.vp-table th, .vp-table td {
  text-align: right;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.vp-table th { color: var(--muted); font-weight: 600; font-size: 0.72rem; }
.vp-table tr.active td { background: var(--soft-2); font-weight: 600; }
.vp-table tr.active.bullish td:first-child { box-shadow: inset 4px 0 0 var(--up); }
.vp-table tr.active.bearish td:first-child { box-shadow: inset 4px 0 0 var(--down); }
.vp-table tr.active.neutral td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.levels {
  display: grid;
  gap: 0.5rem;
}
.levels .lv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  min-width: 0;
}
.levels .lv span:first-child {
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.levels .lv span:last-child {
  font-family: var(--mono);
  font-weight: 600;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .focus-bottom {
    grid-template-columns: 1fr;
  }
  .vp-meta.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .coins th:nth-child(5),
  .coins td:nth-child(5),
  .coins th:nth-child(6),
  .coins td:nth-child(6) { display: none; }
  .top { flex-direction: column; }
  .vp-meta { grid-template-columns: 1fr; }
  .vp-row { grid-template-columns: 72px 1fr; }
  .inds-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Click any table → calm fullscreen reader ---- */
[data-zoom] { position: relative; cursor: zoom-in; }
.coins tbody tr { cursor: pointer; }
.zoom-chip {
  position: absolute;
  top: 0.4rem;
  left: 0.45rem;
  z-index: 3;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid rgba(15, 143, 132, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem 1.4rem;
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(222, 184, 120, 0.28), transparent 60%),
    #f4ecdf;
}
.zoom-layer[hidden] { display: none !important; }
.zoom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.zoom-bar h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
}
.zoom-hint {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.zoom-close {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
}
.zoom-close:hover { border-color: var(--accent); color: var(--accent); }
.zoom-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem 1.5rem 1.8rem;
  font-size: 1.28rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  cursor: default;
}
.zoom-body [data-zoom] { cursor: default; }
.zoom-body .zoom-chip { display: none; }
.zoom-body table { font-size: 1.2rem; width: 100%; }
.zoom-body th,
.zoom-body td {
  padding: 1.05rem 1.15rem !important;
  line-height: 1.6;
}
.zoom-body .coins th,
.zoom-body .coins td { display: table-cell !important; font-size: 1.15rem; }
.zoom-body .sym { font-size: 1.35rem; font-weight: 600; }
.zoom-body .sym small { font-size: 0.85rem; }
.zoom-body .badge { font-size: 1rem; padding: 0.35rem 0.75rem; }
.zoom-body .decision-badge { font-size: 1.8rem; }
.zoom-body .decision-structure { font-size: 1.25rem; }
.zoom-body .decision-conf,
.zoom-body .reasons li { font-size: 1.08rem; line-height: 1.7; }
.zoom-body .plan-grid .p .v,
.zoom-body .live-board .lb .v,
.zoom-body .inds-grid .ind .v,
.zoom-body .levels .lv span:last-child {
  font-size: 1.35rem;
}
.zoom-body .plan-grid .p .k,
.zoom-body .live-board .lb .k,
.zoom-body .inds-grid .ind .k {
  font-size: 0.95rem;
}
.zoom-body .events li { font-size: 1.08rem; padding: 0.7rem 0.85rem; }
.zoom-body .vp-table td,
.zoom-body .vp-table th { font-size: 1.08rem; }
.zoom-body .vp-sc-loc { font-size: 1.2rem; }
.zoom-body .vp-sc-act { font-size: 1.12rem; line-height: 1.7; }
.zoom-body .focus-hero,
.zoom-body .focus-center {
  max-width: none;
  width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.5rem 0.5rem 2rem;
}
.zoom-body .focus-coin { font-size: clamp(3.2rem, 9vw, 6rem); }
.zoom-body .focus-pair { font-size: 1.35rem; }
.zoom-body .focus-price { font-size: clamp(3rem, 8vw, 5.4rem); }
.zoom-body .focus-bias { font-size: 1.25rem; }
.zoom-body .focus-meters .mrow { font-size: 1.15rem; }
.zoom-body .chart-panel { background: transparent; border: none; box-shadow: none; }
.zoom-body .chart-head h3 { font-size: 1.35rem; }
.zoom-body .countdown,
.zoom-body .pattern-pill { font-size: 1.05rem; }
.zoom-body .price-chart {
  height: min(68vh, 760px);
  background: #fffaf2;
}
.zoom-body .chart-legend { font-size: 1rem; }
.zoom-body .events-wrap h4 { font-size: 1.15rem; }
