:root {
  color-scheme: light;
  --bg: #fff6ea;
  --panel: rgba(255, 253, 247, 0.9);
  --panel-2: rgba(250, 255, 252, 0.84);
  --cream: #fff6ea;
  --mint: #bff4e6;
  --aqua: #66e2d1;
  --teal: #0fa68e;
  --deep-teal: #005f5a;
  --ink: #0b1116;
  --gold: #d9b15b;
  --line: rgba(0, 95, 90, 0.16);
  --line-strong: rgba(15, 166, 142, 0.38);
  --muted: #5b7180;
  --text: #102334;
  --good: #079b82;
  --bad: #d84e67;
  --warn: #bf8618;
  --info: #247cb4;
  --violet: #6d5ce8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(102, 226, 209, 0.28), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(217, 177, 91, 0.18), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #f7fffb 43%, #eaf8fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 95, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 95, 90, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 48% 44%, rgba(191, 244, 230, 0.44), transparent 28%),
    linear-gradient(135deg, #fffaf1, #f4fffb 48%, #e7f8f8);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.boot-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  position: relative;
  width: min(620px, calc(100vw - 44px));
  padding: 24px 28px 28px;
  border: 1px solid rgba(15, 166, 142, 0.26);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 30px 90px rgba(0, 95, 90, 0.16);
  text-align: center;
  overflow: hidden;
}

.boot-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 90deg, transparent, rgba(15, 166, 142, 0.18), transparent 36%);
  animation: spin 3.2s linear infinite;
}

.boot-card > * {
  position: relative;
  z-index: 1;
}

.boot-team {
  width: min(340px, 70vw);
  aspect-ratio: 16 / 10;
  margin: 0 auto 12px;
  border-radius: 24px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background:
    radial-gradient(circle at 50% 68%, rgba(191, 244, 230, 0.46), transparent 55%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(243, 255, 252, 0.86));
  box-shadow: 0 18px 46px rgba(15, 166, 142, 0.16);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.boot-team img {
  width: 118%;
  height: 118%;
  object-fit: contain;
  object-position: center 58%;
}

.boot-coin {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 999px;
  opacity: 0.32;
  filter: saturate(0.88);
}

.boot-card p {
  margin-bottom: 8px;
  color: var(--deep-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.boot-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.boot-card span {
  color: var(--muted);
  font-weight: 700;
}

.boot-orbit {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 22px 0 16px;
}

.boot-orbit i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
  animation: pulse 1.1s ease-in-out infinite;
}

.boot-orbit i:nth-child(2) {
  animation-delay: 0.16s;
  background: var(--gold);
}

.boot-orbit i:nth-child(3) {
  animation-delay: 0.32s;
}

.boot-progress {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 166, 142, 0.12);
}

.boot-progress b {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  animation: loadSweep 1.45s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-7px); opacity: 1; }
}

@keyframes loadSweep {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(250%); }
}

button {
  min-height: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  color: var(--text);
  border-radius: 9px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 750;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 58px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 255, 252, 0.9), rgba(235, 249, 248, 0.84));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 8px;
}

.user-entry {
  width: 44px;
  min-height: 58px;
  padding: 3px;
  display: grid;
  justify-items: center;
  gap: 3px;
  border-radius: 14px;
  border-color: rgba(15, 166, 142, 0.34);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(191, 244, 230, 0.62));
  box-shadow: 0 12px 28px rgba(15, 166, 142, 0.18);
}

.user-entry img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.74), 0 8px 18px rgba(0, 95, 90, 0.14);
}

.user-entry span {
  max-width: 38px;
  overflow: hidden;
  color: var(--deep-teal);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-logged-in .user-entry {
  border-color: rgba(217, 177, 91, 0.52);
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.98), rgba(191, 244, 230, 0.74));
}

.rail nav {
  display: grid;
  gap: 8px;
}

.rail nav button {
  width: 38px;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
  border-color: rgba(142, 160, 184, 0.2);
}

.rail nav button.active {
  border-color: var(--good);
  color: var(--good);
  background: rgba(191, 244, 230, 0.34);
  box-shadow: inset 0 0 18px rgba(36, 226, 173, 0.16);
}

.rail-pay {
  margin-top: auto;
  width: 42px;
  min-height: 28px;
  padding: 0;
  border-color: rgba(216, 173, 85, 0.46);
  color: var(--warn);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.shell {
  position: relative;
  margin-left: 58px;
  min-height: 100vh;
  padding: 14px 18px 16px;
  max-width: calc(100vw - 58px);
}

.hero,
.market-card,
.chart-panel,
.signal-panel,
.execution-panel,
.scenario-panel,
.feed-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 95, 90, 0.07);
}

.hero {
  min-height: 94px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.9) 34%, rgba(255, 253, 247, 0.36) 56%, rgba(255, 253, 247, 0) 100%),
    url("/assets/mrj-dashboard-banner.png");
  background-size: cover;
  background-position: calc(100% + 90px) 47%;
  position: relative;
  isolation: isolate;
}

.hero::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 240px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 166, 142, 0.06);
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 950;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero section {
  position: relative;
  z-index: 1;
}

.hero section:first-child {
  flex: 0 0 clamp(300px, 30vw, 500px);
  max-width: 500px;
  padding: 0;
  background: none;
  backdrop-filter: none;
}

.hero .eyebrow {
  color: var(--deep-teal);
}

.hero h1 {
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero,
.time-card,
.ticker-card,
.refresh-card,
.macro-head,
.macro-card,
.market-card,
.chart-panel,
.signal-panel,
.execution-panel,
.scenario-panel,
.feed-panel {
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--deep-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.08;
}

.mobile-title,
.mobile-focus {
  display: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.35vw, 32px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: #395869;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.hero-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.hero-tags span {
  border: 1px solid rgba(15, 166, 142, 0.28);
  background: rgba(191, 244, 230, 0.45);
  color: var(--deep-teal);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 850;
}

.trade-tip-card {
  position: relative;
  flex: 0 0 clamp(300px, 24vw, 410px);
  max-width: 410px;
  min-width: 260px;
  margin-left: clamp(-22px, -1.4vw, -8px);
  margin-right: auto;
  min-height: 78px;
  padding: 10px 84px 10px 14px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 244, 230, 0.42), transparent 48%),
    rgba(255, 253, 247, 0.64);
  box-shadow: 0 16px 36px rgba(0, 95, 90, 0.08);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}

.trade-tip-card.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.trade-tip-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--deep-teal);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.trade-tip-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(13px, 1vw, 16px);
}

.trade-tip-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.trade-tip-bot {
  position: absolute;
  right: 6px;
  bottom: -15px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 95, 90, 0.12));
}

.top-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 124px;
  justify-content: flex-end;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.62);
  backdrop-filter: blur(8px);
}

.sync-dot {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.sync-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(12, 167, 127, 0.1);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 7px;
  margin: 8px 0;
}

.freshness-bar {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 7px;
  margin: 8px 0 0;
}

.time-card,
.ticker-card,
.refresh-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  border-radius: 10px;
  padding: 6px 9px;
}

.time-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-card section {
  min-width: 0;
}

.freshness-bar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.freshness-bar strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.ticker-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.ticker-card span {
  margin: 0;
  font-weight: 850;
  color: var(--deep-teal);
}

.ticker-window {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 94%, transparent 100%);
}

.ticker-window strong {
  display: inline-block;
  padding-left: 100%;
  color: var(--text);
  font-size: 13px;
  animation: ticker-scroll 28s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.refresh-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 4px;
}

.refresh-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.refresh-card span,
.refresh-card strong {
  margin: 0;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 95, 90, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 95, 90, 0.06);
}

.progress-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--teal), var(--aqua), var(--gold));
  box-shadow: 0 0 18px rgba(15, 166, 142, 0.36);
  transition: width 0.4s ease;
}

.refresh-card small {
  color: var(--muted);
  font-size: 10px;
}

.macro-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 7px;
  margin: 7px 0 0;
}

.macro-head,
.macro-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  border-radius: 10px;
}

.macro-head {
  padding: 7px 9px;
}

.macro-head span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}

.macro-head strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.macro-head strong.good {
  color: var(--good);
}

.macro-head strong.warn {
  color: var(--warn);
}

.macro-head strong.neutral {
  color: var(--text);
}

.macro-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.macro-card {
  min-width: 0;
  padding: 7px 8px;
  position: relative;
  overflow: hidden;
}

.macro-card.good {
  border-color: rgba(15, 166, 142, 0.34);
}

.macro-card.warn {
  border-color: rgba(217, 177, 91, 0.42);
}

.macro-card.waiting {
  border-style: dashed;
  opacity: 0.88;
}

.macro-card.oil {
  border-color: rgba(15, 166, 142, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(240, 255, 250, 0.82)),
    rgba(255, 253, 247, 0.78);
  box-shadow: inset 3px 0 0 rgba(15, 166, 142, 0.38);
}

.macro-card.oil i {
  background: rgba(217, 177, 91, 0.16);
  color: var(--gold);
}

.macro-card div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.macro-card i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(191, 244, 230, 0.58);
  color: var(--good);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.macro-card strong,
.macro-card b {
  display: inline-block;
  margin-top: 5px;
  font-size: 13px;
}

.macro-card.waiting strong {
  color: var(--muted);
  font-size: 11px;
}

.macro-card b {
  float: right;
}

.macro-card p {
  clear: both;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macro-periods {
  clear: both;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px !important;
  margin-top: 5px;
}

.macro-periods em {
  min-width: 0;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(238, 250, 248, 0.78);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.macro-periods em.up {
  color: var(--good);
}

.macro-periods em.down {
  color: var(--bad);
}

.market-card {
  padding: 8px 9px;
  min-height: 112px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.market-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 166, 142, 0.32);
  box-shadow: 0 16px 34px rgba(0, 95, 90, 0.11);
}

.market-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
}

.market-card strong {
  display: block;
  margin: 4px 0 2px;
  font-size: clamp(17px, 1.2vw, 20px);
}

.market-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.live-price {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.live-price.tick-up {
  color: var(--good);
  text-shadow: 0 0 16px rgba(40, 216, 166, 0.26);
}

.live-price.tick-down {
  color: var(--bad);
  text-shadow: 0 0 16px rgba(230, 95, 115, 0.24);
}

.mini-chart-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.mini-chart-tabs button {
  min-height: 18px;
  padding: 0 4px;
  border-radius: 7px;
  border-color: rgba(116, 142, 170, 0.18);
  background: rgba(238, 250, 248, 0.76);
  color: var(--muted);
  font-size: 9px;
}

.trend-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(116, 142, 170, 0.15);
  border-radius: 7px;
  background: rgba(238, 250, 248, 0.76);
  font-size: 10px;
}

.trend-line span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.trend-line b {
  max-width: 48%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
}

.trend-line b.locked-text {
  color: var(--warn);
}

.trend-line.up b {
  color: var(--good);
}

.trend-line.down b {
  color: var(--bad);
}

.trend-line.warn b {
  color: var(--warn);
}

.trend-line.neutral b {
  color: var(--text);
}

.period-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-top: 5px;
}

.period-row span {
  min-width: 0;
  padding: 3px 2px;
  border-radius: 6px;
  background: rgba(0, 95, 90, 0.06);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  white-space: nowrap;
}

.mini-chart-tabs button:hover {
  border-color: rgba(40, 216, 166, 0.52);
  color: var(--good);
}

.up {
  color: var(--good);
}

.down {
  color: var(--bad);
}

.chart-panel {
  padding: 7px 9px;
  margin-bottom: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.92), rgba(241, 255, 251, 0.88));
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}

.chart-toolbar h3 {
  margin-bottom: 0;
}

.chart-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 255, 252, 0.76);
}

.segmented button {
  min-height: 28px;
  border-color: transparent;
  padding: 0 9px;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: rgba(191, 244, 230, 0.7);
  border-color: rgba(15, 166, 142, 0.5);
  color: var(--good);
}

.primary-action {
  border-color: rgba(15, 166, 142, 0.54);
  color: var(--good);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.65), rgba(255, 246, 234, 0.8));
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 32, 35, 0.62);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: absolute;
  inset: 34px;
  border: 1px solid var(--line-strong);
  background: #fffdf7;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
}

.compact-modal {
  inset: 56px auto 56px 50%;
  width: min(680px, calc(100vw - 48px));
  transform: translateX(-50%);
}

.member-modal {
  inset: 72px auto auto 50%;
  width: min(980px, calc(100vw - 110px));
  max-height: calc(100vh - 120px);
  transform: translateX(-50%);
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin-bottom: 0;
}

.tradingview-chart {
  width: 100%;
  height: calc(100% - 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080d14;
}

.chart-error {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.member-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 12px;
}

.login-card,
.pay-card,
.plan-card,
.payment-note,
.wallet-box,
.payment-submit {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 12px;
}

.login-card,
.pay-card {
  padding: 14px;
}

.member-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.member-status span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(142, 160, 184, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.member-status span.active {
  background: rgba(191, 244, 230, 0.62);
  color: var(--good);
}

.member-status button {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.member-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 166, 142, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 244, 230, 0.42), transparent 62%),
    rgba(255, 253, 247, 0.68);
}

.member-profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 95, 90, 0.12);
}

.member-profile strong,
.member-profile span {
  display: block;
}

.member-profile strong {
  color: var(--text);
  font-size: 14px;
}

.member-profile span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.login-card h4,
.pay-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.login-card p,
.payment-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.login-card label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.login-card input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.login-card button {
  width: 100%;
  margin-top: 12px;
}

.member-status button {
  width: auto;
  margin-top: 0;
}

#memberLoginStatus {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.owner-tools {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed rgba(15, 166, 142, 0.32);
  border-radius: 12px;
  background: rgba(245, 255, 252, 0.72);
}

.owner-tools strong {
  display: block;
  color: var(--deep-teal);
  font-size: 12px;
}

.owner-tools p {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.owner-tools div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.owner-tools button {
  margin-top: 0;
  min-height: 30px;
  font-size: 11px;
}

.pay-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pay-head span {
  color: var(--muted);
  font-size: 11px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.plan-card {
  padding: 10px;
}

.plan-card.featured {
  border-color: rgba(40, 216, 166, 0.55);
  box-shadow: inset 0 0 18px rgba(40, 216, 166, 0.08);
}

.plan-card.selected {
  border-color: rgba(15, 166, 142, 0.72);
  background:
    linear-gradient(135deg, rgba(191, 244, 230, 0.46), rgba(255, 253, 247, 0.96));
  box-shadow: 0 10px 24px rgba(0, 95, 90, 0.1);
}

.plan-card span {
  color: var(--good);
  font-size: 10px;
}

.plan-card strong,
.plan-card b {
  display: block;
}

.plan-card strong {
  margin-top: 5px;
  font-size: 13px;
}

.plan-card b {
  margin-top: 8px;
  font-size: 20px;
}

.plan-card p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.plan-card button {
  width: 100%;
}

.wallet-box {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 244, 230, 0.46), transparent 58%),
    rgba(255, 253, 247, 0.82);
}

.wallet-qr {
  display: grid;
  place-items: center;
  min-height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 166, 142, 0.16);
}

.wallet-qr img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: 50% 24%;
}

.wallet-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.wallet-detail span,
.payment-submit span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.wallet-detail strong,
.payment-submit strong {
  color: var(--text);
  font-size: 15px;
}

.wallet-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 9px;
  background: rgba(234, 248, 246, 0.8);
  border: 1px solid rgba(15, 166, 142, 0.18);
}

.wallet-address code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: inherit;
  color: var(--deep-teal);
  font-weight: 900;
  font-size: 12px;
}

.wallet-address button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.wallet-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.payment-submit {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
}

.payment-submit div,
.payment-submit label {
  display: grid;
  gap: 6px;
}

.payment-submit label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.payment-submit input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.payment-submit button {
  min-height: 34px;
  padding: 0 14px;
}

.payment-note {
  margin-top: 10px;
  padding: 10px;
}

.payment-note strong {
  font-size: 12px;
}

.vip-zone {
  position: relative;
}

.vip-lock {
  display: none;
}

.guest-mode .vip-zone > :not(.vip-lock) {
  display: none;
}

.guest-mode .signal-layout,
.guest-mode .strategy-grid {
  display: block;
  min-height: 0;
}

.guest-mode .signal-layout {
  margin-top: 8px;
}

.guest-mode .mobile-focus {
  display: none;
}

.guest-mode .vip-lock {
  position: relative;
  inset: auto;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  min-height: clamp(138px, 17vh, 196px);
  padding: 18px 24px;
  border: 1px solid rgba(15, 166, 142, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 244, 230, 0.52), transparent 54%),
    rgba(255, 253, 247, 0.86);
  box-shadow: 0 18px 60px rgba(0, 95, 90, 0.14);
  text-align: center;
  backdrop-filter: blur(14px);
}

.guest-mode .strategy-grid .vip-lock {
  min-height: clamp(108px, 12vh, 150px);
}

.vip-lock span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.vip-lock strong {
  max-width: 560px;
  color: var(--text);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.25;
}

.vip-lock p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.vip-lock button {
  min-height: 34px;
  margin-top: 4px;
  border-color: rgba(15, 166, 142, 0.44);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.95), rgba(255, 246, 234, 0.92));
  color: var(--deep-teal);
  box-shadow: 0 12px 28px rgba(15, 166, 142, 0.16);
}

.info-content {
  display: grid;
  gap: 12px;
}

.info-content article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(250, 255, 252, 0.78);
}

.info-content strong {
  display: block;
  margin-bottom: 6px;
}

.info-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-modal {
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(191, 244, 230, 0.55), rgba(255, 246, 234, 0) 52%),
    radial-gradient(circle at 88% 14%, rgba(15, 166, 142, 0.18), rgba(255, 255, 255, 0) 56%),
    #fffdf7;
}

.info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 166, 142, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(250, 255, 252, 0.86), rgba(255, 246, 234, 0.78));
  overflow: hidden;
  position: relative;
}

.info-hero::after {
  content: "";
  position: absolute;
  inset: -60px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 155, 27, 0.16), rgba(217, 155, 27, 0) 62%);
  transform: rotate(18deg);
  pointer-events: none;
}

.info-kicker {
  margin: 0 0 6px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(7, 32, 35, 0.72);
}

.info-headline {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  color: var(--deep-teal);
}

.info-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.info-subtitle b {
  color: rgba(7, 32, 35, 0.84);
  font-weight: 900;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.info-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 850;
  color: rgba(7, 32, 35, 0.72);
}

.info-card {
  align-self: stretch;
  padding: 12px;
  border: 1px solid rgba(142, 160, 184, 0.26);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 10px;
  position: relative;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.info-card-row div {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 166, 142, 0.14);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.55), rgba(255, 246, 234, 0.52));
}

.info-card-row b {
  display: block;
  font-weight: 950;
  color: rgba(7, 32, 35, 0.82);
}

.info-card-row span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.info-card small {
  color: var(--muted);
  line-height: 1.5;
}

.info-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(7, 32, 35, 0.72);
  line-height: 1.7;
  font-size: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 255, 252, 0.78);
}

.info-block h5 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.info-block p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.info-metrics {
  display: grid;
  gap: 8px;
}

.info-metrics div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(142, 160, 184, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.info-metrics b {
  font-size: 12px;
  font-weight: 950;
  color: rgba(7, 32, 35, 0.78);
}

.info-metrics span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.info-note {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 166, 142, 0.26);
  background: rgba(191, 244, 230, 0.26);
  color: rgba(7, 32, 35, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.info-spark {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.36), rgba(255, 246, 234, 0.42));
}

.spark-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 166, 142, 0.1), rgba(15, 166, 142, 0.6), rgba(217, 155, 27, 0.5), rgba(217, 155, 27, 0.1));
  border-radius: 999px;
  margin-bottom: 10px;
}

.spark-kv {
  display: grid;
  gap: 8px;
}

.spark-kv div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.spark-kv b {
  font-size: 12px;
  font-weight: 950;
  color: rgba(7, 32, 35, 0.78);
}

.spark-kv span {
  font-size: 12px;
  color: var(--muted);
}

.info-fineprint {
  display: block;
  margin-top: 10px;
  color: rgba(7, 32, 35, 0.58);
  line-height: 1.6;
  font-size: 11px;
}

.info-diagram {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(142, 160, 184, 0.22);
  background: rgba(255, 255, 255, 0.66);
  position: relative;
  overflow: hidden;
}

.info-diagram-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.info-diagram-head h5 {
  margin: 0;
  font-size: 14px;
}

.info-diagram-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 320px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.flow-node {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: linear-gradient(135deg, rgba(250, 255, 252, 0.88), rgba(255, 246, 234, 0.68));
  display: grid;
  gap: 6px;
  min-height: 88px;
}

.flow-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(217, 155, 27, 0.35);
  color: rgba(7, 32, 35, 0.76);
  font-weight: 950;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-node strong {
  font-size: 13px;
  font-weight: 950;
}

.flow-node span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.flow-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 166, 142, 0.1), rgba(15, 166, 142, 0.55), rgba(217, 155, 27, 0.5), rgba(217, 155, 27, 0.08));
  border-radius: 999px;
}

.info-orbit {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 10px auto 0;
  color: rgba(7, 32, 35, 0.68);
}

.info-orbit text {
  font-size: 12px;
  font-weight: 900;
  fill: rgba(7, 32, 35, 0.62);
  letter-spacing: 0.1em;
}

.info-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-foot-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(250, 255, 252, 0.78);
}

.info-foot-card h5 {
  margin: 0 0 8px;
  font-size: 14px;
}

.info-foot-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
}

.info-foot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
}

.info-foot-card.accent {
  border-color: rgba(15, 166, 142, 0.22);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.55), rgba(255, 246, 234, 0.72));
}

.info-foot-card .primary-action {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .info-hero {
    grid-template-columns: 1fr;
  }
  .info-card-row {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-line {
    height: 1px;
  }
  .info-foot {
    grid-template-columns: 1fr;
  }
}

.about-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(191, 244, 230, 0.46), rgba(255, 246, 234, 0) 46%),
    radial-gradient(circle at 78% 80%, rgba(217, 177, 91, 0.1), rgba(255, 255, 255, 0) 42%),
    #fffdf7;
  min-height: 100vh;
}

.about-page::before {
  display: none;
}

.about-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(15, 54, 56, 0.12);
  background: rgba(255, 253, 247, 0.78);
  backdrop-filter: blur(12px);
}

.about-back,
.about-cta {
  color: rgba(7, 32, 35, 0.78);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-back span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 166, 142, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.about-cta {
  justify-self: end;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 166, 142, 0.2);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.65), rgba(255, 246, 234, 0.75));
}

.about-brand {
  display: grid;
  place-items: center;
  gap: 3px;
}

.about-mark {
  font-weight: 950;
  letter-spacing: 0.14em;
  color: rgba(7, 32, 35, 0.9);
}

.about-submark {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(7, 32, 35, 0.5);
}

.about-shell {
  width: min(1120px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.about-hero {
  min-height: 500px;
  border: 1px solid rgba(142, 160, 184, 0.22);
  background: rgba(255, 253, 247, 0.86);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 72px rgba(0, 95, 90, 0.08);
}

.about-eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(7, 32, 35, 0.62);
}

.about-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: 0;
  line-height: 1.06;
  color: rgba(7, 32, 35, 0.9);
}

.about-title span {
  display: block;
}

.about-title-accent {
  margin-top: 6px;
  font-weight: 950;
  color: rgba(15, 166, 142, 0.92);
}

.about-lead {
  margin: 0;
  color: rgba(7, 32, 35, 0.68);
  line-height: 1.8;
  font-size: 16px;
  max-width: 56ch;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-cta-big {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 166, 142, 0.2);
  background: linear-gradient(135deg, rgba(243, 255, 252, 0.96), rgba(255, 249, 238, 0.92));
  box-shadow: 0 14px 34px rgba(15, 166, 142, 0.11);
  text-decoration: none;
  color: rgba(7, 32, 35, 0.86);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.about-cta-big:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 166, 142, 0.14);
}

.about-cta-big__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.about-cta-big__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(7, 32, 35, 0.1));
}

.about-cta-big__text {
  display: grid;
  gap: 2px;
}

.about-cta-big__text b {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.2;
}

.about-cta-big__text small {
  font-size: 12px;
  color: rgba(7, 32, 35, 0.56);
  line-height: 1.4;
}

.about-cta-big__arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: rgba(15, 166, 142, 0.1);
  color: rgba(15, 166, 142, 0.92);
  font-weight: 950;
}

.about-team-visual {
  min-height: 410px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 58%, rgba(191, 244, 230, 0.44), transparent 56%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(243, 255, 252, 0.56));
}

.about-team-visual img {
  width: min(520px, 105%);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 95, 90, 0.14));
}

.about-section {
  position: relative;
  margin-top: 26px;
  border-radius: 22px;
  border: 1px solid rgba(142, 160, 184, 0.22);
  background: rgba(255, 253, 247, 0.72);
  padding: clamp(22px, 2.5vw, 32px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.about-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: end;
}

.about-section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
  color: rgba(7, 32, 35, 0.9);
}

.about-section-head p {
  margin: 0;
  color: rgba(7, 32, 35, 0.62);
  line-height: 1.7;
  font-size: 13px;
  max-width: 48ch;
  justify-self: end;
}

.about-h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-h2-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.about-h2-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.about-key {
  color: rgba(15, 166, 142, 0.92);
  font-weight: 950;
}

.about-mini-icon {
  display: none;
}

.about-mission-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-mission-grid article,
.about-card,
.about-flow-node {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(142, 160, 184, 0.2);
  background: rgba(255, 255, 255, 0.66);
  padding: 20px;
}

.about-mission-grid article::after,
.about-card::after,
.about-flow-node::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  background: url("/assets/mrj-j-coin-cutout.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.about-mission-grid h3,
.about-card h3,
.about-flow-node h3 {
  margin: 0 0 8px;
  color: rgba(7, 32, 35, 0.86);
  font-size: 15px;
  letter-spacing: 0;
}

.about-mission-grid p,
.about-card p,
.about-flow-node p {
  margin: 0;
  color: rgba(7, 32, 35, 0.62);
  line-height: 1.7;
  font-size: 13px;
}

.about-deliver-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.about-chip-row span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: rgba(191, 244, 230, 0.22);
  color: rgba(7, 32, 35, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.about-flow {
  position: relative;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 76px 1fr 76px 1fr;
  gap: 10px;
  align-items: center;
}

.about-guide-bot {
  position: absolute;
  right: 22px;
  bottom: -10px;
  z-index: 1;
  width: 126px;
  opacity: 0.2;
  pointer-events: none;
}

.about-flow-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 155, 27, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(7, 32, 35, 0.78);
  font-weight: 950;
  font-size: 11px;
}

.about-flow-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 166, 142, 0.14), rgba(15, 166, 142, 0.6), rgba(217, 155, 27, 0.58), rgba(217, 155, 27, 0.12));
}

.about-principle-note {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(15, 166, 142, 0.18);
  background: rgba(255, 255, 255, 0.68);
  padding: 18px;
}

.about-principle-note span,
.about-principle-note img {
  width: 36px;
  height: 36px;
}

.about-principle-note img {
  object-fit: contain;
}

.about-principle-note p {
  margin: 0;
  color: rgba(7, 32, 35, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }
  .about-team-visual {
    min-height: 300px;
  }
  .about-guide-bot {
    display: none;
  }
  .about-section-head {
    grid-template-columns: 1fr;
  }
  .about-section-head p {
    justify-self: start;
    max-width: none;
  }
  .about-mission-grid,
  .about-deliver-grid {
    grid-template-columns: 1fr;
  }
  .about-flow {
    grid-template-columns: 1fr;
  }
  .about-flow-line {
    height: 1px;
  }
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.7fr);
  gap: 8px;
}

.signal-panel,
.execution-panel,
.scenario-panel,
.feed-panel {
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(243, 255, 252, 0.9));
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.signal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-kicker-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.signal-kicker-row .eyebrow {
  margin-bottom: 0;
}

.signal-kicker-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.signal-kicker-row b {
  color: var(--text);
}

.signal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.signal-title-row h2 {
  margin-bottom: 0;
}

.signal-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(15, 166, 142, 0.28);
  border-radius: 999px;
  background: rgba(191, 244, 230, 0.4);
  color: var(--deep-teal);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.signal-countdown-pill b {
  color: var(--good);
}

.compact-tabs {
  padding: 2px;
}

.compact-tabs button {
  min-height: 24px;
  padding: 0 10px;
  font-size: 11px;
}

.panel-head.compact {
  align-items: center;
  margin-bottom: 8px;
}

.panel-head.compact span {
  color: var(--muted);
  font-size: 11px;
}

.badge {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 253, 247, 0.7);
  cursor: help;
}

.badge.good {
  border-color: rgba(36, 226, 173, 0.5);
  color: var(--good);
}

.badge.warn {
  border-color: rgba(255, 209, 102, 0.55);
  color: var(--warn);
}

.badge.bad {
  border-color: rgba(255, 93, 115, 0.6);
  color: var(--bad);
}

.badge.neutral {
  color: var(--muted);
}

.decision-summary {
  margin: 8px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  max-height: 50px;
  overflow: hidden;
}

.score-row,
.execution-grid,
.action-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.execution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-row div,
.action-brief article,
.execution-grid article,
.scenario-card,
.push-item {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
}

.score-row div,
.action-brief article,
.execution-grid article {
  padding: 7px 8px;
}

.signal-chip {
  position: relative;
  overflow: hidden;
}

.signal-chip::before,
.exec-card::before,
.score-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: 0.85;
}

.signal-chip::after,
.exec-card::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  opacity: 0.12;
  pointer-events: none;
}

.signal-chip.long::after,
.signal-chip.standard::after,
.long-card::after {
  content: "↗";
  color: var(--good);
}

.signal-chip.short::after,
.short-card::after {
  content: "↘";
  color: var(--bad);
}

.signal-chip.warn::after,
.signal-chip.aggressive::after,
.target-card::after {
  content: "◎";
  color: var(--warn);
}

.signal-chip.wait::after,
.signal-chip.conservative::after,
.risk-card::after {
  content: "⏸";
  color: var(--info);
}

.signal-chip span,
.exec-card span,
.score-card span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-chip i,
.exec-card i,
.score-card i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.signal-chip.long,
.signal-chip.standard,
.long-card,
.score-long {
  border-color: rgba(15, 166, 142, 0.42);
  background: linear-gradient(135deg, rgba(191, 244, 230, 0.58), rgba(250, 255, 252, 0.94) 48%);
}

.signal-chip.long::before,
.signal-chip.standard::before,
.long-card::before,
.score-long::before {
  background: var(--good);
}

.signal-chip.long i,
.signal-chip.standard i,
.long-card i,
.score-long i {
  color: #fffdf7;
  background: var(--good);
}

.signal-chip.short,
.short-card,
.score-short {
  border-color: rgba(230, 95, 115, 0.42);
  background: linear-gradient(135deg, rgba(216, 78, 103, 0.12), rgba(250, 255, 252, 0.94) 48%);
}

.signal-chip.short::before,
.short-card::before,
.score-short::before {
  background: var(--bad);
}

.signal-chip.short i,
.short-card i,
.score-short i {
  color: #fffdf7;
  background: var(--bad);
}

.signal-chip.warn,
.signal-chip.aggressive,
.target-card {
  border-color: rgba(217, 177, 91, 0.52);
  background: linear-gradient(135deg, rgba(217, 177, 91, 0.18), rgba(250, 255, 252, 0.94) 48%);
}

.signal-chip.warn::before,
.signal-chip.aggressive::before,
.target-card::before {
  background: var(--warn);
}

.signal-chip.warn i,
.signal-chip.aggressive i,
.target-card i {
  color: #fffdf7;
  background: var(--warn);
}

.signal-chip.wait,
.signal-chip.conservative,
.risk-card {
  border-color: rgba(114, 167, 216, 0.34);
  background: linear-gradient(135deg, rgba(47, 128, 189, 0.1), rgba(250, 255, 252, 0.94) 48%);
}

.signal-chip.wait::before,
.signal-chip.conservative::before,
.risk-card::before {
  background: var(--info);
}

.signal-chip.wait i,
.signal-chip.conservative i,
.risk-card i {
  color: #fffdf7;
  background: var(--info);
}

.score-row span,
.action-brief span,
.execution-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 900;
}

.score-row strong,
.action-brief strong,
.execution-grid strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.28;
}

.help-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(47, 128, 189, 0.22);
  background: rgba(47, 128, 189, 0.08);
  color: var(--info);
  font-size: 10px;
  font-weight: 900;
  cursor: help;
}

.help-dot::after,
.badge[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 8px);
  width: 230px;
  padding: 8px 9px;
  border: 1px solid rgba(15, 166, 142, 0.24);
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 12px 28px rgba(16, 45, 55, 0.14);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.help-dot::after {
  left: 50%;
  transform: translate(-50%, 4px);
}

.badge[data-tip]::after {
  right: 0;
}

.help-dot:hover::after,
.help-dot:focus-visible::after,
.badge[data-tip]:hover::after {
  opacity: 1;
}

.help-dot:hover::after,
.help-dot:focus-visible::after {
  transform: translate(-50%, 0);
}

.badge[data-tip]:hover::after {
  transform: translateY(0);
}

.score-card {
  position: relative;
  overflow: visible;
}

.exec-card {
  position: relative;
  min-height: 66px;
}

.exec-card strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.34;
}

.exec-lines {
  display: grid;
  gap: 5px;
}

.execution-grid strong .exec-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
}

.execution-grid strong .entry-lines .exec-line {
  grid-template-columns: 24px minmax(0, 1fr);
}

.exec-label {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.exec-values {
  min-width: 0;
}

.exec-note {
  display: block;
  padding-left: 31px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.signal-chip strong {
  position: relative;
  z-index: 1;
  font-size: 15px;
}

.score-long strong {
  color: var(--good);
}

.score-short strong {
  color: var(--bad);
}

.hl-long,
.hl-short,
.hl-warn,
.hl-number {
  font-style: normal;
  font-weight: 850;
}

.hl-long {
  color: var(--good);
  text-shadow: 0 0 14px rgba(40, 216, 166, 0.18);
}

.hl-short {
  color: var(--bad);
  text-shadow: 0 0 14px rgba(230, 95, 115, 0.18);
}

.hl-warn {
  color: var(--warn);
  text-shadow: 0 0 14px rgba(216, 173, 85, 0.14);
}

.hl-number {
  color: #142232;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(191, 244, 230, 0.42);
  box-shadow: inset 0 0 0 1px rgba(15, 166, 142, 0.12);
}

.action-brief {
  margin-top: 9px;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 255, 252, 0.76);
}

.profile-tabs button {
  min-height: 24px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.profile-tabs button.active {
  border-color: rgba(15, 166, 142, 0.45);
  background: rgba(191, 244, 230, 0.65);
  color: var(--good);
}

.strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 8px;
  margin-top: 8px;
}

.scenario-panel {
  position: relative;
  padding-top: 26px;
}

.scenario-time {
  position: absolute;
  right: 12px;
  top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.scenario-card {
  padding: 10px 10px 9px;
  min-height: 88px;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.scenario-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 95, 90, 0.08);
}

.scenario-card strong {
  display: block;
  color: var(--text);
  line-height: 1.24;
  font-size: 15px;
  margin-top: 6px;
}

.scenario-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.22;
  max-height: 24px;
  overflow: hidden;
}

.scenario-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scenario-head i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fffdf7;
  background: var(--info);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 95, 90, 0.13);
}

.scenario-head span {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

.scenario-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.scenario-levels b {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border-radius: 7px;
  padding: 1px 6px;
  background: rgba(191, 244, 230, 0.46);
  color: var(--deep-teal);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(15, 166, 142, 0.12);
}

.scenario-card::after {
  display: none;
}

.scenario-card.long_profit .scenario-head i,
.scenario-card.no_position .scenario-head i,
.scenario-card.new_signal .scenario-head i {
  background: var(--good);
}

.scenario-card.short_profit .scenario-head i {
  background: var(--bad);
}

.scenario-card.long_loss .scenario-head i,
.scenario-card.short_loss .scenario-head i {
  background: var(--warn);
}

.scenario-card.long_profit,
.scenario-card.no_position,
.scenario-card.new_signal {
  border-color: rgba(15, 166, 142, 0.32);
}

.scenario-card.short_profit {
  border-color: rgba(216, 78, 103, 0.26);
}

.scenario-card.long_loss,
.scenario-card.short_loss {
  border-color: rgba(217, 177, 91, 0.36);
}

.scenario-card.long_profit strong,
.scenario-card.no_position strong,
.scenario-card.new_signal strong {
  color: var(--good);
}

.scenario-card.short_profit strong {
  color: var(--bad);
}

.scenario-card.long_loss strong,
.scenario-card.short_loss strong {
  color: var(--warn);
}

.scenario-card.long_loss .scenario-levels b,
.scenario-card.short_loss .scenario-levels b {
  background: rgba(217, 177, 91, 0.18);
  color: var(--warn);
}

.scenario-card.short_profit .scenario-levels b {
  background: rgba(216, 78, 103, 0.1);
  color: var(--bad);
}

.scenario-card.good {
  border-color: rgba(36, 226, 173, 0.32);
}

.scenario-card.warn {
  border-color: rgba(255, 209, 102, 0.34);
}

.push-feed {
  display: grid;
  gap: 8px;
}

.detail-actions {
  display: grid;
  gap: 8px;
}

.detail-actions button {
  width: 100%;
  justify-content: center;
}

.push-item {
  padding: 9px;
}

.push-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.push-title span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.push-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  max-height: 100px;
  overflow: hidden;
}

.empty {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .trade-tip-card {
    display: none;
  }

  .market-strip {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }

  .freshness-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .time-card,
  .ticker-card,
  .refresh-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
  }

  .time-card {
    display: grid;
  }

  .ticker-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .refresh-card {
    display: grid;
  }

  .freshness-bar span,
  .freshness-bar strong {
    margin: 0;
    font-size: 12px;
  }

  .signal-layout,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .market-strip {
    grid-template-columns: repeat(6, minmax(118px, 1fr));
  }

  .macro-panel {
    grid-template-columns: 170px minmax(0, 1fr) !important;
  }

  .macro-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shell {
    overflow: hidden !important;
  }
}

@media (min-width: 1501px) and (max-width: 1780px) {
  .market-strip {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
  }
}

@media (min-width: 1181px) {
  .shell {
    height: 100vh;
    overflow: hidden;
    padding: 10px 14px 10px;
  }

  .hero {
    min-height: 92px;
    padding: 10px 16px;
    background-position: calc(100% + 72px) 47%;
  }

  h1 {
    font-size: clamp(22px, 2vw, 32px);
    margin-bottom: 2px;
  }

  .hero-copy {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-tags {
    margin-top: 6px;
  }

  .hero-tags span {
    padding: 2px 7px;
    font-size: 9px;
  }

  .trade-tip-card {
    flex-basis: clamp(280px, 24vw, 360px);
    max-width: 360px;
    min-width: 240px;
    margin-left: clamp(-18px, -1vw, -6px);
    margin-right: auto;
    padding: 8px 74px 8px 12px;
  }

  .trade-tip-bot {
    right: 2px;
    bottom: -13px;
    width: 78px;
    height: 78px;
  }

  .trade-tip-card p {
    max-height: 32px;
    overflow: hidden;
  }

  .top-actions {
    margin-right: 4px;
  }

  .freshness-bar {
    margin-top: 6px;
  }

  .time-card,
  .ticker-card,
  .refresh-card {
    padding: 4px 8px;
  }

  .freshness-bar span {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .freshness-bar strong {
    font-size: 12px;
  }

  .ticker-window strong {
    font-size: 12px;
  }

  .refresh-card small {
    font-size: 9px;
  }

  .market-strip {
    gap: 7px;
    margin: 5px 0;
  }

  .macro-panel {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 6px;
    margin-top: 5px;
  }

  .macro-head,
  .macro-card {
    padding: 5px 7px;
  }

  .macro-head strong {
    font-size: 11px;
  }

  .macro-card strong,
  .macro-card b {
    margin-top: 2px;
    font-size: 11px;
  }

  .macro-card p {
    display: none;
  }

  .macro-card div {
    font-size: 10px;
  }

  .macro-card i {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .market-card {
    min-height: 100px;
    padding: 6px 7px;
  }

  .market-card strong {
    margin: 3px 0 1px;
    font-size: 16px;
  }

  .market-top {
    font-size: 12px;
  }

  .market-card p {
    font-size: 9px;
  }

  .trend-line {
    margin-top: 3px;
    padding: 3px 5px;
  }

  .period-row {
    margin-top: 3px;
  }

  .mini-chart-tabs {
    margin-top: 4px;
  }

  .mini-chart-tabs button {
    min-height: 16px;
    font-size: 9px;
  }

  .period-row span {
    font-size: 8px;
  }

  .chart-panel {
    padding: 6px 8px;
    margin-bottom: 6px;
  }

  .chart-toolbar .eyebrow {
    margin-bottom: 2px;
  }

  .chart-toolbar h3 {
    font-size: 13px;
  }

  .segmented button,
  .primary-action {
    min-height: 25px;
    font-size: 11px;
  }

  .signal-layout {
    gap: 8px;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.74fr);
  }

  .signal-panel,
  .execution-panel,
  .scenario-panel,
  .feed-panel {
    padding: 8px;
  }

  h2 {
    font-size: clamp(22px, 2vw, 28px);
  }

  .decision-summary {
    margin: 6px 0;
    font-size: 11px;
    line-height: 1.28;
    max-height: 42px;
    overflow: hidden;
  }

  .action-brief {
    margin-top: 6px;
  }

  .action-brief strong {
    font-size: 11px;
  }

  .exec-card {
    min-height: 54px;
  }

  .exec-card strong {
    font-size: 11px;
    line-height: 1.22;
  }

  .score-row div,
  .action-brief article,
  .execution-grid article {
    padding: 6px 7px;
  }

  .score-row strong {
    font-size: 13px;
  }

  .score-row span,
  .action-brief span,
  .execution-grid span {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .strategy-grid {
    margin-top: 6px;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .scenario-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  .scenario-card {
    min-height: 86px;
    padding: 9px;
  }

  .scenario-head span {
    margin-bottom: 5px;
    padding: 0;
    font-size: 13px;
  }

  .scenario-card strong {
    font-size: 14px;
    line-height: 1.26;
    max-height: 54px;
    overflow: hidden;
  }

  .scenario-card p {
    margin-top: 3px;
    font-size: 9.5px;
    line-height: 1.2;
    max-height: 24px;
    overflow: hidden;
  }

  .feed-panel {
    max-height: 132px;
    overflow: hidden;
  }

  .push-item {
    padding: 10px;
  }

  .push-item p {
    max-height: 42px;
  }
}

@media (max-width: 780px) {
  .rail {
    display: none;
  }

  .shell {
    margin-left: 0;
    padding: 12px;
  }

  .hero {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(18px);
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(255, 253, 247, 0.98), rgba(255, 253, 247, 0.88)),
      url("/assets/mrj-dashboard-banner.png");
    background-size: cover;
    background-position: center right;
  }

  .hero h1:not(.mobile-title),
  .hero-copy {
    display: none;
  }

  .mobile-title {
    display: block;
    margin-bottom: 0;
    font-size: 30px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .top-actions button {
    min-height: 34px;
    padding: 0 12px;
  }

  .market-strip {
    display: flex;
    gap: 10px;
    margin: 12px -12px 12px;
    overflow-x: auto;
    padding: 0 12px 4px;
    scroll-snap-type: x mandatory;
  }

  .macro-panel {
    grid-template-columns: 1fr;
  }

  .macro-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .macro-card {
    min-width: 150px;
  }

  .market-card {
    min-width: 176px;
    min-height: 128px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .market-card strong {
    margin: 8px 0 4px;
    font-size: 22px;
  }

  .market-card p {
    font-size: 12px;
  }

  .signal-layout {
    gap: 10px;
  }

  .chart-panel {
    padding: 12px;
    margin-bottom: 10px;
  }

  .chart-toolbar {
    display: grid;
    gap: 10px;
  }

  .chart-controls {
    justify-content: stretch;
  }

  .segmented {
    overflow-x: auto;
    width: 100%;
  }

  .segmented button {
    min-width: 56px;
  }

  .modal-panel {
    inset: 12px;
    padding: 12px;
  }

  .compact-modal {
    width: auto;
    transform: none;
  }

  .member-modal {
    inset: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    transform: none;
  }

  .member-layout,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .wallet-box,
  .payment-submit {
    grid-template-columns: 1fr;
  }

  .wallet-qr img {
    height: 220px;
    object-position: 50% 20%;
  }

  .tradingview-chart {
    height: calc(100% - 66px);
  }

  .signal-panel,
  .execution-panel,
  .scenario-panel,
  .feed-panel {
    padding: 14px;
  }

  .panel-head {
    display: grid;
    gap: 10px;
  }

  .badge {
    width: fit-content;
    padding: 6px 10px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .decision-summary {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.55;
    max-height: 98px;
    overflow: hidden;
  }

  .score-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .action-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-row div,
  .execution-grid article {
    padding: 10px;
  }

  .execution-panel {
    display: none;
  }

  .mobile-focus {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0;
  }

  .mobile-focus article {
    border: 1px solid var(--line-strong);
    background: var(--panel-2);
    border-radius: 9px;
    padding: 12px;
  }

  .mobile-focus span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
  }

  .mobile-focus strong {
    display: block;
    line-height: 1.45;
    font-size: 15px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scenario-card {
    min-height: auto;
    padding: 12px;
  }

  .scenario-card strong {
    font-size: 15px;
  }

  .scenario-card p {
    margin-top: 8px;
  }

  .strategy-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .feed-panel {
    display: none;
  }

  .panel-head.compact {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .market-card {
    min-width: 136px;
  }

  .score-row {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .score-row div {
    min-width: 78px;
  }

  h2 {
    font-size: 29px;
  }

  .modal-panel {
    inset: 8px;
  }
}
