/* ==========================================================================
   TRADEMINATI AI - SIGNATURE DESIGN SYSTEM
   Unique, Smooth, Cyber-Obsidian Aesthetic with Rich Micro-Interactions
   ========================================================================== */

:root {
  --tm-bg: #06080C;
  --tm-bg-card: #0A0D14;
  --tm-bg-card-hover: #0E121C;
  --tm-bg-elevated: #121722;
  --tm-border: rgba(255, 255, 255, 0.08);
  --tm-border-hover: rgba(16, 185, 129, 0.35);
  --tm-border-subtle: rgba(255, 255, 255, 0.04);
  
  --tm-white: #FFFFFF;
  --tm-silver: #E2E8F0;
  --tm-muted: #8E9BAE;
  --tm-subtle: #64748B;
  
  --tm-emerald: #10B981;
  --tm-emerald-bright: #34D399;
  --tm-emerald-glow: rgba(16, 185, 129, 0.22);
  --tm-cyan: #06B6D4;
  --tm-cyan-bright: #38BDF8;
  --tm-cyan-glow: rgba(6, 182, 212, 0.22);
  --tm-crimson: #F43F5E;
  --tm-amber: #F59E0B;
  --tm-purple: #8B5CF6;
  
  --tm-radius-sm: 8px;
  --tm-radius-md: 14px;
  --tm-radius-lg: 20px;
  --tm-radius-pill: 9999px;
  
  /* --- Professional SaaS Typography Tokens (Inter) --- */
  --tm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tm-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* SaaS Type Scale Tokens */
  --tm-font-hero: clamp(1.7rem, 3.4vw, 2.65rem);     /* 27px mobile -> 42px desktop */
  --tm-font-page-h1: clamp(1.35rem, 2.2vw, 1.8rem); /* 21.6px mobile -> 28.8px desktop */
  --tm-font-h2: clamp(1.18rem, 1.8vw, 1.42rem);     /* 19px mobile -> 22.7px desktop */
  --tm-font-h3: 1.125rem;                            /* 18px */
  --tm-font-body: 1.0rem;                            /* 16px (Standard Web Body) */
  --tm-font-nav: 0.875rem;                           /* 14px */
  --tm-font-btn: 0.9375rem;                          /* 15px */
  --tm-font-table: 0.875rem;                         /* 14px */
  --tm-font-helper: 0.8125rem;                       /* 13px */
  --tm-font-micro: 0.75rem;                          /* 12px */
}

/* Page Canvas */
body:has(.tm-page-wrapper) {
  background-color: var(--tm-bg) !important;
  color: var(--tm-silver) !important;
  font-family: var(--tm-font-sans) !important;
  overflow-x: hidden;
}

.tm-page-wrapper {
  background-color: var(--tm-bg);
  position: relative;
  overflow: hidden;
  color: var(--tm-silver);
}

/* Atmospheric Glows & Neural Mesh */
.tm-ambient-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1100px);
  max-width: 100vw;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.tm-mesh-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 35%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.tm-hero-title {
  font-family: var(--tm-font-sans);
  font-size: var(--tm-font-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.tm-title-gradient {
  background: linear-gradient(135deg, #34D399 0%, #38BDF8 60%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.03em;
}

.tm-title-outline {
  display: inline-block;
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
  letter-spacing: -0.02em;
}

.tm-hero-subtitle {
  font-size: var(--tm-font-body);
  font-weight: 400;
  color: var(--tm-muted);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  line-height: 1.6;
}

.tm-section-tag {
  font-family: var(--tm-font-mono);
  font-size: var(--tm-font-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tm-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 4px 12px;
  border-radius: var(--tm-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tm-section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tm-cyan);
  box-shadow: 0 0 10px var(--tm-cyan);
}

.tm-section-title {
  font-family: var(--tm-font-sans);
  font-size: var(--tm-font-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 10px;
}

.tm-section-desc {
  font-size: var(--tm-font-body);
  color: var(--tm-muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 660px;
}

/* ==========================================================================
   BUTTONS & MICRO-ACTIONS
   ========================================================================== */
.btn-tm-primary {
  background: #e5a93c !important;
  color: #0b1120 !important;
  font-family: var(--tm-font-sans) !important;
  font-weight: 700 !important;
  font-size: var(--tm-font-btn) !important;
  border-radius: var(--tm-radius-pill) !important;
  padding: 12px 26px !important;
  border: 1px solid #f7bc4f !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.28);
  text-decoration: none;
}

@media (max-width: 768px) {
  .btn-tm-primary {
    font-size: 1rem !important; /* 16px mobile for comfortable tap target */
  }
}

.btn-tm-primary:hover {
  background: #f7bc4f !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 169, 60, 0.42);
  color: #000000 !important;
}

.btn-tm-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--tm-silver) !important;
  font-family: var(--tm-font-sans) !important;
  font-weight: 600 !important;
  font-size: var(--tm-font-btn) !important;
  border-radius: var(--tm-radius-pill) !important;
  padding: 12px 26px !important;
  border: 1px solid var(--tm-border) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none;
}

@media (max-width: 768px) {
  .btn-tm-ghost {
    font-size: 1rem !important; /* 16px mobile */
  }
}

.btn-tm-ghost:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   OVER-HEADLINE TELEMETRY PILLS & BEACONS
   ========================================================================== */
.tm-hero-telemetry-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tm-telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--tm-radius-pill);
  border: 1px solid var(--tm-border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

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

.tm-telemetry-chip.chip-crypto {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.tm-telemetry-chip.chip-gold {
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}

.tm-telemetry-chip.chip-news {
  color: #FB7185;
  border-color: rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.06);
}

.tm-pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.tm-pulse-beacon.cyan { background: #38BDF8; box-shadow: 0 0 8px #38BDF8; }
.tm-pulse-beacon.gold { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.tm-pulse-beacon.green { background: #10B981; box-shadow: 0 0 8px #10B981; }

.tm-pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: tmBeaconPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes tmBeaconPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.tm-radar-spinner {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  border-top-color: #F43F5E;
  border-radius: 50%;
  display: inline-block;
  animation: tmRadarSpin 1.1s linear infinite;
}

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

/* ==========================================================================
   HERO TRUST STRIP (INSTITUTIONAL SOCIAL PROOF)
   ========================================================================== */
.tm-hero-trust-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 20px;
  border-radius: var(--tm-radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tm-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-family: var(--tm-font-mono);
  color: #94A3B8;
  font-weight: 500;
}

.tm-trust-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.trust-dot.green { background: #10B981; box-shadow: 0 0 8px #10B981; }
.trust-dot.gold { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.trust-dot.cyan { background: #38BDF8; box-shadow: 0 0 8px #38BDF8; }
.trust-star { color: #FBBF24; font-size: 0.85rem; }

/* ==========================================================================
   DUAL MARKET DESK SWITCHER & AUTO-CYCLE BAR
   ========================================================================== */
.tm-desk-master-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tm-desk-segments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-pill);
  padding: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.tm-desk-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--tm-muted);
  font-family: var(--tm-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--tm-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-desk-tab:hover {
  color: #FFFFFF;
}

.tm-desk-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.tm-desk-tab.active[data-desk="crypto"] {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.tm-desk-tab.active[data-desk="gold"] {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.desk-sub {
  font-size: 0.7rem;
  opacity: 0.75;
}

.tm-cycle-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-pill);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tm-cycle-status-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.tm-cycle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.2s ease;
}

.tm-cycle-dot.active {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.tm-cycle-text {
  font-family: var(--tm-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tm-silver);
}

.tm-cycle-progress-wrap {
  width: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.tm-cycle-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #06B6D4);
  transition: width 0.1s linear;
}

/* ==========================================================================
   HERO MODE SELECTOR STRIP
   ========================================================================== */
.tm-hero-mode-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-pill);
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tm-hero-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--tm-muted);
  font-family: var(--tm-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--tm-radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tm-hero-mode-btn:hover {
  color: #FFFFFF;
}

.tm-hero-mode-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   WORLDWIDE BREAKING MACRO NEWS POPUP TOAST
   ========================================================================== */
.tm-news-popup-card {
  position: relative;
  margin-bottom: 16px;
  background: rgba(12, 16, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tm-radius-md);
  padding: 14px 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(20px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  text-align: start;
  overflow: hidden;
}

.tm-news-popup-card.popup-animated {
  animation: tmNewsSlidePop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-news-popup-card.theme-gold-news {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.22);
}

.tm-news-popup-card.theme-crypto-news {
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.18);
}

@keyframes tmNewsSlidePop {
  0% {
    opacity: 0.3;
    transform: translateY(-8px) scale(0.985);
  }
  65% {
    opacity: 1;
    transform: translateY(1px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tm-news-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-news-radar-ping {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ping-center {
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
}

.ping-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #EF4444;
  animation: tmPingRing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes tmPingRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tm-news-region {
  font-family: var(--tm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #F87171;
  letter-spacing: 0.06em;
}

.tm-news-impact-badge {
  font-family: var(--tm-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tm-news-impact-badge.badge-high {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tm-news-impact-badge.badge-central {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tm-news-impact-badge.badge-inst {
  background: rgba(6, 182, 212, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.tm-news-time {
  font-size: 0.72rem;
  color: var(--tm-muted);
}

.tm-news-nav-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tm-news-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tm-border);
  color: var(--tm-silver);
  font-size: 0.85rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tm-news-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.tm-news-headline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.44;
  margin-bottom: 6px;
}

.tm-news-reaction-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.reaction-tag {
  font-family: var(--tm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tm-muted);
}

.reaction-val {
  font-family: var(--tm-font-mono);
  font-weight: 700;
  color: #34D399;
}

/* ==========================================================================
   PROPRIETARY HERO TERMINAL CARD (TRADEMINATI NEURAL DESK)
   ========================================================================== */
.tm-hero-card-container {
  position: relative;
  max-width: 1220px;
  margin: 10px auto 0;
  z-index: 10;
}

.tm-hero-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  padding: 26px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-hero-card.tm-terminal-window {
  padding: 0;
  border-radius: 18px;
  background: rgba(10, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(28px);
}

.tm-terminal-window .tm-mode-view {
  padding: 20px 22px;
}

.tm-terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(15, 20, 32, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.tm-terminal-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.tm-win-dot.red { background: #EF4444; }
.tm-win-dot.yellow { background: #F59E0B; }
.tm-win-dot.green { background: #10B981; }

.tm-terminal-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--tm-radius-pill);
}

.tm-hero-card.theme-crypto {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(16, 185, 129, 0.12);
}

.tm-hero-card.theme-gold {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.18);
}

.tm-hero-card.theme-unified {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(99, 102, 241, 0.15);
}

.tm-hero-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.tm-hero-card.theme-gold:hover {
  border-color: rgba(245, 158, 11, 0.55);
}

/* Real-Time Live Market Price Ribbon */
.tm-live-ticker-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tm-radius-pill);
  padding: 8px 18px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tm-terminal-window .tm-live-ticker-ribbon {
  background: rgba(8, 11, 18, 0.7);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 8px 20px;
  margin-bottom: 0;
}

.tm-terminal-window .tm-news-popup-card {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.75);
  padding: 10px 20px;
  box-shadow: none;
}
.tm-live-ticker-ribbon::-webkit-scrollbar {
  display: none;
}
.tm-ticker-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.tm-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tm-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.tm-ticker-chip .ticker-sym {
  color: #94A3B8;
  font-weight: 700;
}
.tm-ticker-chip .ticker-price {
  color: #FFFFFF;
  font-weight: 700;
  transition: color 0.3s ease;
}
.tm-ticker-chip .ticker-change.up {
  color: #34D399;
}
.tm-ticker-chip .ticker-change.down {
  color: #F87171;
}

/* Flashing price update animations */
.price-tick-up {
  animation: tmTickGreen 0.75s ease-out;
}
.price-tick-down {
  animation: tmTickRed 0.75s ease-out;
}
@keyframes tmTickGreen {
  0% { color: #34D399 !important; text-shadow: 0 0 14px rgba(52, 211, 153, 0.9); }
  100% { color: inherit; text-shadow: none; }
}
@keyframes tmTickRed {
  0% { color: #F87171 !important; text-shadow: 0 0 14px rgba(248, 113, 113, 0.9); }
  100% { color: inherit; text-shadow: none; }
}

/* Dual Desk Split Grid */
.tm-dual-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 991px) {
  .tm-dual-desk-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Sub-desk Card Styles */
.tm-sub-desk-card {
  background: rgba(11, 15, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tm-radius-md);
  padding: 20px 22px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-sub-desk-card.theme-gold {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.12);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.07), transparent 60%), rgba(12, 16, 25, 0.9);
}
.tm-sub-desk-card.theme-gold:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.2);
}

.tm-sub-desk-card.theme-crypto {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.1);
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.07), transparent 60%), rgba(12, 16, 25, 0.9);
}
.tm-sub-desk-card.theme-crypto:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 45px rgba(16, 185, 129, 0.2);
}

.tm-sub-desk-card.is-dimmed {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.tm-desk-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tm-radius-pill);
}
.tm-desk-mini-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}
.tm-desk-mini-badge.crypto {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.tm-live-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tm-live-price-big {
  font-family: var(--tm-font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.tm-live-price-change {
  font-family: var(--tm-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.tm-live-price-change.up {
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
}
.tm-live-price-change.down {
  color: #F87171;
  background: rgba(239, 68, 68, 0.12);
}

.tm-news-chips-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tm-news-chips-strip::-webkit-scrollbar {
  display: none;
}
.tm-news-chip-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-family: var(--tm-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tm-news-chip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
}
.tm-news-chip-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  font-weight: 700;
}

.tm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tm-border-subtle);
  flex-wrap: wrap;
}

.tm-coin-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--tm-radius-pill);
  border: 1px solid var(--tm-border);
}

.tm-coin-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tm-coin-tab {
  background: transparent;
  border: none;
  color: var(--tm-muted);
  font-family: var(--tm-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--tm-radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-coin-tab:hover {
  color: #FFFFFF;
}

.tm-coin-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.tm-coin-tab.gold-tab:hover {
  color: #FDE047;
}

.tm-coin-tab.gold-tab.active {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE047;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.22);
}

.tm-badge-live-feed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tm-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--tm-radius-pill);
  transition: all 0.3s ease;
}

.tm-badge-live-feed.gold-feed {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.38);
}

/* Signal News Catalyst Bar */
.tm-signal-catalyst-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #64748B;
  border-radius: var(--tm-radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.theme-gold .tm-signal-catalyst-box {
  background: rgba(245, 158, 11, 0.025);
  border-color: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #F59E0B;
}
.theme-crypto .tm-signal-catalyst-box {
  background: rgba(16, 185, 129, 0.025);
  border-color: rgba(16, 185, 129, 0.12);
  border-left: 3px solid #10B981;
}

.catalyst-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tm-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.catalyst-desc {
  font-size: 0.86rem;
  color: var(--tm-silver);
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

/* Hero Terminal Mode 1: Signal Engine View */
.tm-mode-view {
  display: none;
}

.tm-mode-view.active {
  display: block;
}

.tm-signal-readout {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.tm-readout-desc {
  font-size: 0.98rem;
  color: var(--tm-silver);
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-readout-desc::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.tm-stats-triad {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 575px) {
  .tm-stats-triad {
    gap: 6px;
  }
}

.tm-stat-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--tm-radius-sm);
  padding: 10px 12px;
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.tm-stat-tile:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.tm-stat-tag {
  font-family: var(--tm-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94A3B8;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-stat-number {
  font-family: var(--tm-font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-stat-tile.entry .tm-stat-number {
  color: #FFFFFF;
  font-size: clamp(0.74rem, 0.98vw, 0.88rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tm-stat-tile.target .tm-stat-number {
  color: #34D399;
  font-size: clamp(0.98rem, 1.3vw, 1.22rem);
  font-weight: 800;
}
.tm-stat-tile.stop .tm-stat-number {
  color: #FB7185;
  font-size: clamp(0.98rem, 1.3vw, 1.22rem);
  font-weight: 800;
}

.tm-stat-tile.entry { border-top: 2.5px solid #38BDF8; }
.tm-stat-tile.target { border-top: 2.5px solid #10B981; }
.tm-stat-tile.stop { border-top: 2.5px solid #F43F5E; }

/* Risk / Reward Invalidation Visual Meter */
.tm-rr-gauge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
}

.tm-rr-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  gap: 2px;
}

.tm-rr-fill-stop {
  background: #F43F5E;
  border-radius: 2px 0 0 2px;
}

.tm-rr-fill-entry {
  background: #F59E0B;
}

.tm-rr-fill-entry.crypto {
  background: #38BDF8;
}

.tm-rr-fill-target {
  background: #10B981;
  border-radius: 0 2px 2px 0;
}

/* In-Card Direct CTA Action */
.btn-tm-card-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--tm-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-tm-card-action.gold-action {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.35);
  color: #FDE047;
}

.btn-tm-card-action.gold-action:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.12));
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-tm-card-action.crypto-action {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.btn-tm-card-action.crypto-action:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.12));
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 4-Confluence Engine Strip */
.tm-confluence-strip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--tm-border-subtle);
  border-radius: var(--tm-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-confluence-score {
  font-family: var(--tm-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-confluence-score strong {
  color: #34D399;
}

.tm-confluence-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-conf-chip {
  font-family: var(--tm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tm-conf-chip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748B;
}

.tm-conf-chip.active {
  background: rgba(16, 185, 129, 0.07);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.2);
}

.tm-conf-chip.active::before {
  background: #10B981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.75);
}

.tm-conf-chip.gold-chip.active {
  background: rgba(245, 158, 11, 0.07);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.2);
}

.tm-conf-chip.gold-chip.active::before {
  background: #F59E0B;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.75);
}

/* Hero Terminal Mode 2: Interactive Risk Calculator View */
.tm-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 16px 0;
  align-items: center;
}

.tm-slider-group {
  margin-bottom: 18px;
}

.tm-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.tm-range-slider {
  width: 100%;
  accent-color: #10B981;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.tm-calc-results-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  padding: 20px;
}

.tm-calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.tm-calc-result-row:last-child {
  border-bottom: none;
}

/* Hero Terminal Mode 3: Screenshot AI Scanner View */
.tm-screenshot-demo-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--tm-radius-md);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.tm-scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  box-shadow: 0 0 15px #38BDF8;
  animation: tmScanSweep 3s ease-in-out infinite;
}

@keyframes tmScanSweep {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ==========================================================================
   LIVE ROLLING MARKET TICKER
   ========================================================================== */
.tm-ticker-strip {
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--tm-border-subtle);
  overflow: hidden;
  user-select: none;
}

.tm-ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: tmTickerScroll 45s linear infinite;
}

.tm-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tmTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tm-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-pill);
  padding: 7px 18px;
  font-family: var(--tm-font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tm-ticker-item .sym { font-weight: 700; color: #FFFFFF; }
.tm-ticker-item .price { color: var(--tm-silver); }
.tm-ticker-item .delta.up { color: #34D399; font-weight: 700; }
.tm-ticker-item .delta.down { color: #FB7185; font-weight: 700; }
.tm-ticker-item .signal-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.tm-ticker-item .signal-tag.long { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.tm-ticker-item .signal-tag.short { background: rgba(244, 63, 94, 0.15); color: #FB7185; }
.tm-ticker-item .signal-tag.gold { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }

/* ==========================================================================
   SECTION: 4 PILLARS OF DISCIPLINE
   ========================================================================== */
.tm-pillars-section {
  padding: 56px 0;
}

.tm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.tm-pillar-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-pillar-card:hover {
  background: var(--tm-bg-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tm-pillar-num {
  font-family: var(--tm-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tm-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tm-pillar-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.tm-pillar-desc {
  font-size: 0.9rem;
  color: var(--tm-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE BENTO GRID (INTELLIGENCE ARSENAL)
   ========================================================================== */
.tm-bento-section {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--tm-bg) 0%, #080B10 100%);
  border-top: 1px solid var(--tm-border-subtle);
  border-bottom: 1px solid var(--tm-border-subtle);
}

.tm-bento-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 32px;
}

.tm-bento-box {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.tm-bento-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tm-bento-box-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.tm-bento-box-desc {
  font-size: 0.94rem;
  color: var(--tm-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   PUBLIC ACCOUNTABILITY LEDGER (PERFORMANCE)
   ========================================================================== */
.tm-ledger-section {
  padding: 56px 0;
}

.tm-ledger-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  margin-top: 32px;
  align-items: center;
}

.tm-stat-matrix-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.tm-metric-box {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  padding: 16px 18px;
}

.tm-metric-val {
  font-family: var(--tm-font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.tm-metric-val.emerald { color: #34D399; }
.tm-metric-val.cyan { color: #38BDF8; }
.tm-metric-val.amber { color: #FBBF24; }

.tm-metric-label {
  font-size: 0.82rem;
  color: var(--tm-muted);
  margin: 0;
}

/* Modern Ledger Table */
.tm-ledger-table-wrap {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tm-ledger-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tm-ledger-table th {
  padding: 8px 14px;
  font-family: var(--tm-font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-muted);
  border-bottom: 1px solid var(--tm-border);
  background: rgba(255, 255, 255, 0.02);
}

.tm-ledger-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--tm-border-subtle);
  color: var(--tm-silver);
}

.tm-ledger-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   TRANSPARENT CREDIT & PRICING ARCHITECTURE
   ========================================================================== */
.tm-pricing-section {
  padding: 56px 0;
  border-top: 1px solid var(--tm-border-subtle);
  background: linear-gradient(180deg, var(--tm-bg) 0%, #080C14 100%);
}

.tm-pricing-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.tm-price-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.28s ease;
}

.tm-price-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.tm-price-card.featured {
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55),
              0 0 35px rgba(229, 169, 60, 0.16),
              0 0 0 1px rgba(229, 169, 60, 0.35);
  background: linear-gradient(180deg, rgba(229, 169, 60, 0.08) 0%, var(--tm-bg-card) 45%);
}

.tm-price-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e5a93c;
  color: #06080C;
  font-family: var(--tm-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--tm-radius-pill);
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
}

.tm-plan-header {
  margin-bottom: 20px;
}

.tm-plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.tm-plan-cost {
  font-family: var(--tm-font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 4px;
}

.tm-plan-cost small {
  font-size: 0.82rem;
  color: var(--tm-muted);
  font-weight: 500;
}

.tm-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}

.tm-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.tm-plan-check {
  width: 16px;
  height: 16px;
  color: #34D399;
  flex-shrink: 0;
  margin-top: 2px;
}

.tm-plan-cross {
  width: 16px;
  height: 16px;
  color: #F43F5E;
  flex-shrink: 0;
  margin-top: 2px;
}

.tm-plan-features li.negative {
  color: var(--tm-muted);
  opacity: 0.72;
}

.tm-plan-features li.highlight strong {
  color: #34D399;
}

/* ==========================================================================
   FINAL HIGH-IMPACT CALL TO ACTION
   ========================================================================== */
.tm-cta-section {
  padding: 64px 0 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tm-cta-title {
  font-family: var(--tm-font-sans);
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 30px;
}

/* ==========================================================================
   RESPONSIVE POLISH
   ========================================================================== */
@media (max-width: 991px) {
  .tm-terminal-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tm-terminal-topbar > div {
    justify-content: center;
  }
  .tm-hero-trust-strip {
    gap: 10px;
    padding: 8px 14px;
  }
  .tm-trust-divider {
    display: none;
  }
  .tm-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-bento-layout {
    grid-template-columns: 1fr;
  }
  .tm-tools-grid-3col {
    grid-template-columns: 1fr;
  }
  .tm-ledger-split {
    grid-template-columns: 1fr;
  }
  .tm-pricing-3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tm-stats-triad {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tm-pillars-grid {
    grid-template-columns: 1fr;
  }
  .tm-hero-mode-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .tm-hero-mode-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .tm-desk-tab {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .tm-live-price-big {
    font-size: 1.25rem;
  }
  .tm-hero-card {
    padding: 16px;
  }
}

/* ==========================================================================
   ENHANCED TERMINAL POINTERS & PILLAR VISUALS
   ========================================================================== */
.tm-terminal-callout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tm-terminal-pointer-chip {
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--tm-radius-pill);
  padding: 5px 14px;
  font-size: 0.76rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.tm-terminal-pointer-chip:hover {
  border-color: rgba(229, 169, 60, 0.4);
  transform: translateY(-1px);
}

.pointer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.pointer-dot.gold { background: #e5a93c; box-shadow: 0 0 8px rgba(229, 169, 60, 0.6); }
.pointer-dot.cyan { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.pointer-dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.tm-pillar-visual {
  height: 52px;
  background: #060912;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ==========================================================================
   INTERACTIVE GUEST SANDBOX MODAL (1-CLICK SCAN WITHOUT SIGNUP)
   ========================================================================== */
.tm-sandbox-modal-content {
  background: #090D16 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.08) !important;
  color: #e2e8f0;
}

.tm-sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--tm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.tm-sb-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--tm-font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tm-sb-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.tm-sb-pill.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.tm-sandbox-controls {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-sandbox-scanning {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.tm-sandbox-cta-banner {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(229, 169, 60, 0.22);
}

#workflow,
#features,
#performance,
#pricing,
#reviews,
#faq {
  scroll-margin-top: 76px;
}


