:root {
  color-scheme: dark;

  --bg: #00100f;
  --panel: #061d2b;
  --panel-dark: #031722;
  --line: rgba(116, 165, 192, 0.20);
  --text: #f6f7fb;
  --muted: #aeb8c8;
  --gold: #ffda4d;
  --green: #28d36f;
  --red: #ff536f;
  --blue: #39bff0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  padding:
    calc(14px + env(safe-area-inset-top))
    0
    calc(120px + env(safe-area-inset-bottom));

  background:
    radial-gradient(
      circle at 50% -8%,
      rgba(255, 201, 40, 0.17),
      transparent 31%
    ),
    linear-gradient(
      180deg,
      #001410,
      #000b0d 70%
    );

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
a {
  font: inherit;
}

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 10px;
}

.hero-card,
.toolbar-card,
.status-card,
.trade-card,
.analysis-card {
  border:
    1px solid
    rgba(82, 173, 213, 0.18);

  border-radius: 23px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(37, 179, 228, 0.11),
      transparent 42%
    ),
    linear-gradient(
      150deg,
      rgba(7, 30, 44, 0.98),
      rgba(4, 18, 29, 0.98)
    );

  box-shadow:
    0 15px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.eyebrow,
.section-title {
  color: var(--gold);

  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 8px 0 5px;

  font-size: clamp(2rem, 9vw, 3.15rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-card p {
  margin: 0;

  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.refresh-button,
.primary-button {
  min-height: 45px;
  padding: 0 17px;

  border: 0;
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #ffda4d,
      #ffad2a
    );

  color: #18130a;
  font-weight: 950;
  cursor: pointer;
}

.toolbar-card {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
  margin-top: 11px;
  padding: 14px;
}

.toolbar-card label {
  display: grid;
  gap: 6px;
}

.toolbar-card label span {
  color: var(--muted);

  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-label {
  grid-column: 1 / -1;
}

select,
input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;

  border: 1px solid var(--line);
  border-radius: 13px;

  outline: none;

  background:
    rgba(3, 18, 29, 0.86);

  color: var(--text);
  font-weight: 800;
}

.status-card {
  margin-top: 11px;
  padding: 17px;

  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.status-card.error {
  color: var(--red);
}

.scanner-results {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}

.timeframe-group {
  display: grid;
  gap: 9px;
}

.timeframe-heading {
  padding: 8px 3px 2px;

  color: var(--gold);

  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.trade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;

  cursor: pointer;
}

.trade-card:active {
  transform: scale(0.992);
}

.trade-symbol {
  font-size: 1.27rem;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.trade-meta {
  margin-top: 5px;

  color: var(--muted);

  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
}

.trade-score {
  min-width: 63px;
  text-align: right;
}

.trade-score strong {
  display: block;

  color: var(--text);

  font-size: 1.27rem;
  font-weight: 950;
}

.trade-score span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.long {
  color: var(--green) !important;
}

.short {
  color: var(--red) !important;
}

.waiting {
  color: var(--gold) !important;
}

.trade-page {
  display: grid;
  gap: 11px;
}

.analysis-card {
  padding: 18px;
}

.trade-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  margin-top: 10px;
}

.trade-title {
  margin: 0;

  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.trade-subtitle {
  margin-top: 9px;

  color: var(--muted);
  font-weight: 750;
}

.close-button {
  display: grid;
  place-items: center;

  width: 48px;
  height: 46px;

  border:
    1px solid
    rgba(255, 218, 77, 0.27);

  border-radius: 15px;

  background:
    rgba(255, 218, 77, 0.08);

  color: var(--gold);

  font-size: 1.25rem;
  font-weight: 950;
  text-decoration: none;
}

.readiness-box {
  margin-top: 16px;
  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background:
    rgba(3, 19, 31, 0.77);
}

.small-label {
  color: var(--muted);

  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.readiness-value {
  margin-top: 8px;

  color: var(--red);

  font-size: clamp(1.75rem, 7vw, 2.55rem);
  font-weight: 950;
  line-height: 1.04;
}

.readiness-value.ready {
  color: var(--green);
}

.readiness-value.watch {
  color: var(--gold);
}

.progress {
  overflow: hidden;

  height: 10px;
  margin-top: 12px;

  border-radius: 999px;

  background:
    rgba(109, 139, 168, 0.22);
}

.progress span {
  display: block;

  width: var(--progress);
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff526f,
      #ffb12f,
      #ffe04c,
      #25d473
    );
}

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

  gap: 9px;
  margin-top: 10px;
}

.stat-box {
  min-height: 91px;
  padding: 13px;

  border: 1px solid var(--line);
  border-radius: 17px;

  background:
    rgba(3, 18, 29, 0.72);
}

.stat-box strong {
  display: block;
  margin-top: 10px;

  font-size: 1.22rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.section-title {
  margin-bottom: 11px;
}

.data-rows,
.check-rows {
  display: grid;
  gap: 7px;
}

.data-row,
.check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  min-height: 51px;
  padding: 10px 13px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background:
    rgba(3, 18, 29, 0.70);
}

.data-row span,
.check-row span {
  color: #bac3d0;

  font-size: 0.9rem;
  font-weight: 820;
}

.data-row strong,
.check-row strong {
  color: var(--text);

  font-size: 0.97rem;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.check-row.good {
  border-color: rgba(40, 211, 111, 0.25);
}

.check-row.bad {
  border-color: rgba(255, 83, 111, 0.25);
}

.check-row.warn {
  border-color: rgba(255, 218, 77, 0.25);
}

.check-row.good strong {
  color: var(--green);
}

.check-row.bad strong {
  color: var(--red);
}

.check-row.warn strong {
  color: var(--gold);
}

.atlas-read {
  margin: 0;

  color: #c2cad6;

  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.52;
}

details {
  border-bottom:
    1px solid
    rgba(107, 139, 169, 0.14);
}

details:last-child {
  border-bottom: 0;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 57px;

  color: var(--gold);

  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.10em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
}

details[open] summary::after {
  content: "−";
}

.detail-content {
  padding: 0 0 9px;
}

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

.action-button {
  display: grid;
  place-items: center;

  min-height: 51px;
  padding: 0 15px;

  border: 0;
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #ffda4d,
      #ffad2a
    );

  color: #18130a;

  font-weight: 950;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav {
  position: fixed;
  z-index: 1000;

  right: 18px;
  bottom:
    calc(13px + env(safe-area-inset-bottom));
  left: 18px;

  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  max-width: 690px;
  min-height: 82px;
  margin: auto;
  padding: 8px;

  border:
    1px solid
    rgba(255, 218, 77, 0.18);

  border-radius: 26px;

  background:
    rgba(3, 7, 8, 0.96);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.60);
}

.nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;

  min-width: 0;
  border-radius: 20px;

  color: #d8dfeb;

  font-size: 0.67rem;
  font-weight: 850;
  text-decoration: none;
}

.nav-item.active {
  border:
    1px solid
    rgba(255, 218, 77, 0.22);

  background:
    linear-gradient(
      180deg,
      rgba(255, 218, 77, 0.18),
      rgba(255, 218, 77, 0.05)
    );

  color: var(--gold);
}

.nav-icon {
  font-size: 1.55rem;
  line-height: 1;
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 8px;
  }

  .hero-card,
  .analysis-card {
    padding: 15px;
  }

  .bottom-nav {
    right: 11px;
    left: 11px;
  }
}

/* =========================================================
   ATLAS V40 — COMPACT PROFESSIONAL TRADE ANALYSIS
   ========================================================= */

.v35-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.v35-summary-item {
  min-width: 0;
  padding: 10px 8px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: rgba(3, 18, 29, 0.72);
  text-align: center;
}

.v35-summary-item span {
  display: block;

  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v35-summary-item strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.v35-grade-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;

  margin-top: 11px;
  padding: 14px;

  border: 1px solid rgba(255, 83, 111, 0.27);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 0 50%,
      rgba(255, 83, 111, 0.13),
      transparent 52%
    ),
    rgba(3, 18, 29, 0.74);
}

.v35-grade-letter {
  min-width: 64px;

  color: var(--red);
  font-size: 3.2rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-align: center;
}

.v35-grade-details span {
  display: block;

  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v35-grade-details strong {
  display: block;
  margin-top: 4px;

  color: var(--text);
  font-size: 1.4rem;
  font-weight: 950;
}

.v35-section-card {
  padding: 15px;
}

.v35-section-card .section-title {
  margin-bottom: 9px;
}

.v35-data-rows {
  display: grid;
  gap: 6px;
}

.v35-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;

  min-height: 47px;
  padding: 9px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: rgba(3, 18, 29, 0.69);
}

.v35-data-row span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 820;
}

.v35-data-row strong {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 950;
  text-align: right;
  overflow-wrap: anywhere;
}

.v35-check-list {
  display: grid;
  gap: 7px;
}

.v35-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  min-height: 51px;
  padding: 10px 12px;

  border-radius: 15px;
  background: rgba(3, 18, 29, 0.72);
}

.v35-check.good {
  border: 1px solid rgba(40, 211, 111, 0.27);
}

.v35-check.bad {
  border: 1px solid rgba(255, 83, 111, 0.27);
}

.v35-check.warn {
  border: 1px solid rgba(255, 218, 77, 0.27);
}

.v35-check span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.3;
}

.v35-check strong {
  font-size: 0.92rem;
  font-weight: 950;
  text-align: right;
}

.v35-check.good strong {
  color: var(--green);
}

.v35-check.bad strong {
  color: var(--red);
}

.v35-check.warn strong {
  color: var(--gold);
}

.v35-details-group {
  display: grid;
  gap: 7px;
}

.v35-details-group details {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: rgba(3, 18, 29, 0.69);
}

.v35-details-group summary {
  min-height: 52px;
  padding: 0 13px;
}

.v35-details-group .detail-content {
  padding: 0 10px 10px;
}

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

.v35-action-button {
  display: grid;
  place-items: center;

  min-height: 49px;
  padding: 8px 10px;

  border: 0;
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #ffda4d,
      #ffad2a
    );

  color: #18130a;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.v35-action-button.secondary {
  border: 1px solid rgba(75, 206, 239, 0.30);

  background:
    linear-gradient(
      135deg,
      rgba(93, 230, 220, 0.93),
      rgba(46, 142, 244, 0.96)
    );
}

.v35-source-note {
  margin-top: 9px;

  color: rgba(174, 184, 200, 0.72);
  font-size: 0.67rem;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 420px) {
  .v35-actions {
    grid-template-columns: 1fr;
  }

  .v35-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v35-summary-item strong {
    font-size: 0.88rem;
  }
}

/* =========================================================
   ATLAS V40 — DEEP TRADE INTELLIGENCE
   ========================================================= */

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

.v36-probability-card {
  min-width: 0;
  padding: 14px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background:
    rgba(3, 18, 29, 0.76);
}

.v36-probability-card span {
  display: block;

  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v36-probability-card strong {
  display: block;
  margin-top: 6px;

  font-size: 1.8rem;
  font-weight: 950;
}

.v36-probability-card small {
  display: block;
  margin-top: 2px;

  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.v36-meter,
.v36-grade-meter {
  overflow: hidden;

  height: 7px;
  margin-top: 10px;

  border-radius: 999px;
  background: rgba(55, 78, 99, 0.54);
}

.v36-meter i,
.v36-grade-meter i {
  display: block;

  width: var(--value);
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff536f,
      #ffd94d,
      #27d36f
    );
}

.v36-intel-rows {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.v36-intel-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;

  min-height: 45px;
  padding: 9px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.69);
}

.v36-intel-row span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 820;
}

.v36-intel-row strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: right;
}

.v36-analysis-note {
  margin: 10px 2px 0;

  color: rgba(174, 184, 200, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
}

.v36-grade-summary {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;

  margin-bottom: 10px;
  padding: 12px;

  border: 1px solid
    rgba(255, 218, 77, 0.26);
  border-radius: 15px;

  background:
    rgba(3, 18, 29, 0.76);
}

.v36-grade-letter {
  min-width: 58px;

  color: var(--gold);
  font-size: 2.7rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.v36-grade-summary span {
  display: block;

  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v36-grade-summary strong {
  display: block;
  margin-top: 3px;

  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
}

.v36-grade-list {
  display: grid;
  gap: 8px;
}

.v36-grade-row {
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.69);
}

.v36-grade-row-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.v36-grade-row-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.v36-grade-row-head strong {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 950;
}

.v36-grade-commentary {
  margin-top: 10px;
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.66);
}

.v36-grade-commentary p {
  margin: 0;

  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.5;
}

.v36-grade-commentary p + p {
  margin-top: 8px;
}

.v36-grade-commentary strong {
  color: var(--text);
}

.strong {
  color: var(--green) !important;
}

.moderate {
  color: var(--gold) !important;
}

.weak {
  color: var(--red) !important;
}

@media (max-width: 420px) {
  .v36-probability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v36-probability-card {
    padding: 11px;
  }

  .v36-probability-card strong {
    font-size: 1.45rem;
  }
}

/* =========================================================
   ATLAS V40 — PROFESSIONAL TRADER EDITION
   ========================================================= */

.v37-verdict {
  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 17px;

  background:
    rgba(3, 18, 29, 0.76);
}

.v37-verdict.ready {
  border-color:
    rgba(39, 211, 111, 0.38);

  background:
    radial-gradient(
      circle at 0 0,
      rgba(39, 211, 111, 0.14),
      transparent 58%
    ),
    rgba(3, 18, 29, 0.76);
}

.v37-verdict.watch {
  border-color:
    rgba(77, 210, 238, 0.35);

  background:
    radial-gradient(
      circle at 0 0,
      rgba(77, 210, 238, 0.13),
      transparent 58%
    ),
    rgba(3, 18, 29, 0.76);
}

.v37-verdict.wait {
  border-color:
    rgba(255, 218, 77, 0.35);

  background:
    radial-gradient(
      circle at 0 0,
      rgba(255, 218, 77, 0.13),
      transparent 58%
    ),
    rgba(3, 18, 29, 0.76);
}

.v37-verdict.avoid {
  border-color:
    rgba(255, 83, 111, 0.38);

  background:
    radial-gradient(
      circle at 0 0,
      rgba(255, 83, 111, 0.14),
      transparent 58%
    ),
    rgba(3, 18, 29, 0.76);
}

.v37-verdict-label {
  display: inline-flex;

  padding: 7px 10px;

  border-radius: 999px;

  background:
    rgba(255, 218, 77, 0.12);

  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v37-verdict.ready
.v37-verdict-label {
  color: var(--green);

  background:
    rgba(39, 211, 111, 0.12);
}

.v37-verdict.watch
.v37-verdict-label {
  color: #4dd2ee;

  background:
    rgba(77, 210, 238, 0.12);
}

.v37-verdict.avoid
.v37-verdict-label {
  color: var(--red);

  background:
    rgba(255, 83, 111, 0.12);
}

.v37-verdict strong {
  display: block;
  margin-top: 10px;

  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
}

.v37-verdict p {
  margin: 7px 0 0;

  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.5;
}

.v37-state-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;

  margin-top: 8px;
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.66);
}

.v37-state-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.v37-state-row strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.v37-state-row
.improving {
  color: var(--green);
}

.v37-state-row
.stable {
  color: var(--gold);
}

.v37-state-row
.weakening {
  color: var(--red);
}

.v37-checklist {
  display: grid;
  gap: 7px;
}

.v37-check-item {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  min-height: 51px;
  padding: 10px 12px;

  border-radius: 15px;

  background:
    rgba(3, 18, 29, 0.72);
}

.v37-check-item.passed {
  border: 1px solid
    rgba(39, 211, 111, 0.28);
}

.v37-check-item.pending {
  border: 1px solid
    rgba(255, 218, 77, 0.28);
}

.v37-check-icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  font-size: 0.9rem;
  font-weight: 950;
}

.v37-check-item.passed
.v37-check-icon {
  color: var(--green);

  background:
    rgba(39, 211, 111, 0.12);
}

.v37-check-item.pending
.v37-check-icon {
  color: var(--gold);

  background:
    rgba(255, 218, 77, 0.12);
}

.v37-check-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.3;
}

.v37-check-item strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
}

.v37-quality-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.v37-quality-head span {
  display: block;

  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v37-quality-head strong {
  display: block;
  margin-top: 4px;

  color: var(--text);
  font-size: 2rem;
  font-weight: 950;
}

.v37-quality-label {
  padding: 7px 10px;

  border: 1px solid
    rgba(255, 218, 77, 0.26);
  border-radius: 999px;

  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.v37-quality-meter {
  overflow: hidden;

  height: 10px;
  margin-top: 12px;

  border-radius: 999px;

  background:
    rgba(55, 78, 99, 0.54);
}

.v37-quality-meter i {
  display: block;

  width: var(--quality);
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff536f,
      #ffd94d,
      #27d36f
    );
}

.v37-quality-insights {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v37-quality-insights > div {
  min-width: 0;
  padding: 11px;

  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.70);
}

.v37-quality-insights
.positive {
  border: 1px solid
    rgba(39, 211, 111, 0.25);
}

.v37-quality-insights
.negative {
  border: 1px solid
    rgba(255, 83, 111, 0.25);
}

.v37-quality-insights span {
  display: block;

  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
}

.v37-quality-insights strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .v37-quality-insights {
    grid-template-columns: 1fr;
  }

  .v37-check-item {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .v37-check-item strong {
    grid-column: 2;
    text-align: left;
  }
}

/* =========================================================
   ATLAS V40 — MOBILE COMPACT EDITION
   ========================================================= */

.v371-collapsible-card {
  padding: 0 !important;
  overflow: hidden;
}

.v371-compact-details {
  width: 100%;
}

.v371-compact-details > summary {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;

  min-height: 68px;
  padding: 18px 22px;

  cursor: pointer;
  list-style: none;
}

.v371-compact-details > summary::-webkit-details-marker {
  display: none;
}

.v371-compact-details > summary span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.v371-toggle-icon::before {
  content: "+";

  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.v371-compact-details[open]
.v371-toggle-icon::before {
  content: "−";
}

.v371-compact-details[open]
> summary {
  border-bottom:
    1px solid var(--line);
}

.v371-compact-body {
  padding: 14px 18px 18px;
}

.v371-checklist-compact
.v37-checklist {
  gap: 7px;
}

.v371-checklist-compact
.v37-check-item {
  min-height: 46px;
  padding: 9px 11px;
}

.v371-atlas-read-compact
.v371-compact-body {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.55;
}

.v371-quality-compact
.v371-compact-body {
  padding-top: 16px;
}

.v371-verdict-always-open {
  margin-top: 10px;
}

.v371-mobile-compact-ready
.analysis-card,
.v371-mobile-compact-ready
.v35-section-card {
  margin-bottom: 12px;
}

.v371-mobile-compact-ready
.v35-data-row {
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.v371-mobile-compact-ready
.v37-verdict-card,
.v371-mobile-compact-ready
.v37-checklist-card,
.v371-mobile-compact-ready
.v37-quality-card {
  margin-top: 0;
}

.v371-mobile-compact-ready
.v37-quality-insights {
  gap: 7px;
}

.v371-mobile-compact-ready
.v37-quality-insights > div {
  padding: 10px;
}

@media (max-width: 420px) {
  .v371-compact-details > summary {
    min-height: 62px;
    padding: 16px 18px;
  }

  .v371-compact-details > summary span {
    font-size: 0.82rem;
    letter-spacing: 0.11em;
  }

  .v371-compact-body {
    padding: 12px 14px 15px;
  }

  .v371-checklist-compact
  .v37-check-item {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .v371-checklist-compact
  .v37-check-item strong {
    grid-column: 2;
    text-align: left;
  }
}

/* =========================================================
   ATLAS V40 — PREMIUM LIVE EDITION
   ========================================================= */

.v38-live-panel {
  position: relative;
  overflow: hidden;
}

.v38-live-panel::before {
  content: "";

  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(63, 207, 142, 0.11),
      transparent 42%
    );
}

.v38-live-panel > * {
  position: relative;
  z-index: 1;
}

.v38-live-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;
}

.v38-live-indicator {
  display: inline-flex;
  gap: 8px;
  align-items: center;

  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.v38-live-indicator i {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: var(--green);

  box-shadow:
    0 0 0 0
    rgba(39, 211, 111, 0.45);

  animation:
    v38Pulse 1.8s infinite;
}

@keyframes v38Pulse {
  0% {
    box-shadow:
      0 0 0 0
      rgba(39, 211, 111, 0.42);
  }

  70% {
    box-shadow:
      0 0 0 9px
      rgba(39, 211, 111, 0);
  }

  100% {
    box-shadow:
      0 0 0 0
      rgba(39, 211, 111, 0);
  }
}

.v38-refresh-status {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
}

.v38-refresh-status strong {
  color: var(--text);
}

.v38-readiness-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.v38-readiness-head span {
  display: block;

  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v38-readiness-head strong {
  display: block;
  margin-top: 3px;

  color: var(--text);
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.v38-quality-badge {
  padding: 8px 11px;

  border: 1px solid var(--line);
  border-radius: 999px;

  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
}

.v38-quality-badge.elite,
.v38-quality-badge.high {
  color: var(--green);

  border-color:
    rgba(39, 211, 111, 0.34);

  background:
    rgba(39, 211, 111, 0.10);
}

.v38-quality-badge.watch {
  color: #4dd2ee;

  border-color:
    rgba(77, 210, 238, 0.34);

  background:
    rgba(77, 210, 238, 0.10);
}

.v38-quality-badge.developing {
  color: var(--gold);

  border-color:
    rgba(255, 218, 77, 0.34);

  background:
    rgba(255, 218, 77, 0.10);
}

.v38-quality-badge.avoid {
  color: var(--red);

  border-color:
    rgba(255, 83, 111, 0.34);

  background:
    rgba(255, 83, 111, 0.10);
}

.v38-readiness-meter {
  overflow: hidden;

  height: 11px;
  margin-top: 13px;

  border-radius: 999px;

  background:
    rgba(55, 78, 99, 0.52);
}

.v38-readiness-meter i {
  display: block;

  width: var(--readiness);
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff536f,
      #ffd94d,
      #27d36f
    );

  transition:
    width 0.45s ease;
}

.v38-check-summary {
  margin-top: 10px;

  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 760;
}

.v38-check-summary strong {
  color: var(--text);
}

.v38-mini-checks {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.v38-mini-checks > div {
  display: flex;
  gap: 8px;
  align-items: center;

  min-width: 0;
  padding: 9px 10px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background:
    rgba(3, 18, 29, 0.66);

  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.v38-mini-checks .passed {
  border-color:
    rgba(39, 211, 111, 0.24);
}

.v38-mini-checks .passed span {
  color: var(--green);
}

.v38-mini-checks .pending {
  border-color:
    rgba(255, 218, 77, 0.22);
}

.v38-mini-checks .pending span {
  color: var(--gold);
}

.v38-confidence-state {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;

  margin-top: 10px;
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v38-confidence-state span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.v38-confidence-state strong {
  font-size: 0.82rem;
  font-weight: 950;
}

.v38-confidence-state.improving strong {
  color: var(--green);
}

.v38-confidence-state.weakening strong {
  color: var(--red);
}

.v38-confidence-state.stable strong {
  color: var(--gold);
}

.v38-confidence-state.collecting strong {
  color: #4dd2ee;
}

.v38-history-chart {
  display: flex;
  gap: 4px;
  align-items: end;

  min-height: 58px;
  margin-top: 10px;
  padding: 9px 10px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.62);
}

.v38-history-chart i {
  flex: 1;
  min-width: 3px;
  height: var(--height);

  border-radius: 4px 4px 2px 2px;

  background:
    linear-gradient(
      180deg,
      #4dd2ee,
      #27d36f
    );

  opacity: 0.82;
}

.v38-history-chart p {
  margin: auto;

  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.4;
  text-align: center;
}

.v38-live-note {
  margin: 9px 2px 0;

  color:
    rgba(174, 184, 200, 0.68);

  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
}

.v38-commentary {
  margin: 0;

  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.58;
}

@media (max-width: 420px) {
  .v38-mini-checks {
    grid-template-columns: 1fr 1fr;
  }

  .v38-readiness-head strong {
    font-size: 2rem;
  }

  .v38-quality-badge {
    max-width: 145px;
  }
}

/* =========================================================
   ATLAS V40 — COMPONENT OUTLOOK CLARITY
   ========================================================= */

.v381-component-outlook {
  align-items: center;
}

.v381-component-outlook > div {
  min-width: 0;
}

.v381-component-outlook span {
  display: block;
}

.v381-component-outlook small {
  display: block;
  margin-top: 3px;

  color:
    rgba(174, 184, 200, 0.66);

  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.v381-component-outlook
.supportive {
  color: var(--green);
}

.v381-component-outlook
.mixed {
  color: var(--gold);
}

.v381-component-outlook
.weak {
  color: var(--red);
}

.v381-component-note {
  margin: 8px 3px 0;

  color:
    rgba(174, 184, 200, 0.72);

  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .v381-component-outlook {
    grid-template-columns:
      minmax(0, 1fr) auto;
  }

  .v381-component-outlook strong {
    white-space: nowrap;
  }
}

/* =========================================================
   ATLAS V40 — DECISION ENGINE
   ========================================================= */

.v39-executive-summary {
  overflow: hidden;
}

.v39-verdict-box {
  padding: 18px;

  border: 1px solid var(--line);
  border-radius: 22px;

  background:
    rgba(3, 18, 29, 0.72);
}

.v39-verdict-box.ready {
  border-color:
    rgba(39, 211, 111, 0.38);
}

.v39-verdict-box.near,
.v39-verdict-box.wait {
  border-color:
    rgba(255, 218, 77, 0.30);
}

.v39-verdict-box.avoid {
  border-color:
    rgba(255, 83, 111, 0.38);
}

.v39-action {
  display: inline-flex;

  padding: 7px 11px;

  border-radius: 999px;

  color: var(--gold);
  background:
    rgba(255, 218, 77, 0.11);

  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.v39-verdict-box.ready
.v39-action {
  color: var(--green);
  background:
    rgba(39, 211, 111, 0.12);
}

.v39-verdict-box.avoid
.v39-action {
  color: var(--red);
  background:
    rgba(255, 83, 111, 0.12);
}

.v39-verdict-box h2 {
  margin: 12px 0 6px;

  color: var(--text);
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.15;
}

.v39-verdict-box p {
  margin: 0;

  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.52;
}

.v39-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.v39-summary-grid > div {
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v39-summary-grid span {
  display: block;

  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.v39-summary-grid strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.v39-summary-grid
strong.positive {
  color: var(--green);
}

.v39-summary-grid
strong.negative {
  color: var(--red);
}

.v39-entry-status {
  margin-top: 12px;
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v39-entry-status > div:first-child {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.v39-entry-status span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.v39-entry-status strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 950;
}

.v39-progress {
  overflow: hidden;

  height: 8px;
  margin-top: 9px;

  border-radius: 999px;

  background:
    rgba(55, 78, 99, 0.55);
}

.v39-progress i {
  display: block;

  height: 100%;
  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff536f,
      #ffd94d,
      #27d36f
    );

  transition:
    width 0.4s ease;
}

.v39-blocker-title {
  margin: 15px 2px 8px;

  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.v39-blockers {
  display: grid;
  gap: 7px;
}

.v39-blockers > div {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;

  min-height: 52px;
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background:
    rgba(3, 18, 29, 0.65);
}

.v39-blockers > div.blocked {
  border-color:
    rgba(255, 218, 77, 0.24);
}

.v39-blockers > div.passed {
  border-color:
    rgba(39, 211, 111, 0.26);
}

.v39-blockers > div > span {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
}

.v39-blockers > div.passed > span {
  color: var(--green);
}

.v39-blockers strong,
.v39-blockers small {
  display: block;
}

.v39-blockers strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.v39-blockers small {
  margin-top: 2px;

  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
}

.v39-lifecycle {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.v39-lifecycle > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;

  min-width: 0;
  text-align: center;
}

.v39-lifecycle i {
  display: grid;
  place-items: center;

  width: 29px;
  height: 29px;

  border: 1px solid var(--line);
  border-radius: 50%;

  color: var(--muted);
  background:
    rgba(3, 18, 29, 0.70);

  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.v39-lifecycle .complete i {
  color: var(--green);
  border-color:
    rgba(39, 211, 111, 0.35);
  background:
    rgba(39, 211, 111, 0.10);
}

.v39-lifecycle .active i {
  color: var(--gold);
  border-color:
    rgba(255, 218, 77, 0.34);
  background:
    rgba(255, 218, 77, 0.10);
}

.v39-lifecycle span {
  overflow: hidden;

  max-width: 100%;

  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  text-overflow: ellipsis;
}

.v39-lifecycle-note {
  margin: 11px 0 0;

  color:
    rgba(174, 184, 200, 0.68);

  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.v39-atlas-read {
  display: grid;
  gap: 8px;
}

.v39-atlas-read > div {
  display: grid;
  grid-template-columns:
    100px minmax(0, 1fr);
  gap: 12px;

  padding-bottom: 8px;

  border-bottom:
    1px solid var(--line);
}

.v39-atlas-read span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.v39-atlas-read strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: right;
}

.v39-atlas-read p {
  margin: 2px 0 0;

  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 720;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .v39-lifecycle {
    gap: 3px;
  }

  .v39-lifecycle i {
    width: 27px;
    height: 27px;
  }

  .v39-lifecycle span {
    font-size: 0.53rem;
  }

  .v39-summary-grid > div {
    padding: 10px;
  }
}

/* =========================================================
   ATLAS V40 — EXECUTIVE-FIRST EDITION
   ========================================================= */

.v391-original-duplicate-hidden {
  display: none !important;
}

.v391-compact-trade-header {
  padding-bottom: 20px !important;
  min-height: 0 !important;
}

.v391-compact-trade-header
h1,
.v391-compact-trade-header
.trade-title {
  margin-bottom: 8px !important;
}

.v391-compact-trade-header
.trade-subtitle,
.v391-compact-trade-header
.subtitle {
  margin-bottom: 0 !important;
}

.v391-primary-decision-card {
  margin-top: 12px !important;
}

.v391-executive-first-ready
.v39-executive-summary {
  position: relative;
}

.v391-executive-first-ready
.v39-executive-summary::before {
  content: "";

  position: absolute;
  inset: 0;
  pointer-events: none;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(255, 218, 77, 0.07),
      transparent 38%
    );
}

.v391-executive-first-ready
.v39-executive-summary > * {
  position: relative;
  z-index: 1;
}

.v391-executive-first-ready
.v38-live-panel {
  margin-top: 12px !important;
}

.v391-executive-first-ready
.v39-lifecycle-card {
  margin-top: 12px !important;
}

@media (max-width: 420px) {
  .v391-compact-trade-header {
    padding-top: 20px !important;
    padding-bottom: 18px !important;
  }

  .v391-compact-trade-header
  h1,
  .v391-compact-trade-header
  .trade-title {
    font-size: clamp(
      2rem,
      10vw,
      3rem
    ) !important;

    line-height: 1.02 !important;
  }

  .v391-primary-decision-card {
    margin-top: 10px !important;
  }
}

/* =========================================================
   ATLAS V40 — AI COACH FOUNDATION
   ========================================================= */

.v40-ai-coach,
.v40-trigger-monitor,
.v40-market-pulse {
  margin-top: 12px !important;
}

.v40-coach-verdict {
  padding: 16px;

  border:
    1px solid var(--line);
  border-radius: 20px;

  background:
    rgba(3, 18, 29, 0.72);
}

.v40-coach-verdict.ready {
  border-color:
    rgba(39, 211, 111, 0.38);
}

.v40-coach-verdict.near,
.v40-coach-verdict.wait {
  border-color:
    rgba(255, 218, 77, 0.30);
}

.v40-coach-verdict.avoid {
  border-color:
    rgba(255, 83, 111, 0.38);
}

.v40-coach-action {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.v40-coach-action span {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.v40-coach-action strong {
  display: inline-flex;

  padding: 7px 12px;

  border-radius: 999px;

  color: var(--gold);
  background:
    rgba(255, 218, 77, 0.11);

  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.v40-coach-verdict.ready
.v40-coach-action strong {
  color: var(--green);
  background:
    rgba(39, 211, 111, 0.11);
}

.v40-coach-verdict.avoid
.v40-coach-action strong {
  color: var(--red);
  background:
    rgba(255, 83, 111, 0.11);
}

.v40-coach-verdict p {
  margin: 12px 0 0;

  color: var(--text);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.5;
}

.v40-coach-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.v40-coach-grid > div {
  min-width: 0;
  padding: 12px;

  border:
    1px solid var(--line);
  border-radius: 16px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v40-coach-grid span,
.v40-trigger-head span,
.v40-coach-needs > span {
  display: block;

  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.v40-coach-grid strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.25;
}

.v40-ai-coach .positive,
.v40-market-pulse .positive {
  color: var(--green) !important;
}

.v40-ai-coach .negative,
.v40-market-pulse .negative {
  color: var(--red) !important;
}

.v40-ai-coach .waiting,
.v40-market-pulse .waiting {
  color: var(--gold) !important;
}

.v40-coach-needs {
  margin-top: 10px;
  padding: 12px;

  border:
    1px solid var(--line);
  border-radius: 16px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v40-coach-needs > div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.v40-coach-needs > div > div {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;

  padding: 8px 9px;

  border:
    1px solid
    rgba(255, 218, 77, 0.20);
  border-radius: 12px;
}

.v40-coach-needs i {
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
}

.v40-coach-needs strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 850;
}

.v40-coach-needs small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.v40-coach-note {
  margin: 9px 2px 0;

  color:
    rgba(174, 184, 200, 0.64);

  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.4;
}

.v40-trigger-head {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v40-trigger-head > div {
  padding: 11px;

  border:
    1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v40-trigger-head strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 0.93rem;
  font-weight: 950;
}

.v40-trigger-progress {
  overflow: hidden;

  height: 9px;
  margin: 10px 0;

  border-radius: 999px;

  background:
    rgba(55, 78, 99, 0.52);
}

.v40-trigger-progress i {
  display: block;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff536f,
      #ffd94d,
      #27d36f
    );

  transition:
    width 0.4s ease;
}

.v40-trigger-list {
  display: grid;
  gap: 7px;
}

.v40-trigger-list > div {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;

  min-height: 48px;
  padding: 9px 11px;

  border:
    1px solid var(--line);
  border-radius: 14px;

  background:
    rgba(3, 18, 29, 0.64);
}

.v40-trigger-list > div.passed {
  border-color:
    rgba(39, 211, 111, 0.28);
}

.v40-trigger-list > div.waiting {
  border-color:
    rgba(255, 218, 77, 0.23);
}

.v40-trigger-list i {
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
}

.v40-trigger-list .passed i {
  color: var(--green);
}

.v40-trigger-list span {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.v40-trigger-list strong {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 900;
}

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

.v40-pulse-grid > div {
  min-width: 0;
  padding: 11px;

  border:
    1px solid var(--line);
  border-radius: 15px;

  background:
    rgba(3, 18, 29, 0.68);
}

.v40-pulse-grid span {
  display: block;

  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.v40-pulse-grid strong {
  display: block;
  margin-top: 5px;

  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.v40-pulse-grid small {
  display: block;
  margin-top: 3px;

  color:
    rgba(174, 184, 200, 0.65);

  font-size: 0.62rem;
  font-weight: 750;
}

@media (max-width: 420px) {
  .v40-coach-grid {
    gap: 7px;
  }

  .v40-coach-grid > div {
    padding: 10px;
  }

  .v40-pulse-grid > div {
    padding: 10px;
  }
}


/* ==================================================
   ATLAS V42 REGIME INTELLIGENCE DASHBOARD
   ================================================== */

.atlas-v42-regime-banner {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.97),
      rgba(8, 15, 31, 0.97)
    );
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22);
}

.atlas-v42-regime-banner.bullish {
  border-color: rgba(34, 197, 94, 0.42);
}

.atlas-v42-regime-banner.bearish {
  border-color: rgba(239, 68, 68, 0.42);
}

.atlas-v42-regime-banner.volatile {
  border-color: rgba(249, 115, 22, 0.45);
}

.atlas-v42-regime-banner.neutral {
  border-color: rgba(168, 85, 247, 0.38);
}

.atlas-v42-regime-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.atlas-v42-eyebrow {
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.atlas-v42-regime-title {
  color: #f8fafc;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.15;
}

.atlas-v42-bias-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.atlas-v42-regime-grid {
  display: grid;
  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );
  gap: 9px;
  margin-bottom: 15px;
}

.atlas-v42-regime-stat {
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.56);
}

.atlas-v42-regime-stat span {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}

.atlas-v42-regime-stat strong {
  color: #f8fafc;
  font-size: 1rem;
}

.atlas-v42-regime-bars {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.atlas-v42-regime-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 42px;
  align-items: center;
  gap: 9px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
}

.atlas-v42-regime-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
}

.atlas-v42-regime-fill {
  height: 100%;
  border-radius: inherit;
}

.atlas-v42-regime-fill.long {
  background: linear-gradient(
    90deg,
    #16a34a,
    #4ade80
  );
}

.atlas-v42-regime-fill.short {
  background: linear-gradient(
    90deg,
    #dc2626,
    #fb7185
  );
}

.atlas-v42-regime-explanation {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.5;
}

.atlas-v42-regime-empty {
  color: #94a3b8;
  font-size: 0.82rem;
}

.atlas-v42-trade-intelligence {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.58);
}

.atlas-v42-trade-regime-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}

.atlas-v42-regime-chip,
.atlas-v42-compatibility-chip,
.atlas-v42-adjustment-chip {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.atlas-v42-regime-chip {
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(126, 34, 206, 0.15);
  color: #d8b4fe;
}

.atlas-v42-regime-chip.bullish {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(22, 163, 74, 0.14);
  color: #86efac;
}

.atlas-v42-regime-chip.bearish {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
}

.atlas-v42-regime-chip.volatile {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(234, 88, 12, 0.14);
  color: #fdba74;
}

.atlas-v42-compatibility-chip {
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(37, 99, 235, 0.13);
  color: #93c5fd;
}

.atlas-v42-adjustment-chip.positive {
  border: 1px solid rgba(34, 197, 94, 0.36);
  background: rgba(22, 163, 74, 0.14);
  color: #86efac;
}

.atlas-v42-adjustment-chip.negative {
  border: 1px solid rgba(239, 68, 68, 0.36);
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
}

.atlas-v42-score-comparison {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 8px;
  margin-bottom: 10px;
}

.atlas-v42-score-comparison > div {
  padding: 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.46);
}

.atlas-v42-score-comparison span {
  display: block;
  margin-bottom: 3px;
  color: #94a3b8;
  font-size: 0.64rem;
}

.atlas-v42-score-comparison strong {
  color: #f8fafc;
  font-size: 0.8rem;
}

.atlas-v42-regime-reason {
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .atlas-v42-regime-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .atlas-v42-regime-stat:last-child {
    grid-column: 1 / -1;
  }

  .atlas-v42-regime-title {
    font-size: 1.05rem;
  }
}




/* =========================================================
   ATLAS_V43_TRADE_IMPROVEMENT_ENGINE
   ========================================================= */

.atlas-v43-improvement-card {
  margin: 28px 16px;
  padding: 28px;
  border: 1px solid rgba(84, 180, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(43, 166, 255, 0.11), transparent 38%),
    linear-gradient(145deg, rgba(8, 42, 58, 0.98), rgba(4, 25, 36, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    0 22px 55px rgba(0,0,0,0.22);
  color: #f5f7fb;
}

.atlas-v43-title,
.atlas-v43-subtitle {
  color: #ffd84d;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.atlas-v43-title {
  margin-bottom: 24px;
  font-size: clamp(19px, 4.8vw, 25px);
}

.atlas-v43-subtitle {
  margin: 28px 0 16px;
  font-size: 15px;
}

.atlas-v43-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.atlas-v43-kicker {
  margin-bottom: 4px;
  color: #a9b7ca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.atlas-v43-confidence {
  font-size: clamp(48px, 13vw, 72px);
  line-height: 1;
  font-weight: 950;
}

.atlas-v43-target {
  min-width: 105px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 216, 77, 0.3);
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 216, 77, 0.07);
}

.atlas-v43-target span {
  display: block;
  color: #a9b7ca;
  font-size: 12px;
  font-weight: 800;
}

.atlas-v43-target strong {
  display: block;
  margin-top: 2px;
  color: #ffd84d;
  font-size: 21px;
}

.atlas-v43-progress-track {
  height: 17px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 161, 188, 0.18);
}

.atlas-v43-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #ff536f 0%,
    #ffbf44 40%,
    #f7df4c 58%,
    #32d276 100%
  );
}

.atlas-v43-summary {
  color: #b6c1d1;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.atlas-v43-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.atlas-v43-grid > div {
  min-height: 88px;
  padding: 17px;
  border: 1px solid rgba(126, 153, 182, 0.2);
  border-radius: 22px;
  background: rgba(2, 20, 30, 0.52);
}

.atlas-v43-grid span {
  display: block;
  color: #9facbf;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.atlas-v43-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.atlas-v43-actions {
  display: grid;
  gap: 13px;
}

.atlas-v43-action {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(126, 153, 182, 0.2);
  border-radius: 23px;
  background: rgba(1, 18, 28, 0.56);
}

.atlas-v43-action.weak {
  border-color: rgba(255, 82, 112, 0.34);
}

.atlas-v43-action.watch {
  border-color: rgba(255, 207, 67, 0.28);
}

.atlas-v43-action.strong {
  border-color: rgba(47, 210, 116, 0.28);
}

.atlas-v43-action-rank {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 216, 77, 0.12);
  color: #ffd84d;
  font-size: 17px;
  font-weight: 900;
}

.atlas-v43-action-copy {
  min-width: 0;
  flex: 1;
}

.atlas-v43-action-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.atlas-v43-action-heading strong {
  font-size: 17px;
}

.atlas-v43-action-heading span {
  color: #dfe6ef;
  font-weight: 850;
  white-space: nowrap;
}

.atlas-v43-action p {
  margin: 9px 0 12px;
  color: #abb8c9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.atlas-v43-action-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ffd84d;
  font-size: 12px;
  font-weight: 800;
}

.atlas-v43-confirmed-message {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(47, 210, 116, 0.32);
  border-radius: 23px;
  background: rgba(27, 154, 84, 0.08);
}

.atlas-v43-confirmed-message > span {
  color: #31d178;
  font-size: 28px;
  font-weight: 900;
}

.atlas-v43-confirmed-message strong {
  font-size: 17px;
}

.atlas-v43-confirmed-message p {
  margin: 7px 0 0;
  color: #abb8c9;
  line-height: 1.5;
}

.atlas-v43-footer {
  margin-top: 22px;
  color: #7f8fa4;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .atlas-v43-improvement-card {
    margin: 24px 15px;
    padding: 25px 27px;
  }

  .atlas-v43-action {
    padding: 16px;
  }

  .atlas-v43-action-heading {
    align-items: flex-start;
  }
}

