/**
 * SEO Landing Page — Components
 * Podium, stock cards, content sections, comparison table,
 * news, FAQ, CTAs, internal links, promo sidebar, exit panel.
 *
 * FIX(Issue7):  Action box gradient → flat background
 * FIX(Issue8):  Podium gold glow → DS-compliant shadow
 * FIX(Issue9):  Stock card transition → border-color only
 * FIX(Issue10): CTA button inset shadow → removed
 */

/* ========================================
   Podium Section — Art Overlay
   ======================================== */
.seo-podium {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.seo-podium-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
}

.seo-podium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.seo-podium-item {
  width: 100%;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s var(--ease-premium);
}

/* FIX(Issue8): Gold podium — keep distinct border, use DS shadow instead of glow */
.seo-podium-gold {
  order: -1;
  border-color: hsla(51 100% 50% / 0.3);
  background: var(--seo-bg-card);
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.seo-podium-gold:hover {
  border-color: hsla(51 100% 50% / 0.5);
}

.seo-podium-silver {
  border-color: hsla(0 0% 75% / 0.2);
}

.seo-podium-bronze {
  border-color: hsla(30 60% 50% / 0.2);
}

.seo-podium-rank {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--seo-bg-deep);
  padding: 0.125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--seo-text-muted);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-pill);
}

.seo-podium-medal {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.625rem;
}

.seo-podium-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.seo-podium-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  text-decoration: none;
  transition: color 0.2s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-podium-name:hover {
  color: var(--seo-accent);
}

.seo-podium-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.seo-delta-gain { color: var(--seo-green); }
.seo-delta-loss { color: var(--seo-red); }

.seo-podium-delta-label {
  font-size: 0.7rem;
  opacity: 0.7;
}

.seo-podium-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--seo-text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.seo-podium-ticker {
  font-weight: 600;
  color: var(--seo-text-secondary);
}

.seo-podium-sep {
  color: var(--seo-text-dim);
}

.seo-podium-price {
  color: var(--seo-text-secondary);
}

.seo-podium-momentum-inline {
  font-weight: 600;
}

/* Momentum badges */
.seo-momentum-badge {
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.seo-momentum-badge.seo-momentum-high {
  background: rgba(0, 229, 160, 0.15);
  color: var(--seo-green);
}

.seo-momentum-badge.seo-momentum-mid {
  background: rgba(196, 154, 76, 0.15);
  color: var(--seo-yellow);
}

.seo-momentum-badge.seo-momentum-low {
  background: rgba(255, 77, 106, 0.15);
  color: var(--seo-red);
}

.seo-podium-justification {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--seo-border);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--seo-text-secondary);
  text-align: left;
}

.seo-podium-justification p {
  margin: 0;
}

/* Podium Bridge — Dark Transition Zone */
.seo-podium-bridge {
  position: relative;
  background: linear-gradient(180deg, var(--seo-bg-deep) 0%, hsl(220 40% 8%) 100%);
  padding: 0 0 2.5rem;
  overflow: hidden;
}

.seo-podium-bridge .seo-section-title {
  color: var(--seo-text-primary);
}

.seo-podium-bridge .seo-section-title i {
  color: var(--seo-accent);
}

/* ========================================
   Stock Cards Grid
   ======================================== */
.seo-stocks-section {
  width: 100%;
  padding: 0 0 1.5rem;
}

.seo-stocks-section .seo-section-title {
  margin-top: 0;
}

.seo-stock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

/* FIX(Issue9): Stock card — transition on border-color only, no transform/box-shadow */
.seo-stock-card {
  width: 100%;
  min-width: 0;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  transition: border-color 0.25s var(--ease-premium);
}

.seo-stock-card:hover {
  border-color: var(--seo-border-hover);
}

.seo-stock-featured {
  border-color: var(--seo-border-accent);
}

.seo-stock-featured:hover {
  border-color: hsla(165 100% 45% / 0.4);
}

.seo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.seo-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.seo-card-rank {
  flex-shrink: 0;
  background: var(--seo-accent);
  color: var(--seo-bg-deep);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.seo-card-name {
  font-family: var(--font-heading);
  color: var(--seo-text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.seo-card-name:hover {
  color: var(--seo-accent);
}

.seo-card-price {
  flex-shrink: 0;
  text-align: right;
}

.seo-price-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--seo-text-primary);
  font-variant-numeric: tabular-nums;
}

.seo-price-currency {
  color: var(--seo-text-muted);
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.seo-card-meta {
  font-size: 0.8125rem;
  color: var(--seo-text-muted);
  margin-bottom: 0.75rem;
}

/* Mobile show more toggle */
.seo-mobile-toggle {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius-sm);
  color: var(--seo-text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.seo-mobile-toggle:hover {
  background: var(--seo-bg-card-hover);
  border-color: var(--seo-border-hover);
}

/* Cards collapsed: hide 4th+ on mobile */
.seo-cards-collapsed .seo-stock-card:nth-child(n + 4) {
  display: none;
}

/* Section highlight chips */
.seo-section-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

/* ========================================
   Content Sections — Dark Readable
   ======================================== */
.seo-content-section {
  width: 100%;
  margin-bottom: 1.25rem;
}

.seo-section-content {
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem 1.75rem;
  color: var(--seo-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.seo-section-content p {
  margin: 0 0 0.875rem;
  color: var(--seo-text-secondary);
}

.seo-section-content strong {
  color: var(--seo-text-primary);
}

/* Readable Text Content Boxes */
.seo-content-readable {
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

.seo-content-readable,
.seo-content-readable p,
.seo-content-readable li {
  color: var(--seo-text-secondary);
}

.seo-content-readable strong {
  color: var(--seo-text-primary);
}

.seo-content-readable .seo-ticker-link,
.seo-content-readable a[data-ticker] {
  color: var(--seo-accent);
  border-bottom-color: var(--seo-accent-dim);
}

.seo-content-readable .perf-positive { color: var(--seo-green); }
.seo-content-readable .perf-negative { color: var(--seo-red); }

/* ========================================
   Conclusion & CTA
   ======================================== */
.seo-conclusion {
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.seo-conclusion-text {
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  padding: 1.5rem 1.75rem;
  color: var(--seo-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.seo-conclusion-text p {
  margin: 0 0 0.875rem;
  color: var(--seo-text-secondary);
}

.seo-conclusion-text strong {
  color: var(--seo-text-primary);
}

/* FIX(Issue7): Action box — flat background, no gradient */
.seo-action-box {
  background: var(--seo-accent-bg);
  border: 1px solid var(--seo-border-accent);
  border-radius: var(--seo-radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.seo-action-box-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.seo-action-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--seo-accent);
  margin-bottom: 1rem;
  position: relative;
}

.seo-action-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  position: relative;
}

.seo-action-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--seo-text-secondary);
  font-size: 0.9375rem;
}

.seo-action-list i {
  color: var(--seo-accent);
  width: 20px;
  flex-shrink: 0;
}

.seo-action-note {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: hsla(165 100% 45% / 0.06);
  border-left: 3px solid var(--seo-accent);
  border-radius: 0 var(--seo-radius-sm) var(--seo-radius-sm) 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--seo-text-secondary);
  position: relative;
}

.seo-action-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

/* FIX(Issue10): Primary CTA button — flat, no inset shadow */
.seo-action-cta .btn-primary,
.seo-cta-primary {
  background: var(--seo-accent);
  border: 1px solid hsl(165 80% 38%);
  color: var(--seo-bg-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--seo-radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.seo-action-cta .btn-primary:hover,
.seo-cta-primary:hover {
  background: var(--seo-accent-dim);
  border-color: hsl(165 80% 32%);
  color: var(--seo-bg-deep);
}

/* Ghost CTA button */
.seo-cta-ghost {
  background: transparent;
  border: 1px solid var(--seo-border-accent);
  color: var(--seo-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--seo-radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.seo-cta-ghost:hover {
  background: var(--seo-accent-bg);
  border-color: var(--seo-accent);
  color: var(--seo-accent);
}

/* Inline CTA Banners (mid-content) */
.seo-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--seo-accent-bg);
  border: 1px solid var(--seo-border-accent);
  border-radius: var(--seo-radius);
  flex-wrap: wrap;
}

.seo-inline-cta-text {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--seo-text-primary);
}

.seo-inline-cta .seo-cta-ghost {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ========================================
   Enhanced Conclusion CTA — Dark Premium
   ======================================== */
.seo-action-box {
  background: hsl(220 60% 8%);
  border-color: hsla(165 100% 45% / 0.2);
  padding: 2.5rem 2rem 3rem;
  min-height: 320px;
}

.seo-action-box .seo-action-title {
  color: hsl(165 100% 45%);
  font-size: 1.25rem;
}

.seo-action-box .seo-action-list li {
  color: rgba(255, 255, 255, 0.82);
}

.seo-action-box .seo-action-list i {
  color: hsl(165 100% 45%);
}

.seo-action-box .seo-action-note {
  color: rgba(255, 255, 255, 0.72);
  background: hsla(165 100% 45% / 0.06);
  border-left-color: hsl(165 100% 45%);
}

.seo-action-box .seo-cta-primary {
  background: hsl(165 100% 45%);
  border-color: hsl(165 100% 45%);
  color: hsl(220 60% 6%);
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.seo-action-box .seo-cta-primary:hover {
  background: hsl(165 90% 40%);
  border-color: hsl(165 90% 40%);
  color: hsl(220 60% 6%);
}

.seo-action-box .seo-cta-ghost {
  border-color: hsla(165 100% 45% / 0.3);
  color: hsl(165 100% 45%);
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.seo-action-box .seo-cta-ghost:hover {
  background: hsla(165 100% 45% / 0.08);
  border-color: hsl(165 100% 45%);
  color: hsl(165 100% 45%);
}

/* ========================================
   Sticky Bottom CTA Bar
   FIX(Bug6): flex shrink for text, shorter mobile text handled in responsive.css
   ======================================== */
.seo-sticky-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ap-surface-1, #1b2029);
  border-top: 2px solid var(--ap-accent, #00e5a0);
  padding: 0.75rem 0;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-premium);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.seo-sticky-cta:hover {
  text-decoration: none;
  color: inherit;
  background: var(--ap-surface-2, #1f2430);
}

.seo-sticky-cta.seo-sticky-visible {
  transform: translateY(0);
}

.seo-sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seo-sticky-cta-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-sticky-cta .seo-cta-primary {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sticky bar: keyword rotation */
.seo-sticky-keywords {
  display: inline;
  position: relative;
}

.seo-sticky-keywords::before {
  content: "\00b7";
  margin: 0 0.375rem;
  color: rgba(255, 255, 255, 0.3);
}

.seo-sticky-keyword {
  display: none;
  opacity: 0;
  font-weight: 700;
  color: hsl(165 100% 45%);
  transition: opacity 0.6s ease;
}

.seo-sticky-keyword--active {
  display: inline;
  opacity: 1;
  animation: stickyKeywordPulse 4s ease-in-out infinite;
}

@keyframes stickyKeywordPulse {
  0%, 100% { color: hsl(165 100% 45%); }
  50% { color: hsl(165 80% 60%); }
}

/* Sticky bar: enhanced mode at 40% scroll */
.seo-sticky-cta.seo-sticky-enhanced {
  padding: 0.875rem 0;
  border-top: 2px solid hsl(165 100% 45%);
  background: hsl(220 50% 9%);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.seo-sticky-cta.seo-sticky-enhanced .seo-cta-primary {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}

/* ========================================
   Mid-Content Inline CTA
   ======================================== */
.seo-mid-cta {
  margin: 2rem 0;
}

.seo-mid-cta-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: hsl(220 60% 8%);
  border: 1px solid hsla(165 80% 35% / 0.3);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seo-mid-cta-left {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.seo-mid-cta-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(165 100% 45% / 0.12);
  border-radius: 50%;
  color: hsl(165 100% 45%);
  font-size: 1.25rem;
}

.seo-mid-cta-body {
  flex: 1;
  min-width: 0;
}

.seo-mid-cta-preview {
  flex-shrink: 0;
  display: block;
  width: 280px;
}

.seo-mid-cta-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.seo-mid-cta-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.seo-mid-cta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-mid-cta-features li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-mid-cta-features i {
  color: hsl(165 100% 45%);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.seo-mid-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.seo-mid-cta-actions .seo-cta-primary {
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
}

.seo-mid-cta-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ========================================
   Exit-Intent Slide-In Panel
   ======================================== */
.seo-exit-panel {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 250;
  width: 400px;
  background: hsl(220 60% 8%);
  border: 1px solid hsla(165 80% 35% / 0.3);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 1.5rem 1.75rem;
  transform: translateX(110%) translateY(-50%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.35);
}

.seo-exit-panel.seo-exit-banner--visible {
  transform: translateX(0) translateY(-50%);
}

.seo-exit-panel.seo-exit-banner--hidden {
  transform: translateX(110%) translateY(-50%);
}

.seo-exit-panel-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
  line-height: 1;
}

.seo-exit-panel-close:hover {
  color: #ffffff;
}

.seo-exit-panel-img {
  margin: -0.25rem -0.5rem 1.25rem;
  text-align: center;
}

.seo-exit-panel-img img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.seo-exit-panel-body {
  text-align: center;
}

.seo-exit-panel-headline {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.seo-exit-panel-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.875rem;
}

.seo-exit-panel-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-exit-panel-features li {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-exit-panel-features i {
  color: hsl(165 100% 45%);
  flex-shrink: 0;
}

.seo-exit-panel-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.seo-exit-panel-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0.75rem 0 0;
}

/* ========================================
   FAQ Accordion — Dark Premium
   ======================================== */
.seo-faq {
  width: 100%;
  padding: 2rem 0;
}

.seo-accordion {
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  overflow: hidden;
}

.seo-accordion-item {
  border-bottom: 1px solid var(--seo-border);
}

.seo-accordion-item:last-child {
  border-bottom: none;
}

.seo-accordion-button {
  background: hsla(0 0% 100% / 0.02);
  color: var(--seo-text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1.125rem 1.25rem;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.seo-accordion-button:not(.collapsed) {
  background: hsla(165 100% 45% / 0.04);
  color: var(--seo-accent);
}

.seo-accordion-button:hover {
  background: hsla(0 0% 100% / 0.04);
}

.seo-accordion-button::after {
  filter: invert(1);
  transition: transform 0.3s var(--ease-premium);
}

.seo-accordion-body {
  background: hsla(0 0% 100% / 0.015);
  color: var(--seo-text-secondary);
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   News Section — Light Headline List
   ======================================== */
.seo-news-section {
  width: 100%;
  padding: 1.5rem 0;
}

.seo-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--seo-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.seo-news-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.seo-news-item:last-child {
  border-bottom: none;
}

.seo-news-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s;
}

.seo-news-link:hover {
  background: hsla(165 80% 35% / 0.04);
}

.seo-news-headline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.seo-news-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.seo-news-ticker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(165 80% 32%);
  background: hsla(165 80% 35% / 0.08);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.seo-news-date {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ========================================
   Internal Links — Premium Card
   ======================================== */
.seo-internal-links {
  width: 100%;
  padding: 2rem;
  background: var(--seo-bg-card);
  border: 1px solid var(--seo-border);
  margin-top: 2rem;
  border-radius: var(--seo-radius);
}

.seo-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.seo-internal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.seo-internal-links-col h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  margin-bottom: 0.75rem;
}

.seo-internal-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-internal-links-col li {
  margin-bottom: 0.5rem;
}

.seo-internal-links-col a {
  color: var(--seo-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.seo-internal-links-col a:hover {
  color: var(--seo-accent);
}

.seo-links-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--seo-text-primary);
  margin-bottom: 0.75rem;
}

.seo-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-links-list li {
  margin-bottom: 0.5rem;
}

.seo-links-list a {
  color: var(--seo-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.seo-links-list a:hover {
  color: var(--seo-accent);
}

.seo-links-list i {
  width: 14px;
  color: var(--seo-accent-dim);
}

/* ========================================
   Promotional Sidebar
   ======================================== */
.seo-promo-sidebar {
  display: none;
}

.seo-promo-sidebar {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--seo-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.seo-promo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.seo-promo-logo {
  border-radius: 8px;
}

.seo-promo-brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.seo-promo-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 0.875rem 0;
}

.seo-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.seo-promo-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0;
  font-size: 0.8125rem;
  color: #374151;
}

.seo-promo-features i {
  color: hsl(165 80% 35%);
  font-size: 0.75rem;
  width: 14px;
  flex-shrink: 0;
}

.seo-promo-readmore {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-promo-readmore li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.seo-promo-readmore li:last-child {
  border-bottom: none;
}

.seo-promo-readmore-link {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.seo-promo-readmore-link:hover {
  color: hsl(165 80% 28%);
}

/* ========================================
   Action Grid — Two-Column (App + Newsletter)
   ======================================== */
.seo-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.seo-action-grid--single {
  grid-template-columns: 1fr;
}

.seo-action-col {
  display: flex;
  flex-direction: column;
}

.seo-action-col .seo-action-cta {
  margin-top: auto;
}

.seo-action-col--preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.seo-action-preview-link {
  display: block;
}

.seo-action-preview-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.seo-action-col--newsletter {
  border-left: 1px solid hsla(165 100% 45% / 0.15);
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-action-col--newsletter .seo-action-nl-form {
  margin-top: auto;
}

.seo-action-nl-icon {
  font-size: 1.125rem;
  color: hsl(165 100% 45%);
  margin-right: 0.4rem;
}

.seo-action-nl-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: hsl(165 100% 45%);
  margin: 0;
}

.seo-action-nl-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

.seo-action-nl-input {
  width: 100%;
  background: hsla(0 0% 100% / 0.08);
  border: 1px solid hsla(165 100% 45% / 0.25);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.seo-action-nl-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.seo-action-nl-input:focus {
  border-color: hsl(165 100% 45%);
  background: hsla(0 0% 100% / 0.1);
}

.seo-action-nl-btn {
  background: transparent;
  border: 1px solid hsla(165 100% 45% / 0.4);
  color: hsl(165 100% 45%);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.seo-action-nl-btn:hover {
  background: hsla(165 100% 45% / 0.1);
  border-color: hsl(165 100% 45%);
  color: hsl(165 100% 45%);
}

.seo-action-nl-btn--outline {
  background: transparent;
  border-color: hsla(165 100% 45% / 0.3);
  color: hsl(165 100% 45%);
}

.seo-action-nl-btn--outline:hover {
  background: hsla(165 100% 45% / 0.08);
  border-color: hsl(165 100% 45%);
  color: hsl(165 100% 45%);
}

.seo-action-nl-status {
  font-size: 0.8125rem;
  color: hsl(165 100% 45%);
}

/* Ajax feedback inside action-box newsletter column */
.seo-action-col--newsletter .nl-ajax-feedback {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.25rem;
}

.seo-action-col--newsletter .nl-ajax-feedback.seo-newsletter-msg--success {
  background: hsla(165 100% 45% / 0.12);
  color: hsl(165 80% 65%);
}

.seo-action-col--newsletter .nl-ajax-feedback.seo-newsletter-msg--info {
  background: hsla(210 80% 60% / 0.12);
  color: hsl(210 80% 75%);
}

.seo-action-col--newsletter .nl-ajax-feedback.seo-newsletter-msg--danger {
  background: hsla(0 80% 55% / 0.12);
  color: hsl(0 80% 75%);
}

/* Standalone newsletter-only action box */
.seo-action-box--nl-only {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 2rem 2.25rem;
}

.seo-action-box--nl-only .seo-action-nl-desc {
  max-width: 420px;
  margin: 0.25rem auto 0;
}

.seo-action-nl-row {
  display: flex;
  gap: 0.5rem;
}

.seo-action-nl-row .seo-action-nl-input {
  flex: 1;
}

.seo-action-nl-row .seo-action-nl-btn {
  white-space: nowrap;
}

/* Ajax feedback inside standalone nl box */
.seo-action-box--nl-only .nl-ajax-feedback {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.seo-action-box--nl-only .seo-newsletter-msg--success {
  background: hsla(165 100% 45% / 0.12);
  color: hsl(165 80% 65%);
}

.seo-action-box--nl-only .seo-newsletter-msg--info {
  background: hsla(210 80% 60% / 0.12);
  color: hsl(210 80% 75%);
}

.seo-action-box--nl-only .seo-newsletter-msg--danger {
  background: hsla(0 80% 55% / 0.12);
  color: hsl(0 80% 75%);
}

/* ========================================
   Enhanced Comparison Table (comparison mode)
   ======================================== */
.seo-comparison-enhanced {
  padding: 2rem 0 1rem;
}

.seo-comparison-subtitle {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.seo-table-enhanced-wrapper {
  border-radius: var(--seo-radius);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-table-enhanced {
  min-width: 700px;
}

.seo-table-enhanced thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.seo-th-rank { width: 2.5rem; }
.seo-th-name { min-width: 180px; }
.seo-th-desc { min-width: 140px; }

/* Rank medals */
.seo-rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.seo-rank-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.seo-rank-silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #374151; }
.seo-rank-bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

.seo-rank-num {
  color: var(--seo-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Top 3 row highlight */
.seo-comparison-top3 { background: hsla(165 100% 45% / 0.02); }
.seo-comparison-top3:hover { background: hsla(165 100% 45% / 0.06) !important; }

/* Name cell with sub-ticker */
.seo-name-cell { line-height: 1.3; }
.seo-stock-name { display: block; }
.seo-stock-ticker-sub { margin-top: 0.125rem; }

.seo-exchange-label {
  font-size: 0.6875rem;
  color: var(--seo-text-muted);
  margin-left: 0.375rem;
}

.seo-desc-cell {
  max-width: 180px;
  line-height: 1.35;
}

/* Podium section in comparison mode */
.seo-podium-section { padding: 2rem 0 0; }

/* Light mode overrides for comparison enhanced table */
.seo-main-column .seo-comparison-enhanced .seo-table thead th {
  background: #f9fafb;
  color: #111827;
  border-bottom-color: #e5e7eb;
}

.seo-main-column .seo-comparison-enhanced .seo-table thead th.sortable:hover {
  background: #f3f4f6;
}

.seo-main-column .seo-comparison-enhanced .seo-table tbody td {
  border-bottom-color: #f3f4f6;
}

.seo-main-column .seo-comparison-enhanced .seo-comparison-top3 {
  background: hsla(165 80% 35% / 0.03);
}

.seo-main-column .seo-comparison-enhanced .seo-rank-medal {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Correlation Heatmap (comparison mode)
   ======================================== */
.seo-correlation-section {
  padding: 2rem 0 1rem;
  color: #374151;
}

.seo-correlation-section .seo-text-muted {
  color: #6b7280 !important;
}

.seo-correlation-table {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.seo-correlation-table thead th,
.seo-correlation-table tbody td {
  padding: 0.5rem;
  white-space: nowrap;
}

.seo-corr-header {
  font-size: 0.6875rem;
  font-weight: 600;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-corr-row-label {
  font-weight: 600;
  font-size: 0.6875rem;
  white-space: nowrap;
}
