:root {
  --bg: #0f1723;
  --bg-soft: #162032;
  --panel: rgba(17, 27, 42, 0.82);
  --panel-border: rgba(144, 170, 204, 0.18);
  --text: #edf3ff;
  --muted: #9db0d1;
  --accent: #16c47f;
  --accent-soft: rgba(22, 196, 127, 0.17);
  --warn: #f2994a;
  --danger: #ff6b6b;
  --ok: #6fd3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(111, 211, 255, 0.2), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(22, 196, 127, 0.15), transparent 30%),
    linear-gradient(160deg, #09101c, #0f1723 45%, #1a1622 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(13, 20, 32, 0.95), rgba(10, 15, 25, 0.86));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #16c47f, #0e9fda);
  color: #00111c;
  font-weight: 700;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.brand-title {
  margin: 0;
  font-weight: 700;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-item {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(111, 211, 255, 0.12);
  color: var(--text);
}

.broker-card {
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(22, 34, 52, 0.7);
}

.small-label {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.content {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.header-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.range-switch {
  display: flex;
  background: rgba(16, 26, 40, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 4px;
}

.range-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}

.range-btn.active {
  background: rgba(111, 211, 255, 0.16);
  color: var(--text);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.kpi .label {
  color: var(--muted);
  font-size: 12px;
}

.kpi .value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.kpi .trend {
  margin-top: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
}

.card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.card h2 {
  margin: 0;
  font-size: 18px;
}

.tag {
  border: 1px solid rgba(22, 196, 127, 0.45);
  background: var(--accent-soft);
  color: #9dfed9;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.tag.neutral {
  border-color: rgba(111, 211, 255, 0.45);
  background: rgba(111, 211, 255, 0.13);
  color: #bbe9ff;
}

#equity-canvas {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(26, 40, 60, 0.8), rgba(10, 17, 28, 0.8));
}

.behavior-list {
  display: grid;
  gap: 10px;
}

.pattern {
  border: 1px solid rgba(144, 170, 204, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 17, 29, 0.5);
}

.pattern strong {
  display: block;
  margin-bottom: 4px;
}

.pattern p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(144, 170, 204, 0.13);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pos {
  color: var(--accent);
}

.neg {
  color: var(--danger);
}

.risk-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input {
  background: rgba(13, 22, 35, 0.75);
  border: 1px solid rgba(144, 170, 204, 0.24);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

.risk-output {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(111, 211, 255, 0.44);
  background: rgba(111, 211, 255, 0.08);
  padding: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

.ai-panel .card-head {
  margin-bottom: 10px;
}

.coach-output {
  color: #dce7ff;
  line-height: 1.5;
  font-size: 15px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
}

.btn-main {
  margin-top: 10px;
  width: 100%;
  background: linear-gradient(135deg, #16c47f, #0e9fda);
  color: #001b26;
  font-weight: 700;
}

.btn-ghost {
  color: var(--text);
  background: rgba(111, 211, 255, 0.1);
  border-color: rgba(111, 211, 255, 0.35);
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .content {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    height: 40px;
  }

  .kpis {
    grid-template-columns: 1fr;
  }
}

.landing-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(111, 211, 255, 0.2), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(22, 196, 127, 0.15), transparent 30%),
    linear-gradient(160deg, #09101c, #0f1723 45%, #1a1622 100%);
}

.marketing-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.marketing-main {
  display: grid;
  gap: 12px;
}

.marketing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketing-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.04;
}

.marketing-copy {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

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

.feature-tile h3 {
  margin: 0 0 6px;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
}

.marketing-side {
  position: sticky;
  top: 24px;
  align-self: start;
}

.marketing-side h2 {
  margin: 0 0 6px;
}

.marketing-side p {
  margin: 0 0 12px;
  color: var(--muted);
}

.side-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-bottom: 10px;
}

.landing-centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-center-wrap {
  width: 100%;
  max-width: 560px;
}

.landing-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.landing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand-large .brand-logo {
  width: 58px;
  height: 58px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 22px;
  background: rgba(13, 21, 33, 0.8);
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 62ch;
}

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

.hero-logo {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.auth-portal {
  max-width: 580px;
}

.auth-head h2 {
  margin: 0;
}

.auth-head h1 {
  margin: 6px 0 0;
  font-size: 34px;
  line-height: 1.1;
}

.auth-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.auth-logo {
  margin-bottom: 8px;
}

.portal-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #dce7ff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.auth-tab {
  border: 1px solid var(--panel-border);
  background: rgba(14, 24, 38, 0.75);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--text);
  border-color: rgba(111, 211, 255, 0.5);
  background: rgba(111, 211, 255, 0.16);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.hidden {
  display: none;
}

.auth-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-message.error {
  color: #ffb3b3;
}

.auth-message.success {
  color: #8bfecf;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px;
  padding-bottom: 32px;
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.topbar-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

@media (max-width: 980px) {
  .marketing-wrap {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .marketing-side {
    position: static;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    justify-self: start;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 30px;
  }

  .landing-shell {
    padding: 16px;
  }

  .topbar-actions {
    justify-items: start;
  }

  .auth-head h1 {
    font-size: 28px;
  }
}

/* ---------- Premium Trade Matrix Landing ---------- */
.tm-landing {
  --tm-bg: #050912;
  --tm-bg-2: #090f1d;
  --tm-panel: rgba(12, 20, 35, 0.66);
  --tm-border: rgba(106, 145, 217, 0.25);
  --tm-text: #eaf2ff;
  --tm-muted: #9aacc9;
  --tm-blue: #4ea2ff;
  --tm-teal: #33d2c8;
  --tm-shadow: 0 18px 50px rgba(1, 8, 20, 0.65);

  margin: 0;
  color: var(--tm-text);
  font-family: 'Manrope', 'Space Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% -5%, rgba(78, 162, 255, 0.2), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(51, 210, 200, 0.13), transparent 35%),
    linear-gradient(170deg, var(--tm-bg), var(--tm-bg-2));
  overflow-x: hidden;
}

.tm-landing * {
  box-sizing: border-box;
}

.tm-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(84, 110, 153, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 110, 153, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 82%);
  pointer-events: none;
  opacity: 0.35;
}

.tm-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.tm-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(52, 138, 255, 0.16);
  top: -120px;
  left: -100px;
}

.tm-glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(33, 204, 185, 0.12);
  right: -90px;
  top: 160px;
}

.tm-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.tm-nav {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--tm-border);
  background: rgba(9, 15, 27, 0.74);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.tm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-text);
  text-decoration: none;
  font-weight: 700;
}

.tm-logo img {
  width: 34px;
  height: 34px;
}

.tm-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tm-nav-links a {
  color: var(--tm-muted);
  text-decoration: none;
  font-size: 14px;
}

.tm-nav-links a:hover {
  color: var(--tm-text);
}

.tm-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-btn {
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tm-btn:hover {
  transform: translateY(-1px);
}

.tm-btn-primary {
  color: #04101f;
  background: linear-gradient(135deg, var(--tm-teal), var(--tm-blue));
  box-shadow: 0 10px 24px rgba(48, 141, 243, 0.33);
}

.tm-btn-ghost {
  color: var(--tm-text);
  border: 1px solid var(--tm-border);
  background: rgba(11, 20, 34, 0.45);
}

.tm-hero {
  min-height: calc(100vh - 120px);
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: center;
}

.tm-kicker {
  margin: 0;
  color: #8fc5ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.tm-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 1.01;
  letter-spacing: -0.03em;
}

.tm-hero-copy > p {
  margin: 14px 0 0;
  color: var(--tm-muted);
  max-width: 60ch;
  font-size: 17px;
}

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

.tm-mini-metrics {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-mini-metrics > div {
  border-left: 1px solid rgba(123, 154, 207, 0.4);
  padding-left: 12px;
}

.tm-mini-metrics strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
}

.tm-mini-metrics span {
  color: var(--tm-muted);
  font-size: 12px;
}

.tm-hero-visual {
  position: relative;
  padding: 16px;
}

.glass {
  background: linear-gradient(165deg, rgba(14, 24, 40, 0.82), rgba(8, 14, 27, 0.62));
  border: 1px solid var(--tm-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--tm-shadow);
}

.tm-mockup {
  border-radius: 18px;
  overflow: hidden;
}

.tm-mockup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(126, 157, 214, 0.24);
}

.tm-mockup-head p {
  margin: 0 0 0 6px;
  font-size: 12px;
  color: var(--tm-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(194, 216, 255, 0.4);
}

.tm-mockup-grid {
  padding: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  border: 1px solid rgba(125, 158, 214, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 14, 25, 0.58);
}

.panel-lg {
  grid-column: 1 / -1;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-title {
  margin: 0;
  color: var(--tm-muted);
  font-size: 12px;
}

.panel h4 {
  margin: 6px 0 0;
  font-size: 28px;
}

.panel small {
  color: #8fa6cb;
}

.line-svg {
  width: 100%;
  height: 140px;
  margin-top: 8px;
}

.tm-stat-card {
  position: absolute;
  min-width: 130px;
  border-radius: 12px;
  border: 1px solid rgba(128, 165, 223, 0.28);
  background: rgba(8, 18, 32, 0.84);
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(4, 8, 21, 0.62);
  animation: tm-float 6.5s ease-in-out infinite;
}

.tm-stat-card span {
  display: block;
  color: var(--tm-muted);
  font-size: 11px;
}

.tm-stat-card strong {
  display: block;
  margin-top: 4px;
}

.float-a {
  top: -6px;
  left: -18px;
}

.float-b {
  top: 10%;
  right: -18px;
  animation-delay: 0.8s;
}

.float-c {
  bottom: 22%;
  left: -24px;
  animation-delay: 1.2s;
}

.float-d {
  bottom: -8px;
  right: -16px;
  animation-delay: 1.8s;
}

.float-e {
  top: 52%;
  right: 14%;
  animation-delay: 2.2s;
}

@keyframes tm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.tm-cred {
  margin-top: 18px;
  border-top: 1px solid rgba(106, 145, 217, 0.24);
  border-bottom: 1px solid rgba(106, 145, 217, 0.24);
  background: rgba(7, 13, 24, 0.72);
}

.tm-cred-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.tm-cred-row span {
  color: #a7bcde;
  font-size: 13px;
  border: 1px solid rgba(110, 144, 202, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
}

.tm-section {
  padding: 72px 0 10px;
}

.tm-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.tm-feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.tm-feature-card {
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tm-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 183, 255, 0.55);
  box-shadow: 0 20px 35px rgba(0, 8, 22, 0.6);
}

.tm-feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(145deg, rgba(51, 210, 200, 0.2), rgba(78, 162, 255, 0.26));
}

.tm-feature-card h3 {
  margin: 0;
}

.tm-feature-card p {
  margin: 8px 0 0;
  color: var(--tm-muted);
}

.tm-showcase {
  margin-top: 24px;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.tm-show-left {
  display: grid;
  gap: 12px;
}

.show-card {
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 15, 28, 0.64);
  border: 1px solid rgba(128, 166, 223, 0.2);
}

.show-card p {
  margin: 0;
  color: #b0c3e0;
  font-size: 13px;
}

.bars {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #34d4c9, #489eff);
}

.show-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.show-card li {
  display: flex;
  justify-content: space-between;
  color: #c2d4f2;
}

.show-card em {
  font-style: normal;
  color: #7de5cf;
}

.tm-show-main {
  border-radius: 14px;
  border: 1px solid rgba(125, 159, 216, 0.24);
  background: rgba(8, 14, 26, 0.66);
  padding: 14px;
}

.show-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.show-head h3 {
  margin: 0;
}

.show-head span {
  color: var(--tm-muted);
  font-size: 12px;
}

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

.pnl {
  border-radius: 10px;
  border: 1px solid rgba(124, 159, 217, 0.2);
  padding: 10px;
  color: #a8bcdf;
  font-size: 12px;
}

.pnl strong {
  display: block;
  color: #eef5ff;
  margin-top: 5px;
  font-size: 19px;
}

.chart-panel {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px solid rgba(124, 159, 217, 0.2);
  background: rgba(7, 13, 24, 0.58);
  padding: 10px;
}

.chart-panel svg {
  width: 100%;
  height: 170px;
}

.journal-snippet {
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 12px;
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(124, 159, 217, 0.2);
}

.journal-snippet h4 {
  margin: 0;
}

.journal-snippet p {
  margin: 7px 0 0;
  color: var(--tm-muted);
}

.tm-why-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 12px;
}

.why-item {
  border-radius: 12px;
  padding: 16px;
}

.why-item span {
  color: #88b9ff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
}

.why-item p {
  margin: 8px 0 0;
  color: #d7e5ff;
}

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

.tm-testimonial {
  border-radius: 14px;
  padding: 18px;
}

.tm-testimonial p {
  margin: 0;
  color: #dce8ff;
}

.tm-testimonial h4 {
  margin: 14px 0 0;
}

.tm-testimonial span {
  color: var(--tm-muted);
  font-size: 13px;
}

.tm-final-cta {
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  margin-bottom: 80px;
}

.tm-final-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 46px);
}

.tm-final-cta p {
  margin: 10px auto 0;
  color: var(--tm-muted);
  max-width: 56ch;
}

.tm-final-cta .tm-hero-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .tm-nav-links {
    display: none;
  }

  .tm-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .tm-feature-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .tm-showcase {
    grid-template-columns: 1fr;
  }

  .tm-testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tm-container {
    width: min(1200px, calc(100% - 24px));
  }

  .tm-nav {
    flex-wrap: wrap;
  }

  .tm-nav-actions {
    width: 100%;
  }

  .tm-nav-actions .tm-btn {
    flex: 1;
  }

  .tm-hero h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .tm-feature-grid,
  .tm-why-grid {
    grid-template-columns: 1fr;
  }

  .tm-show-panels {
    grid-template-columns: 1fr;
  }

  .float-a,
  .float-b,
  .float-c,
  .float-d,
  .float-e {
    position: static;
    margin-top: 10px;
    animation: none;
  }

  .tm-hero-visual {
    padding: 0;
  }

  .tm-section {
    padding-top: 52px;
  }

  .tm-final-cta {
    padding: 22px;
    margin-bottom: 44px;
  }
}

/* ===== Trade Matrix $100M Fintech Landing ===== */
.tmx-home {
  --bg0: #030711;
  --bg1: #070f1c;
  --panel: rgba(9, 18, 34, 0.68);
  --border: rgba(98, 140, 220, 0.28);
  --text: #ebf2ff;
  --muted: #98adc9;
  --blue: #4f9fff;
  --teal: #2dd4bf;

  margin: 0;
  color: var(--text);
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(79, 159, 255, 0.2), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.15), transparent 36%),
    linear-gradient(165deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.tmx-home * {
  box-sizing: border-box;
}

.tmx-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 118, 165, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 118, 165, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.34;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 78%);
  pointer-events: none;
  animation: tmxGridDrift 38s linear infinite;
}

.tmx-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.tmx-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(79, 159, 255, 0.18);
}

.tmx-glow-b {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 120px;
  background: rgba(45, 212, 191, 0.12);
}

.tmx-wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.tmx-nav {
  margin-top: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.78);
  backdrop-filter: blur(12px);
}

.tmx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.tmx-brand img {
  width: 36px;
  height: 36px;
}

.tmx-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tmx-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.tmx-links a:hover {
  color: #fff;
}

.tmx-actions {
  display: flex;
  gap: 8px;
}

.tmx-btn {
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tmx-btn:hover {
  transform: translateY(-1px);
}

.tmx-btn-primary {
  color: #03111f;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 26px rgba(59, 137, 255, 0.35);
}

.tmx-btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(10, 18, 33, 0.5);
}

.tmx-btn-portal {
  color: #cfe7ff;
  border: 1px solid rgba(79, 159, 255, 0.5);
  background: linear-gradient(145deg, rgba(9, 21, 38, 0.88), rgba(7, 18, 33, 0.74));
  box-shadow: 0 10px 24px rgba(7, 18, 34, 0.42), inset 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.tmx-btn-portal:hover {
  box-shadow: 0 12px 26px rgba(8, 23, 45, 0.52), 0 0 0 1px rgba(79, 159, 255, 0.34);
}

.tmx-hero {
  min-height: calc(100vh - 116px);
  padding-top: 50px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 26px;
  position: relative;
}

.tmx-hero::before {
  content: '';
  position: absolute;
  inset: 8% -4% -12% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 45%, rgba(79, 159, 255, 0.24), transparent 42%),
    radial-gradient(circle at 25% 20%, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(115deg, rgba(23, 50, 89, 0.38), rgba(7, 15, 28, 0.08) 45%, rgba(12, 36, 69, 0.28) 80%),
    linear-gradient(rgba(100, 142, 206, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 142, 206, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 34%, rgba(111, 181, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 68%, rgba(111, 181, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(111, 181, 255, 0.18) 0 1px, transparent 2px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px, 260px 260px, 320px 320px, 300px 300px;
  filter: blur(20px);
  animation: tmxHeroLightSweep 22s ease-in-out infinite alternate;
}

.tmx-hero::after {
  content: '';
  position: absolute;
  inset: 6% -6% -8% -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(133, 194, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(96, 165, 250, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(45, 212, 191, 0.1) 0 1px, transparent 2px);
  background-size: 140px 140px, 180px 180px, 220px 220px;
  background-position: 0 0, 35px 20px, 70px 60px;
  opacity: 0.2;
  animation: tmxHeroParticles 26s linear infinite;
}

.tmx-left,
.tmx-right {
  position: relative;
  z-index: 1;
}

.tmx-kicker {
  margin: 0;
  color: #8fc5ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.tmx-left h1 {
  margin: 10px 0 0;
  font-size: clamp(38px, 5.9vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.tmx-left h1 span {
  color: #f4f8ff;
  text-shadow: 0 0 16px rgba(111, 181, 255, 0.18);
}

.tmx-sub {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
  line-height: 1.58;
}

.tmx-cta-row {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tmx-cta-row .tmx-btn-primary {
  background: linear-gradient(135deg, #36e4ca, #5da8ff);
  box-shadow: 0 16px 30px rgba(59, 137, 255, 0.42), 0 0 24px rgba(45, 212, 191, 0.2);
}

.tmx-cta-row .tmx-btn-primary:hover {
  box-shadow: 0 20px 36px rgba(59, 137, 255, 0.48), 0 0 30px rgba(45, 212, 191, 0.24);
}

.tmx-cta-micro {
  margin: 9px 0 0;
  color: #8ea6c8;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.tmx-hero-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmx-hero-chips span {
  border: 1px solid rgba(114, 149, 216, 0.28);
  background: rgba(9, 18, 34, 0.6);
  color: #b2c6e7;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
}

.glass {
  background: linear-gradient(165deg, rgba(10, 19, 36, 0.8), rgba(6, 13, 24, 0.64));
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(2, 8, 21, 0.7);
  backdrop-filter: blur(14px);
}

.tmx-right {
  padding: 8px;
  overflow: visible;
}

.tmx-right::before {
  content: '';
  position: absolute;
  inset: 8% 6% 10% 6%;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(79, 159, 255, 0.36), rgba(45, 212, 191, 0.16) 40%, transparent 74%);
  filter: blur(42px);
  pointer-events: none;
}

.tmx-right::after {
  content: '';
  position: absolute;
  inset: 14% 16% 18% 14%;
  z-index: 0;
  border-radius: 30px;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 30%, rgba(96, 165, 250, 0.22), transparent 44%),
    radial-gradient(circle at 80% 64%, rgba(45, 212, 191, 0.16), transparent 46%);
  filter: blur(30px);
}

.tmx-hero-market-layer {
  position: absolute;
  inset: -24px -28px -18px -26px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.tmx-hero-market-layer::before {
  content: '';
  position: absolute;
  inset: 6% 2% 4% 2%;
  background-image:
    linear-gradient(rgba(52, 103, 180, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 103, 180, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  animation: tmxHeroGridMove 30s linear infinite;
}

.tmx-hero-market-layer::after {
  content: '';
  position: absolute;
  inset: 12% 8% auto 8%;
  height: 56%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(45, 212, 191, 0.1) 0 1px,
      transparent 1px 24px
    ),
    linear-gradient(160deg, rgba(45, 212, 191, 0.07), rgba(79, 159, 255, 0.03));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
  opacity: 0.25;
}

.tmx-hero-market-layer .mk {
  position: absolute;
  color: rgba(144, 205, 255, 0.18);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  filter: blur(0.35px);
  animation: tmxHeroTicker 16s ease-in-out infinite;
}

.tmx-hero-market-layer .mk-1 { top: 9%; left: 8%; }
.tmx-hero-market-layer .mk-2 { top: 24%; right: 9%; animation-delay: -4s; }
.tmx-hero-market-layer .mk-3 { bottom: 24%; left: 10%; animation-delay: -8s; }
.tmx-hero-market-layer .mk-4 { bottom: 10%; right: 12%; animation-delay: -2s; }

.tmx-hero-market-layer .mk-line {
  position: absolute;
  inset: auto 2% 8% 2%;
  width: 96%;
  height: 42%;
  opacity: 0.32;
  filter: blur(0.4px);
}

.tmx-hero-visual-card {
  position: relative;
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  z-index: 2;
  background: linear-gradient(160deg, rgba(8, 22, 40, 0.7), rgba(8, 17, 31, 0.46));
  border: 1px solid rgba(124, 188, 255, 0.52);
  box-shadow:
    0 34px 64px rgba(2, 10, 23, 0.78),
    0 0 44px rgba(79, 159, 255, 0.34),
    inset 0 0 0 1px rgba(45, 212, 191, 0.16);
  backdrop-filter: blur(14px);
  animation: tmxHeroVisualFloat 7.8s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tmx-hero-visual-card::before {
  content: '';
  position: absolute;
  inset: -18px -20px -14px -18px;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(circle at 40% 34%, rgba(79, 159, 255, 0.42), rgba(45, 212, 191, 0.14) 40%, transparent 74%);
  filter: blur(28px);
}

.tmx-hero-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(123, 187, 255, 0.52);
  box-shadow: 0 20px 40px rgba(2, 8, 20, 0.78), 0 0 0 1px rgba(79, 159, 255, 0.3);
  filter: contrast(1.08) saturate(1.06) brightness(1.03);
}

.tmx-hero-visual-card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(132, 196, 255, 0.72);
  box-shadow: 0 40px 72px rgba(2, 10, 23, 0.8), 0 0 52px rgba(79, 159, 255, 0.36);
}

.tmx-float {
  position: absolute;
  border: 1px solid rgba(118, 175, 240, 0.38);
  background: rgba(8, 16, 30, 0.86);
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: 0 14px 30px rgba(1, 8, 20, 0.75), 0 0 18px rgba(79, 159, 255, 0.18), inset 0 0 0 1px rgba(130, 188, 255, 0.14);
  backdrop-filter: blur(8px);
  animation: tmxFloat 6.8s ease-in-out infinite;
  z-index: 3;
}

.tmx-float span {
  font-size: 11px;
  color: #deebff;
  letter-spacing: 0.01em;
}

.c1 {
  left: -10px;
  top: -8px;
}

.c2 {
  right: -10px;
  top: 14%;
  animation-delay: 0.8s;
}

.c3 {
  left: -18px;
  bottom: 22%;
  animation-delay: 1.2s;
}

.c4 {
  right: -8px;
  bottom: -8px;
  animation-delay: 1.8s;
}

@keyframes tmxFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-7px) translateX(2px);
  }
}

@keyframes tmxGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, -56px 56px; }
}

@keyframes tmxHeroGridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 42px 42px, -42px 42px; }
}

@keyframes tmxHeroTicker {
  0%, 100% { transform: translateY(0); opacity: 0.14; }
  50% { transform: translateY(-6px); opacity: 0.24; }
}

@keyframes tmxHeroVisualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes tmxHeroParticles {
  0% { background-position: 0 0, 35px 20px, 70px 60px; }
  100% { background-position: 60px -50px, -30px 70px, 140px -20px; }
}

@keyframes tmxHeroLightSweep {
  0% { opacity: 0.9; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-6px); }
}

@keyframes tmxTrustPulse {
  0%, 100% {
    box-shadow: 0 16px 28px rgba(3, 10, 22, 0.62), inset 0 0 0 1px rgba(45, 212, 191, 0.08);
  }
  50% {
    box-shadow: 0 18px 30px rgba(3, 10, 22, 0.66), inset 0 0 0 1px rgba(45, 212, 191, 0.12), 0 0 20px rgba(79, 159, 255, 0.12);
  }
}

.tmx-trust {
  margin-top: 16px;
  border-top: 1px solid rgba(104, 142, 210, 0.24);
  border-bottom: 1px solid rgba(104, 142, 210, 0.24);
  background: rgba(6, 12, 22, 0.74);
  padding: 24px 0;
}

.tmx-trust-head h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: -0.02em;
}

.tmx-trust-head p {
  margin: 10px auto 0;
  max-width: 760px;
  text-align: center;
  color: #8fa6c6;
  font-size: 14px;
}

.tmx-trust-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.tmx-trust-card {
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
  justify-items: start;
  border-color: rgba(104, 175, 255, 0.36);
  box-shadow: 0 16px 28px rgba(3, 10, 22, 0.62), inset 0 0 0 1px rgba(45, 212, 191, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: tmxTrustPulse 4.8s ease-in-out infinite;
}

.tmx-trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 192, 255, 0.56);
  box-shadow: 0 20px 34px rgba(3, 10, 22, 0.72), inset 0 0 0 1px rgba(45, 212, 191, 0.16), 0 0 28px rgba(79, 159, 255, 0.2);
}

.tmx-trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(108, 175, 255, 0.45);
  background: rgba(9, 20, 37, 0.72);
  font-size: 15px;
}

.tmx-trust-number {
  margin: 4px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e8f2ff;
  text-shadow: 0 0 22px rgba(79, 159, 255, 0.26);
}

.tmx-trust-label {
  margin: 2px 0 0;
  color: #a5bddf;
  font-size: 13px;
}

.tmx-trust-meta {
  margin: 2px 0 0;
  color: #7f99bd;
  font-size: 12px;
  line-height: 1.45;
}

.tmx-trust-note {
  margin: 14px 0 0;
  text-align: center;
  color: #7f98bb;
  font-size: 12px;
}

.tmx-section {
  padding: 74px 0 10px;
}

.tmx-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.02em;
}

.tmx-features-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.tmx-feature {
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tmx-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 185, 255, 0.58);
}

.fi {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.22), rgba(79, 159, 255, 0.24));
}

.tmx-feature h3 {
  margin: 0;
}

.tmx-feature p {
  margin: 8px 0 0;
  color: var(--muted);
}

.mini-ui {
  margin-top: 14px;
  height: 7px;
  border-radius: 99px;
  background: rgba(123, 157, 219, 0.16);
  overflow: hidden;
}

.mini-ui span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.tmx-showcase {
  margin-top: 24px;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 310px;
  grid-template-areas: "main side";
  gap: 14px;
  border-color: rgba(118, 176, 246, 0.34);
  box-shadow: 0 24px 56px rgba(2, 9, 22, 0.72), inset 0 0 0 1px rgba(45, 212, 191, 0.06);
}

.left-stack {
  grid-area: side;
  display: grid;
  gap: 12px;
}

.s-card {
  border-radius: 14px;
  border: 1px solid rgba(126, 168, 235, 0.3);
  background: linear-gradient(165deg, rgba(9, 17, 31, 0.76), rgba(7, 14, 25, 0.62));
  padding: 13px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.s-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 187, 255, 0.42);
  box-shadow: 0 14px 28px rgba(4, 11, 24, 0.55);
}

.s-card h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #e2ecff;
}

.s-phase-row {
  margin-top: 10px;
  border: 1px solid rgba(118, 155, 220, 0.24);
  border-radius: 11px;
  padding: 9px 10px;
  background: rgba(8, 15, 27, 0.6);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(130, 165, 224, 0.34);
  color: #bdd3ef;
}

.phase-badge.before {
  border-color: rgba(251, 146, 60, 0.42);
  color: #fdba74;
}

.phase-badge.after {
  border-color: rgba(45, 212, 191, 0.42);
  color: #95f3e7;
}

.s-phase-row p {
  margin: 7px 0 0;
  color: #9fb4d2;
  font-size: 12px;
  line-height: 1.5;
}

.s-stat-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(120, 153, 215, 0.2);
  border-radius: 10px;
  background: rgba(9, 17, 30, 0.54);
  padding: 8px 10px;
}

.s-stat-row span {
  color: #adc2df;
  font-size: 12px;
}

.s-stat-row strong {
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}

.s-status-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 160, 219, 0.28);
  background: rgba(13, 21, 35, 0.62);
  color: #b8cdea;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.s-status-tag.pos {
  border-color: rgba(45, 212, 191, 0.36);
  color: #8ff1e4;
}

.s-status-tag.warn {
  border-color: rgba(251, 146, 60, 0.4);
  color: #fdba74;
}

.s-trade-row {
  margin-top: 10px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 10px;
  background: rgba(7, 17, 30, 0.58);
  padding: 9px 10px;
}

.s-trade-row.loss {
  border-color: rgba(248, 113, 113, 0.28);
}

.s-trade-title {
  margin: 0;
  font-size: 13px;
  color: #d9e7fd;
}

.s-trade-meta {
  margin: 5px 0 0;
  font-size: 11px;
  color: #8ea7c8;
}

.pos {
  color: #5eead4;
}

.neg {
  color: #fda4af;
}

.main-board {
  grid-area: main;
  border-radius: 16px;
  border: 1px solid rgba(122, 173, 245, 0.28);
  background: linear-gradient(165deg, rgba(7, 14, 25, 0.78), rgba(6, 12, 21, 0.66));
  padding: 13px;
}

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

.top-metrics > div {
  border: 1px solid rgba(122, 170, 240, 0.24);
  border-radius: 11px;
  padding: 10px;
  background: rgba(8, 14, 25, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.top-metrics > div:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 190, 255, 0.4);
}

.top-metrics span {
  color: #99b1d1;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.top-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  color: #eef4ff;
}

.big-chart {
  margin-top: 11px;
  border: 1px solid rgba(120, 171, 242, 0.3);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(7, 13, 23, 0.72), rgba(7, 13, 24, 0.84));
  position: relative;
  overflow: hidden;
}

.big-chart svg {
  width: 100%;
  height: 210px;
  filter: drop-shadow(0 6px 16px rgba(4, 10, 22, 0.45));
}

.big-chart .chart-line {
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: tmxChartDraw 1.2s ease forwards;
}

.big-chart .chart-guide {
  opacity: 0.8;
}

.chart-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mk-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(125, 173, 241, 0.4);
  background: rgba(8, 16, 30, 0.84);
  color: #d8e7ff;
  box-shadow: 0 8px 16px rgba(2, 9, 20, 0.66);
}

.mk-chip.warn {
  border-color: rgba(251, 146, 60, 0.5);
  color: #fdba74;
}

.mk-chip.good {
  border-color: rgba(45, 212, 191, 0.5);
  color: #98f5e8;
}

.mk-chip.info {
  border-color: rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
}

.mk-chip.ai {
  border-color: rgba(167, 139, 250, 0.46);
  color: #ddd6fe;
}

.ai-box {
  margin-top: 11px;
  border: 1px solid rgba(108, 184, 255, 0.42);
  border-radius: 12px;
  padding: 12px;
  color: #c4d7f4;
  background: linear-gradient(145deg, rgba(8, 19, 33, 0.88), rgba(8, 16, 30, 0.72));
  box-shadow: 0 16px 28px rgba(2, 8, 20, 0.72), 0 0 28px rgba(79, 159, 255, 0.14);
  animation: tmxAiPanelIn 0.8s ease;
}

.ai-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-box-head span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9adfff;
}

.ai-box-head strong {
  font-size: 12px;
  color: #dbe9ff;
}

.ai-box p {
  margin: 9px 0 0;
  line-height: 1.55;
  font-size: 14px;
}

@keyframes tmxChartDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes tmxAiPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tmx-why {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-template-areas:
    "c1 c2 c3"
    "c4 c2 c5";
  gap: 14px;
  position: relative;
}

.tmx-why::before {
  content: '';
  position: absolute;
  inset: -16px -12px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 126, 186, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 126, 186, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 80%);
}

.why-card {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(114, 164, 236, 0.28);
  background: linear-gradient(165deg, rgba(9, 18, 34, 0.72), rgba(7, 14, 26, 0.6));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(130, 184, 255, 0.5);
  box-shadow: 0 18px 34px rgba(2, 10, 23, 0.66), 0 0 26px rgba(79, 159, 255, 0.18);
  background: linear-gradient(165deg, rgba(10, 22, 40, 0.8), rgba(8, 16, 30, 0.68));
}

.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 12%, rgba(79, 159, 255, 0.12), transparent 42%);
}

.why-1 { grid-area: c1; }
.why-2 { grid-area: c2; }
.why-3 { grid-area: c3; }
.why-4 { grid-area: c4; }
.why-5 { grid-area: c5; }

.why-card.featured {
  border-color: rgba(132, 196, 255, 0.54);
  box-shadow: 0 22px 44px rgba(2, 10, 23, 0.76), 0 0 34px rgba(45, 212, 191, 0.16);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 18px;
  border: 1px solid rgba(126, 177, 246, 0.38);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(79, 159, 255, 0.24));
}

.why-card span {
  color: #88bcff;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.why-card h3 {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.why-card p {
  margin: 10px 0 0;
  color: #dbe8ff;
  line-height: 1.6;
  font-size: 14px;
}

.why-card p strong {
  color: #f2f7ff;
}

.why-micro {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.why-micro em {
  font-style: normal;
  font-size: 11px;
  color: #b8d0f2;
  border: 1px solid rgba(121, 165, 228, 0.32);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(8, 17, 30, 0.62);
}

.why-micro-bars {
  display: grid;
  gap: 8px;
}

.why-micro-bars div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
}

.why-micro-bars label {
  color: #9bb6d8;
  font-size: 11px;
}

.why-micro-bars i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.why-micro-bars i.pos {
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.tmx-testimonials {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

#testimonials {
  position: relative;
  overflow: hidden;
}

#testimonials > .tmx-head {
  position: relative;
  z-index: 1;
}

.tmx-testi-bg {
  position: absolute;
  inset: 8px 0 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}

.tmx-testi-candles {
  width: 100%;
  height: 220px;
}

.tmx-testi-candles line,
.tmx-testi-candles rect,
.tmx-testi-candles polyline {
  stroke: rgba(103, 166, 255, 0.2);
  fill: rgba(79, 159, 255, 0.09);
  stroke-width: 2;
}

.tmx-testi-candles polyline {
  fill: none;
  stroke: rgba(45, 212, 191, 0.22);
  stroke-width: 3;
  stroke-linecap: round;
}

.tmx-testi-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 118, 171, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 118, 171, 0.1) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 82%);
  opacity: 0.24;
}

.tmx-testi-shape {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(115, 166, 248, 0.16);
  background: linear-gradient(145deg, rgba(79, 159, 255, 0.08), rgba(45, 212, 191, 0.06));
  box-shadow: inset 0 0 18px rgba(67, 145, 255, 0.08);
  animation: tmxTestiFloat 9s ease-in-out infinite;
}

.tmx-testi-shape.s1 {
  width: 170px;
  height: 48px;
  top: 20px;
  left: 4%;
}

.tmx-testi-shape.s2 {
  width: 210px;
  height: 58px;
  top: 34px;
  right: 10%;
  animation-delay: -2.5s;
}

.tmx-testi-shape.s3 {
  width: 140px;
  height: 44px;
  top: 150px;
  right: 35%;
  animation-delay: -4.2s;
}

@keyframes tmxTestiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tmx-t-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tmx-t-card:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 183, 255, 0.62);
  box-shadow: 0 24px 44px rgba(2, 10, 24, 0.72), 0 0 0 1px rgba(79, 159, 255, 0.24);
}

.tmx-t-avatar {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  border: 0;
  background: none;
  box-shadow: none;
  align-self: center;
  overflow: hidden;
}

.tmx-t-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(2);
  transform-origin: center;
  background: rgba(8, 14, 26, 0.85);
  transition: filter 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(79, 159, 255, 0.28));
}

.tmx-t-card:hover .tmx-t-avatar img {
  filter: drop-shadow(0 0 14px rgba(79, 159, 255, 0.5));
}

.tmx-t-meta {
  margin-top: 12px;
  text-align: center;
}

.tmx-t-card p {
  margin: 10px 0 0;
  color: #dce9ff;
  width: 100%;
}

.tmx-t-meta h4 {
  margin: 0;
}

.tmx-t-meta span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  display: block;
}

.tmx-t-badge {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 168, 255, 0.44);
  background: linear-gradient(135deg, rgba(10, 23, 42, 0.8), rgba(8, 18, 34, 0.72));
  color: #b8d7ff;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px rgba(59, 137, 255, 0.2);
}

.tmx-t-stars {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #f8d37a, #eab54d 55%, #ffe1a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(234, 181, 77, 0.22);
}

.tmx-t-stat-chip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(94, 171, 255, 0.44);
  background: linear-gradient(135deg, rgba(11, 24, 44, 0.82), rgba(9, 20, 36, 0.74));
  color: #bfe0ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(59, 137, 255, 0.24);
}

.tmx-pricing-head {
  text-align: center;
  position: relative;
  z-index: 1;
}

.tmx-pricing-head .tmx-sub {
  margin-inline: auto;
  max-width: 72ch;
}

#pricing {
  position: relative;
  overflow: hidden;
}

.tmx-trust-pricing {
  margin: 4px auto 20px;
  max-width: 1020px;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
}

.tmx-trust-pricing h3 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.tmx-trust-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tmx-trust-chips span {
  border: 1px solid rgba(104, 176, 255, 0.48);
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(145deg, rgba(8, 18, 34, 0.78), rgba(10, 23, 42, 0.74));
  color: #c3dcff;
  font-size: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 16px rgba(59, 137, 255, 0.18);
}

.tmx-pricing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 18px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(88, 121, 179, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 121, 179, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 18%, transparent 84%);
}

.tmx-pricing-bg span {
  position: absolute;
  color: rgba(120, 195, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.08em;
  filter: blur(0.4px);
  animation: tmxPricingFloat 18s ease-in-out infinite alternate;
}

.tmx-pricing-bg span:nth-child(1) { top: 12%; left: 8%; animation-delay: -2s; }
.tmx-pricing-bg span:nth-child(2) { top: 22%; right: 14%; animation-delay: -8s; }
.tmx-pricing-bg span:nth-child(3) { bottom: 30%; left: 20%; animation-delay: -4s; }
.tmx-pricing-bg span:nth-child(4) { bottom: 15%; right: 10%; animation-delay: -11s; }

.tmx-pricing-bg svg {
  position: absolute;
  inset: auto 0 8% 0;
  width: 100%;
  height: 140px;
  opacity: 0.25;
}

.tmx-ai-banner {
  margin: 24px auto 0;
  max-width: 930px;
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  border-color: rgba(104, 185, 255, 0.45);
  box-shadow: 0 16px 34px rgba(3, 10, 22, 0.62), 0 0 32px rgba(45, 212, 191, 0.16);
}

.tmx-ai-banner strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.tmx-ai-banner p {
  margin: 8px 0 0;
  color: #a4bddf;
  font-size: 14px;
}

.tmx-billing-toggle {
  margin: 18px auto 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(106, 168, 250, 0.34);
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.72);
  padding: 6px;
  position: relative;
  z-index: 1;
}

.tmx-billing-toggle button {
  border: 0;
  min-height: 34px;
  min-width: 102px;
  border-radius: 999px;
  background: transparent;
  color: #9eb8db;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tmx-billing-toggle button.active {
  color: #ebf3ff;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.3), rgba(79, 159, 255, 0.34));
  box-shadow: 0 0 16px rgba(79, 159, 255, 0.2);
}

.tmx-pricing-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.tmx-price-card {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tmx-price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(115, 182, 255, 0.55);
  box-shadow: 0 22px 44px rgba(3, 10, 22, 0.7), 0 0 0 1px rgba(79, 159, 255, 0.2);
}

.tmx-price-top {
  display: grid;
  gap: 4px;
}

.tmx-price-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #b8cff0;
  font-family: 'Space Grotesk', sans-serif;
}

.tmx-price-sub {
  margin: 0;
  color: #9ab0cf;
  font-size: 14px;
}

.tmx-price-best {
  margin: 8px 0 0;
  color: #aec3e3;
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
}

.tmx-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tmx-price strong {
  font-size: clamp(34px, 4.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tmx-price span {
  color: #9db2d0;
  font-size: 14px;
  transform: translateY(-5px);
}

.tmx-billed-note {
  margin: -6px 0 0;
  color: #7f98be;
  font-size: 12px;
}

.tmx-price-value-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 174, 255, 0.35);
  background: linear-gradient(145deg, rgba(9, 19, 33, 0.85), rgba(9, 21, 38, 0.7));
  color: #b9d9ff;
  font-size: 12px;
  line-height: 1.5;
}

.tmx-price-features {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tmx-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d9e6fb;
  font-size: 14px;
}

.tmx-price-features li span {
  font-size: 14px;
  line-height: 1.2;
  transform: translateY(1px);
  filter: saturate(0.95);
}

.tmx-ai-edge {
  margin-top: 2px;
  border: 1px solid rgba(98, 196, 255, 0.46);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(8, 22, 39, 0.88), rgba(8, 18, 31, 0.78));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.14), 0 0 26px rgba(79, 159, 255, 0.18);
}

.tmx-ai-edge h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ce7ff;
}

.tmx-ai-edge ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 7px;
}

.tmx-ai-edge li {
  color: #c6dcf7;
  font-size: 12px;
  line-height: 1.45;
}

.tmx-price-btn {
  margin-top: 10px;
  width: 100%;
  animation: tmxBtnGlow 2.8s ease-in-out infinite;
}

.tmx-price-card:hover .tmx-price-btn {
  filter: brightness(1.05);
}

.tmx-price-featured {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(108, 190, 255, 0.78);
  box-shadow: 0 26px 58px rgba(2, 9, 20, 0.82), 0 0 0 1px rgba(79, 159, 255, 0.46), 0 0 56px rgba(45, 212, 191, 0.3);
  animation: tmxFeaturedPulse 4.2s ease-in-out infinite;
  overflow: visible;
  padding-top: 30px;
}

.tmx-price-featured::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(79, 159, 255, 0.14) 36%, transparent 70%);
  filter: blur(16px);
}

.tmx-price-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.12), rgba(79, 159, 255, 0.05), rgba(45, 212, 191, 0.12));
  background-size: 220% 220%;
  animation: tmxAiFlow 6s linear infinite;
  pointer-events: none;
}

.tmx-price-featured .tmx-price-title {
  position: relative;
}

.tmx-price-featured .tmx-price-title::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -6px;
  height: 14px;
  z-index: -1;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 72%);
  filter: blur(6px);
  animation: tmxAiPulse 2.6s ease-in-out infinite;
}

.tmx-price-badge {
  position: absolute;
  top: 10px;
  right: 18px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041324;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
  box-shadow: 0 10px 18px rgba(59, 137, 255, 0.28), 0 0 22px rgba(45, 212, 191, 0.3);
}

.tmx-price-btn-featured {
  box-shadow: 0 14px 30px rgba(59, 137, 255, 0.4);
}

.tmx-ai-preview {
  margin-top: 4px;
  border: 1px solid rgba(105, 170, 255, 0.42);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(8, 19, 34, 0.88), rgba(8, 17, 31, 0.78));
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.1), 0 0 26px rgba(45, 212, 191, 0.16);
}

.tmx-ai-preview h4 {
  margin: 0;
  font-size: 13px;
  color: #bfe4ff;
}

.tmx-ai-preview p {
  margin: 6px 0 0;
  color: #9eb8db;
  font-size: 12px;
}

.tmx-ai-preview-note {
  margin-top: 8px;
  border-top: 1px solid rgba(110, 161, 237, 0.28);
  padding-top: 8px;
  color: #b8d8ff;
  font-size: 12px;
  line-height: 1.45;
}

.tmx-ai-preview-note span {
  display: block;
  color: #82d9ff;
  font-weight: 700;
  margin-bottom: 2px;
}

.tmx-price-trust-line {
  margin-top: 4px;
  display: grid;
  gap: 6px;
}

.tmx-price-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fd5c5;
  font-size: 12px;
}

.tmx-pricing-compare {
  margin-top: 18px;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.tmx-pricing-compare h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.tmx-compare-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.8fr;
  border: 1px solid rgba(112, 148, 212, 0.26);
  border-radius: 12px;
  overflow: hidden;
}

.tmx-compare-grid > div {
  padding: 10px 12px;
  border-right: 1px solid rgba(112, 148, 212, 0.2);
  border-bottom: 1px solid rgba(112, 148, 212, 0.2);
  font-size: 14px;
  background: rgba(9, 16, 30, 0.52);
}

.tmx-compare-grid > div:nth-child(3n + 2),
.tmx-compare-grid > div:nth-child(3n + 3) {
  text-align: center;
  font-weight: 700;
}

.tmx-compare-grid > div:nth-child(3n) {
  border-right: 0;
}

.tmx-compare-head {
  color: #b8cff0;
  font-weight: 700;
  background: rgba(11, 21, 39, 0.72) !important;
}

.tmx-compare-grid .is-on {
  color: #8af5cf;
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.36);
}

.tmx-compare-grid .is-off {
  color: #6682aa;
  opacity: 0.7;
}

.tmx-pricing-psych {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.tmx-pricing-psych h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.tmx-psych-card {
  border-radius: 14px;
  padding: 14px;
}

.tmx-psych-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.tmx-psych-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tmx-psych-card li {
  color: #bfd1eb;
  font-size: 14px;
}

.tmx-psych-card-win {
  border-color: rgba(94, 203, 255, 0.52);
  box-shadow: 0 18px 34px rgba(5, 12, 26, 0.66), 0 0 26px rgba(79, 159, 255, 0.16);
}

.tmx-pricing-cta {
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tmx-pricing-cta h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

@keyframes tmxFeaturedPulse {
  0%, 100% { box-shadow: 0 24px 54px rgba(2, 9, 20, 0.78), 0 0 0 1px rgba(79, 159, 255, 0.3), 0 0 44px rgba(45, 212, 191, 0.2); }
  50% { box-shadow: 0 24px 54px rgba(2, 9, 20, 0.78), 0 0 0 1px rgba(79, 159, 255, 0.4), 0 0 54px rgba(45, 212, 191, 0.28); }
}

@keyframes tmxPricingFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0.05; }
  50% { transform: translateY(-8px) translateX(6px); opacity: 0.08; }
  100% { transform: translateY(-14px) translateX(-8px); opacity: 0.06; }
}

@keyframes tmxAiFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes tmxAiPulse {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50% { opacity: 0.9; transform: scaleX(1.06); }
}

@keyframes tmxBtnGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(59, 137, 255, 0.22); }
  50% { box-shadow: 0 14px 30px rgba(45, 212, 191, 0.28); }
}

.tmx-final {
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  margin-bottom: 70px;
}

.tmx-final h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
}

.tmx-cta-row.center {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .tmx-links {
    display: none;
  }

  .tmx-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .tmx-features-grid,
  .tmx-testimonials {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .tmx-why {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    grid-template-areas:
      "c2 c2"
      "c1 c3"
      "c4 c5";
  }

  .tmx-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .tmx-price-card {
    grid-template-rows: auto;
  }

  .tmx-compare-grid {
    grid-template-columns: 1fr 0.6fr 0.8fr;
  }

  .tmx-psych-grid {
    grid-template-columns: 1fr;
  }

  .tmx-trust-stats {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .tmx-showcase {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
  }
}

@media (max-width: 760px) {
  .tmx-wrap {
    width: min(1240px, calc(100% - 24px));
  }

  .tmx-nav {
    flex-wrap: wrap;
  }

  .tmx-actions {
    width: 100%;
  }

  .tmx-actions .tmx-btn {
    flex: 1;
  }

  .tmx-features-grid,
  .tmx-testimonials {
    grid-template-columns: 1fr;
  }

  .tmx-why {
    grid-template-columns: 1fr;
    grid-template-areas:
      "c2"
      "c1"
      "c3"
      "c4"
      "c5";
  }

  .tmx-price-featured {
    transform: none;
  }

  .tmx-pricing-compare {
    padding: 12px;
  }

  .tmx-compare-grid > div {
    font-size: 13px;
    padding: 9px 8px;
  }

  .tmx-ai-edge,
  .tmx-ai-preview {
    padding: 10px;
  }

  .tmx-price-trust-line span {
    font-size: 11px;
  }

  .tmx-trust-stats {
    grid-template-columns: 1fr;
  }

  .top-metrics {
    grid-template-columns: 1fr;
  }

  .chart-markers {
    display: none;
  }

  .tmx-hero::after {
    opacity: 0.1;
    animation: none;
  }

  .tmx-right::after {
    display: none;
  }

  .c1,
  .c2,
  .c3,
  .c4 {
    position: static;
    margin-top: 10px;
    animation: none;
  }

  .tmx-section {
    padding-top: 52px;
  }

  .tmx-final {
    padding: 22px;
    margin-bottom: 42px;
  }
}

/* ===== Premium Auth + Onboarding ===== */
.tmx-auth-body,
.tmx-onboard-body {
  margin: 0;
  min-height: 100vh;
  color: #ebf3ff;
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at 12% -5%, rgba(79, 159, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.15), transparent 36%),
    linear-gradient(165deg, #030711, #07101d);
  overflow-x: hidden;
}

.tmx-client-body {
  --cp-bg0: #03060d;
  --cp-bg1: #071023;
  --cp-panel: rgba(10, 19, 35, 0.72);
  --cp-border: rgba(101, 145, 220, 0.34);
  --cp-blue: #2c92ff;
  --cp-cyan: #22d3ee;
  --cp-text: #eaf2ff;
  --cp-muted: #98aecd;

  margin: 0;
  min-height: 100vh;
  color: var(--cp-text);
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(44, 146, 255, 0.22), transparent 35%),
    radial-gradient(circle at 88% 14%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(170deg, var(--cp-bg0), var(--cp-bg1));
  overflow: hidden;
}

.tmx-client-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(86, 113, 160, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 113, 160, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 82%);
  opacity: 0.34;
}

.tmx-client-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(54, 137, 201, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 137, 201, 0.11) 1px, transparent 1px);
  background-size: 108px 108px;
  opacity: 0.24;
}

.tmx-client-tape {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tmx-client-tape span {
  position: absolute;
  color: rgba(124, 200, 255, 0.07);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.04em;
  filter: blur(0.4px);
  animation: tmxClientFloat 22s ease-in-out infinite alternate;
  white-space: nowrap;
}

.tmx-client-tape span:nth-child(1) { top: 8%; left: 6%; animation-delay: -2s; }
.tmx-client-tape span:nth-child(2) { top: 12%; left: 38%; animation-delay: -10s; }
.tmx-client-tape span:nth-child(3) { top: 10%; left: 73%; animation-delay: -6s; }
.tmx-client-tape span:nth-child(4) { top: 24%; left: 15%; animation-delay: -1s; }
.tmx-client-tape span:nth-child(5) { top: 28%; left: 58%; animation-delay: -8s; }
.tmx-client-tape span:nth-child(6) { top: 40%; left: 4%; animation-delay: -12s; }
.tmx-client-tape span:nth-child(7) { top: 36%; left: 79%; animation-delay: -3s; }
.tmx-client-tape span:nth-child(8) { top: 52%; left: 28%; animation-delay: -14s; }
.tmx-client-tape span:nth-child(9) { top: 57%; left: 64%; animation-delay: -4s; }
.tmx-client-tape span:nth-child(10) { top: 66%; left: 12%; animation-delay: -9s; }
.tmx-client-tape span:nth-child(11) { top: 72%; left: 46%; animation-delay: -5s; }
.tmx-client-tape span:nth-child(12) { top: 78%; left: 77%; animation-delay: -11s; }
.tmx-client-tape span:nth-child(13) { top: 86%; left: 20%; animation-delay: -7s; }
.tmx-client-tape span:nth-child(14) { top: 90%; left: 55%; animation-delay: -13s; }
.tmx-client-tape span:nth-child(15) { top: 82%; left: 84%; animation-delay: -15s; }

.tmx-client-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.tmx-client-glow.a {
  width: 460px;
  height: 460px;
  left: -140px;
  top: -140px;
  background: rgba(44, 146, 255, 0.22);
}

.tmx-client-glow.b {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -90px;
  background: rgba(34, 211, 238, 0.18);
}

.tmx-client-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.tmx-client-main::before {
  content: '';
  position: absolute;
  width: min(640px, 88vw);
  height: min(640px, 88vw);
  background: radial-gradient(circle, rgba(44, 146, 255, 0.2) 0%, rgba(34, 211, 238, 0.12) 28%, rgba(4, 10, 20, 0) 72%);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.tmx-client-card {
  width: min(440px, 100%);
  border-radius: 20px;
  border: 1px solid var(--cp-border);
  background: linear-gradient(165deg, rgba(11, 21, 37, 0.92), rgba(8, 16, 30, 0.82));
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 56px rgba(2, 9, 20, 0.68), inset 0 0 0 1px rgba(34, 211, 238, 0.08);
  padding: 28px;
}

.tmx-client-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tmx-client-brand img {
  width: 40px;
  height: 40px;
}

.tmx-client-brand strong {
  font-size: 23px;
  letter-spacing: 0.01em;
}

.tmx-client-headline {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--cp-muted);
}

.tmx-client-form {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.tmx-client-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #b8cae5;
}

.tmx-client-form input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(101, 145, 220, 0.34);
  background: rgba(5, 12, 24, 0.72);
  color: var(--cp-text);
  padding: 0 12px;
  font-size: 14px;
}

.tmx-client-form input:focus {
  outline: none;
  border-color: rgba(44, 146, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(44, 146, 255, 0.18);
}

.tmx-client-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.tmx-client-row a {
  color: #9ec8ff;
  text-decoration: none;
  font-size: 12px;
}

.tmx-client-submit {
  margin-top: 4px;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, var(--cp-cyan), var(--cp-blue));
  color: #031122;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tmx-client-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(34, 211, 238, 0.34);
}

.tmx-client-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tmx-client-message {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #9bc4ff;
}

.tmx-client-message.error {
  color: #fca5a5;
}

.tmx-client-message.success {
  color: #6ee7b7;
}

.tmx-client-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--cp-muted);
  text-align: center;
}

.tmx-client-footer a {
  color: #9ec8ff;
  text-decoration: none;
}

@media (max-width: 720px) {
  .tmx-client-tape span {
    font-size: 12px;
  }

  .tmx-client-main {
    padding: 14px;
  }

  .tmx-client-card {
    padding: 22px 18px;
  }
}

@keyframes tmxClientFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0.04; }
  50% { transform: translateY(-10px) translateX(6px); opacity: 0.08; }
  100% { transform: translateY(-16px) translateX(-8px); opacity: 0.05; }
}

.tmx-auth-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 116, 160, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 116, 160, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.34;
  mask-image: radial-gradient(circle at center, #000 16%, transparent 80%);
  pointer-events: none;
}

.tmx-auth-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}

.tmx-auth-glow-a {
  width: 380px;
  height: 380px;
  left: -90px;
  top: -90px;
  background: rgba(79, 159, 255, 0.16);
}

.tmx-auth-glow-b {
  width: 340px;
  height: 340px;
  right: -60px;
  top: 120px;
  background: rgba(45, 212, 191, 0.12);
}

.tmx-auth-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tmx-auth-left {
  border: 1px solid rgba(96, 132, 206, 0.24);
  border-radius: 18px;
  padding: 26px;
  background: rgba(8, 15, 27, 0.66);
  backdrop-filter: blur(12px);
}

.auth-brand {
  margin-bottom: 20px;
}

.tmx-auth-left h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.tmx-auth-left p {
  margin: 12px 0 0;
  color: #9db2d1;
  max-width: 58ch;
}

.tmx-auth-visual {
  margin-top: 20px;
  border-radius: 14px;
  padding: 14px;
}

.tmx-auth-visual svg {
  width: 100%;
  height: 160px;
}

.auth-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-stats span {
  border: 1px solid rgba(108, 146, 214, 0.25);
  border-radius: 999px;
  padding: 8px 11px;
  color: #bad0f0;
  font-size: 12px;
}

.tmx-auth-right {
  display: grid;
}

.tmx-auth-card {
  border-radius: 18px;
  padding: 18px;
  align-self: center;
}

.auth-card-head {
  margin-bottom: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab {
  border: 1px solid rgba(111, 147, 214, 0.25);
  background: rgba(9, 17, 32, 0.6);
  color: #a7bddf;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-tab.active {
  color: #ebf3ff;
  border-color: rgba(113, 183, 255, 0.58);
  background: rgba(77, 143, 243, 0.18);
}

.signup-progress-wrap {
  margin-top: 10px;
}

.signup-progress-wrap p {
  margin: 0;
  font-size: 12px;
  color: #9cb2d1;
}

.signup-progress-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(112, 145, 207, 0.18);
  overflow: hidden;
}

.signup-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
  transition: width 0.3s ease;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #9cb2d1;
  font-size: 13px;
}

.auth-form input {
  border: 1px solid rgba(113, 147, 209, 0.24);
  background: rgba(8, 15, 28, 0.68);
  border-radius: 10px;
  color: #ecf4ff;
  padding: 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(112, 183, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(96, 167, 255, 0.2);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #88baf7;
  cursor: pointer;
  font-size: 12px;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.social-row {
  display: grid;
  gap: 8px;
}

.social-btn {
  border: 1px solid rgba(111, 147, 214, 0.28);
  background: rgba(10, 17, 31, 0.58);
  color: #dbe9ff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.social-btn:hover {
  border-color: rgba(114, 184, 255, 0.58);
}

.password-meter {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(112, 144, 205, 0.18);
}

.password-meter span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
}

.password-meter .strength-0,
.password-meter .strength-1 {
  background: #f87171;
}

.password-meter .strength-2 {
  background: #fb923c;
}

.password-meter .strength-3 {
  background: #22d3ee;
}

.password-meter .strength-4 {
  background: #2dd4bf;
}

.strength-label {
  margin: -3px 0 0;
  font-size: 12px;
  color: #9cb2d1;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-signals span {
  border: 1px solid rgba(111, 147, 214, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: #b7cae9;
}

.auth-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #9cb2d1;
  font-size: 13px;
}

.auth-message.error {
  color: #ffb7b7;
}

.auth-message.success {
  color: #91f6cd;
}

.tmx-onboard-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 26px auto;
  position: relative;
  z-index: 1;
}

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

.onboard-progress {
  width: min(340px, 46vw);
}

.onboard-progress p {
  margin: 0;
  font-size: 12px;
  color: #9cb2d1;
}

.onboard-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(112, 145, 207, 0.18);
  overflow: hidden;
}

.onboard-bar span {
  display: block;
  width: 0;
  height: 100%;
  transition: width 0.35s ease;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.tmx-onboard-card {
  border-radius: 18px;
  padding: 24px;
  min-height: 420px;
}

.onboard-step h2 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.onboard-step p {
  margin: 10px 0 0;
  color: #9db3d1;
}

.onboard-step h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  color: #d7e7ff;
}

.onboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.onboard-pill-row span {
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: #b7caea;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.choice-grid.multi {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.choice {
  border: 1px solid rgba(111, 147, 214, 0.3);
  background: rgba(8, 15, 29, 0.7);
  color: #cfe0fb;
  border-radius: 10px;
  padding: 11px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

.choice.active {
  border-color: rgba(114, 184, 255, 0.64);
  background: rgba(78, 142, 243, 0.2);
  color: #eef4ff;
}

.risk-input-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.risk-input-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #9cb2d1;
}

.risk-input-grid input {
  border: 1px solid rgba(112, 147, 208, 0.3);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.7);
  color: #ecf4ff;
  padding: 10px;
}

.tmx-onboard-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.step-enter {
  animation: stepIn 0.25s ease;
}

.step-leave {
  opacity: 0.55;
  transform: translateY(4px);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .tmx-auth-shell {
    grid-template-columns: 1fr;
  }

  .tmx-auth-left {
    order: 2;
  }

  .tmx-auth-right {
    order: 1;
  }

  .choice-grid,
  .choice-grid.multi,
  .risk-input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tmx-auth-shell,
  .tmx-onboard-wrap {
    width: min(1220px, calc(100% - 20px));
  }

  .tmx-auth-left,
  .tmx-auth-card,
  .tmx-onboard-card {
    padding: 16px;
  }

  .tmx-onboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .onboard-progress {
    width: 100%;
  }

  .tmx-onboard-actions {
    flex-direction: column;
  }

  .tmx-onboard-actions .tmx-btn {
    width: 100%;
  }
}

/* ===== Onboarding Interaction Fixes ===== */
.tmx-onboard-wrap {
  z-index: 5;
}

.tmx-onboard-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  gap: 14px;
  position: relative;
  z-index: 6;
}

.onboard-panel {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.onboard-step {
  width: 100%;
  display: grid;
  gap: 10px;
}

.onboard-step p {
  max-width: 70ch;
}

.onboard-microcopy {
  margin: 0;
  font-size: 13px;
  color: #88a8d1;
}

.onboard-feature-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.onboard-feature-card {
  border: 1px solid rgba(112, 147, 214, 0.28);
  background: rgba(8, 16, 30, 0.72);
  border-radius: 14px;
  text-align: left;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  color: #e9f2ff;
  position: relative;
  z-index: 8;
}

.onboard-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 184, 255, 0.62);
  box-shadow: 0 14px 28px rgba(5, 10, 23, 0.62);
}

.onboard-feature-card:active {
  transform: translateY(0);
}

.onboard-feature-card.active {
  border-color: rgba(115, 184, 255, 0.86);
  background: linear-gradient(160deg, rgba(39, 73, 126, 0.55), rgba(24, 69, 99, 0.42));
  box-shadow:
    0 0 0 1px rgba(114, 184, 255, 0.5),
    0 14px 30px rgba(8, 25, 46, 0.64);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.24), rgba(96, 165, 250, 0.26));
  font-size: 18px;
}

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

.onboard-feature-card small {
  color: #9cb2d1;
  font-size: 12px;
  line-height: 1.45;
}

.choice,
.onboard-feature-card,
.tmx-onboard-actions .tmx-btn {
  pointer-events: auto;
}

.choice {
  min-height: 48px;
  font-weight: 700;
}

.choice.active {
  box-shadow: 0 0 0 1px rgba(113, 183, 255, 0.55);
}

.tmx-onboard-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(109, 145, 212, 0.24);
  position: relative;
  z-index: 9;
}

.tmx-onboard-actions .tmx-btn {
  min-width: 160px;
  min-height: 46px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}

.tmx-onboard-actions .tmx-btn-primary {
  color: #02101f;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
}

button.tmx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.tmx-btn-primary:disabled {
  color: #0b1b2d;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.55), rgba(96, 165, 250, 0.55));
}

@media (max-width: 980px) {
  .tmx-onboard-card {
    min-height: 520px;
  }

  .onboard-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Auth Redesign Cleanup ===== */
.tmx-auth-body .tmx-auth-shell {
  grid-template-columns: 1fr minmax(400px, 500px);
  gap: 22px;
}

.tmx-auth-body .tmx-auth-left {
  padding: 34px;
}

.tmx-auth-body .tmx-auth-left .tmx-kicker {
  margin-top: 8px;
}

.tmx-auth-body .tmx-auth-left p {
  max-width: 52ch;
}

.tmx-auth-body .tmx-auth-visual {
  margin-top: 22px;
  opacity: 0.92;
}

.tmx-auth-body .tmx-auth-card {
  padding: 26px;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

.tmx-auth-body .auth-card-head {
  margin-bottom: 16px;
}

.tmx-auth-body .auth-form {
  gap: 12px;
}

.tmx-auth-body .auth-form.hidden {
  display: none !important;
}

.tmx-auth-body .auth-form label {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.tmx-auth-body .auth-form input {
  min-height: 46px;
}

.tmx-auth-body .auth-submit {
  margin-top: 4px;
  min-height: 48px;
  width: 100%;
  color: #041121 !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tmx-auth-body .auth-submit:hover {
  filter: brightness(1.03);
}

.tmx-auth-body .auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}

.tmx-auth-body .auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(113, 147, 214, 0.24);
}

.tmx-auth-body .auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  background: rgba(9, 18, 34, 0.92);
  color: #9db3d2;
  font-size: 12px;
}

.tmx-auth-body .social-row {
  gap: 10px;
}

.tmx-auth-body .social-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #e7f0ff;
  font-weight: 700;
}

.tmx-auth-body .social-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.tmx-auth-body .social-icon svg {
  width: 100%;
  height: 100%;
}

.tmx-auth-body .text-btn {
  color: #8ec0ff;
}

.tmx-auth-body .auth-message {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .tmx-auth-body .tmx-auth-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tmx-auth-body .tmx-auth-left {
    padding: 22px;
  }

  .tmx-auth-body .tmx-auth-right {
    align-items: start;
  }

  .tmx-auth-body .tmx-auth-card {
    max-width: none;
  }
}

/* ===== Primary Auth Button Reliability Fix ===== */
.auth-primary-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  line-height: 1;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa) !important;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 24px rgba(53, 136, 241, 0.35);
  overflow: visible;
}

.auth-primary-btn .auth-primary-label {
  display: inline-block;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap;
  pointer-events: none;
}

.auth-primary-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.auth-primary-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.auth-primary-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(98, 180, 255, 0.35),
    0 12px 24px rgba(53, 136, 241, 0.35);
}

.auth-primary-btn:disabled,
.auth-primary-btn[aria-disabled='true'] {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.55), rgba(96, 165, 250, 0.55)) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none;
  transform: none;
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-primary-btn.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: authSpin 0.8s linear infinite;
}

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

/* ===== Trade Matrix Dashboard Upgrade ===== */
.tmx-dash-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 159, 255, 0.16), transparent 26%),
    radial-gradient(circle at 96% 10%, rgba(45, 212, 191, 0.14), transparent 28%),
    linear-gradient(165deg, #040914, #0b1220);
}

.tmx-dash-main {
  gap: 14px;
}

.tmx-trading-header {
  padding: 14px;
}

.tmx-header-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tmx-header-kicker {
  margin: 0;
  color: #8ec0ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.tmx-trading-header h1 {
  margin: 6px 0 0;
  font-size: 24px;
}

.tmx-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tmx-select {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(113, 147, 209, 0.3);
  background: rgba(8, 16, 30, 0.72);
  color: #eaf3ff;
  padding: 0 10px;
  font-family: 'IBM Plex Mono', monospace;
}

.tmx-icon-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(113, 147, 209, 0.3);
  background: rgba(9, 18, 34, 0.75);
  color: #eaf3ff;
  cursor: pointer;
}

.tmx-header-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.tmx-h-metric {
  border: 1px solid rgba(113, 147, 209, 0.24);
  background: rgba(8, 15, 28, 0.62);
  border-radius: 10px;
  padding: 10px;
}

.tmx-h-metric span {
  color: #9eb3d1;
  font-size: 11px;
}

.tmx-h-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.tmx-range-switch {
  margin-top: 10px;
  width: fit-content;
}

.tmx-dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}

.tmx-chart-card,
.tmx-ai-card,
.tmx-journal-card,
.tmx-risk-card,
.tmx-feedback-card {
  padding: 14px;
}

.tmx-chart-wrap {
  margin-top: 8px;
  border: 1px solid rgba(115, 149, 211, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.62);
  padding: 8px;
  position: relative;
}

#equity-canvas {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.85), rgba(8, 15, 27, 0.84));
}

.tmx-chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 170px;
  border: 1px solid rgba(115, 149, 211, 0.36);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.95);
  color: #ebf3ff;
  padding: 8px;
  pointer-events: none;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.tmx-chart-tooltip strong {
  font-size: 12px;
}

.tmx-ai-score {
  border: 1px solid rgba(112, 147, 210, 0.24);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.58);
  padding: 10px;
}

.tmx-ai-score p {
  margin: 0;
  color: #9eb3d1;
  font-size: 12px;
}

.tmx-ai-score strong {
  margin-top: 6px;
  display: block;
  font-size: 28px;
}

.tmx-ai-score span {
  font-size: 14px;
  color: #9db1ce;
}

.tmx-ai-bars {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.tmx-ai-bars div {
  display: grid;
  gap: 5px;
}

.tmx-ai-bars span {
  color: #9eb3d1;
  font-size: 12px;
}

.tmx-ai-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.tmx-ai-insights {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d5e5ff;
}

.tmx-journal-filters {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.tmx-journal-card th[data-sort] {
  cursor: pointer;
}

.tmx-journal-card th[data-sort]:hover {
  color: #d9e8ff;
}

.tmx-journal-card tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.tmx-journal-card tbody tr:hover {
  background: rgba(85, 128, 201, 0.12);
}

.tmx-tag-chip {
  display: inline-block;
  border: 1px solid rgba(109, 175, 246, 0.36);
  background: rgba(95, 160, 248, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  margin-right: 5px;
  font-size: 11px;
}

.tmx-tag-chip.warn {
  border-color: rgba(243, 160, 88, 0.34);
  background: rgba(243, 160, 88, 0.15);
}

.tmx-risk-output {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(112, 147, 210, 0.28);
  background: rgba(8, 15, 28, 0.6);
  padding: 10px;
}

.tmx-risk-grid-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.tmx-risk-grid-output div {
  border: 1px solid rgba(110, 145, 206, 0.22);
  border-radius: 8px;
  padding: 8px;
}

.tmx-risk-grid-output span {
  color: #9eb3d1;
  font-size: 11px;
}

.tmx-risk-grid-output strong {
  display: block;
  margin-top: 4px;
}

.tmx-feedback-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d8e7ff;
}

.tmx-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: auto;
  animation: modalFadeIn 0.18s ease;
}

.tmx-modal.hidden {
  display: none !important;
  pointer-events: none !important;
}

.tmx-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 8, 16, 0.72);
  pointer-events: auto;
}

.tmx-modal-container {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 24px));
  pointer-events: auto;
}

.tmx-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(143, 178, 241, 0.42);
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.97);
  padding: 16px;
  box-shadow: 0 24px 60px rgba(2, 7, 18, 0.72);
  pointer-events: auto;
}

.tmx-close-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tmx-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.tmx-modal-grid div {
  border: 1px solid rgba(113, 147, 209, 0.24);
  border-radius: 8px;
  padding: 8px;
}

.tmx-modal-grid span {
  color: #9eb3d1;
  font-size: 11px;
}

.tmx-modal-grid strong {
  display: block;
  margin-top: 4px;
}

.tmx-modal-notes {
  margin-top: 12px;
  border-top: 1px solid rgba(113, 147, 209, 0.2);
  padding-top: 12px;
}

.tmx-modal-notes h3 {
  margin: 0 0 8px;
}

.tmx-modal-notes p {
  margin: 6px 0;
  color: #d2e2ff;
}

@media (max-width: 1120px) {
  .tmx-dash-grid {
    grid-template-columns: 1fr;
  }

  .tmx-header-metrics {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .tmx-journal-filters {
    grid-template-columns: 1fr;
  }

  .tmx-modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .tmx-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .tmx-header-tools {
    width: 100%;
  }

  .tmx-header-tools .btn,
  .tmx-header-tools .tmx-select {
    flex: 1;
  }

  .tmx-risk-grid-output,
  .tmx-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Trade Detail AI Coach Modal ===== */
.tmx-modal-headline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.tmx-modal-headline p {
  margin: 0;
  color: #93add2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tmx-modal-headline h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.tmx-badge {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.tmx-badge.win {
  border: 1px solid rgba(46, 211, 154, 0.45);
  background: rgba(46, 211, 154, 0.18);
  color: #a9ffe0;
}

.tmx-badge.loss {
  border: 1px solid rgba(255, 123, 123, 0.45);
  background: rgba(255, 123, 123, 0.16);
  color: #ffd0d0;
}

.tmx-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tmx-score-strip article {
  border: 1px solid rgba(113, 147, 209, 0.22);
  border-radius: 9px;
  background: rgba(8, 15, 28, 0.7);
  padding: 8px;
}

.tmx-score-strip span {
  color: #9ab0cf;
  font-size: 11px;
}

.tmx-score-strip strong {
  display: block;
  margin-top: 4px;
}

.tmx-preview-area {
  margin-top: 12px;
  border: 1px solid rgba(112, 147, 210, 0.24);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.64);
  padding: 10px;
}

.tmx-preview-area p {
  margin: 0;
  color: #9eb3d1;
  font-size: 12px;
}

.tmx-preview-chart {
  margin-top: 10px;
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tmx-preview-chart span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2dd4bf, #60a5fa);
}

.tmx-ai-review {
  margin-top: 12px;
  border: 1px solid rgba(108, 146, 214, 0.26);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.68);
  padding: 10px;
}

.tmx-ai-review h4 {
  margin: 0;
}

.tmx-ai-review ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.tmx-suggestion-panel {
  margin-top: 12px;
  border: 1px solid rgba(45, 212, 191, 0.44);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(16, 71, 83, 0.35), rgba(14, 57, 90, 0.25));
  padding: 11px;
}

.tmx-suggestion-panel h4 {
  margin: 0;
  color: #9effe6;
}

.tmx-suggestion-panel p {
  margin: 7px 0 0;
  color: #dcf7ff;
}

@media (max-width: 760px) {
  .tmx-score-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== Trade Matrix OS Product Redesign ===== */
.tmxos-body {
  margin: 0;
  min-height: 100vh;
  color: #e8f2ff;
  font-family: 'Space Grotesk', sans-serif;
  background:
    repeating-linear-gradient(90deg, rgba(116, 151, 214, 0.05) 0, rgba(116, 151, 214, 0.05) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(116, 151, 214, 0.035) 0, rgba(116, 151, 214, 0.035) 1px, transparent 1px, transparent 64px),
    radial-gradient(circle at 8% -4%, rgba(84, 160, 255, 0.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.13), transparent 28%),
    linear-gradient(165deg, #030710, #0a1220);
}

.tmxos-body,
.tmxos-body .tmxos-sidebar,
.tmxos-body .tmxos-topbar,
.tmxos-body .card,
.tmxos-body .tmxos-section,
.tmxos-body .card-lite,
.tmxos-body .tmxos-stat,
.tmxos-body .tmxos-popover,
.tmxos-body .tmxos-top-controls .icon,
.tmxos-body .tmxos-top-controls select,
.tmxos-body #tmx-workspace button,
.tmxos-body #tmx-workspace select,
.tmxos-body #tmx-workspace input {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tmxos-body.theme-light {
  --tmx-brand-blue: #1f91dc;
  --tmx-bg: #ffffff;
  --tmx-surface: #f7f9fc;
  --tmx-border: #d6e6f7;
  --tmx-text-primary: #1a1f2b;
  --tmx-text-secondary: #6b7280;
  --tmx-brand-blue-weak: #d6e6f7;
  --tmx-brand-blue-strong: rgba(31, 145, 220, 0.72);
  color: var(--tmx-text-primary);
  background:
    repeating-linear-gradient(90deg, rgba(138, 154, 181, 0.06) 0, rgba(138, 154, 181, 0.06) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(138, 154, 181, 0.045) 0, rgba(138, 154, 181, 0.045) 1px, transparent 1px, transparent 64px),
    var(--tmx-bg);
}

.tmxos-body.theme-light .tmxos-sidebar {
  background: var(--tmx-bg);
  border-right-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-brand span,
.tmxos-body.theme-light .tmxos-side-status span,
.tmxos-body.theme-light .tmxos-topbar .kicker,
.tmxos-body.theme-light .tmxos-stat span,
.tmxos-body.theme-light .tmxos-summary-list span,
.tmxos-body.theme-light .tmxos-watch-head,
.tmxos-body.theme-light .tmxos-insight-list span {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light .tmxos-topbar,
.tmxos-body.theme-light .tmxos-stat,
.tmxos-body.theme-light .card,
.tmxos-body.theme-light .tmxos-section,
.tmxos-body.theme-light .card-lite,
.tmxos-body.theme-light .tmxos-side-status,
.tmxos-body.theme-light .tmxos-chart-workspace,
.tmxos-body.theme-light .tmxos-chart-quick-actions,
.tmxos-body.theme-light .tmxos-chart-markers button {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
  color: var(--tmx-text-primary);
  box-shadow: 0 2px 8px rgba(15, 30, 55, 0.04);
}

.tmxos-body.theme-light .tmxos-stat,
.tmxos-body.theme-light .card,
.tmxos-body.theme-light .tmxos-section,
.tmxos-body.theme-light .card-lite,
.tmxos-body.theme-light .tmxos-summary-list article,
.tmxos-body.theme-light .tmxos-table-wrap,
.tmxos-body.theme-light .tmxos-chart-wrap {
  border-radius: 12px;
}

.tmxos-body.theme-light .tmxos-tv-shell {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-nav button {
  color: #4f6482;
  border: 1px solid var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-nav button.active,
.tmxos-body.theme-light .tmxos-nav button:hover {
  color: #102238;
  border-color: var(--tmx-brand-blue-strong);
  background: rgba(111, 166, 245, 0.14);
}

.tmxos-body.theme-light .tmxos-nav button.active {
  border-left: 3px solid var(--tmx-brand-blue);
  background: rgba(31, 145, 220, 0.16);
  color: #0d2a4a;
}

.tmxos-body.theme-light .tmxos-top-controls select,
.tmxos-body.theme-light .tmxos-top-controls .icon,
.tmxos-body.theme-light #tmx-workspace button,
.tmxos-body.theme-light #tmx-workspace select,
.tmxos-body.theme-light #tmx-workspace input,
.tmxos-body.theme-light .tmxos-range {
  background: var(--tmx-bg);
  border-color: var(--tmx-border);
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-stat:hover,
.tmxos-body.theme-light .tmxos-summary-list article:hover,
.tmxos-body.theme-light .tmxos-mini-grid article:hover,
.tmxos-body.theme-light .tmxos-risk-grid article:hover {
  border-color: var(--tmx-brand-blue-strong);
  box-shadow: 0 0 0 1px rgba(31, 145, 220, 0.2);
}

.tmxos-body.theme-light .tmxos-tv-shell {
  border-color: var(--tmx-brand-blue-weak);
  box-shadow: inset 0 0 0 1px rgba(31, 145, 220, 0.16), 0 8px 20px rgba(31, 145, 220, 0.08);
}

.tmxos-body.theme-light .tmxos-chart-quick-actions button {
  border-color: var(--tmx-brand-blue);
  color: #1d3f66;
  background: var(--tmx-bg);
}

.tmxos-body.theme-light .tmxos-chart-quick-actions button:hover {
  background: var(--tmx-brand-blue);
  color: #ffffff;
  border-color: var(--tmx-brand-blue);
}

.tmxos-body.theme-light .tmxos-range button {
  color: #4f6482;
  background: var(--tmx-bg);
}

.tmxos-body.theme-light .tmxos-range button.active {
  color: #102238;
  background: var(--tmx-brand-blue);
  color: #ffffff;
}

.tmxos-body.theme-light .tmxos-intervals,
.tmxos-body.theme-light .tmxos-intervals button,
.tmxos-body.theme-light .tmxos-chart-controls select,
.tmxos-body.theme-light .tmxos-chart-controls button,
.tmxos-body.theme-light .tmxos-watchlist button,
.tmxos-body.theme-light .tmxos-side-stack .card-lite {
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-intervals {
  background: var(--tmx-bg);
}

.tmxos-body.theme-light .tmxos-intervals button {
  background: var(--tmx-bg);
  color: #4f6482;
}

.tmxos-body.theme-light .tmxos-intervals button.active {
  background: var(--tmx-brand-blue);
  border-color: var(--tmx-brand-blue);
  color: #fff;
}

.tmxos-body.theme-light .tmxos-chart-controls button:hover,
.tmxos-body.theme-light .tmxos-chart-controls select:hover,
.tmxos-body.theme-light .tmxos-watchlist button:hover,
.tmxos-body.theme-light .tmxos-side-stack .card-lite:hover,
.tmxos-body.theme-light .tmxos-top-controls .icon:hover {
  border-color: var(--tmx-brand-blue-strong);
  box-shadow: 0 0 0 1px rgba(31, 145, 220, 0.14);
  background: rgba(31, 145, 220, 0.08);
}

.tmxos-body.theme-light .tmxos-popover {
  background: var(--tmx-bg);
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-popover h4,
.tmxos-body.theme-light .tmxos-popover .tmxos-empty,
.tmxos-body.theme-light .tmxos-popover .tmxos-menu-item em {
  color: #60728f;
}

.tmxos-body.theme-light .tmxos-popover .tmxos-menu-item {
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-popover .tmxos-menu-item:hover {
  background: rgba(111, 166, 245, 0.12);
}

.tmxos-body.theme-light .tmxos-watchlist button {
  background: var(--tmx-bg);
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-watchlist button span,
.tmxos-body.theme-light .tmxos-watchlist button strong {
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-table-wrap th {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light .tmxos-table-wrap th,
.tmxos-body.theme-light .tmxos-table-wrap td {
  border-bottom-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-table-wrap tbody tr:hover {
  background: rgba(111, 166, 245, 0.1);
}

.tmxos-body.theme-light .tmxos-chart-workspace::before {
  background: radial-gradient(circle at 62% 18%, rgba(31, 145, 220, 0.07), transparent 42%), radial-gradient(circle at 90% 35%, rgba(31, 145, 220, 0.05), transparent 44%);
}

.tmxos-body.theme-light .tmxos-tip {
  background: #ffffff;
  color: var(--tmx-text-primary);
  border-color: var(--tmx-border);
  box-shadow: 0 10px 24px rgba(16, 35, 64, 0.1);
}

.tmxos-body.theme-light .tmxos-tip span {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light .tmxos-chart-wrap {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-summary-list article,
.tmxos-body.theme-light .tmxos-ai-day,
.tmxos-body.theme-light .tmxos-snapshot-panel,
.tmxos-body.theme-light .tmxos-table-wrap,
.tmxos-body.theme-light .tmxos-side-stack .card-lite {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
}

.tmxos-body.theme-light .tmxos-focus-card {
  background: linear-gradient(150deg, rgba(31, 145, 220, 0.16), rgba(31, 145, 220, 0.06));
  border-color: rgba(31, 145, 220, 0.35);
}

.tmxos-body.theme-light .tmxos-mini-grid article,
.tmxos-body.theme-light .tmxos-score-grid article,
.tmxos-body.theme-light .tmxos-report-grid article,
.tmxos-body.theme-light .tmxos-risk-grid article,
.tmxos-body.theme-light .tmxos-history article,
.tmxos-body.theme-light .tmxos-calc-output,
.tmxos-body.theme-light .tmxos-ai-score {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
  box-shadow: 0 2px 8px rgba(15, 30, 55, 0.04);
}

.tmxos-body.theme-light .tmxos-risk-grid article.highlight {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(32, 178, 152, 0.35);
}

.tmxos-body.theme-light .tmxos-score-grid span,
.tmxos-body.theme-light .tmxos-mini-grid span,
.tmxos-body.theme-light .tmxos-report-grid h3,
.tmxos-body.theme-light .tmxos-history span,
.tmxos-body.theme-light .tmxos-form-grid label,
.tmxos-body.theme-light .tmxos-calc-inputs label {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light .tmxos-history p,
.tmxos-body.theme-light .tmxos-inline-msg,
.tmxos-body.theme-light .heat-grid span,
.tmxos-body.theme-light .heat-grid em {
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-ai-score span,
.tmxos-body.theme-light .tmxos-check {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light .tmxos-form-grid input,
.tmxos-body.theme-light .tmxos-form-grid select,
.tmxos-body.theme-light .tmxos-calc-inputs input,
.tmxos-body.theme-light .tmxos-calc-inputs select,
.tmxos-body.theme-light .tmxos-filter-grid input,
.tmxos-body.theme-light .tmxos-filter-grid select {
  background: #ffffff;
  border-color: var(--tmx-border);
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-form-grid input:focus,
.tmxos-body.theme-light .tmxos-form-grid select:focus,
.tmxos-body.theme-light .tmxos-calc-inputs input:focus,
.tmxos-body.theme-light .tmxos-calc-inputs select:focus,
.tmxos-body.theme-light .tmxos-filter-grid input:focus,
.tmxos-body.theme-light .tmxos-filter-grid select:focus {
  border-color: var(--tmx-brand-blue-strong);
  box-shadow: 0 0 0 2px rgba(31, 145, 220, 0.14);
}

.tmxos-body.theme-light .tmxos-actions-row button {
  background: #ffffff;
  border-color: var(--tmx-brand-blue);
  color: #12385f;
}

.tmxos-body.theme-light .tmxos-actions-row button:hover {
  background: rgba(31, 145, 220, 0.12);
  border-color: var(--tmx-brand-blue-strong);
}

.tmxos-body.theme-light .tmxos-check input[type='checkbox'] {
  accent-color: var(--tmx-brand-blue);
}

.tmxos-body.theme-light .donut-ring::after {
  background: var(--tmx-surface);
}

.tmxos-body.theme-light .heat-grid div {
  border-color: var(--tmx-border);
  background: rgba(31, 145, 220, 0.08);
}

.tmxos-body.theme-light .heat-grid div.g {
  background: rgba(45, 212, 191, 0.24);
}

.tmxos-body.theme-light .heat-grid div.r {
  background: rgba(255, 137, 137, 0.2);
}

.tmxos-body.theme-light .tmxos-history article strong {
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-history article.tmxos-log-success {
  background: rgba(45, 212, 191, 0.12);
  border-left-color: #1eaf8f;
}

.tmxos-body.theme-light .tmxos-history article.tmxos-log-warning {
  background: rgba(255, 157, 102, 0.14);
  border-left-color: #f39c5e;
}

.tmxos-body.theme-light .tmxos-modal-backdrop {
  background: rgba(17, 31, 50, 0.32);
}

.tmxos-body.theme-light .tmxos-modal-card,
.tmxos-body.theme-light .tmxos-modal-metrics article,
.tmxos-body.theme-light .tmxos-modal-grid div,
.tmxos-body.theme-light .tmxos-modal-chart {
  background: #ffffff;
  border-color: var(--tmx-border);
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light .tmxos-modal-top p,
.tmxos-body.theme-light .tmxos-modal-grid span,
.tmxos-body.theme-light .tmxos-modal-metrics span {
  color: var(--tmx-text-secondary);
}

.tmxos-body.theme-light #tmx-modal-close,
.tmxos-body.theme-light .tmx-close-btn {
  background: var(--tmx-surface);
  border-color: var(--tmx-border);
  color: var(--tmx-text-primary);
}

.tmxos-body.theme-light #tmx-modal-close:hover,
.tmxos-body.theme-light .tmx-close-btn:hover {
  border-color: var(--tmx-brand-blue-strong);
  background: rgba(31, 145, 220, 0.08);
}

.tmxos-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.tmxos-shell.sidebar-collapsed {
  grid-template-columns: 76px 1fr;
}

.tmxos-sidebar {
  border-right: 1px solid rgba(116, 151, 214, 0.2);
  background: rgba(8, 15, 28, 0.86);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tmxos-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.tmxos-brand-copy {
  min-width: 0;
  flex: 1 1 auto;
  transition: opacity 180ms ease, max-width 180ms ease, transform 180ms ease;
  max-width: 160px;
}

.tmxos-side-toggle {
  position: relative;
  margin-left: auto;
  min-height: 30px;
  min-width: 30px;
  border-radius: 8px;
  border: 1px solid rgba(111, 147, 214, 0.3);
  background: rgba(10, 19, 34, 0.8);
  color: #dcecff;
  cursor: pointer;
  z-index: 30;
}

.tmxos-brand img {
  width: 40px;
  height: 40px;
}

.tmxos-brand p {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
}

.tmxos-brand span {
  color: #97aed0;
  font-size: 11px;
}

.tmxos-nav {
  display: grid;
  gap: 6px;
}

.tmxos-nav-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(116, 151, 214, 0.04), rgba(116, 151, 214, 0.4), rgba(116, 151, 214, 0.04));
  margin: 6px 2px;
}

.tmxos-nav button {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9db3d1;
  text-align: left;
  padding: 11px 10px;
  min-height: 42px;
  cursor: pointer;
  font-family: inherit;
  transition: 160ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.tmxos-nav .nav-icon {
  width: 18px;
  height: 18px;
  text-align: center;
  color: #b9ccec;
  display: inline-grid;
  place-items: center;
}

.tmxos-nav .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tmxos-nav .nav-label {
  font-size: 14px;
  white-space: nowrap;
}

.tmxos-nav button.active,
.tmxos-nav button:hover {
  color: #ebf3ff;
  border-color: rgba(111, 147, 214, 0.34);
  background: rgba(82, 135, 220, 0.14);
  box-shadow: inset 0 0 0 1px rgba(70, 178, 241, 0.35), 0 0 20px rgba(42, 130, 248, 0.12);
}

.tmxos-nav button.active .nav-icon {
  color: #9fd6ff;
}

.tmxos-shell.sidebar-collapsed .tmxos-brand-copy,
.tmxos-shell.sidebar-collapsed .tmxos-side-status span,
.tmxos-shell.sidebar-collapsed .tmxos-side-status strong,
.tmxos-shell.sidebar-collapsed .tmxos-side-status button {
  font-size: 0;
}

.tmxos-shell.sidebar-collapsed .tmxos-brand-copy {
  opacity: 0;
  max-width: 0;
  transform: translateX(-6px);
  overflow: hidden;
  pointer-events: none;
}

.tmxos-shell.sidebar-collapsed .tmxos-side-toggle {
  margin-left: 0;
}

.tmxos-shell.sidebar-collapsed .tmxos-nav button {
  justify-content: center;
  padding: 10px 0;
  gap: 0;
}

.tmxos-shell.sidebar-collapsed .tmxos-nav .nav-label {
  display: none;
}

.tmxos-shell.sidebar-collapsed .tmxos-nav button:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8, 16, 30, 0.96);
  border: 1px solid rgba(111, 147, 214, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  color: #e8f2ff;
  font-size: 12px;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.tmxos-shell.sidebar-collapsed .tmxos-side-status {
  display: none;
}

.tmxos-side-status {
  margin-top: auto;
  border: 1px solid rgba(111, 147, 214, 0.26);
  border-radius: 10px;
  background: rgba(9, 18, 34, 0.72);
  padding: 11px;
  display: grid;
  gap: 7px;
}

.tmxos-side-status span {
  color: #97aed0;
  font-size: 12px;
}

.tmxos-side-status strong {
  font-size: 13px;
}

.tmxos-side-status button {
  border: 1px solid rgba(111, 147, 214, 0.36);
  border-radius: 8px;
  background: rgba(10, 20, 36, 0.82);
  color: #e8f2ff;
  min-height: 38px;
  cursor: pointer;
}

.tmxos-main {
  padding: 24px 26px;
  display: grid;
  gap: 16px;
}

.tmxos-topbar {
  border: 1px solid rgba(112, 147, 209, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 29, 0.82);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.tmxos-topbar .kicker {
  margin: 0;
  color: #8fc3ff;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tmxos-topbar h1 {
  margin: 4px 0 0;
  font-size: 24px;
}

.tmxos-top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tmxos-top-controls > * {
  flex: 0 0 auto;
}

.tmxos-icon-wrap {
  position: relative;
}

.tmxos-top-controls select,
.tmxos-top-controls .logout,
.tmxos-top-controls .icon,
#tmx-workspace select,
#tmx-workspace input,
#tmx-workspace button {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(111, 147, 214, 0.3);
  background: rgba(9, 18, 34, 0.72);
  color: #e8f2ff;
  padding: 0 10px;
  font-family: inherit;
}

.tmxos-top-controls .icon,
#tmx-workspace button {
  cursor: pointer;
}

.tmxos-top-controls .icon {
  position: relative;
  z-index: 3;
  transition: 140ms ease;
}

.tmxos-top-controls .icon:hover {
  border-color: rgba(115, 171, 255, 0.55);
  background: rgba(20, 41, 74, 0.82);
}

.tmxos-top-controls .icon:active {
  transform: translateY(1px);
}

.tmxos-top-controls .icon.active {
  border-color: rgba(115, 171, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(115, 171, 255, 0.35);
}

.tmxos-top-controls .icon.loading {
  color: transparent;
}

.tmxos-top-controls .icon.loading::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(187, 210, 242, 0.35);
  border-top-color: #95c5ff;
  border-radius: 50%;
  animation: tmxSpin 0.8s linear infinite;
}

@keyframes tmxSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tmxos-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: rgba(8, 16, 30, 0.98);
  border: 1px solid rgba(111, 147, 214, 0.35);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 40;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.tmxos-popover.hidden {
  display: none;
}

.tmxos-popover h4 {
  margin: 2px 4px 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94b6df;
}

.tmxos-popover .tmxos-menu-item {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dcecff;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.tmxos-popover .tmxos-menu-item:hover {
  border-color: rgba(111, 147, 214, 0.32);
  background: rgba(20, 40, 69, 0.55);
}

.tmxos-popover .tmxos-menu-item em {
  font-style: normal;
  color: #8ca8ca;
  font-size: 11px;
}

.tmxos-popover .tmxos-menu-item.danger {
  color: #ffb4b4;
}

.tmxos-popover .tmxos-empty {
  margin: 2px 4px 6px;
  color: #9eb4d3;
  font-size: 13px;
}

.tmxos-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(10, 37, 47, 0.95);
  color: #e6fffa;
  z-index: 120;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  transform: translateY(10px);
  opacity: 0;
  transition: 180ms ease;
}

.tmxos-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.tmxos-toast.hidden {
  display: none;
}

.tmxos-top-controls .logout {
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
  color: #061221;
  font-weight: 700;
}

.tmxos-range {
  display: flex;
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 10px;
  padding: 3px;
  background: rgba(9, 18, 34, 0.72);
}

.tmxos-range button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: #a4bbdc;
  background: transparent;
}

.tmxos-range button.active {
  background: rgba(92, 149, 236, 0.25);
  color: #f0f6ff;
}

#tmx-workspace {
  display: grid;
  gap: 14px;
}

.tmxos-grid.top-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 7px;
}

.tmxos-stat {
  border: 1px solid rgba(111, 147, 214, 0.24);
  border-radius: 9px;
  background: rgba(8, 15, 28, 0.68);
  padding: 8px 9px;
}

.tmxos-stat span {
  font-size: 10px;
  color: #9eb5d5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tmxos-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.tmxos-spark {
  margin-top: 5px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.tmxos-spark i {
  width: 4px;
  border-radius: 3px;
  background: rgba(143, 185, 248, 0.5);
  display: block;
}

.tmxos-stat.pos .tmxos-spark i {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.9), rgba(45, 212, 191, 0.25));
}

.tmxos-stat.neg .tmxos-spark i {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.9), rgba(251, 113, 133, 0.25));
}

.tmxos-stat.pos strong { color: #6de7c9; }
.tmxos-stat.neg strong { color: #ff9ba9; }

.card,
.tmxos-section {
  border: 1px solid rgba(111, 147, 214, 0.24);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.72);
  padding: 14px;
}

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

.tmxos-head h2 {
  margin: 0;
  font-size: 19px;
}

.tmxos-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tmxos-toggle button {
  min-height: 32px;
  padding: 0 10px;
}

.tmxos-toggle button.active {
  background: rgba(92, 149, 236, 0.26);
}

.tmxos-section-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.tmxos-chart-workspace {
  padding: 14px;
  border-color: rgba(93, 142, 222, 0.2);
  background: linear-gradient(160deg, rgba(5, 12, 22, 0.56), rgba(5, 10, 18, 0.72));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(80, 143, 255, 0.14), 0 12px 35px rgba(0, 0, 0, 0.32);
}

.tmxos-chart-workspace::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(circle at 62% 18%, rgba(33, 128, 245, 0.13), transparent 40%), radial-gradient(circle at 90% 35%, rgba(45, 212, 191, 0.1), transparent 42%);
}

.tmxos-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tmxos-chart-top p {
  margin: 4px 0 0;
  color: #9eb4d3;
  font-size: 12px;
}

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

.tmxos-chart-controls select,
.tmxos-chart-controls button {
  min-height: 34px;
  font-size: 12px;
}

.tmxos-intervals {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 10px;
  background: rgba(9, 17, 30, 0.8);
}

.tmxos-intervals button {
  min-height: 28px;
  min-width: 46px;
  font-size: 12px;
}

.tmxos-intervals button.active {
  background: linear-gradient(135deg, #1f8dff, #14b8a6);
  color: #ffffff;
}

.tmxos-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(210px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.tmxos-tv-shell {
  position: relative;
  min-height: 410px;
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(48, 124, 221, 0.16), rgba(8, 15, 28, 0.96) 45%);
  box-shadow: inset 0 0 0 1px rgba(155, 198, 255, 0.07), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.tmxos-chart-quick-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  width: fit-content;
  background: rgba(7, 14, 26, 0.74);
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 10px;
  padding: 6px;
}

.tmxos-chart-quick-actions button {
  min-height: 26px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 8px;
  border: 1px solid rgba(111, 147, 214, 0.35);
  background: rgba(8, 16, 30, 0.82);
  color: #dbeaff;
}

.tmxos-chart-markers {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tmxos-chart-markers button {
  border: 1px solid rgba(111, 147, 214, 0.36);
  background: rgba(8, 16, 30, 0.84);
  border-radius: 999px;
  color: #e8f2ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-width: auto;
  white-space: nowrap;
}

.tmxos-chart-markers button strong {
  font-size: 11px;
}

.tmxos-chart-markers button em {
  font-size: 11px;
  font-style: normal;
}

#tmx-tv-container {
  width: 100%;
  height: 410px;
}

.tmxos-tv-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #dbe9ff;
  background: rgba(7, 13, 23, 0.88);
}

.tmxos-tv-loading.hidden {
  display: none;
}

.tmxos-tv-error {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: #ffd4d4;
}

.tmxos-side-stack {
  display: grid;
  gap: 10px;
}

.tmxos-watchlist {
  display: grid;
  gap: 5px;
}

.tmxos-watch-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  padding: 0 2px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #95adcf;
}

.tmxos-watchlist button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid rgba(111, 147, 214, 0.2);
  background: rgba(8, 16, 30, 0.74);
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
}

.tmxos-watchlist button.active {
  border-color: rgba(70, 178, 241, 0.78);
  box-shadow: 0 0 0 1px rgba(70, 178, 241, 0.45), inset 0 0 24px rgba(57, 139, 250, 0.14);
}

.tmxos-watchlist button span {
  font-size: 11px;
  color: #d9e8ff;
}

.tmxos-watchlist button strong {
  font-size: 11px;
  color: #ffffff;
  font-weight: 500;
}

.tmxos-watchlist button em {
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.tmxos-insight-list {
  display: grid;
  gap: 6px;
}

.tmxos-insight-list article {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 2px;
}

.tmxos-insight-list span {
  font-size: 11px;
  color: #9db3d2;
}

.tmxos-insight-list strong {
  font-size: 13px;
}

.tmxos-markers {
  display: grid;
  gap: 6px;
}

.tmxos-markers button {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.75);
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 2px;
}

.tmxos-markers span {
  color: #9db3d2;
  font-size: 11px;
}

.tmxos-markers strong {
  font-size: 13px;
}

.tmxos-chart-summary {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 12px;
}

.tmxos-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.tmxos-snapshot-panel {
  padding: 10px;
}

.tmxos-snapshot-panel p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b8cce8;
}

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

.tmxos-duo-metrics div {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 2px;
}

.tmxos-duo-metrics span {
  font-size: 11px;
  color: #9db3d2;
}

.tmxos-duo-metrics strong {
  font-size: 14px;
}

.tmxos-duo-metrics em {
  font-size: 12px;
  font-style: normal;
}

.tmxos-chart-lower-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.tmxos-chart-wrap {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.62);
  position: relative;
  padding: 8px;
}

#tmx-main-chart {
  width: 100%;
  height: 330px;
  border-radius: 10px;
}

.tmxos-tip {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  border: 1px solid rgba(111, 147, 214, 0.36);
  border-radius: 9px;
  background: rgba(7, 14, 26, 0.95);
  padding: 8px;
  font-size: 12px;
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.tmxos-summary-list {
  display: grid;
  gap: 8px;
}

.tmxos-summary-list article {
  border: 1px solid rgba(111, 147, 214, 0.22);
  border-radius: 9px;
  padding: 9px;
}

.tmxos-summary-list span {
  color: #9db3d2;
  font-size: 11px;
}

.tmxos-summary-list strong {
  display: block;
  margin-top: 4px;
}

.tmxos-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tmxos-breakdowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-lite {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.6);
  padding: 10px;
}

.card-lite h4 {
  margin: 0 0 8px;
}

.mini-bars {
  display: grid;
  gap: 6px;
}

.mini-bars div {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 6px;
  align-items: center;
}

.mini-bars span,
.mini-bars em {
  font-size: 11px;
  color: #9db3d2;
  font-style: normal;
}

.mini-bars i {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.mini-bars i.g {
  background: linear-gradient(90deg, #2dd4bf, #60a5fa);
}

.mini-bars i.r {
  background: linear-gradient(90deg, #f97316, #ff7f7f);
}

.donut-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: conic-gradient(#2dd4bf calc(var(--pct) * 1%), #ff7f7f 0);
  position: relative;
}

.donut-ring::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: #0b1424;
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 6px;
}

.heat-grid div {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  gap: 3px;
}

.heat-grid div.g {
  background: rgba(45, 212, 191, 0.25);
}

.heat-grid div.r {
  background: rgba(255, 123, 123, 0.2);
}

.heat-grid span,
.heat-grid em {
  font-size: 11px;
  color: #d9e8ff;
  font-style: normal;
}

.tmxos-ai-score {
  border: 1px solid rgba(111, 147, 214, 0.26);
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.65);
  padding: 10px;
}

.tmxos-ai-score span {
  font-size: 12px;
  color: #9eb4d3;
}

.tmxos-ai-score strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.tmxos-focus-card {
  margin-top: 10px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(25, 80, 94, 0.34), rgba(11, 49, 77, 0.22));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.tmxos-focus-card span {
  font-size: 11px;
  color: #8cded3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tmxos-focus-card strong {
  font-size: 14px;
}

.tmxos-ai-day {
  border-color: rgba(45, 212, 191, 0.36);
  background: linear-gradient(145deg, rgba(11, 44, 57, 0.34), rgba(11, 42, 66, 0.22));
}

.tmxos-ai-list,
.tmxos-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.tmxos-table-wrap {
  overflow: auto;
}

.tmxos-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.tmxos-table-wrap th,
.tmxos-table-wrap td {
  border-bottom: 1px solid rgba(111, 147, 214, 0.16);
  padding: 10px 8px;
  font-size: 12px;
  text-align: left;
}

.tmxos-table-wrap th {
  color: #9eb4d3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tmxos-table-wrap tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.tmxos-table-wrap tbody tr:hover {
  background: rgba(75, 145, 255, 0.16);
}

.pos { color: #2dd4bf; }
.neg { color: #ff8f8f; }

.chip {
  display: inline-block;
  border: 1px solid rgba(111, 147, 214, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  background: rgba(69, 131, 216, 0.16);
  color: #cbe2ff;
}

.chip.warn {
  border-color: rgba(255, 157, 102, 0.45);
  background: rgba(255, 157, 102, 0.15);
  color: #ffd7bf;
}

.tmxos-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.tmxos-risk-grid article {
  border: 1px solid rgba(111, 147, 214, 0.22);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 3px;
}

.tmxos-risk-grid article.highlight {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.1);
}

.tmxos-risk-grid span {
  font-size: 11px;
  color: #9db3d2;
}

.tmxos-risk-grid strong {
  font-size: 15px;
}

.tmxos-mini-grid,
.tmxos-score-grid,
.tmxos-report-grid,
.tmxos-form-grid,
.tmxos-filter-grid,
.tmxos-calc-inputs {
  display: grid;
  gap: 8px;
}

.tmxos-mini-grid,
.tmxos-score-grid,
.tmxos-report-grid {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.tmxos-mini-grid article,
.tmxos-score-grid article,
.tmxos-report-grid article {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 9px;
  background: rgba(8, 15, 28, 0.64);
  padding: 9px;
}

.tmxos-mini-grid span,
.tmxos-score-grid span,
.tmxos-report-grid h3,
.tmxos-modal-grid span,
.tmxos-modal-metrics span,
.tmxos-preview span {
  font-size: 11px;
  color: #9eb4d3;
}

.tmxos-mini-grid strong,
.tmxos-score-grid strong,
.tmxos-modal-grid strong,
.tmxos-modal-metrics strong {
  display: block;
  margin-top: 4px;
}

.tmxos-filter-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 10px;
}

.tmxos-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tmxos-actions-row button {
  min-width: 140px;
}

.tmxos-form-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.tmxos-form-grid label,
.tmxos-calc-inputs label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #9eb4d3;
}

.tmxos-calc-inputs {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.tmxos-calc-output {
  margin-top: 8px;
}

.tmxos-history {
  display: grid;
  gap: 8px;
}

.tmxos-history article {
  border: 1px solid rgba(111, 147, 214, 0.2);
  border-radius: 9px;
  padding: 8px;
  background: rgba(8, 15, 28, 0.62);
  border-left-width: 3px;
}

.tmxos-history article.tmxos-log-success {
  border-left-color: rgba(45, 212, 191, 0.75);
}

.tmxos-history article.tmxos-log-warning {
  border-left-color: rgba(255, 157, 102, 0.85);
}

.tmxos-history span {
  color: #9eb4d3;
  font-size: 12px;
}

.tmxos-history strong {
  margin-left: 8px;
}

.tmxos-history p,
.tmxos-inline-msg {
  margin: 6px 0 0;
  color: #d9e7ff;
  font-size: 13px;
}

.tmxos-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.tmxos-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.tmxos-modal.hidden {
  display: none !important;
}

.tmxos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.72);
}

.tmxos-modal-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 24px));
  border: 1px solid rgba(111, 147, 214, 0.4);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.96);
  padding: 12px;
}

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

.tmxos-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

#tmx-modal-close {
  width: 38px;
  min-height: 38px;
  border-radius: 8px;
  cursor: pointer;
}

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

.tmxos-modal-top p {
  margin: 0;
  font-size: 11px;
  color: #9eb4d3;
}

.tmxos-modal-top h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.badge.win { background: rgba(45, 212, 191, 0.2); border: 1px solid rgba(45, 212, 191, 0.45); }
.badge.loss { background: rgba(255, 123, 123, 0.2); border: 1px solid rgba(255, 123, 123, 0.45); }

.tmxos-modal-metrics,
.tmxos-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.tmxos-modal-metrics article,
.tmxos-modal-grid div,
.tmxos-preview,
.tmxos-ai-box,
.tmxos-suggestion {
  border: 1px solid rgba(111, 147, 214, 0.22);
  border-radius: 9px;
  background: rgba(8, 15, 28, 0.66);
  padding: 9px;
}

.tmxos-preview,
.tmxos-ai-box,
.tmxos-suggestion {
  margin-top: 10px;
}

.tmxos-preview .bars {
  margin-top: 8px;
  height: 80px;
  display: flex;
  gap: 7px;
  align-items: flex-end;
}

.tmxos-preview .bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2dd4bf, #60a5fa);
}

.tmxos-ai-box h4,
.tmxos-suggestion h4 {
  margin: 0;
}

.tmxos-ai-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.tmxos-suggestion {
  border-color: rgba(45, 212, 191, 0.45);
  background: linear-gradient(165deg, rgba(18, 73, 86, 0.34), rgba(11, 56, 90, 0.26));
}

.tmxos-suggestion p {
  margin: 6px 0 0;
}

body.tmxos-fullscreen-active .tmxos-shell {
  visibility: hidden;
}

#tmx-chart-fullscreen-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #050b14;
}

#tmx-chart-fullscreen-host {
  width: 100vw;
  height: 100vh;
}

#tmx-chart-fullscreen-host #tmx-tv-shell,
#tmx-chart-fullscreen-host #tmx-tv-shell-aes {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

#tmx-chart-fullscreen-host #tmx-tv-container,
#tmx-chart-fullscreen-host #tmx-tv-container-aes {
  width: 100%;
  height: 100vh;
}

#tmx-chart-fullscreen-host .tmxos-tv-loading {
  border-radius: 0;
}

.tmx-chart-fullscreen-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10000;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(111, 147, 214, 0.45);
  background: rgba(8, 17, 30, 0.92);
  color: #e6f1ff;
  font-weight: 600;
  cursor: pointer;
}

#tmx-theme-toggle {
  min-width: 142px;
}

.tmxos-coach {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.tmxos-coach-fab {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(111, 147, 214, 0.42);
  background: linear-gradient(135deg, rgba(7, 24, 42, 0.94), rgba(11, 29, 53, 0.92));
  color: #e7f2ff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(4, 10, 19, 0.34), 0 0 0 1px rgba(31, 145, 220, 0.16);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.tmxos-coach-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 188, 255, 0.62);
  box-shadow: 0 12px 28px rgba(4, 10, 19, 0.4), 0 0 0 1px rgba(31, 145, 220, 0.24);
}

.tmxos-coach-fab span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tmxos-coach-panel {
  width: min(360px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 130px));
  border-radius: 14px;
  border: 1px solid rgba(111, 147, 214, 0.34);
  background: rgba(7, 14, 26, 0.96);
  color: #e8f2ff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(31, 145, 220, 0.14);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 170ms ease, opacity 170ms ease;
}

.tmxos-coach.open .tmxos-coach-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.tmxos-coach-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(111, 147, 214, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tmxos-coach-head h3 {
  margin: 0;
  font-size: 15px;
}

.tmxos-coach-head p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #9bb3d4;
}

.tmxos-coach-head button {
  min-height: 30px;
  min-width: 30px;
  border-radius: 8px;
  border: 1px solid rgba(111, 147, 214, 0.34);
  background: rgba(12, 24, 41, 0.8);
  color: #d8e9ff;
  cursor: pointer;
}

.tmxos-coach-messages {
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 9px;
}

.tmxos-coach-msg {
  max-width: 90%;
  border-radius: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(111, 147, 214, 0.2);
  animation: tmxCoachIn 170ms ease;
}

.tmxos-coach-msg p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.tmxos-coach-msg span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #94accd;
}

.tmxos-coach-msg.user {
  justify-self: end;
  background: rgba(31, 145, 220, 0.2);
  border-color: rgba(31, 145, 220, 0.45);
}

.tmxos-coach-msg.assistant {
  justify-self: start;
  background: rgba(9, 18, 32, 0.82);
}

.tmxos-coach-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 10px;
}

.tmxos-coach-prompts button {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid rgba(111, 147, 214, 0.3);
  background: rgba(8, 17, 30, 0.8);
  color: #d4e5ff;
  font-size: 11px;
  cursor: pointer;
}

.tmxos-coach-prompts button:hover {
  border-color: rgba(119, 189, 255, 0.62);
  background: rgba(31, 145, 220, 0.18);
}

.tmxos-coach-input {
  border-top: 1px solid rgba(111, 147, 214, 0.2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
}

.tmxos-coach-input input {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(111, 147, 214, 0.32);
  background: rgba(7, 14, 26, 0.88);
  color: #e8f2ff;
  padding: 0 10px;
}

.tmxos-coach-input button {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(31, 145, 220, 0.62);
  background: linear-gradient(135deg, #199bff, #14b8a6);
  color: #fff;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
}

.tmxos-coach-input button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tmxos-body.theme-light .tmxos-coach-fab {
  background: #ffffff;
  color: #1a1f2b;
  border-color: #d6e6f7;
  box-shadow: 0 10px 22px rgba(16, 34, 60, 0.12);
}

.tmxos-body.theme-light .tmxos-coach-panel {
  background: #ffffff;
  color: #1a1f2b;
  border-color: #d6e6f7;
  box-shadow: 0 16px 34px rgba(16, 34, 60, 0.16);
}

.tmxos-body.theme-light .tmxos-coach-head p,
.tmxos-body.theme-light .tmxos-coach-msg span {
  color: #6b7280;
}

.tmxos-body.theme-light .tmxos-coach-msg.assistant {
  background: #f7f9fc;
  border-color: #d6e6f7;
}

.tmxos-body.theme-light .tmxos-coach-msg.user {
  background: rgba(31, 145, 220, 0.12);
  border-color: rgba(31, 145, 220, 0.35);
}

.tmxos-body.theme-light .tmxos-coach-prompts button,
.tmxos-body.theme-light .tmxos-coach-head button,
.tmxos-body.theme-light .tmxos-coach-input input {
  background: #ffffff;
  color: #1a1f2b;
  border-color: #d6e6f7;
}

@keyframes tmxCoachIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1220px) {
  .tmxos-shell { grid-template-columns: 230px 1fr; }
  .tmxos-main { padding: 18px 18px; }
  .tmxos-topbar { grid-template-columns: 1fr; }
  .tmxos-top-controls { justify-content: flex-start; }
  .tmxos-grid.top-strip { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
  .tmxos-breakdowns { grid-template-columns: 1fr; }
  .tmxos-filter-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .tmxos-chart-grid { grid-template-columns: 1fr; }
  .tmxos-chart-summary { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .tmxos-snapshot-grid { grid-template-columns: 1fr 1fr; }
  .tmxos-chart-lower-cards { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .tmxos-shell { grid-template-columns: 1fr; }
  .tmxos-sidebar { border-right: 0; border-bottom: 1px solid rgba(116, 151, 214, 0.2); }
  .tmxos-brand-copy { display: block; }
  .tmxos-side-status { display: grid; }
  .tmxos-brand { display: flex; gap: 10px; }
  .tmxos-side-toggle { margin-left: auto; }
  .tmxos-nav button { justify-content: flex-start; gap: 10px; }
  .tmxos-nav .nav-label { display: inline; }
  .tmxos-main { padding: 14px 14px; }
  .tmxos-two-col,
  .tmxos-section-grid,
  .tmxos-calc-inputs,
  .tmxos-form-grid,
  .tmxos-modal-grid,
  .tmxos-modal-metrics { grid-template-columns: 1fr; }
  .tmxos-chart-top { flex-direction: column; align-items: flex-start; }
  .tmxos-chart-controls { justify-content: flex-start; }
  .tmxos-chart-summary { grid-template-columns: 1fr; }
  .tmxos-risk-grid { grid-template-columns: 1fr; }
  .tmxos-snapshot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tmxos-main { padding: 10px; }
  .tmxos-topbar { flex-direction: column; align-items: flex-start; }
  .tmxos-top-controls { justify-content: flex-start; width: 100%; }
  .tmxos-chart-quick-actions { position: static; margin-bottom: 8px; max-width: 100%; }
  .tmxos-filter-grid { grid-template-columns: 1fr; }
  .tmxos-grid.top-strip { grid-template-columns: 1fr 1fr; }
  .tmxos-coach {
    right: 10px;
    bottom: 10px;
  }
  .tmxos-coach-panel {
    width: min(360px, calc(100vw - 20px));
    max-height: min(74vh, 580px);
  }
}
