:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --border: #e5e7eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: var(--muted);
}

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

.nav-cta {
  color: #fff !important;
  background: var(--primary);
  padding: 10px 18px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 99px;
}

.section-padding {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 22px;
}


/* Live market snapshot strip on homepage */
.live-market-strip {
  background: #f6faf9;
  border-bottom: 1px solid #e4eceb;
}

.live-market-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 24px;
  overflow: hidden;
}

.live-market-label {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b8173;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-market-widget {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  overflow: hidden;
}

.live-market-widget iframe {
  height: 38px !important;
}

.live-market-fallback {
  color: #526176;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .live-market-inner {
    padding: 5px 16px;
    gap: 8px;
  }

  .live-market-label {
    font-size: 10px;
    padding: 6px 9px;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-top: 52px;
  padding-bottom: 46px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.65rem, 5.25vw, 5rem);
  max-width: 700px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 18px;
}

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

.hero-text,
.section-heading p,
.tools-box p,
.contact-card p,
.feature-card p,
.stat-card p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-text {
  max-width: 650px;
  margin-top: 18px;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card img {
  width: 100%;
}

.hero-card-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  color: var(--muted);
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.stats-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card,
.feature-card,
.contact-card,
.tools-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.stat-card {
  padding: 28px;
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature-card h3,
.feature-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.feature-card h3 {
  padding-top: 24px;
}

.feature-card p {
  padding-bottom: 26px;
}

.tools-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding: 42px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-right: 10px;
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  text-align: center;
  padding: 50px 28px;
  max-width: 780px;
  margin: 0 auto;
}

.contact-actions {
  justify-content: center;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer {
  text-align: center;
  padding: 28px 18px 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.disclaimer {
  font-size: 0.86rem;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
    border-radius: 22px;
  }

  .nav-links.open {
    display: flex;
  }

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

  
/* Live market snapshot strip on homepage */
.live-market-strip {
  background: #f6faf9;
  border-bottom: 1px solid #e4eceb;
}

.live-market-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 24px;
  overflow: hidden;
}

.live-market-label {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b8173;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-market-widget {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  overflow: hidden;
}

.live-market-widget iframe {
  height: 38px !important;
}

.live-market-fallback {
  color: #526176;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .live-market-inner {
    padding: 5px 16px;
    gap: 8px;
  }

  .live-market-label {
    font-size: 10px;
    padding: 6px 9px;
  }
}

.hero {
    min-height: auto;
    padding-top: 54px;
  }

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

  .social-links {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 64px 18px;
  }
}

/* Tools hover dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

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

.chevron {
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

.tools-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(760px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 100;
}

.tools-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}

.nav-dropdown:hover .tools-dropdown,
.nav-dropdown:focus-within .tools-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-within {
  background: #f8fafc;
  transform: translateY(-1px);
}

.dropdown-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.dropdown-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 3px;
}

.has-submenu {
  cursor: default;
}

.has-submenu::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.has-submenu:hover,
.has-submenu:focus-within {
  padding-bottom: 86px;
  background: #f8fafc;
  transform: none;
}

.has-submenu:hover::after,
.has-submenu:focus-within::after {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  left: 70px;
  right: 12px;
  top: 76px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 115;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.submenu a:hover {
  background: #ecfdf5;
  color: var(--primary);
}

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

.tool-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover,
.tool-card:focus {
  transform: translateY(-2px);
  border-color: rgba(15, 132, 114, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  outline: none;
}

.tool-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.tool-card h3 {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .dropdown-trigger {
    width: 100%;
  }

  .tools-dropdown {
    position: static;
    width: 100%;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    margin-top: 12px;
    padding: 12px;
  }

  .nav-dropdown:hover .tools-dropdown,
  .nav-dropdown:focus-within .tools-dropdown {
    display: grid;
    transform: none;
  }

  .has-submenu:hover,
  .has-submenu:focus-within {
    padding-bottom: 12px;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    transform: none;
    box-shadow: none;
    margin: 10px 0 0 58px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    display: block;
    transform: none;
  }

  .tools-list {
    grid-template-columns: 1fr;
  }
}


/* Dedicated tool detail pages */
.page-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
  padding-top: 74px;
}

.page-hero .hero-text {
  margin-bottom: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.video-card,
.info-card,
.workflow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-card {
  padding: 16px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 18px 8px 4px;
}

.video-card-body p {
  color: var(--muted);
  font-weight: 600;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-small {
  padding: 11px 16px;
  font-size: 0.88rem;
}

.video-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
}

.video-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
}

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

.info-card,
.workflow-card {
  padding: 26px;
}

.info-card .card-icon,
.workflow-card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.info-card p,
.workflow-card p,
.page-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.page-copy {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 38px;
}

.bullet-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 30px;
}

.bullet-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.bullet-panel li {
  color: var(--muted);
  font-weight: 700;
  padding-left: 32px;
  position: relative;
}

.bullet-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-weight: 900;
}

.tool-card h3 a:hover {
  color: var(--primary);
}

@media (max-width: 860px) {
  .page-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .page-copy,
  .bullet-panel {
    padding: 26px;
  }
}

/* Compact above-the-fold layout for the Institutional Holding Activity Tracker page */
.page-hero-compact {
  align-items: start;
  padding-top: 44px;
  padding-bottom: 52px;
  min-height: calc(100vh - 76px);
}

.page-hero-compact h1 {
  font-size: clamp(2.35rem, 4.7vw, 4.7rem);
  max-width: 680px;
}

.page-hero-compact .hero-text {
  max-width: 610px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.page-hero-compact .hero-badges {
  margin-top: 20px;
}

.page-hero-compact .hero-actions {
  margin-top: 26px;
}

.page-hero-compact .video-card {
  margin-top: 10px;
}

.page-hero-compact .video-card-body {
  padding-top: 12px;
}

@media (max-width: 860px) {
  .page-hero-compact {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .page-hero-compact .video-card {
    margin-top: 0;
  }
}

/* Sample output preview for Institutional Holding Activity Tracker */
.sample-output-section {
  padding-top: 64px;
}

.sample-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 22px;
  margin-top: 28px;
}

.sample-block-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sample-block-heading h3 {
  margin-bottom: 6px;
}

.sample-block-heading p {
  color: var(--muted);
  font-weight: 600;
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sample-tag-positive {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.sample-tag-negative {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

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

.sample-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}

.sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.sample-card-copy {
  padding: 18px;
}

.sample-card-copy h4 {
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.sample-card-copy p {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .sample-block {
    padding: 18px;
  }

  .sample-block-heading {
    flex-direction: column;
    gap: 10px;
  }
}

/* Result Scanner detail page */
.result-hero {
  grid-template-columns: 0.98fr 1.02fr;
  padding-top: 54px;
  padding-bottom: 58px;
}

.result-hero-preview {
  position: relative;
  min-height: 560px;
}

.result-hero-preview img {
  width: min(48%, 310px);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #0b2238;
}

.result-hero-preview img:first-child {
  position: absolute;
  right: 25%;
  top: 0;
  z-index: 2;
}

.result-hero-preview img:last-child {
  position: absolute;
  right: 0;
  top: 74px;
  opacity: 0.94;
}

.result-samples-section {
  padding-top: 58px;
}

.result-sample-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 22px;
  margin-top: 28px;
}

.result-gallery {
  display: grid;
  gap: 18px;
}

.result-gallery-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-gallery-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-gallery-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.result-sample-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

.result-sample-card img {
  width: 100%;
  aspect-ratio: 9 / 14.4;
  object-fit: cover;
  background: #08243b;
}

.result-sample-card h4 {
  padding: 14px 14px 16px;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

@media (max-width: 1040px) {
  .result-gallery-four,
  .result-gallery-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .result-hero {
    grid-template-columns: 1fr;
  }

  .result-hero-preview {
    min-height: 460px;
  }

  .result-hero-preview img {
    width: min(54%, 280px);
  }

  .result-hero-preview img:first-child {
    left: 0;
    right: auto;
  }

  .result-hero-preview img:last-child {
    right: 0;
    top: 52px;
  }
}

@media (max-width: 560px) {
  .result-gallery,
  .result-gallery-three,
  .result-gallery-four,
  .result-gallery-five {
    grid-template-columns: 1fr;
  }

  .result-sample-group {
    padding: 18px;
  }

  .result-hero-preview {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .result-hero-preview img,
  .result-hero-preview img:first-child,
  .result-hero-preview img:last-child {
    position: static;
    width: 100%;
  }
}

/* Result Scanner compact layout fix: keep preview images readable without creating very long cards */
.result-hero {
  min-height: auto;
  padding-top: 46px;
  padding-bottom: 46px;
}

.result-hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 4.45rem);
  max-width: 610px;
}

.result-hero .hero-text {
  max-width: 610px;
}

.result-hero-preview {
  min-height: 430px;
  max-height: 460px;
  overflow: hidden;
}

.result-hero-preview img {
  width: min(43%, 255px);
}

.result-hero-preview img:first-child {
  right: 29%;
}

.result-hero-preview img:last-child {
  top: 64px;
  right: 4%;
}

.result-sample-group {
  padding: 22px;
}

.result-gallery {
  align-items: start;
}

.result-sample-card img {
  height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  padding: 10px;
  background: #08243b;
}

.result-sample-card h4 {
  padding: 12px 14px 14px;
  background: #ffffff;
}

@media (max-width: 1040px) {
  .result-sample-card img {
    height: 340px;
  }
}

@media (max-width: 860px) {
  .result-hero h1 {
    font-size: clamp(2.15rem, 8vw, 3.8rem);
  }

  .result-hero-preview {
    min-height: 390px;
    max-height: 420px;
  }

  .result-sample-card img {
    height: 330px;
  }
}

@media (max-width: 560px) {
  .result-hero-preview {
    max-height: none;
    overflow: visible;
  }

  .result-hero-preview img {
    width: 100%;
  }

  .result-sample-card img {
    height: 390px;
  }
}

/* Result Scanner V12: make the tool landing hero visually different from homepage */
.result-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 56px;
  background:
    radial-gradient(circle at 76% 22%, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(135deg, #071b2f 0%, #08243b 48%, #0f766e 125%);
  color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.result-product-copy {
  max-width: 760px;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d1fae5;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.product-kicker span {
  padding: 7px 12px;
  border-radius: 999px;
}

.product-kicker span:first-child {
  background: #f59e0b;
  color: #08243b;
}

.result-product-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(3.1rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  color: #f8fafc;
}

.result-product-hero h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.5rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: #facc15;
}

.result-product-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1.08rem;
  line-height: 1.72;
}

.product-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 28px 0 30px;
}

.product-stat-row div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-stat-row strong,
.product-stat-row span {
  display: block;
}

.product-stat-row strong {
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.product-stat-row span {
  margin-top: 4px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.9rem;
}

.result-product-hero .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.result-product-panel {
  padding: 20px;
  border-radius: 34px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #0f172a;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  color: #475569;
  font-weight: 800;
}

.panel-topline strong {
  margin-left: auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
}

.panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 18px 0 0 #10b981, 36px 0 0 #ef4444;
  margin-right: 36px;
}

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

.output-preview-card {
  min-height: 156px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.output-preview-card span,
.output-preview-card strong,
.output-preview-card em {
  display: block;
}

.output-preview-card span {
  color: #64748b;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.output-preview-card strong {
  margin-top: 18px;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.output-preview-card em {
  margin-top: 12px;
  color: #64748b;
  font-style: normal;
  font-weight: 750;
}

.score-preview {
  background: linear-gradient(135deg, #dcfce7, #ffffff 60%);
}

.risk-preview {
  background: linear-gradient(135deg, #fef3c7, #ffffff 62%);
}

.growth-preview {
  background: linear-gradient(135deg, #dbeafe, #ffffff 62%);
}

.trend-preview {
  background: linear-gradient(135deg, #ccfbf1, #ffffff 62%);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 62px;
  margin-top: 14px;
}

.mini-bars i {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: #0f766e;
}

.mini-bars i:nth-child(1) { height: 40%; }
.mini-bars i:nth-child(2) { height: 62%; }
.mini-bars i:nth-child(3) { height: 52%; }
.mini-bars i:nth-child(4) { height: 78%; }
.mini-bars i:nth-child(5) { height: 92%; background: #f59e0b; }

.panel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #f8fafc;
}

.panel-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 800;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .result-product-hero {
    grid-template-columns: 1fr;
  }

  .result-product-panel {
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .result-product-hero {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .product-stat-row,
  .output-preview-grid {
    grid-template-columns: 1fr;
  }

  .result-product-panel {
    padding: 14px;
    border-radius: 26px;
  }

  .output-preview-card {
    min-height: auto;
  }
}

/* V12 update: keep Result Scanner sample sections clean and separated */
.result-sample-group + .result-sample-group {
  margin-top: 30px;
}


/* Production update: Result Scanner sample-output heading */
.result-samples-section {
  padding-top: 72px;
}

.result-samples-heading {
  max-width: 920px;
  margin-bottom: 34px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(236,253,245,0.72));
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.result-samples-heading h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  max-width: 880px;
  margin-bottom: 14px;
}

.result-samples-heading p {
  max-width: 850px;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--muted);
  font-weight: 600;
}

.sample-block-heading p {
  max-width: 850px;
}


/* Technical Zone Finder page */
.technical-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.20), transparent 30%),
    linear-gradient(135deg, #071b2f 0%, #08243b 48%, #0f766e 125%);
  color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.technical-hero h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  letter-spacing: -0.075em;
  margin-bottom: 12px;
  color: #ffffff;
}

.technical-hero h2 {
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  color: #facc15;
  max-width: 760px;
  margin-bottom: 18px;
}

.technical-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 760px;
}

.technical-hero .product-stat-row div {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.technical-hero .product-stat-row span {
  color: rgba(255, 255, 255, 0.82);
}

.technical-hero-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.technical-hero-panel img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #061827;
}

.technical-samples-section {
  padding-top: 64px;
}

.technical-samples-heading {
  max-width: 960px;
  margin-bottom: 34px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,247,237,0.72));
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.technical-samples-heading p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.72;
}

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

.technical-sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.technical-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.technical-sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #061827;
  padding: 10px;
}

.technical-sample-card h4 {
  padding: 16px 18px 4px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.technical-sample-card p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

@media (max-width: 960px) {
  .technical-hero {
    grid-template-columns: 1fr;
  }

  .technical-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .technical-hero-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .technical-samples-heading {
    padding: 20px;
  }

  .technical-sample-card img {
    padding: 6px;
  }
}


/* Technical Zone Finder hero fit fix: keep complete banner message visible above the fold */
.technical-hero {
  min-height: calc(100vh - 88px);
  padding-top: clamp(22px, 3.2vh, 38px);
  padding-bottom: clamp(22px, 3.2vh, 38px);
  align-items: center;
}

.technical-hero .product-kicker {
  margin-bottom: clamp(16px, 2.2vh, 26px);
}

.technical-hero h1 {
  font-size: clamp(3.1rem, 5.2vw, 5.35rem);
  line-height: 0.98;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.technical-hero h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.55rem);
  line-height: 1.12;
  margin-bottom: clamp(12px, 1.6vh, 18px);
}

.technical-hero p {
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.58;
}

.technical-hero .product-stat-row {
  margin-top: clamp(20px, 2.4vh, 28px);
  gap: 12px;
}

.technical-hero .product-stat-row div {
  min-height: 104px;
  padding: 18px 20px;
}

.technical-hero .hero-actions {
  margin-top: clamp(20px, 2.4vh, 28px);
}

.technical-hero-panel {
  padding: clamp(12px, 1.6vw, 18px);
  align-self: center;
}

.technical-hero-panel img {
  max-height: min(46vh, 390px);
  object-fit: contain;
}

@media (min-width: 1180px) and (max-height: 820px) {
  .technical-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.82fr);
    gap: 34px;
  }

  .technical-hero h1 {
    font-size: clamp(3rem, 4.75vw, 4.85rem);
  }

  .technical-hero h2 {
    font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  }

  .technical-hero p {
    max-width: 690px;
  }

  .technical-hero .product-stat-row div {
    min-height: 94px;
    padding: 14px 18px;
  }

  .technical-hero-panel img {
    max-height: 335px;
  }

  .technical-hero .btn {
    min-height: 44px;
    padding: 11px 20px;
  }
}

@media (max-width: 960px) {
  .technical-hero {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .technical-hero-panel img {
    max-height: none;
  }
}


/* News Card Generator page */
.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.82fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding-top: clamp(24px, 3vh, 40px);
  padding-bottom: clamp(24px, 3vh, 40px);
  background:
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.20), transparent 31%),
    linear-gradient(135deg, #071b2f 0%, #08243b 45%, #0f766e 125%);
  color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.news-hero h1 {
  font-size: clamp(3.2rem, 5.3vw, 5.7rem);
  letter-spacing: -0.075em;
  line-height: 0.98;
  margin-bottom: 12px;
  color: #ffffff;
}

.news-hero h2 {
  font-size: clamp(1.55rem, 2.55vw, 2.65rem);
  line-height: 1.12;
  color: #facc15;
  max-width: 780px;
  margin-bottom: 18px;
}

.news-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.58;
  max-width: 760px;
}

.news-hero .product-stat-row {
  margin-top: clamp(20px, 2.4vh, 28px);
  gap: 12px;
}

.news-hero .product-stat-row div {
  min-height: 98px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.news-hero .product-stat-row span {
  color: rgba(255, 255, 255, 0.82);
}

.news-hero .hero-actions {
  margin-top: clamp(20px, 2.4vh, 28px);
}

.news-hero-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  padding: clamp(12px, 1.6vw, 18px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  align-self: center;
}

.news-hero-panel img {
  width: 100%;
  max-height: min(52vh, 510px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #061827;
}

.news-samples-section {
  padding-top: 64px;
}

.news-samples-heading {
  max-width: 960px;
  margin-bottom: 34px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,246,255,0.76));
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.news-samples-heading p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.72;
}

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

.news-sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.news-sample-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #061827;
  padding: 10px;
}

.news-sample-card h4 {
  padding: 16px 18px 4px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.news-sample-card p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

@media (min-width: 1180px) and (max-height: 820px) {
  .news-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(410px, 0.78fr);
    gap: 34px;
  }

  .news-hero h1 {
    font-size: clamp(3rem, 4.85vw, 5rem);
  }

  .news-hero h2 {
    font-size: clamp(1.45rem, 2.25vw, 2.28rem);
  }

  .news-hero-panel img {
    max-height: 390px;
  }
}

@media (max-width: 960px) {
  .news-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .news-gallery {
    grid-template-columns: 1fr;
  }

  .news-hero-panel img {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .news-hero-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .news-samples-heading {
    padding: 20px;
  }

  .news-sample-card img {
    padding: 6px;
  }
}


/* Option Sentiment Dashboard page */
.option-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(430px,.82fr);gap:44px;align-items:center;min-height:calc(100vh - 88px);padding-top:clamp(24px,3vh,40px);padding-bottom:clamp(24px,3vh,40px);background:radial-gradient(circle at 82% 18%,rgba(245,158,11,.22),transparent 30%),linear-gradient(135deg,#071b2f 0%,#08243b 46%,#0f766e 126%);color:#fff;border-bottom:1px solid rgba(15,23,42,.1)}
.option-hero h1{font-size:clamp(3rem,5vw,5.6rem);letter-spacing:-.075em;line-height:.98;margin-bottom:12px;color:#fff}.option-hero h2{font-size:clamp(1.5rem,2.45vw,2.55rem);line-height:1.12;color:#facc15;max-width:780px;margin-bottom:18px}.option-hero p{color:rgba(255,255,255,.88);font-size:clamp(.98rem,1.2vw,1.06rem);line-height:1.58;max-width:780px}.option-hero .product-stat-row{margin-top:clamp(20px,2.4vh,28px);gap:12px}.option-hero .product-stat-row div{min-height:98px;padding:16px 18px;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}.option-hero .product-stat-row span{color:rgba(255,255,255,.82)}.option-hero .hero-actions{margin-top:clamp(20px,2.4vh,28px)}
.option-hero-panel{background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.72);border-radius:32px;padding:clamp(12px,1.6vw,18px);box-shadow:0 26px 80px rgba(0,0,0,.28);overflow:hidden;align-self:center}.option-hero-panel img{width:100%;max-height:min(52vh,510px);object-fit:contain;border-radius:20px;border:1px solid var(--border);background:#061827}.option-excel-section{align-items:center}.excel-preview-stack{display:grid;gap:16px}.excel-preview-stack img{width:100%;border-radius:22px;border:1px solid var(--border);box-shadow:0 18px 48px rgba(15,23,42,.10);background:#fff}.usp-section{background:linear-gradient(180deg,rgba(240,253,250,.58),rgba(248,250,252,.9))}.usp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.usp-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:24px;box-shadow:0 16px 42px rgba(15,23,42,.06)}.usp-card span{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:14px;background:rgba(13,127,115,.10);color:var(--brand);font-weight:900;margin-bottom:18px}.usp-card h3{font-size:1.15rem;margin-bottom:8px;letter-spacing:-.035em}.usp-card p{color:var(--muted);font-weight:600;line-height:1.62}.option-samples-section{padding-top:64px}.option-samples-heading{max-width:980px;margin-bottom:34px;padding:24px 28px;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(254,249,195,.42));border:1px solid rgba(245,158,11,.18);border-radius:28px;box-shadow:0 16px 42px rgba(15,23,42,.06)}.option-samples-heading p{color:var(--muted);font-weight:600;line-height:1.72}.option-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.option-sample-card{background:#fff;border:1px solid var(--border);border-radius:26px;overflow:hidden;box-shadow:0 16px 42px rgba(15,23,42,.07);transition:transform .2s ease,box-shadow .2s ease}.option-sample-card:hover{transform:translateY(-4px);box-shadow:0 22px 56px rgba(15,23,42,.12)}.option-sample-card img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#061827;padding:8px}.option-sample-card h4{padding:16px 18px 4px;font-size:1.04rem;line-height:1.2;letter-spacing:-.035em}.option-sample-card p{padding:0 18px 18px;color:var(--muted);font-weight:600;font-size:.92rem}
@media (min-width:1180px) and (max-height:820px){.option-hero{grid-template-columns:minmax(0,.92fr) minmax(410px,.78fr);gap:34px}.option-hero h1{font-size:clamp(3rem,4.8vw,5rem)}.option-hero h2{font-size:clamp(1.4rem,2.2vw,2.25rem)}.option-hero-panel img{max-height:390px}}
@media (max-width:1100px){.option-gallery,.usp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:960px){.option-hero{grid-template-columns:1fr;min-height:auto;padding-top:46px;padding-bottom:52px}.option-hero-panel img{max-height:none}}@media (max-width:620px){.option-gallery,.usp-grid{grid-template-columns:1fr}.option-hero-panel{padding:12px;border-radius:24px}.option-samples-heading{padding:20px}.option-sample-card img{padding:6px}}


/* Sector Money Flow page */
.sector-flow-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.86fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding-top: clamp(24px, 3vh, 40px);
  padding-bottom: clamp(24px, 3vh, 40px);
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.20), transparent 30%),
    linear-gradient(135deg, #071b2f 0%, #08243b 48%, #0f766e 126%);
  color: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.sector-flow-hero h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  letter-spacing: -0.075em;
  line-height: 0.98;
  margin-bottom: 12px;
  color: #ffffff;
}

.sector-flow-hero h2 {
  font-size: clamp(1.5rem, 2.45vw, 2.55rem);
  line-height: 1.12;
  color: #facc15;
  max-width: 800px;
  margin-bottom: 18px;
}

.sector-flow-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.58;
  max-width: 800px;
}

.sector-flow-hero .product-stat-row {
  margin-top: clamp(20px, 2.4vh, 28px);
  gap: 12px;
}

.sector-flow-hero .product-stat-row div {
  min-height: 98px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.sector-flow-hero .product-stat-row span {
  color: rgba(255, 255, 255, 0.82);
}

.sector-flow-hero .hero-actions {
  margin-top: clamp(20px, 2.4vh, 28px);
}

.sector-flow-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  padding: clamp(12px, 1.6vw, 18px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  align-self: center;
}

.sector-flow-panel img {
  width: 100%;
  max-height: min(50vh, 500px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #061827;
}

.sector-benefit-section {
  align-items: center;
}

.sector-preview-stack {
  display: grid;
  gap: 16px;
}

.sector-preview-stack img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  background: #061827;
}

.sector-samples-section {
  padding-top: 64px;
}

.sector-samples-heading {
  max-width: 980px;
  margin-bottom: 34px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(220, 252, 231, 0.45));
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.sector-samples-heading p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.72;
}

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

.sector-sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sector-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.sector-sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #061827;
  padding: 8px;
}

.sector-sample-card h4 {
  padding: 16px 18px 4px;
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.sector-sample-card p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

@media (min-width: 1180px) and (max-height: 820px) {
  .sector-flow-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(410px, 0.78fr);
    gap: 34px;
  }

  .sector-flow-hero h1 {
    font-size: clamp(3rem, 4.8vw, 5rem);
  }

  .sector-flow-hero h2 {
    font-size: clamp(1.4rem, 2.2vw, 2.25rem);
  }

  .sector-flow-panel img {
    max-height: 390px;
  }
}

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

@media (max-width: 960px) {
  .sector-flow-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .sector-flow-panel img {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .sector-flow-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .sector-samples-heading {
    padding: 20px;
  }

  .sector-sample-card img {
    padding: 6px;
  }
}


/* Price Action Zone Finder page */
.pa-hero{display:grid;grid-template-columns:minmax(0,.92fr) minmax(430px,.8fr);gap:44px;align-items:center;min-height:calc(100vh - 88px);padding-top:clamp(22px,3vh,38px);padding-bottom:clamp(22px,3vh,38px);background:radial-gradient(circle at 80% 18%,rgba(245,158,11,.20),transparent 28%),radial-gradient(circle at 54% 70%,rgba(20,184,166,.20),transparent 32%),linear-gradient(135deg,#071b2f 0%,#08243b 50%,#115e59 128%);color:#fff}.pa-hero h1{font-size:clamp(3rem,5vw,5.65rem);letter-spacing:-.075em;line-height:.98;color:#fff;margin-bottom:12px}.pa-hero h2{font-size:clamp(1.5rem,2.45vw,2.55rem);line-height:1.12;color:#facc15;max-width:860px;margin-bottom:18px}.pa-hero p{color:rgba(255,255,255,.88);font-size:clamp(.98rem,1.18vw,1.06rem);line-height:1.58;max-width:830px}.pa-hero .product-stat-row{margin-top:clamp(18px,2.2vh,26px);gap:12px}.pa-hero .product-stat-row div{min-height:96px;padding:16px 18px;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}.pa-hero .product-stat-row span{color:rgba(255,255,255,.82)}.pa-hero .hero-actions{margin-top:clamp(20px,2.4vh,28px)}.pa-output-panel{background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.74);border-radius:32px;padding:clamp(12px,1.6vw,18px);box-shadow:0 26px 80px rgba(0,0,0,.28);overflow:hidden;align-self:center}.pa-output-panel img{width:100%;max-height:min(52vh,540px);object-fit:contain;border-radius:20px;border:1px solid var(--border);background:#061827}.pa-benefit-section{align-items:center}.pa-mini-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pa-mini-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;box-shadow:0 16px 42px rgba(15,23,42,.07)}.pa-mini-card span{display:inline-flex;margin-bottom:12px;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}.pa-mini-card strong{display:block;font-size:1.32rem;letter-spacing:-.045em;line-height:1.12;margin-bottom:8px;color:var(--ink)}.pa-mini-card small{color:var(--muted);font-weight:700}.pa-mini-card.up{background:linear-gradient(135deg,rgba(220,252,231,.72),rgba(255,255,255,.98))}.pa-samples-section{padding-top:64px}.pa-samples-heading{max-width:980px;margin-bottom:34px;padding:24px 28px;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(254,249,195,.50));border:1px solid rgba(245,158,11,.22);border-radius:28px;box-shadow:0 16px 42px rgba(15,23,42,.06)}.pa-samples-heading p{color:var(--muted);font-weight:600;line-height:1.72}.pa-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.pa-sample-card{background:#fff;border:1px solid var(--border);border-radius:26px;overflow:hidden;box-shadow:0 16px 42px rgba(15,23,42,.07);transition:transform .2s ease,box-shadow .2s ease}.pa-sample-card:hover{transform:translateY(-4px);box-shadow:0 22px 56px rgba(15,23,42,.12)}.pa-sample-card img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#061827;padding:8px}.pa-sample-card h4{padding:16px 18px 4px;font-size:1.04rem;line-height:1.2;letter-spacing:-.035em}.pa-sample-card p{padding:0 18px 18px;color:var(--muted);font-weight:600;font-size:.92rem}@media (min-width:1180px) and (max-height:820px){.pa-hero{grid-template-columns:minmax(0,.95fr) minmax(390px,.72fr);gap:32px}.pa-hero h1{font-size:clamp(3rem,4.7vw,5rem)}.pa-hero h2{font-size:clamp(1.38rem,2.18vw,2.24rem)}.pa-output-panel img{max-height:400px}}@media (max-width:1180px){.pa-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:960px){.pa-hero{grid-template-columns:1fr;min-height:auto;padding-top:46px;padding-bottom:52px}.pa-output-panel img{max-height:none}}@media (max-width:650px){.pa-gallery,.pa-mini-board{grid-template-columns:1fr}.pa-output-panel{padding:12px;border-radius:24px}.pa-samples-heading{padding:20px}.pa-sample-card img{padding:6px}}

/* Brand home-link fix */
.site-header,
.navbar {
  position: relative;
  z-index: 1000;
}

.brand {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}


/* Price Action Excel output section */
.pa-excel-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1fr);
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 253, 245, .78), rgba(255, 255, 255, .96));
}

.pa-excel-copy {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 42px);
  box-shadow: 0 18px 54px rgba(15, 23, 42, .07);
}

.pa-excel-copy h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -.065em;
  line-height: 1.03;
  margin-bottom: 18px;
  color: var(--ink);
}

.pa-excel-copy p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.72;
  margin-bottom: 14px;
}

.pa-excel-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pa-excel-points div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}

.pa-excel-points strong {
  display: block;
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 6px;
}

.pa-excel-points span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.45;
}

.pa-excel-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(14px, 1.7vw, 20px);
  box-shadow: 0 22px 64px rgba(15, 23, 42, .10);
  overflow: hidden;
}

.pa-excel-preview img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: block;
}

@media (max-width: 1080px) {
  .pa-excel-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .pa-excel-points {
    grid-template-columns: 1fr;
  }

  .pa-excel-copy,
  .pa-excel-preview {
    border-radius: 22px;
  }
}


/* Price Action hero first-fold fit fix */
@media (min-width: 961px) {
  .pa-hero {
    min-height: calc(100vh - 76px) !important;
    padding-top: clamp(14px, 2vh, 24px) !important;
    padding-bottom: clamp(12px, 1.8vh, 22px) !important;
    gap: clamp(22px, 3vw, 36px) !important;
    align-items: center !important;
  }

  .pa-hero .product-kicker {
    margin-bottom: clamp(18px, 2.2vh, 26px) !important;
    transform: scale(0.92);
    transform-origin: left center;
  }

  .pa-hero h1 {
    font-size: clamp(3.15rem, 5.05vw, 5.15rem) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.08em !important;
    margin-bottom: clamp(8px, 1.1vh, 12px) !important;
  }

  .pa-hero h2 {
    font-size: clamp(1.72rem, 2.28vw, 2.35rem) !important;
    line-height: 1.06 !important;
    max-width: 760px !important;
    margin-bottom: clamp(12px, 1.4vh, 16px) !important;
  }

  .pa-hero p {
    font-size: clamp(0.94rem, 1.02vw, 1.02rem) !important;
    line-height: 1.44 !important;
    max-width: 760px !important;
  }

  .pa-hero .product-stat-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: clamp(14px, 1.6vh, 18px) !important;
  }

  .pa-hero .product-stat-row div {
    min-height: 74px !important;
    padding: 13px 14px !important;
    border-radius: 18px !important;
  }

  .pa-hero .product-stat-row strong {
    font-size: clamp(1.15rem, 1.45vw, 1.42rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 6px !important;
  }

  .pa-hero .product-stat-row span {
    font-size: 0.86rem !important;
    line-height: 1.24 !important;
  }

  .pa-hero .hero-actions {
    margin-top: clamp(15px, 1.9vh, 20px) !important;
  }

  .pa-hero .btn {
    padding: 0.78rem 1.1rem !important;
  }

  .pa-output-panel {
    max-width: 560px !important;
    justify-self: end !important;
    padding: clamp(10px, 1.2vw, 14px) !important;
    border-radius: 28px !important;
  }

  .pa-output-panel img {
    max-height: min(45vh, 410px) !important;
    border-radius: 18px !important;
  }

  .pa-output-panel .panel-topline {
    margin-bottom: 12px !important;
    padding: 0 8px !important;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .pa-hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(390px, 0.72fr) !important;
  }

  .pa-hero h1 {
    font-size: clamp(2.8rem, 4.45vw, 4.45rem) !important;
  }

  .pa-hero h2 {
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
  }

  .pa-hero p {
    font-size: 0.92rem !important;
    line-height: 1.38 !important;
  }

  .pa-hero .product-stat-row div {
    min-height: 66px !important;
    padding: 11px 13px !important;
  }

  .pa-output-panel img {
    max-height: 340px !important;
  }
}

@media (min-width: 961px) and (max-height: 720px) {
  .pa-hero .product-kicker {
    transform: scale(0.86);
    margin-bottom: 14px !important;
  }

  .pa-hero h1 {
    font-size: clamp(2.55rem, 4vw, 3.95rem) !important;
  }

  .pa-hero h2 {
    font-size: clamp(1.3rem, 1.78vw, 1.75rem) !important;
  }

  .pa-hero p {
    font-size: 0.88rem !important;
    line-height: 1.34 !important;
  }

  .pa-hero .hero-actions {
    margin-top: 12px !important;
  }

  .pa-output-panel img {
    max-height: 300px !important;
  }
}


/* SEO content section */
.seo-content-section {
  background: linear-gradient(135deg, rgba(11, 129, 115, 0.06), rgba(255,255,255,0.96));
}
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.seo-link-grid a {
  display: block;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.seo-link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 129, 115, 0.35);
}
.seo-link-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
}
.seo-link-grid span {
  color: #59657a;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .seo-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .seo-link-grid { grid-template-columns: 1fr; }
}

/* V29 above-the-fold banner fit update
   Keep each product hero's full message, preview, stats and CTA visible on common laptop screens. */
@media (min-width: 961px) {
  .result-product-hero,
  .technical-hero,
  .news-hero,
  .option-hero,
  .sector-flow-hero,
  .pa-hero,
  .page-hero-compact {
    box-sizing: border-box !important;
    min-height: calc(100svh - 74px) !important;
    padding-top: clamp(18px, 2.4vh, 30px) !important;
    padding-bottom: clamp(18px, 2.4vh, 30px) !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .result-product-hero,
  .technical-hero,
  .news-hero,
  .option-hero,
  .sector-flow-hero,
  .pa-hero {
    gap: clamp(24px, 3vw, 42px) !important;
  }

  .product-kicker,
  .technical-hero .product-kicker,
  .pa-hero .product-kicker {
    margin-bottom: clamp(12px, 1.7vh, 18px) !important;
    padding: 6px !important;
    font-size: clamp(0.68rem, 0.78vw, 0.78rem) !important;
  }

  .product-kicker span {
    padding: 6px 10px !important;
  }

  .result-product-hero h1,
  .technical-hero h1,
  .news-hero h1,
  .option-hero h1,
  .sector-flow-hero h1,
  .pa-hero h1,
  .page-hero-compact h1 {
    font-size: clamp(3rem, 4.75vw, 5rem) !important;
    line-height: 0.94 !important;
    margin-bottom: clamp(8px, 1.2vh, 12px) !important;
    letter-spacing: -0.07em !important;
  }

  .result-product-hero h2,
  .technical-hero h2,
  .news-hero h2,
  .option-hero h2,
  .sector-flow-hero h2,
  .pa-hero h2 {
    font-size: clamp(1.35rem, 2vw, 2.05rem) !important;
    line-height: 1.08 !important;
    margin-bottom: clamp(10px, 1.4vh, 14px) !important;
  }

  .result-product-hero p,
  .technical-hero p,
  .news-hero p,
  .option-hero p,
  .sector-flow-hero p,
  .pa-hero p,
  .page-hero-compact .hero-text {
    font-size: clamp(0.88rem, 1vw, 1rem) !important;
    line-height: 1.42 !important;
    margin-top: clamp(10px, 1.4vh, 14px) !important;
  }

  .product-stat-row,
  .technical-hero .product-stat-row,
  .news-hero .product-stat-row,
  .option-hero .product-stat-row,
  .sector-flow-hero .product-stat-row,
  .pa-hero .product-stat-row {
    margin-top: clamp(14px, 1.9vh, 20px) !important;
    margin-bottom: clamp(14px, 1.9vh, 20px) !important;
    gap: 10px !important;
  }

  .product-stat-row div,
  .technical-hero .product-stat-row div,
  .news-hero .product-stat-row div,
  .option-hero .product-stat-row div,
  .sector-flow-hero .product-stat-row div,
  .pa-hero .product-stat-row div {
    min-height: 78px !important;
    padding: 13px 15px !important;
    border-radius: 18px !important;
  }

  .product-stat-row strong {
    font-size: clamp(1.08rem, 1.35vw, 1.35rem) !important;
    line-height: 1.05 !important;
  }

  .product-stat-row span {
    font-size: 0.82rem !important;
    line-height: 1.22 !important;
  }

  .hero-actions,
  .page-hero-compact .hero-actions,
  .technical-hero .hero-actions,
  .news-hero .hero-actions,
  .option-hero .hero-actions,
  .sector-flow-hero .hero-actions,
  .pa-hero .hero-actions {
    margin-top: clamp(14px, 1.8vh, 20px) !important;
  }

  .btn,
  .result-product-hero .btn,
  .technical-hero .btn,
  .news-hero .btn,
  .option-hero .btn,
  .sector-flow-hero .btn,
  .pa-hero .btn,
  .page-hero-compact .btn {
    min-height: 42px !important;
    padding: 10px 18px !important;
    font-size: 0.92rem !important;
  }

  .result-product-panel,
  .technical-hero-panel,
  .news-hero-panel,
  .option-hero-panel,
  .sector-flow-panel,
  .pa-output-panel,
  .page-hero-compact .video-card {
    align-self: center !important;
    max-width: 560px !important;
    justify-self: end !important;
    padding: clamp(10px, 1.2vw, 16px) !important;
    border-radius: 28px !important;
  }

  .technical-hero-panel img,
  .news-hero-panel img,
  .option-hero-panel img,
  .sector-flow-panel img,
  .pa-output-panel img,
  .page-hero-compact iframe,
  .page-hero-compact .video-frame {
    max-height: min(43vh, 340px) !important;
  }

  .result-product-panel .panel-topline {
    padding: 6px 6px 12px !important;
    font-size: 0.88rem !important;
  }

  .output-preview-grid {
    gap: 10px !important;
  }

  .output-preview-card {
    min-height: 118px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .output-preview-card strong {
    margin-top: 10px !important;
    font-size: 1.22rem !important;
  }

  .output-preview-card em {
    margin-top: 8px !important;
    font-size: 0.88rem !important;
  }

  .mini-bars {
    height: 40px !important;
    margin-top: 8px !important;
  }

  .panel-strip {
    margin-top: 10px !important;
    padding: 10px !important;
  }

  .panel-strip span {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }

  .page-hero-compact {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.82fr) !important;
    gap: 34px !important;
  }

  .page-hero-compact .hero-badges {
    margin-top: clamp(12px, 1.6vh, 18px) !important;
    gap: 8px !important;
  }

  .page-hero-compact .hero-badge {
    padding: 7px 11px !important;
    font-size: 0.78rem !important;
  }

  .page-hero-compact .video-card-body {
    padding-top: 8px !important;
  }

  .page-hero-compact .video-card-body h3 {
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
  }

  .page-hero-compact .video-card-body p {
    font-size: 0.92rem !important;
    line-height: 1.38 !important;
    margin-bottom: 10px !important;
  }
}

@media (min-width: 961px) and (max-height: 760px) {
  .result-product-hero,
  .technical-hero,
  .news-hero,
  .option-hero,
  .sector-flow-hero,
  .pa-hero,
  .page-hero-compact {
    min-height: auto !important;
    padding-top: 18px !important;
    padding-bottom: 22px !important;
  }

  .result-product-hero h1,
  .technical-hero h1,
  .news-hero h1,
  .option-hero h1,
  .sector-flow-hero h1,
  .pa-hero h1,
  .page-hero-compact h1 {
    font-size: clamp(2.65rem, 4.25vw, 4.25rem) !important;
    line-height: 0.94 !important;
  }

  .result-product-hero h2,
  .technical-hero h2,
  .news-hero h2,
  .option-hero h2,
  .sector-flow-hero h2,
  .pa-hero h2 {
    font-size: clamp(1.22rem, 1.75vw, 1.75rem) !important;
  }

  .result-product-hero p,
  .technical-hero p,
  .news-hero p,
  .option-hero p,
  .sector-flow-hero p,
  .pa-hero p,
  .page-hero-compact .hero-text {
    font-size: 0.86rem !important;
    line-height: 1.34 !important;
  }

  .product-stat-row div,
  .technical-hero .product-stat-row div,
  .news-hero .product-stat-row div,
  .option-hero .product-stat-row div,
  .sector-flow-hero .product-stat-row div,
  .pa-hero .product-stat-row div {
    min-height: 64px !important;
    padding: 10px 12px !important;
  }

  .technical-hero-panel img,
  .news-hero-panel img,
  .option-hero-panel img,
  .sector-flow-panel img,
  .pa-output-panel img,
  .page-hero-compact iframe,
  .page-hero-compact .video-frame {
    max-height: min(39vh, 295px) !important;
  }

  .result-product-panel {
    max-width: 520px !important;
  }

  .output-preview-card {
    min-height: 102px !important;
    padding: 12px !important;
  }

  .panel-strip {
    padding: 8px !important;
  }

  .product-kicker {
    margin-bottom: 10px !important;
    transform: scale(0.92);
    transform-origin: left center;
  }
}


/* AIT Smart Move Indicator page */
.smart-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 34%), linear-gradient(135deg, #061a2d 0%, #003f43 100%);
  color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
  min-height: calc(100vh - 78px);
}

.smart-hero h1 {
  font-size: clamp(2.6rem, 5vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  color: #ffffff;
  margin-top: 20px;
}

.smart-hero h2 {
  color: #facc15;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  margin-top: 18px;
  max-width: 760px;
}

.smart-hero p {
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  max-width: 760px;
  margin-top: 18px;
}

.smart-hero .product-stat-row > div {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.smart-hero .product-stat-row strong,
.smart-hero .product-stat-row span {
  color: #ffffff;
}

.smart-hero-panel {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
}

.smart-hero-panel img {
  width: 100%;
  display: block;
  border-radius: 26px;
  max-height: 620px;
  object-fit: contain;
  background: #f1f5f9;
}

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

.excel-sample-card,
.smart-sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.excel-sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  display: block;
  background: #f8fafc;
}

.excel-sample-card div {
  padding: 20px;
}

.excel-sample-card h3 {
  margin-bottom: 8px;
}

.excel-sample-card p {
  color: var(--muted);
  font-weight: 600;
}

.smart-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.smart-sample-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smart-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.smart-sample-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.smart-sample-card h4 {
  padding: 15px 16px 18px;
  font-size: 0.98rem;
  line-height: 1.2;
}

@media (max-width: 1040px) {
  .smart-hero,
  .smart-excel-grid {
    grid-template-columns: 1fr;
  }

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

  .smart-hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .smart-gallery {
    grid-template-columns: 1fr;
  }
}

/* Native live market strip: reliable visible values with JS fallback */
.live-market-strip {
  background: #f6faf9;
  border-bottom: 1px solid #e4eceb;
  border-top: 1px solid #eef3f2;
}

.live-market-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 24px;
  overflow: hidden;
}

.live-market-label {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: #0b8173;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-market-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.market-tile {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 7px 12px;
  border-left: 1px solid #e2e9e8;
  white-space: nowrap;
}

.market-name {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.market-price {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.market-change {
  font-size: 12px;
  font-weight: 800;
}

.market-change.up { color: #0b8173; }
.market-change.down { color: #c62828; }
.market-change.muted { color: #697586; }

.market-source-note {
  flex: 0 0 auto;
  color: #697586;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .live-market-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .live-market-items {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .market-tile {
    flex: 0 0 auto;
    border-left: 0;
    border: 1px solid #e2e9e8;
    border-radius: 999px;
    background: #ffffff;
  }
}

/* Clean NSE market snapshot layout */
.live-market-inner {
  max-width: 1320px;
  min-height: 58px;
  gap: 12px;
}

.live-market-label {
  font-size: 12px;
  padding: 9px 15px;
}

.live-market-items {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.market-tile {
  flex: 1 1 0;
  min-width: 175px;
  max-width: 235px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: center;
  padding: 7px 12px;
  border-left: 1px solid #dfe8e6;
  white-space: nowrap;
}

.market-name {
  font-size: 12px;
  line-height: 1.1;
}

.market-price {
  font-size: 16px;
  line-height: 1.15;
}

.market-change {
  font-size: 12px;
  line-height: 1.1;
}

.market-source-note {
  max-width: 185px;
  white-space: normal;
  line-height: 1.2;
  text-align: right;
}

@media (max-width: 1100px) {
  .market-source-note { display: none; }
  .market-tile { min-width: 165px; }
}

/* Homepage above-the-fold fit fix: keep CTA buttons visible with NSE snapshot strip */
@media (min-width: 901px) {
  .live-market-inner {
    min-height: 50px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .hero {
    min-height: calc(100vh - 150px);
    padding-top: 34px;
    padding-bottom: 34px;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 4.65vw, 4.35rem);
    line-height: 1.06;
    max-width: 680px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 610px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-card {
    max-width: 455px;
    justify-self: center;
  }

  .hero-card-body {
    padding: 14px 16px;
  }

  .hero-card-body p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 4.35vw, 4.05rem);
  }

  .hero-card {
    max-width: 420px;
  }

  .hero-text {
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .btn {
    min-height: 44px;
    padding: 11px 20px;
  }
}


/* About Us page */
.about-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 52px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 76px;
}
.about-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin: 0 0 24px;
  color: #111827;
}
.about-hero-copy p {
  max-width: 760px;
  color: #526173;
  font-size: 1.12rem;
  line-height: 1.75;
}
.about-hero-card {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}
.about-hero-card img {
  width: 100%;
  border-radius: 22px;
  display: block;
  background: #f8fafc;
}
.about-hero-card p {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0 0;
  color: #526173;
  font-weight: 700;
  line-height: 1.5;
}
.about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.about-story-card,
.about-disclaimer-card {
  border: 1px solid #dfe7ee;
  background: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.05);
}
.about-story-card h2,
.about-disclaimer-card h2,
.about-audience-panel h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.about-story-card p,
.about-disclaimer-card p,
.about-audience-panel p {
  color: #526173;
  line-height: 1.75;
  font-size: 1.05rem;
}
.emphasis-card {
  background: linear-gradient(135deg, #0b8173, #064e46);
  color: #fff;
}
.emphasis-card .eyebrow,
.emphasis-card p { color: rgba(255,255,255,0.82); }
.about-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.about-tool-grid a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #dfe7ee;
  border-radius: 24px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.about-tool-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 129, 115, 0.35);
  box-shadow: 0 24px 70px rgba(11, 129, 115, 0.12);
}
.about-tool-grid strong { font-size: 1.05rem; }
.about-tool-grid span { color: #526173; line-height: 1.55; }
.about-audience-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
  background: #eefcf6;
  border: 1px solid #ccefe2;
  border-radius: 34px;
  padding: 42px;
}
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.audience-list span {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 999px;
  padding: 15px 18px;
  font-weight: 800;
  color: #0b8173;
  text-align: center;
}
.about-sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.about-sample-grid article {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}
.about-sample-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #f8fafc;
}
.about-sample-grid h3 {
  font-size: 1rem;
  margin: 14px 6px 6px;
}
.about-disclaimer-card {
  background: #fff7ed;
  border-color: #fed7aa;
}
@media (max-width: 1050px) {
  .about-page-hero,
  .about-audience-panel { grid-template-columns: 1fr; }
  .about-tool-grid,
  .about-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .about-page-hero { padding-top: 48px; gap: 28px; }
  .about-story-grid,
  .about-tool-grid,
  .about-sample-grid,
  .audience-list { grid-template-columns: 1fr; }
  .about-story-card,
  .about-disclaimer-card,
  .about-audience-panel { padding: 22px; border-radius: 24px; }
  .about-hero-card { padding: 18px; border-radius: 24px; }
}


/* Market Tools SEO pages */
.market-tools-home-section {
  padding-top: 60px;
  padding-bottom: 66px;
}
.market-tools-card-grid, .market-tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.market-tools-card-grid a, .market-tool-hub-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.market-tools-card-grid a:hover, .market-tool-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}
.market-tools-card-grid strong, .market-tool-hub-card h3 {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.market-tools-card-grid span, .market-tool-hub-card p {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.market-tools-main-link {
  background: linear-gradient(135deg, #0f766e, #0b8173) !important;
  color: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}
.market-tools-main-link h3,
.market-tools-main-link p,
.market-tools-main-link strong,
.market-tools-main-link span {
  color: #ffffff !important;
}
.market-tools-main-link p {
  opacity: 0.92;
}
.market-tools-main-link span {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.market-tools-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 54px;
}
.market-tools-hero h1, .market-table-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 840px;
}
.market-tools-hero p, .market-page-intro {
  color: var(--muted);
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.08rem;
}
.market-tools-summary-card {
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.market-tools-summary-card strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.market-tools-summary-card span {
  display: block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 900;
}
.market-tools-summary-card p {
  margin-top: 18px;
  color: var(--muted);
}
.market-tool-hub-card span {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.market-table-hero {
  padding-top: 72px;
  padding-bottom: 34px;
}
.market-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.market-page-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
}
.market-table-section {
  padding-top: 24px;
  padding-bottom: 46px;
}
.market-table-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.market-updated, .market-table-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.market-data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.market-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.market-data-table th, .market-data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.94rem;
}
.market-data-table th {
  background: #e7eef7;
  color: #0f172a;
  font-weight: 900;
}
.market-data-table td {
  color: #1f2937;
  font-weight: 650;
}
.market-data-table td.negative {
  color: #b91c1c;
  font-weight: 900;
}
.market-data-table td.positive {
  color: #047857;
  font-weight: 900;
}
.market-table-note {
  margin-top: 14px;
}
.market-explain-section {
  padding-top: 40px;
}
.related-sector-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.related-sector-links strong {
  margin-right: 4px;
}
.related-sector-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .market-tools-card-grid, .market-tool-hub-grid, .market-tools-hero {
    grid-template-columns: 1fr;
  }
  .market-table-heading {
    align-items: start;
    flex-direction: column;
  }
}


.market-json-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px}.market-json-toolbar input{min-width:260px;flex:1;border:1px solid #dbe4ee;border-radius:999px;padding:13px 18px;font:inherit;color:#0f172a;background:#fff}.market-json-toolbar .btn{padding:12px 18px}.market-data-table td:first-child{white-space:nowrap}.market-data-table .positive{color:#087f5b;font-weight:800}.market-data-table .negative{color:#b4232c;font-weight:800}@media(max-width:720px){.market-json-toolbar{align-items:stretch}.market-json-toolbar input,.market-json-toolbar .btn{width:100%;min-width:0}}

/* Compact SEO block for all Market Tools index pages */
.market-explain-section {
  padding-top: 26px;
  padding-bottom: 34px;
}
.market-explain-section .compact-market-seo {
  max-width: 860px;
}
.market-explain-section .compact-market-seo h2 {
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
.market-explain-section .compact-market-seo p {
  max-width: 820px;
  font-size: 1rem;
  line-height: 1.65;
}
.market-explain-section .related-sector-links {
  margin-top: 22px;
}
@media (max-width: 700px) {
  .market-explain-section .compact-market-seo h2 {
    font-size: 1.75rem;
  }
}

/* Final Market Tools typography tuning */
.market-table-hero {
  padding-top: 30px;
  padding-bottom: 20px;
}
.market-table-hero h1 {
  font-size: clamp(1.95rem, 3.35vw, 3.25rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.042em;
  max-width: 1040px;
}
.market-table-hero .market-page-intro {
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 860px;
  margin-top: 12px;
}
.market-table-heading h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.market-table-section {
  padding-top: 16px;
  padding-bottom: 34px;
}
.market-explain-section {
  padding-top: 22px;
  padding-bottom: 28px;
}
.market-explain-section .compact-market-seo h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem) !important;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.market-explain-section .compact-market-seo p {
  font-size: 0.94rem;
  line-height: 1.55;
}
.market-explain-section .compact-market-seo .eyebrow,
.market-table-heading .eyebrow {
  font-size: 0.78rem;
}
.related-sector-link {
  padding: 7px 11px;
  font-size: 0.82rem;
}
@media (max-width: 700px) {
  .market-table-hero h1 {
    font-size: 2rem !important;
  }
  .market-table-heading h2 {
    font-size: 1.65rem !important;
  }
  .market-explain-section .compact-market-seo h2 {
    font-size: 1.35rem !important;
  }
}


/* Market tools Top 5 insight cards */
.market-top5-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.market-top5-card {
  background: #ffffff;
  border: 1px solid #dfe8f3;
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}
.market-top5-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.market-top5-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.market-top5-card li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #eef3f8;
  padding-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}
.market-top5-card li:first-child {
  border-top: 0;
  padding-top: 0;
}
.market-top5-card li span {
  color: #526173;
  font-weight: 650;
}
.market-top5-card li strong {
  white-space: nowrap;
  color: #0f172a;
  font-weight: 850;
}
.market-top5-card li strong.positive { color: #087f5b; }
.market-top5-card li strong.negative { color: #b4232c; }
@media (max-width: 1100px) {
  .market-top5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .market-top5-grid { grid-template-columns: 1fr; }
}


/* V49: gentle hero compression only; table/top-5 layout unchanged */
@media (min-width: 1000px) and (max-height: 760px) {
  .market-table-hero {
    padding-top: 24px;
    padding-bottom: 18px;
  }
  .market-table-hero h1 {
    font-size: clamp(1.9rem, 3.05vw, 3rem) !important;
  }
  .market-table-hero .market-page-intro {
    margin-top: 10px;
    line-height: 1.5;
  }
  .market-page-badges {
    margin-top: 14px;
  }
}


/* V50 Market tools homepage tuning */
.market-tools-hero {
  padding-top: 42px;
  padding-bottom: 46px;
  align-items: center;
}
.market-tools-hero h1 {
  font-size: clamp(2.35rem, 4.25vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  max-width: 780px;
}
.market-tools-hero p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 790px;
}
.market-tools-summary-card {
  padding: 30px;
  max-width: 520px;
}
.market-tools-summary-card strong {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.12;
}
.market-tools-summary-card span {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.45;
}
.market-tools-summary-card p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.55;
}
@media (max-height: 820px) and (min-width: 901px) {
  .market-tools-hero {
    padding-top: 34px;
    padding-bottom: 36px;
  }
  .market-tools-hero h1 {
    font-size: clamp(2.2rem, 3.9vw, 3.85rem);
  }
  .market-tools-hero p {
    font-size: 0.98rem;
    margin-top: 12px;
  }
  .market-tools-summary-card {
    padding: 26px;
  }
}


/* V52: Market Tools FII/DII activity card - brand-clean colors */
.market-tools-fii-card {
  width: min(100%, 560px);
  justify-self: end;
  padding: 22px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.fii-card-title {
  text-align: center;
  color: var(--brand);
  background: #ecfdf5;
  border: 1px solid #ccefe1;
  border-radius: 16px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.fii-card-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.025em;
}
.fii-card-banner.net-positive {
  background: var(--brand) !important;
  color: #ffffff !important;
}
.fii-card-banner.net-negative {
  background: #d83a3a !important;
  color: #ffffff !important;
}
.fii-dii-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  font-size: 0.92rem;
}
.fii-dii-table th,
.fii-dii-table td {
  padding: 11px 10px;
  text-align: left;
  border: 1px solid #dfe7f0;
}
.fii-dii-table th {
  background: #e7eef7;
  color: #1f2937;
  font-weight: 900;
}
.fii-dii-table td {
  background: #ffffff;
  color: #0f172a;
  font-weight: 650;
}
.fii-dii-table tbody tr:nth-child(even) td { background: #f1f6fb; }
.fii-dii-table td:first-child { font-weight: 900; }
.fii-dii-table .net-value {
  border-radius: 9px;
  font-weight: 900;
  text-align: right;
}
.fii-dii-table .net-positive {
  color: #087f5b;
  background: #d8f7e6 !important;
}
.fii-dii-table .net-negative {
  color: #b4232c;
  background: #fde0e0 !important;
}
.fii-card-note {
  margin: 10px 2px 0 !important;
  color: var(--muted);
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  max-width: none !important;
  text-align: center;
}
@media (max-width: 900px) {
  .market-tools-fii-card {
    justify-self: stretch;
    width: 100%;
  }
}
@media (max-height: 820px) and (min-width: 901px) {
  .market-tools-fii-card { padding: 18px; }
  .fii-card-title { font-size: 1.18rem; padding: 8px 10px; }
  .fii-card-banner { min-height: 42px; font-size: 1.08rem; }
  .fii-dii-table th, .fii-dii-table td { padding: 9px 8px; font-size: 0.84rem; }
  .fii-card-note { font-size: 0.76rem !important; }
}


/* V53: Ensure FII/DII net inflow banner is always visible */
.market-tools-fii-card .fii-card-banner {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 12px 0 12px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: #0f8b66 !important;
  color: #ffffff !important;
  font-size: 1.16rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}
@media (max-height: 820px) and (min-width: 901px) {
  .market-tools-fii-card .fii-card-banner {
    min-height: 44px !important;
    font-size: 1.06rem !important;
    margin: 10px 0 10px !important;
    padding: 9px 12px !important;
  }
}


/* Portfolio Analyzer page */
.portfolio-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.17), transparent 35%), linear-gradient(135deg, #061a2d 0%, #08213a 45%, #003f43 100%);
  color: #ffffff;
  padding-top: 48px;
  padding-bottom: 48px;
  min-height: calc(100vh - 78px);
}
.portfolio-hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  color: #ffffff;
  margin-top: 18px;
}
.portfolio-hero h2 {
  color: #facc15;
  font-size: clamp(1.45rem, 2.55vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-top: 18px;
  max-width: 760px;
}
.portfolio-hero p {
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  max-width: 760px;
  margin-top: 18px;
}
.portfolio-hero .product-stat-row > div {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}
.portfolio-hero .product-stat-row strong,
.portfolio-hero .product-stat-row span {
  color: #ffffff;
}
.portfolio-hero-panel {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.26);
}
.portfolio-hero-panel img {
  width: 100%;
  display: block;
  border-radius: 24px;
  max-height: 610px;
  object-fit: contain;
  background: #06111f;
}
.portfolio-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.portfolio-sample-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}
.portfolio-sample-card img {
  width: 100%;
  display: block;
  background: #06111f;
  object-fit: cover;
}
.portfolio-sample-card.wide img {
  aspect-ratio: 16 / 9;
  object-position: top center;
}
.portfolio-sample-card:not(.wide) img {
  aspect-ratio: 4 / 5;
  object-position: top center;
}
.portfolio-sample-card h3 {
  padding: 18px 20px 4px;
  font-size: 1.06rem;
}
.portfolio-sample-card p {
  color: var(--muted);
  font-weight: 600;
  padding: 0 20px 20px;
}
@media (max-width: 1040px) {
  .portfolio-hero,
  .portfolio-sample-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-hero {
    min-height: auto;
  }
}
@media (max-width: 680px) {
  .portfolio-hero h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }
}

/* Portfolio Analyzer hero fit fix v58 */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.portfolio-hero.section-padding {
  max-width: 1268px;
  width: calc(100% - 44px);
  margin: 0 auto;
  box-sizing: border-box;
  min-height: calc(100svh - 98px);
  height: calc(100svh - 98px);
  overflow: hidden;
  padding: clamp(22px, 3.2vh, 42px) clamp(22px, 3vw, 48px) !important;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(26px, 3.6vw, 48px);
}
.portfolio-hero-copy {
  min-width: 0;
}
.portfolio-hero .product-kicker {
  margin-bottom: clamp(12px, 1.6vh, 18px);
  padding: 7px;
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
}
.portfolio-hero .product-kicker span {
  padding: 6px 11px;
}
.portfolio-hero h1 {
  font-size: clamp(3rem, 4.9vw, 5.05rem);
  line-height: 0.96;
  margin: clamp(8px, 1.2vh, 14px) 0 0;
}
.portfolio-hero h2 {
  font-size: clamp(1.45rem, 2.35vw, 2.2rem);
  line-height: 1.1;
  margin-top: clamp(12px, 1.7vh, 18px);
}
.portfolio-hero p {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.52;
  margin-top: clamp(12px, 1.8vh, 18px);
}
.portfolio-hero .product-stat-row {
  margin: clamp(14px, 2vh, 22px) 0 clamp(14px, 2vh, 22px);
  gap: 10px;
  max-width: 680px;
}
.portfolio-hero .product-stat-row > div {
  min-height: 74px;
  padding: 13px 15px;
  border-radius: 18px;
}
.portfolio-hero .product-stat-row strong {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}
.portfolio-hero .product-stat-row span {
  font-size: clamp(0.75rem, 0.9vw, 0.9rem);
}
.portfolio-hero .hero-actions {
  margin-top: 0;
  gap: 14px;
}
.portfolio-hero .btn {
  min-height: 44px;
  padding: 11px 22px;
}
.portfolio-hero-panel {
  min-width: 0;
  padding: clamp(12px, 1.3vw, 18px);
  border-radius: 30px;
}
.portfolio-hero-panel img {
  max-height: min(52vh, 480px);
  object-fit: contain;
}

@media (min-width: 901px) and (max-height: 820px) {
  .portfolio-hero.section-padding {
    max-width: 1268px;
    width: calc(100% - 44px);
    min-height: calc(100svh - 96px);
    height: calc(100svh - 96px);
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    grid-template-columns: minmax(390px, 0.9fr) minmax(420px, 1.1fr);
  }
  .portfolio-hero h1 {
    font-size: clamp(2.7rem, 4.35vw, 4.45rem);
  }
  .portfolio-hero h2 {
    font-size: clamp(1.25rem, 2.05vw, 1.9rem);
  }
  .portfolio-hero p {
    line-height: 1.42;
  }
  .portfolio-hero .product-stat-row > div {
    min-height: 66px;
    padding: 11px 13px;
  }
  .portfolio-hero .btn {
    min-height: 42px;
    padding: 10px 20px;
  }
  .portfolio-hero-panel img {
    max-height: 45vh;
  }
}

@media (max-width: 1040px) {
  .portfolio-hero.section-padding {
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
    padding: 42px 22px !important;
  }
}

/* Homepage Result Analysis card: use real Result Scanner output and make the card clickable */
.feature-card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-link:hover,
.feature-card-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.11);
}

.result-analysis-card img {
  object-position: top center;
}


/* Portfolio Analyzer workflow summary sample */
.portfolio-flow-section {
  padding-top: 30px;
}
.portfolio-flow-heading {
  margin-bottom: 24px;
}
.portfolio-flow-panel {
  background: radial-gradient(circle at top center, rgba(37, 99, 235, 0.14), transparent 34%), linear-gradient(135deg, #041427 0%, #06203b 55%, #001d36 100%);
  border-radius: 34px;
  border: 1px solid rgba(255, 214, 82, 0.15);
  box-shadow: 0 20px 50px rgba(2, 12, 27, 0.18);
  padding: 26px;
}
.portfolio-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.portfolio-flow-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  text-align: center;
  border-radius: 999px;
  padding: 16px 20px;
  color: #ffe27a;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  background: rgba(255, 226, 122, 0.06);
  border: 1px solid rgba(255, 226, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.portfolio-flow-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.portfolio-flow-metric {
  background: rgba(29, 52, 77, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  min-height: 164px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.portfolio-flow-metric strong {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  color: #ffd21f;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}
.portfolio-flow-metric span {
  color: #f8fafc;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
}
@media (max-width: 980px) {
  .portfolio-flow-steps {
    grid-template-columns: 1fr;
  }
  .portfolio-flow-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .portfolio-flow-panel {
    padding: 18px;
    border-radius: 26px;
  }
  .portfolio-flow-step {
    min-height: 58px;
    font-size: 1.08rem;
    padding: 14px 16px;
  }
  .portfolio-flow-metrics {
    grid-template-columns: 1fr;
  }
  .portfolio-flow-metric {
    min-height: 132px;
    border-radius: 20px;
  }
  .portfolio-flow-metric strong {
    font-size: 2.4rem;
  }
  .portfolio-flow-metric span {
    font-size: 1rem;
  }
}


/* V66 fix: FII/DII headline banner must be red for Net Outflow */
.market-tools-fii-card .fii-card-banner.net-negative,
#fiiDiiHeadline.net-negative {
  background: #d83a3a !important;
  color: #ffffff !important;
}

.market-tools-fii-card .fii-card-banner.net-positive,
#fiiDiiHeadline.net-positive {
  background: var(--brand) !important;
  color: #ffffff !important;
}


/* V67: Portfolio Analyzer separate YouTube demo section */
.portfolio-video-section {
  padding-top: 28px;
}

.portfolio-video-card {
  max-width: 760px;
  margin: 30px auto 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.portfolio-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #06111f;
  text-decoration: none;
}

.portfolio-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.portfolio-video-thumb:hover img,
.portfolio-video-thumb:focus img {
  transform: scale(1.025);
}

.portfolio-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 94px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #ff0000;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  padding-left: 5px;
}

.portfolio-video-body {
  padding: 18px 8px 4px;
}

.portfolio-video-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portfolio-video-body p {
  color: var(--muted);
  font-weight: 600;
}

.portfolio-video-body .video-actions {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .portfolio-video-card {
    border-radius: 22px;
    padding: 12px;
  }

  .portfolio-video-thumb {
    border-radius: 18px;
  }

  .portfolio-video-play {
    width: 72px;
    height: 52px;
    font-size: 1.55rem;
  }
}


/* V68: Portfolio Analyzer equal section width alignment */
.portfolio-page .section-padding:not(.portfolio-hero) {
  max-width: 1180px;
  width: calc(100% - 44px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.portfolio-page .section-heading,
.portfolio-page .news-samples-heading,
.portfolio-page .portfolio-flow-heading {
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-page .portfolio-video-card,
.portfolio-page .portfolio-flow-panel,
.portfolio-page .portfolio-sample-grid,
.portfolio-page .info-grid,
.portfolio-page .bullet-panel,
.portfolio-page .page-copy,
.portfolio-page .contact-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.portfolio-page .portfolio-video-card {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 680px) {
  .portfolio-page .section-padding:not(.portfolio-hero) {
    width: calc(100% - 32px);
  }
}


/* V69: Portfolio Analyzer compact vertical spacing fix */
.portfolio-page .section-padding:not(.portfolio-hero) {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

.portfolio-page .portfolio-flow-section {
  padding-top: 34px !important;
  padding-bottom: 36px !important;
}

.portfolio-page .result-summary-section {
  padding-top: 36px !important;
  padding-bottom: 38px !important;
}

.portfolio-page .smart-samples-section,
.portfolio-page .portfolio-video-section {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

.portfolio-page .split-section,
.portfolio-page .contact-section {
  padding-top: 38px !important;
  padding-bottom: 42px !important;
}

.portfolio-page .section-heading,
.portfolio-page .news-samples-heading,
.portfolio-page .portfolio-flow-heading {
  margin-bottom: 22px !important;
}

.portfolio-page .info-grid,
.portfolio-page .portfolio-sample-grid {
  margin-top: 24px !important;
}

.portfolio-page .portfolio-video-card {
  margin-top: 24px !important;
}

@media (max-width: 680px) {
  .portfolio-page .section-padding:not(.portfolio-hero) {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}


/* V75: robust FII/DII headline rendering and auto colour */
.market-tools-fii-card .fii-card-banner,
#fiiDiiHeadline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  overflow: visible !important;
  white-space: normal !important;
  text-align: center !important;
}
#fiiDiiHeadline.net-positive {
  background: #0f8b66 !important;
  color: #ffffff !important;
}
#fiiDiiHeadline.net-negative {
  background: #d83a3a !important;
  color: #ffffff !important;
}
#fiiDiiHeadline .fii-headline-text {
  display: block !important;
  width: 100% !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow: visible !important;
}


/* Tool-wise pricing and Razorpay checkout buttons */
.inline-tool-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-pricing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-pricing-actions.compact {
  gap: 8px;
  margin-top: 14px;
}

.tool-price-btn {
  border: 0;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tool-price-btn:hover,
.tool-price-btn:focus {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.tool-price-btn.trial {
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.tool-price-btn.full {
  color: #ffffff;
  background: #0f766e;
}

.tool-pricing-actions.compact .tool-price-btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.payment-status-box {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 44px));
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #dbe5e3;
  border-left: 6px solid #0f766e;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
}

.payment-status-box.error {
  border-left-color: #dc2626;
}

.payment-status-box.muted {
  border-left-color: #f59e0b;
}

.payment-status-box strong {
  display: block;
  padding-right: 28px;
  font-size: 1rem;
  margin-bottom: 6px;
}

.payment-status-box p {
  color: #5f6b7a;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.payment-status-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.test-payment-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
}

.test-payment-card h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.payment-note {
  margin-top: 14px;
  color: #5f6b7a;
  font-size: 0.95rem;
}

@media (max-width: 620px) {
  .inline-tool-pricing,
  .inline-tool-pricing .tool-pricing-actions,
  .tool-pricing-actions {
    width: 100%;
  }

  .tool-price-btn {
    flex: 1 1 100%;
  }
}

/* Dedicated Razorpay payment success page */
.payment-success-section {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-success-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  border: 1px solid #99f6e4;
}

.payment-success-card h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 8px 0 14px;
  color: #111827;
}

.success-summary,
.success-instruction,
.redirect-note {
  color: #5f6b7a;
  font-size: 1rem;
  line-height: 1.7;
}

.success-summary strong {
  color: #111827;
}

.payment-success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.payment-success-details div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
}

.payment-success-details span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.payment-success-details strong {
  color: #0f172a;
  word-break: break-word;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}

.redirect-note {
  font-size: 0.92rem;
}

.redirect-note span {
  font-weight: 800;
  color: #0f766e;
}

@media (max-width: 620px) {
  .payment-success-details {
    grid-template-columns: 1fr;
  }

  .success-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* V82: Website-aligned Index Performance page */
.index-performance-page {
  padding: 30px 0 58px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eefaf6 52%, #ffffff 100%);
}
.index-performance-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  color: var(--text);
}
.index-performance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
}
.index-performance-hero h1 {
  font-size: clamp(1.95rem, 3.35vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  max-width: 1040px;
}
.index-performance-summary {
  justify-self: end;
  width: min(100%, 360px);
  padding: 24px;
}
.index-snapshot-card {
  max-width: 100%;
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  border-radius: 30px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}
.index-snapshot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.index-snapshot-card-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  margin-top: 6px;
}
.index-snapshot-banner {
  flex: 0 0 auto;
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.18);
  text-align: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}
.index-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #d9e2ec;
  background: #ffffff;
}
.index-performance-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
.index-performance-table th,
.index-performance-table td {
  padding: 15px 14px;
  text-align: left;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.98rem;
  line-height: 1.25;
}
.index-performance-table th:last-child,
.index-performance-table td:last-child { border-right: 0; }
.index-performance-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
}
.index-performance-table tbody tr:nth-child(even) td { background: #f8fafc; }
.index-performance-table tbody tr:nth-child(odd) td { background: #ffffff; }
.index-performance-table tbody tr:hover td { background: #f0fdfa; }
.index-performance-table td {
  color: #111827;
  font-weight: 650;
}
.index-performance-table .index-name {
  font-weight: 950;
  white-space: normal;
}
.index-performance-table .negative { color: #c0262d; font-weight: 950; }
.index-performance-table .positive { color: #047857; font-weight: 950; }
.chg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 9px;
  border-radius: 999px;
  font-weight: 950;
}
.chg-pill.positive { background: #d9f5e7; color: #047857; }
.chg-pill.negative { background: #fde0e0; color: #c0262d; }
.index-snapshot-note {
  margin: 14px 4px 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
}
.index-performance-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}
@media (max-width: 900px) {
  .index-performance-page { padding: 38px 0 58px; }
  .index-performance-hero { grid-template-columns: 1fr; }
  .index-performance-summary { justify-self: stretch; width: 100%; }
  .index-snapshot-card-head { flex-direction: column; }
  .index-snapshot-banner { white-space: normal; width: 100%; }
}
@media (max-width: 760px) {
  .index-snapshot-card { padding: 16px; border-radius: 24px; }
  .index-performance-table th, .index-performance-table td { padding: 12px 10px; font-size: 0.88rem; }
}


/* AIT Stock Strength Ranker */
.stock-strength-page {
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 30%), #f5f7fb;
}
.stock-strength-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 28px;
}
.stock-strength-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 860px;
}
.stock-strength-summary-card span {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}
.stock-strength-summary-card strong {
  margin-top: 8px;
}
.stock-strength-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}
.stock-strength-table-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stock-strength-table {
  min-width: 1120px;
}
.stock-strength-table .stock-symbol {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}
.strength-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary-dark);
  font-weight: 950;
  border: 1px solid #c6f6df;
}
.market-tools-strength-link {
  background: linear-gradient(135deg, #0f172a, #0f766e) !important;
  color: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}
.market-tools-strength-link h3,
.market-tools-strength-link p,
.market-tools-strength-link strong,
.market-tools-strength-link span {
  color: #ffffff !important;
}
.market-tools-strength-link p { opacity: .92; }
.market-tools-strength-link span {
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.24);
}
@media (max-width: 1000px) {
  .stock-strength-hero,
  .stock-strength-insight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stock-strength-table-card { padding: 18px; border-radius: 22px; }
  .stock-strength-hero { padding-top: 38px; }
}

/* Global sticky header fix - keep navigation visible on every page */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar {
  position: relative !important;
  z-index: 5001 !important;
}

@supports not (position: sticky) {
  .site-header {
    position: fixed !important;
    left: 0;
    right: 0;
  }
  body {
    padding-top: 74px;
  }
}


/* V88: Fixed header on all pages - always visible while scrolling */
:root { --site-header-height: 74px; }
html { scroll-padding-top: calc(var(--site-header-height) + 16px); }
body { padding-top: var(--site-header-height) !important; }
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.site-header .navbar {
  min-height: var(--site-header-height);
}
.site-header, .site-header * {
  pointer-events: auto;
}
@media (max-width: 760px) {
  :root { --site-header-height: 68px; }
  .navbar { padding-top: 12px; padding-bottom: 12px; }
}


/* V89: Stock Strength Ranker layout cleanup */
.stock-strength-page.section-padding {
  padding-top: 24px !important;
}
.stock-strength-hero {
  padding-top: 0 !important;
  padding-bottom: 22px !important;
  gap: 28px !important;
}
.stock-strength-summary-card #strengthUpdated {
  margin-top: 10px;
}
.stock-strength-table-card {
  padding: 24px !important;
}
.stock-strength-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.stock-strength-table th,
.stock-strength-table td {
  padding: 13px 12px !important;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.stock-strength-table th:nth-child(1),
.stock-strength-table td:nth-child(1) { width: 5%; }
.stock-strength-table th:nth-child(2),
.stock-strength-table td:nth-child(2) { width: 21%; }
.stock-strength-table th:nth-child(3),
.stock-strength-table td:nth-child(3) { width: 16%; }
.stock-strength-table th:nth-child(4),
.stock-strength-table td:nth-child(4) { width: 9%; }
.stock-strength-table th:nth-child(5),
.stock-strength-table td:nth-child(5) { width: 9%; }
.stock-strength-table th:nth-child(6),
.stock-strength-table td:nth-child(6) { width: 12%; }
.stock-strength-table th:nth-child(7),
.stock-strength-table td:nth-child(7) { width: 12%; }
.stock-strength-table th:nth-child(8),
.stock-strength-table td:nth-child(8) { width: 8%; }
.stock-strength-table th:nth-child(9),
.stock-strength-table td:nth-child(9) {
  width: 8%;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.25;
}
.stock-strength-table .stock-symbol {
  display: none !important;
}
@media (max-width: 980px) {
  .stock-strength-table { min-width: 980px !important; }
}
@media (max-width: 720px) {
  .stock-strength-page.section-padding { padding-top: 16px !important; }
  .stock-strength-hero { gap: 18px !important; }
}


/* V90: AIT Tool header dropdown and momentum scanner */
.ait-tool-nav .ait-tools-dropdown {
  width: min(520px, calc(100vw - 40px));
  grid-template-columns: 1fr;
}
.market-tools-momentum-link {
  background: linear-gradient(135deg, #063e4a, #0b8173);
  color: #fff;
}
.market-tools-momentum-link h3,
.market-tools-momentum-link p,
.market-tools-momentum-link strong,
.market-tools-momentum-link span { color: #fff; }
.market-tools-momentum-link p { opacity: .94; }
.market-tools-momentum-link span { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); }
.momentum-scanner-page .stock-strength-hero { padding-top: 16px; }
.momentum-scanner-table { min-width: 1120px; }
.momentum-scanner-table th:nth-child(1),
.momentum-scanner-table td:nth-child(1) { width: 6%; }
.momentum-scanner-table th:nth-child(2),
.momentum-scanner-table td:nth-child(2) { width: 23%; }
.momentum-scanner-table th:nth-child(3),
.momentum-scanner-table td:nth-child(3) { width: 18%; }
.momentum-scanner-table th:nth-child(4),
.momentum-scanner-table td:nth-child(4) { width: 10%; }
.momentum-scanner-table th:nth-child(5),
.momentum-scanner-table td:nth-child(5) { width: 10%; }
.momentum-scanner-table th:nth-child(6),
.momentum-scanner-table td:nth-child(6) { width: 14%; }
.momentum-scanner-table th:nth-child(7),
.momentum-scanner-table td:nth-child(7) { width: 10%; }
.momentum-scanner-table th:nth-child(8),
.momentum-scanner-table td:nth-child(8) { width: 14%; white-space: normal; overflow-wrap: anywhere; }
.momentum-bias-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .86rem;
  background: #eef6f5;
  color: #0b8173;
}
.momentum-bias-pill.bullish-momentum { background: #d9f8ea; color: #008060; }
.momentum-bias-pill.bearish-momentum { background: #ffe0e3; color: #c91d2e; }
.momentum-bias-pill.reversal-watch { background: #fff4d6; color: #9a6500; }
.momentum-bias-pill.pullback-watch { background: #e8f0ff; color: #315da8; }
@media (max-width: 860px) {
  .ait-tool-nav .ait-tools-dropdown { width: 100%; }
  .momentum-scanner-table { min-width: 980px; }
}


/* V91: Momentum scanner above-the-fold cleanup and disclaimer removal */
.momentum-scanner-page.section-padding {
  padding-top: 0 !important;
}
.momentum-scanner-page .stock-strength-hero {
  padding-top: 0 !important;
  padding-bottom: 12px !important;
  gap: 22px !important;
  align-items: center;
}
.momentum-scanner-page .stock-strength-hero h1 {
  font-size: clamp(2.35rem, 4.25vw, 4.35rem) !important;
  line-height: .98 !important;
  margin-bottom: 12px !important;
  max-width: 760px !important;
}
.momentum-scanner-page .market-page-intro {
  font-size: clamp(.98rem, 1.08vw, 1.05rem) !important;
  line-height: 1.55 !important;
  max-width: 740px !important;
  margin-bottom: 12px !important;
}
.momentum-scanner-page .market-page-badges {
  gap: 10px !important;
  margin-top: 10px !important;
}
.momentum-scanner-page .market-page-badges span {
  padding: 8px 12px !important;
  font-size: .82rem !important;
}
.momentum-scanner-page .market-tools-summary-card,
.momentum-scanner-page .stock-strength-summary-card {
  padding: 24px 28px !important;
  border-radius: 24px !important;
}
.momentum-scanner-page .stock-strength-summary-card strong {
  font-size: clamp(1.7rem, 2.35vw, 2.45rem) !important;
  line-height: 1.05 !important;
}
.momentum-scanner-page .stock-strength-summary-card p {
  margin-top: 10px !important;
  line-height: 1.45 !important;
}
.momentum-scanner-page .stock-strength-insight-grid {
  margin: 8px 0 16px !important;
  gap: 14px !important;
}
.momentum-scanner-page .market-top5-card {
  padding: 18px 20px !important;
  border-radius: 20px !important;
  min-height: 0 !important;
}
.momentum-scanner-page .market-top5-card p {
  margin-bottom: 12px !important;
  font-size: .96rem !important;
}
.momentum-scanner-page .market-top5-card li {
  gap: 10px !important;
  padding: 8px 0 !important;
  font-size: .86rem !important;
  line-height: 1.2 !important;
}
.momentum-scanner-page .market-top5-card li span {
  line-height: 1.2 !important;
}
.momentum-scanner-page .market-table-heading {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.momentum-scanner-page .market-updated,
.momentum-scanner-page .market-table-note {
  display: none !important;
}
.momentum-scanner-table {
  min-width: 0 !important;
  width: 100% !important;
  table-layout: fixed !important;
}
.momentum-scanner-table th,
.momentum-scanner-table td {
  padding: 13px 10px !important;
  overflow-wrap: break-word;
  vertical-align: middle;
}
.momentum-scanner-table th:nth-child(1),
.momentum-scanner-table td:nth-child(1) { width: 6%; }
.momentum-scanner-table th:nth-child(2),
.momentum-scanner-table td:nth-child(2) { width: 22%; }
.momentum-scanner-table th:nth-child(3),
.momentum-scanner-table td:nth-child(3) { width: 18%; }
.momentum-scanner-table th:nth-child(4),
.momentum-scanner-table td:nth-child(4) { width: 10%; }
.momentum-scanner-table th:nth-child(5),
.momentum-scanner-table td:nth-child(5) { width: 10%; }
.momentum-scanner-table th:nth-child(6),
.momentum-scanner-table td:nth-child(6) { width: 14%; }
.momentum-scanner-table th:nth-child(7),
.momentum-scanner-table td:nth-child(7) { width: 10%; }
.momentum-scanner-table th:nth-child(8),
.momentum-scanner-table td:nth-child(8) { width: 10%; white-space: normal !important; overflow-wrap: normal !important; }
.momentum-bias-pill {
  border-radius: 18px !important;
  padding: 8px 10px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-align: center;
}
@media (min-width: 1180px) and (max-height: 820px) {
  .momentum-scanner-page .stock-strength-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .62fr);
  }
  .momentum-scanner-page .stock-strength-hero h1 {
    font-size: clamp(2.25rem, 3.95vw, 3.95rem) !important;
  }
  .momentum-scanner-page .market-page-intro {
    max-width: 700px !important;
  }
  .momentum-scanner-page .market-top5-card {
    padding: 16px 18px !important;
  }
  .momentum-scanner-page .market-top5-card li {
    padding: 7px 0 !important;
    font-size: .84rem !important;
  }
}
@media (max-width: 980px) {
  .momentum-scanner-table { min-width: 980px !important; }
}


/* V92: Volume Surge Scanner */
.market-tools-volume-link {
  background: linear-gradient(135deg, #0d5b54 0%, #0b8d77 100%);
  color: #fff;
}
.market-tools-volume-link h3,
.market-tools-volume-link p,
.market-tools-volume-link strong,
.market-tools-volume-link span { color: #fff; }
.market-tools-volume-link p { opacity: .94; }
.market-tools-volume-link span { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); }
.volume-surge-page.section-padding { padding-top: 14px !important; }
.volume-surge-page .stock-strength-hero {
  padding-top: 12px !important;
  margin-bottom: 20px !important;
  gap: 22px !important;
}
.volume-surge-page .stock-strength-hero h1 {
  font-size: clamp(44px, 6vw, 86px);
  line-height: .98;
  margin-bottom: 18px;
}
.volume-surge-page .market-page-intro { max-width: 820px; }
.volume-surge-page .stock-strength-insight-grid {
  margin-top: 10px !important;
  margin-bottom: 24px !important;
  gap: 18px;
}
.volume-surge-page .market-top5-card { padding: 18px 20px; }
.volume-surge-page .market-top5-card li { gap: 12px; }
.volume-surge-table { min-width: 1060px; table-layout: fixed; }
.volume-surge-table th,
.volume-surge-table td { white-space: normal !important; overflow-wrap: normal !important; vertical-align: middle; }
.volume-surge-table th:nth-child(1),
.volume-surge-table td:nth-child(1) { width: 6%; }
.volume-surge-table th:nth-child(2),
.volume-surge-table td:nth-child(2) { width: 23%; }
.volume-surge-table th:nth-child(3),
.volume-surge-table td:nth-child(3) { width: 17%; }
.volume-surge-table th:nth-child(4),
.volume-surge-table td:nth-child(4) { width: 10%; }
.volume-surge-table th:nth-child(5),
.volume-surge-table td:nth-child(5) { width: 12%; }
.volume-surge-table th:nth-child(6),
.volume-surge-table td:nth-child(6) { width: 10%; }
.volume-surge-table th:nth-child(7),
.volume-surge-table td:nth-child(7) { width: 10%; }
.volume-surge-table th:nth-child(8),
.volume-surge-table td:nth-child(8) { width: 12%; }
.volume-ratio-pill,
.volume-signal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e7fbf3;
  color: #007a5a;
  font-weight: 800;
  line-height: 1.25;
}
.volume-signal-pill { white-space: normal; text-align: center; }
.volume-signal-pill.bullish-volume-surge { background: #d9f8ea; color: #008060; }
.volume-signal-pill.bearish-volume-surge { background: #ffe0e3; color: #c91d2e; }
.volume-signal-pill.high-volume-reversal { background: #fff4d6; color: #9a6500; }
.volume-signal-pill.volume-watchlist { background: #e8f0ff; color: #315da8; }
@media (max-width: 900px) {
  .volume-surge-page .stock-strength-hero h1 { font-size: clamp(38px, 11vw, 58px); }
  .volume-surge-table { min-width: 940px !important; }
}


/* V93: Near Breakout Scanner */
.near-breakout-page.section-padding { padding-top: 14px !important; }
.near-breakout-page .stock-strength-hero { padding-top: 8px; gap: 20px; }
.near-breakout-page .stock-strength-hero h1 { font-size: clamp(48px, 7vw, 86px); line-height: 0.98; }
.near-breakout-page .market-page-intro { max-width: 820px; }
.near-breakout-page .stock-strength-insight-grid { margin-top: 22px; gap: 22px; }
.near-breakout-page .market-top5-card { padding: 18px 20px; }
.near-breakout-page .market-top5-card li { gap: 12px; }
.near-breakout-table { min-width: 1180px; table-layout: fixed; }
.near-breakout-table th,
.near-breakout-table td { white-space: normal !important; overflow-wrap: normal !important; vertical-align: middle; }
.near-breakout-table th:nth-child(1),
.near-breakout-table td:nth-child(1) { width: 6%; }
.near-breakout-table th:nth-child(2),
.near-breakout-table td:nth-child(2) { width: 20%; }
.near-breakout-table th:nth-child(3),
.near-breakout-table td:nth-child(3) { width: 15%; }
.near-breakout-table th:nth-child(4),
.near-breakout-table td:nth-child(4) { width: 9%; }
.near-breakout-table th:nth-child(5),
.near-breakout-table td:nth-child(5) { width: 10%; }
.near-breakout-table th:nth-child(6),
.near-breakout-table td:nth-child(6) { width: 11%; }
.near-breakout-table th:nth-child(7),
.near-breakout-table td:nth-child(7) { width: 10%; }
.near-breakout-table th:nth-child(8),
.near-breakout-table td:nth-child(8) { width: 9%; }
.near-breakout-table th:nth-child(9),
.near-breakout-table td:nth-child(9) { width: 10%; }
.breakout-signal-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 10px 13px; border-radius: 999px; font-weight: 900; line-height: 1.25; text-align: center; background: #e8fff5; color: #007f62; }
.breakout-signal-pill.fresh-breakout { background: #d8fbe8; color: #007f45; }
.breakout-signal-pill.near-breakout { background: #e1fff3; color: #00796a; }
.breakout-signal-pill.breakout-watch,
.breakout-signal-pill.momentum-breakout-watch { background: #fff3cf; color: #946200; }
.breakout-signal-pill.retest-near-high { background: #eaf2ff; color: #1c4f9c; }
.market-tool-hub-card.market-tools-breakout-link { background: linear-gradient(135deg, #096f63 0%, #12a184 100%); color: #fff; }
.market-tool-hub-card.market-tools-breakout-link span { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.market-tool-hub-card.market-tools-breakout-link h3,
.market-tool-hub-card.market-tools-breakout-link p { color: #fff; }
@media (max-width: 720px) { .near-breakout-page .stock-strength-hero h1 { font-size: clamp(38px, 11vw, 58px); } .near-breakout-table { min-width: 1040px !important; } }

/* V94: Reliable mobile hamburger menu for all header links and dropdown menus */
@media (max-width: 860px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 999;
  }

  .navbar {
    position: relative;
    min-height: 68px;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .menu-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    margin: 3px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 74px !important;
    z-index: 1000;
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    color: var(--text);
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links > a,
  .nav-links > .nav-dropdown > .dropdown-trigger,
  .nav-links .nav-cta {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--text) !important;
    font-weight: 800;
  }

  .nav-links .nav-cta {
    justify-content: center;
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
  }

  .nav-dropdown {
    width: 100%;
    display: block !important;
  }

  .dropdown-trigger .chevron {
    margin-left: auto;
    transform: rotate(0deg) !important;
  }

  .nav-dropdown.submenu-open > .dropdown-trigger .chevron {
    transform: rotate(180deg) !important;
  }

  .tools-dropdown,
  .ait-tool-nav .ait-tools-dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin: 10px 0 0;
    padding: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border-radius: 16px;
    box-shadow: none;
    background: #ffffff;
  }

  .tools-dropdown::before {
    display: none;
  }

  .nav-dropdown:hover .tools-dropdown,
  .nav-dropdown:focus-within .tools-dropdown {
    display: none !important;
    transform: none !important;
  }

  .nav-dropdown.submenu-open > .tools-dropdown,
  .nav-dropdown.submenu-open:hover > .tools-dropdown,
  .nav-dropdown.submenu-open:focus-within > .tools-dropdown {
    display: grid !important;
  }

  .dropdown-item {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #ffffff;
  }

  .dropdown-item:hover,
  .dropdown-item:focus-within {
    transform: none;
  }

  .dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.68rem;
  }

  .dropdown-copy strong {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .dropdown-copy span {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}



/* V96: Mobile side drawer menu in Automation In Trade colour tone */
.mobile-home-link {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --mobile-header-height: 68px;
    --mobile-drawer-width: min(78vw, 318px);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-header-height);
    bottom: 0;
    background: rgba(15, 23, 42, 0.46);
    z-index: 998;
  }

  .site-header {
    z-index: 1001;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .navbar {
    max-width: none;
    min-height: var(--mobile-header-height);
    padding: 9px 14px;
    justify-content: flex-start;
    gap: 10px;
  }

  .menu-toggle {
    order: -1;
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }

  .menu-toggle span {
    width: 32px;
    height: 4px;
    margin: 3px 0;
    border-radius: 999px;
    background: #334155;
    transition: background 0.18s ease, opacity 0.18s ease;
  }

  .menu-toggle.is-active span {
    background: #0f766e;
    opacity: 1;
    transform: none;
  }

  .menu-toggle.is-active span:nth-child(1),
  .menu-toggle.is-active span:nth-child(2),
  .menu-toggle.is-active span:nth-child(3) {
    transform: none;
    opacity: 1;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: #111827;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
  }

  .brand span {
    max-width: calc(100vw - 125px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-home-link {
    display: flex;
  }

  .nav-links {
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: var(--mobile-header-height) !important;
    bottom: 0 !important;
    z-index: 1000;
    width: var(--mobile-drawer-width) !important;
    max-width: 318px;
    max-height: none;
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 0 24px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: linear-gradient(180deg, #0f766e 0%, #115e59 44%, #0f172a 100%);
    box-shadow: 16px 0 32px rgba(2, 6, 23, 0.28);
    color: #ffffff;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links::-webkit-scrollbar {
    width: 5px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34);
    border-radius: 999px;
  }

  .nav-links > a,
  .nav-links > .nav-dropdown > .dropdown-trigger,
  .nav-links .nav-cta {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 14px 66px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: none;
  }

  .nav-links > a:hover,
  .nav-links > a:focus,
  .nav-links > .nav-dropdown > .dropdown-trigger:hover,
  .nav-links > .nav-dropdown > .dropdown-trigger:focus,
  .nav-links .nav-cta:hover,
  .nav-links .nav-cta:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    outline: none;
  }

  .nav-links > a::before,
  .nav-links > .nav-dropdown > .dropdown-trigger::before {
    content: "•";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
    color: #f59e0b;
    font-size: 22px;
    line-height: 1;
    text-shadow: none;
  }

  .nav-links > a.mobile-home-link::before { content: "⌂"; font-size: 27px; }
  .nav-links > a[href*="about-us"]::before { content: "i"; font-size: 20px; font-weight: 900; }
  .nav-links > a[href="#content"]::before { content: "▤"; font-size: 22px; }
  .nav-links > a[href*="market-tools/"]::before { content: "▥"; font-size: 22px; }
  .nav-links > .ait-tool-nav > .dropdown-trigger::before { content: "AIT"; font-size: 12px; font-weight: 900; letter-spacing: -0.04em; }
  .nav-links > .nav-dropdown:not(.ait-tool-nav) > .dropdown-trigger::before { content: "TL"; font-size: 13px; font-weight: 900; }
  .nav-links > a.nav-cta::before { content: "☎"; font-size: 21px; }

  .nav-links .nav-cta {
    justify-content: space-between;
    background: transparent;
    border-color: transparent;
  }

  .nav-dropdown {
    width: 100%;
    display: block !important;
  }

  .dropdown-trigger .chevron {
    margin-left: 12px;
    font-size: 0;
    transform: none !important;
    color: #f59e0b;
  }

  .dropdown-trigger .chevron::before {
    content: "›";
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
  }

  .nav-dropdown.submenu-open > .dropdown-trigger,
  .nav-dropdown.submenu-open > .dropdown-trigger:hover,
  .nav-dropdown.submenu-open > .dropdown-trigger:focus {
    background: rgba(2, 6, 23, 0.18);
  }

  .nav-dropdown.submenu-open > .dropdown-trigger .chevron::before {
    content: "⌄";
    font-size: 25px;
  }

  .tools-dropdown,
  .ait-tool-nav .ait-tools-dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 0;
    margin: 0;
    padding: 0 0 8px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(2, 6, 23, 0.22);
  }

  .tools-dropdown::before {
    display: none;
  }

  .nav-dropdown:hover .tools-dropdown,
  .nav-dropdown:focus-within .tools-dropdown {
    display: none !important;
    transform: none !important;
  }

  .nav-dropdown.submenu-open > .tools-dropdown,
  .nav-dropdown.submenu-open:hover > .tools-dropdown,
  .nav-dropdown.submenu-open:focus-within > .tools-dropdown {
    display: grid !important;
  }

  .dropdown-item {
    position: relative;
    display: block;
    padding: 11px 18px 11px 66px;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    transition: background 0.18s ease;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.10);
    transform: none;
    outline: none;
  }

  .dropdown-icon {
    display: none;
  }

  .dropdown-copy strong {
    display: block;
    color: #ecfdf5;
    font-size: 0.91rem;
    line-height: 1.22;
    font-weight: 750;
    letter-spacing: -0.01em;
  }

  .dropdown-copy span {
    display: none;
  }
}

/* V97: Fix mobile drawer visibility inside fixed/blurred header.
   The previous fixed drawer could be constrained by the fixed header/backdrop-filter
   on some mobile browsers, leaving only a thin strip visible. This keeps the same
   side-drawer format, but positions it absolutely under the header and gives it
   an explicit viewport height. */
@media (max-width: 860px) {
  .site-header,
  .navbar {
    overflow: visible !important;
  }

  body.mobile-menu-open::before {
    top: var(--mobile-header-height, 68px) !important;
    z-index: 998 !important;
  }

  .site-header .navbar .nav-links {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    bottom: auto !important;
    width: min(82vw, 320px) !important;
    max-width: min(82vw, 320px) !important;
    height: calc(100vh - var(--mobile-header-height, 68px)) !important;
    height: calc(100svh - var(--mobile-header-height, 68px)) !important;
    max-height: calc(100vh - var(--mobile-header-height, 68px)) !important;
    max-height: calc(100svh - var(--mobile-header-height, 68px)) !important;
    min-height: 360px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 12px 0 24px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #0f766e 0%, #115e59 52%, #0f172a 100%) !important;
    box-shadow: 18px 0 42px rgba(2, 6, 23, 0.30) !important;
    color: #ffffff !important;
    z-index: 100000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .navbar .nav-links.open {
    display: flex !important;
  }

  .site-header .navbar .nav-links > a,
  .site-header .navbar .nav-links > .nav-dropdown > .dropdown-trigger,
  .site-header .navbar .nav-links .nav-cta {
    position: relative !important;
    width: 100% !important;
    min-height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 22px 14px 64px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .site-header .navbar .nav-links > a:hover,
  .site-header .navbar .nav-links > a:focus,
  .site-header .navbar .nav-links > .nav-dropdown > .dropdown-trigger:hover,
  .site-header .navbar .nav-links > .nav-dropdown > .dropdown-trigger:focus,
  .site-header .navbar .nav-links .nav-cta:hover,
  .site-header .navbar .nav-links .nav-cta:focus {
    background: rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
    outline: none !important;
  }

  .site-header .navbar .nav-links > a::before,
  .site-header .navbar .nav-links > .nav-dropdown > .dropdown-trigger::before {
    content: "•";
    position: absolute !important;
    left: 17px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    color: #f59e0b !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  .site-header .navbar .nav-links > a.mobile-home-link::before { content: "⌂" !important; font-size: 27px !important; }
  .site-header .navbar .nav-links > a[href*="about-us"]::before { content: "i" !important; font-size: 20px !important; font-weight: 900 !important; }
  .site-header .navbar .nav-links > a[href="#content"]::before { content: "▤" !important; font-size: 22px !important; }
  .site-header .navbar .nav-links > a[href*="market-tools/"]::before { content: "▥" !important; font-size: 22px !important; }
  .site-header .navbar .nav-links > .ait-tool-nav > .dropdown-trigger::before { content: "AIT" !important; font-size: 12px !important; font-weight: 900 !important; letter-spacing: -0.04em !important; }
  .site-header .navbar .nav-links > .nav-dropdown:not(.ait-tool-nav) > .dropdown-trigger::before { content: "TL" !important; font-size: 13px !important; font-weight: 900 !important; }
  .site-header .navbar .nav-links > a.nav-cta::before { content: "☎" !important; font-size: 21px !important; }

  .site-header .navbar .nav-dropdown {
    width: 100% !important;
    display: block !important;
  }

  .site-header .navbar .tools-dropdown,
  .site-header .navbar .ait-tool-nav .ait-tools-dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(2, 6, 23, 0.24) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .site-header .navbar .nav-dropdown:hover > .tools-dropdown,
  .site-header .navbar .nav-dropdown:focus-within > .tools-dropdown {
    display: none !important;
  }

  .site-header .navbar .nav-dropdown.submenu-open > .tools-dropdown,
  .site-header .navbar .nav-dropdown.submenu-open:hover > .tools-dropdown,
  .site-header .navbar .nav-dropdown.submenu-open:focus-within > .tools-dropdown {
    display: grid !important;
  }

  .site-header .navbar .dropdown-item {
    position: relative !important;
    display: block !important;
    min-height: 40px !important;
    padding: 11px 18px 11px 64px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    transform: none !important;
  }

  .site-header .navbar .dropdown-item:hover,
  .site-header .navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
    outline: none !important;
  }

  .site-header .navbar .dropdown-icon,
  .site-header .navbar .dropdown-copy span {
    display: none !important;
  }

  .site-header .navbar .dropdown-copy strong {
    display: block !important;
    color: #ecfdf5 !important;
    font-size: 0.91rem !important;
    line-height: 1.22 !important;
    font-weight: 750 !important;
  }
}
