/**
 * TickerPulse - Master Homepage Stylesheet (v4.0)
 * Visual Replica of Desktop & Mobile Reference Designs
 * Supporting Light Theme & Dark Theme with Modern Fintech Aesthetics
 */

/* ==========================================================================
   1. DESIGN TOKENS & THEME VARIABLES
   ========================================================================== */

:root {
  --tp-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Colors */
  --tp-primary-green: #10b981;
  --tp-primary-green-hover: #059669;
  --tp-primary-green-light: rgba(16, 185, 129, 0.1);
  --tp-primary-green-border: rgba(16, 185, 129, 0.25);

  --tp-primary-blue: #2563eb;
  --tp-primary-blue-hover: #1d4ed8;
  --tp-primary-blue-light: rgba(37, 99, 235, 0.1);
  --tp-primary-blue-border: rgba(37, 99, 235, 0.25);

  --tp-accent-purple: #8b5cf6;
  --tp-accent-purple-light: rgba(139, 92, 246, 0.1);
  --tp-accent-orange: #f59e0b;
  --tp-accent-orange-light: rgba(245, 158, 11, 0.1);
  --tp-accent-red: #ef4444;
  --tp-accent-red-light: rgba(239, 68, 68, 0.1);

  /* Light Theme (Default in Reference Images) */
  --tp-bg-main: #f8fafc;
  --tp-surface-card: #ffffff;
  --tp-surface-elevated: #ffffff;
  --tp-surface-subtle: #f1f5f9;
  --tp-surface-input: #f8fafc;
  
  --tp-text-primary: #0f172a;
  --tp-text-secondary: #334155;
  --tp-text-muted: #64748b;
  --tp-text-subtle: #94a3b8;

  --tp-border-subtle: #e2e8f0;
  --tp-border-medium: #cbd5e1;
  --tp-border-focus: #2563eb;

  --tp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --tp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --tp-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);

  --tp-radius-sm: 8px;
  --tp-radius-md: 12px;
  --tp-radius-lg: 16px;
  --tp-radius-xl: 20px;
  --tp-radius-full: 9999px;
}

/* Visibility Utilities */
.tp-desktop-only { display: inline-flex !important; }
.tp-mobile-only { display: none !important; }
.tp-mobile-search-area { display: none !important; }
.tp-mobile-nav-signup-btn { display: none !important; }
.tp-m-actions-row { display: none !important; }

@media (max-width: 768px) {
  .tp-desktop-only { display: none !important; }
  .tp-mobile-only { display: inline-flex !important; }
}

/* Header Button Styling (Reference 2 Green CTA) */
.site-header .tp-nav-signup-btn {
  background-color: var(--tp-primary-green) !important;
  color: #ffffff !important;
  border-radius: var(--tp-radius-md) !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.2s ease !important;
}

.site-header .tp-nav-signup-btn:hover {
  background-color: var(--tp-primary-green-hover) !important;
  transform: translateY(-1px) !important;
}

[data-theme="dark"] {
  --tp-bg-main: #070e1b;
  --tp-surface-card: #0d1829;
  --tp-surface-elevated: #132238;
  --tp-surface-subtle: #16263d;
  --tp-surface-input: #0a1322;

  --tp-text-primary: #f8fafc;
  --tp-text-secondary: #e2e8f0;
  --tp-text-muted: #94a3b8;
  --tp-text-subtle: #64748b;

  --tp-border-subtle: rgba(255, 255, 255, 0.08);
  --tp-border-medium: rgba(255, 255, 255, 0.15);
  --tp-border-focus: #3b82f6;

  --tp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --tp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --tp-shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. HOMEPAGE BASE & CONTAINER
   ========================================================================== */

.tp-home-root {
  background-color: var(--tp-bg-main);
  color: var(--tp-text-primary);
  font-family: var(--tp-font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tp-home-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .tp-home-wrap {
    padding: 0 1rem;
  }
}

.tp-home-section {
  padding: 2.25rem 0;
}

@media (max-width: 768px) {
  .tp-home-section {
    padding: 1.5rem 0;
  }
}

.tp-text-blue {
  color: var(--tp-primary-blue) !important;
}

.tp-text-green {
  color: var(--tp-primary-green) !important;
}

.tp-text-red {
  color: var(--tp-accent-red) !important;
}

/* ==========================================================================
   3. TOP MARKET TICKER OVERRIDES (REFERENCE 2 MATCH)
   ========================================================================== */

.tp-dual-ticker {
  background: #060d18;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 500;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.tp-dual-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0 1rem;
}

.tp-ticker-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tp-ticker-pill-badge.us {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.tp-ticker-pill-badge.nse {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tp-ticker-item-group {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.tp-ticker-quote-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.tp-ticker-quote-item:hover {
  color: #ffffff;
}

.tp-ticker-quote-item .quote-name {
  color: #cbd5e1;
  font-weight: 600;
}

.tp-ticker-quote-item .quote-val {
  color: #f8fafc;
  font-weight: 600;
  font-family: var(--tp-font-mono);
}

.tp-ticker-quote-item .quote-change.up {
  color: #34d399;
}

.tp-ticker-quote-item .quote-change.down {
  color: #f87171;
}

/* ==========================================================================
   4. HERO SECTION (DESKTOP & MOBILE SPLIT)
   ========================================================================== */

.tp-hero-section {
  padding-top: 2.75rem;
  padding-bottom: 2.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .tp-hero-section {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }
}

.tp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .tp-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .tp-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    align-items: center !important;
  }
  .tp-hero-title {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }
  .tp-hero-subtitle {
    font-size: 0.92rem !important;
  }
  .tp-hero-trust-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem 0.85rem !important;
  }
  .tp-trust-badge-item {
    font-size: 0.78rem !important;
    gap: 0.5rem !important;
  }
  .tp-trust-icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }
  .tp-trust-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .tp-ws-preview-card {
    padding: 1rem !important;
    max-width: 100% !important;
  }
}

/* Hero Left Column */
.tp-hero-left {
  display: flex;
  flex-direction: column;
}

.tp-hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--tp-text-primary);
  margin: 0 0 1.25rem 0;
}

@media (max-width: 768px) {
  .tp-hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }
}

.tp-hero-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--tp-text-muted);
  max-width: 540px;
  margin: 0 0 1.75rem 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .tp-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
}

.tp-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .tp-hero-actions {
    margin-bottom: 1.25rem;
  }
}

.tp-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--tp-primary-green);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.tp-btn-hero-primary:hover {
  background-color: var(--tp-primary-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.tp-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tp-surface-card);
  color: var(--tp-text-primary) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--tp-radius-md);
  border: 1.5px solid var(--tp-border-subtle);
  text-decoration: none;
  box-shadow: var(--tp-shadow-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tp-btn-hero-secondary:hover {
  border-color: var(--tp-border-medium);
  background-color: var(--tp-surface-subtle);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tp-btn-hero-primary {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
  }
  .tp-btn-hero-secondary {
    display: none; /* Mobile reference only has the single full-width primary CTA */
  }
}

/* Trust Badges Row */
.tp-hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tp-trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tp-text-muted);
}

.tp-trust-badge-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tp-hero-trust-row {
    display: none; /* Hidden on mobile per Reference 1 */
  }
}

/* Mobile Hero Illustration Badge (Reference 1 Top Right) */
.tp-mobile-hero-row {
  display: none;
}

@media (max-width: 768px) {
  .tp-mobile-hero-row {
    display: block; /* title only — badge hidden, workspace card shows below */
    margin-bottom: 0.5rem;
  }

  /* Hide the old illustrated badge — real workspace card shows instead */
  .tp-mobile-hero-badge {
    display: none !important;
  }
}



/* Mobile search & trending chips styles are defined in the modern mobile section below */


/* ==========================================================================
   5. HERO RIGHT: WORKSPACE DEMO PREVIEW (REFERENCE 2)
   ========================================================================== */

.tp-ws-preview-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 20px;
  box-shadow: var(--tp-shadow-lg);
  overflow: visible;
  padding: 1.25rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .tp-ws-preview-card {
    /* Visible on mobile — stacks below hero text */
    display: block;
    padding: 1rem;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .tp-ws-preview-card {
    padding: 0.9rem;
    border-radius: 12px;
  }
}

/* Workspace Tab Strip */
.tp-ws-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tp-ws-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: var(--tp-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-muted);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-ws-tab-btn.active {
  background: var(--tp-primary-blue);
  color: #ffffff;
  border-color: var(--tp-primary-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tp-ws-tab-btn:hover:not(.active) {
  background: var(--tp-surface-subtle);
  color: var(--tp-text-primary);
}

.tp-ws-tab-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Reliance Card Inner Layout */
.tp-ws-stock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.tp-ws-stock-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-ws-company-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.2);
}

.tp-ws-company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  margin-bottom: 0.25rem;
}

.tp-ws-tags-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tp-ws-sub-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-muted);
  border: 1px solid var(--tp-border-subtle);
}

.tp-ws-sub-badge.nse {
  color: var(--tp-primary-blue);
  background: var(--tp-primary-blue-light);
  border-color: var(--tp-primary-blue-border);
}

.tp-ws-price-right {
  text-align: right;
}

.tp-ws-price-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  letter-spacing: -0.02em;
}

.tp-ws-price-chg {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--tp-font-mono);
}

/* Area Wave Chart (Reference 2) */
.tp-ws-chart-wrap {
  width: 100%;
  height: 105px;
  position: relative;
  margin-bottom: 0.85rem;
}

.tp-ws-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 52W Range Slider */
.tp-ws-range-section {
  margin-bottom: 1.25rem;
}

.tp-ws-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: var(--tp-text-muted);
  margin-bottom: 0.45rem;
  font-family: var(--tp-font-mono);
}

.tp-ws-range-center {
  font-size: 0.72rem;
  color: var(--tp-text-muted);
  font-family: var(--tp-font-sans);
  font-weight: 500;
}

.tp-ws-range-track {
  width: 100%;
  height: 6px;
  background: var(--tp-surface-subtle);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.tp-ws-range-indicator {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tp-primary-green);
  border: 2.5px solid var(--tp-surface-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

/* 4 Metrics Bento Box */
.tp-ws-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tp-border-subtle);
}

.tp-ws-metric-box {
  background: transparent;
}

.tp-ws-metric-lbl {
  font-size: 0.73rem;
  color: var(--tp-text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.tp-ws-metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  font-family: var(--tp-font-mono);
}

/* ==========================================================================
   5.4. RESEARCH PANEL — PREMIUM REDESIGN
   ========================================================================== */

.tp-rs-panel {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.tp-rs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.tp-rs-stock-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.tp-rs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(180,83,9,0.28);
}

.tp-rs-stock-info { min-width: 0; flex: 1; overflow: hidden; }

.tp-rs-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.tp-rs-company-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  min-width: 0;
  max-width: 140px;
}

.tp-rs-signal-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tp-rs-signal-badge.bullish {
  background: rgba(16,185,129,0.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.22);
}
[data-theme="dark"] .tp-rs-signal-badge.bullish { color: #34d399; }
.tp-rs-signal-badge.bearish {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}
[data-theme="dark"] .tp-rs-signal-badge.bearish { color: #f87171; }

.tp-rs-badges-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tp-rs-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-muted);
  border: 1px solid var(--tp-border-subtle);
  white-space: nowrap;
}
.tp-rs-badge.nse {
  color: var(--tp-primary-blue);
  background: var(--tp-primary-blue-light);
  border-color: var(--tp-primary-blue-border);
}

.tp-rs-price-block {
  text-align: right;
  flex-shrink: 0;
  min-width: 0;
}

.tp-rs-price {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}

.tp-rs-change {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--tp-font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.12rem;
}
.tp-rs-change.up  { color: #059669; }
[data-theme="dark"] .tp-rs-change.up { color: #34d399; }
.tp-rs-change.down { color: #dc2626; }
[data-theme="dark"] .tp-rs-change.down { color: #f87171; }

.tp-rs-chart-wrap {
  position: relative;
  margin-bottom: 0.6rem;
  width: 100%;
  overflow: hidden;
}

.tp-rs-chart-svg {
  width: 100%;
  height: 88px;
  max-height: 88px;
  overflow: hidden;
  display: block;
}

.tp-rs-chart-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: rsDrawLine 1.4s ease forwards;
}
@keyframes rsDrawLine {
  to { stroke-dashoffset: 0; }
}

/* Period chips */
.tp-rs-period-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.45rem;
}

.tp-rs-period-chip {
  font-size: 0.72rem;
  font-weight: 620;
  padding: 0.22rem 0.6rem;
  border-radius: 7px;
  cursor: pointer;
  color: #94a3b8;
  background: transparent;
  border: none;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.tp-rs-period-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}
.tp-rs-period-chip.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-weight: 750;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

/* 52W Range */
.tp-rs-range-section {
  margin-bottom: 0.75rem;
}

.tp-rs-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  color: var(--tp-text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--tp-font-mono);
  gap: 0.25rem;
}
.tp-rs-range-header strong { color: var(--tp-text-primary); }

.tp-rs-range-lbl {
  white-space: nowrap;
  flex-shrink: 0;
}

.tp-rs-range-center {
  font-size: 0.67rem;
  font-family: var(--tp-font-sans);
  font-weight: 500;
  color: var(--tp-text-subtle);
}

.tp-rs-range-track {
  width: 100%;
  height: 5px;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.tp-rs-range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

.tp-rs-range-thumb {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #059669;
  border: 2.5px solid var(--tp-surface-card);
  box-shadow: 0 1px 6px rgba(5,150,105,0.35);
  transform: translate(-50%, -50%);
}

/* Metrics bento grid */
.tp-rs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 0;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.tp-rs-metric {
  padding: 0.55rem 0.6rem;
  border-right: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
  min-width: 0;
}
.tp-rs-metric:last-child { border-right: none; }

.tp-rs-metric-lbl {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.tp-rs-metric-val {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-rs-metric-green { color: #059669; }
[data-theme="dark"] .tp-rs-metric-green { color: #34d399; }

.tp-rs-metric-ctx {
  font-size: 0.58rem;
  color: var(--tp-text-subtle);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Research CTA */
.tp-rs-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(37,99,235,0.28);
  letter-spacing: -0.01em;
}
.tp-rs-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37,99,235,0.38);
  color: #fff;
  filter: brightness(1.08);
}
.tp-rs-cta-btn:active { transform: translateY(0); }
.tp-rs-cta-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

/* ==========================================================================
   5.5. PAPER TRADING PANEL — PREMIUM REDESIGN
   ========================================================================== */


.tp-pt-panel {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Capital row */
.tp-pt-capital-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.tp-pt-capital-left { min-width: 0; flex: 1; overflow: hidden; }
.tp-pt-capital-right { flex-shrink: 0; text-align: right; }

.tp-pt-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}

.tp-pt-balance {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-pt-pnl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  font-weight: 700;
  font-family: var(--tp-font-mono);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.35rem;
}

.tp-pt-gain {
  color: #059669;
  background: rgba(16,185,129,0.1);
}
[data-theme="dark"] .tp-pt-gain {
  color: #34d399;
  background: rgba(16,185,129,0.14);
}
.tp-pt-loss {
  color: #dc2626;
  background: rgba(239,68,68,0.1);
}
[data-theme="dark"] .tp-pt-loss {
  color: #f87171;
  background: rgba(239,68,68,0.14);
}

/* Sandbox badge */
.tp-pt-sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-primary-blue);
  background: var(--tp-primary-blue-light);
  border: 1px solid var(--tp-primary-blue-border);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.tp-pt-sandbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tp-primary-green);
  animation: tpPulse 2s infinite;
  flex-shrink: 0;
}

.tp-pt-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.tp-pt-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

/* Trade section */
.tp-pt-trade-section {
  margin-bottom: 0.85rem;
}

.tp-pt-trade-card {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.tp-pt-trade-demo {
  opacity: 0.85;
}

.tp-pt-trade-left { min-width: 0; flex: 1; overflow: hidden; }
.tp-pt-trade-right { flex-shrink: 0; text-align: right; min-width: 0; }

.tp-pt-trade-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.tp-pt-side-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-pt-side-badge.buy {
  background: rgba(16,185,129,0.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
}
[data-theme="dark"] .tp-pt-side-badge.buy { color: #34d399; }
.tp-pt-side-badge.sell {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}
[data-theme="dark"] .tp-pt-side-badge.sell { color: #f87171; }

.tp-pt-trade-sym {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  font-family: var(--tp-font-mono);
}

.tp-pt-trade-name {
  font-size: 0.75rem;
  color: var(--tp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.tp-pt-trade-detail {
  font-size: 0.78rem;
  color: var(--tp-text-muted);
  font-family: var(--tp-font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tp-pt-trade-time {
  font-size: 0.7rem;
  color: var(--tp-text-subtle);
  font-family: var(--tp-font-sans);
}

.tp-pt-trade-pnl {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  line-height: 1.2;
}

.tp-pt-trade-pct {
  font-size: 0.73rem;
  font-weight: 700;
  font-family: var(--tp-font-mono);
}

.tp-pt-trade-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tp-text-subtle);
}

.tp-pt-trade-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.69rem;
  color: var(--tp-text-subtle);
  margin-top: 0.4rem;
  padding-left: 0.2rem;
}

/* Empty state */
.tp-pt-empty-state {
  background: var(--tp-surface-subtle);
  border: 1px dashed var(--tp-border-medium);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
}

.tp-pt-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tp-primary-blue-light);
  color: var(--tp-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}

.tp-pt-empty-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  margin-bottom: 0.2rem;
}

.tp-pt-empty-sub {
  font-size: 0.73rem;
  color: var(--tp-text-muted);
}

/* Guest preview */
.tp-pt-guest-preview {}

/* Primary CTA */
.tp-pt-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  background: var(--tp-primary-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  margin-bottom: 0.85rem;
}

.tp-pt-cta-btn:hover {
  background: var(--tp-primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  color: #ffffff;
}

.tp-pt-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37,99,235,0.2);
}

.tp-pt-cta-btn:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 3px;
}

/* Stats row */
.tp-pt-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 0;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.tp-pt-stat {
  padding: 0.6rem 0.7rem;
  border-right: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
}
.tp-pt-stat:last-child { border-right: none; }

.tp-pt-stat-val {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-pt-stat-lbl {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .tp-pt-balance { font-size: 1.3rem; }
  .tp-pt-trade-name { max-width: 80px; }
  .tp-pt-stat-val { font-size: 0.78rem; }
}

/* ==========================================================================
   5.6. TRADE JOURNAL PANEL — PREMIUM REDESIGN
   ========================================================================== */

.tp-jnl-panel {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tp-jnl-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tp-jnl-header-left { min-width: 0; flex: 1; }
.tp-jnl-header-right { flex-shrink: 0; text-align: right; }

.tp-jnl-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}

.tp-jnl-win-rate {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tp-jnl-positive { color: #059669; }
[data-theme="dark"] .tp-jnl-positive { color: #34d399; }
.tp-jnl-negative  { color: #dc2626; }
[data-theme="dark"] .tp-jnl-negative { color: #f87171; }
.tp-jnl-neutral   { color: var(--tp-text-muted); }
.tp-jnl-demo      { color: #059669; opacity: 0.65; }
[data-theme="dark"] .tp-jnl-demo { color: #34d399; }

.tp-jnl-win-label {
  font-size: 0.71rem;
  color: var(--tp-text-muted);
  margin-top: 0.12rem;
}

.tp-jnl-pnl-badge {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--tp-font-mono);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.tp-jnl-positive-bg {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.22);
}
[data-theme="dark"] .tp-jnl-positive-bg { color: #34d399; background: rgba(16,185,129,0.14); }
.tp-jnl-negative-bg {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.22);
}
[data-theme="dark"] .tp-jnl-negative-bg { color: #f87171; background: rgba(239,68,68,0.14); }

.tp-jnl-pnl-label {
  font-size: 0.67rem;
  color: var(--tp-text-muted);
  margin-top: 0.28rem;
}

.tp-jnl-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

/* Stats grid */
.tp-jnl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.tp-jnl-stat {
  padding: 0.6rem 0.7rem;
  border-right: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
}
.tp-jnl-stat:last-child { border-right: none; }

.tp-jnl-stat-val {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  line-height: 1.2;
}

.tp-jnl-stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  margin-top: 0.12rem;
}

/* Last entry row */
.tp-jnl-last-entry {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}

.tp-jnl-entry-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp-jnl-positive-icon { background: rgba(16,185,129,0.12); color: #059669; }
[data-theme="dark"] .tp-jnl-positive-icon { color: #34d399; }
.tp-jnl-negative-icon { background: rgba(239,68,68,0.1); color: #dc2626; }
[data-theme="dark"] .tp-jnl-negative-icon { color: #f87171; }
.tp-jnl-neutral-icon  { background: var(--tp-surface-card); color: var(--tp-text-muted); }

.tp-jnl-entry-info { flex: 1; min-width: 0; }

.tp-jnl-entry-sym {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  font-family: var(--tp-font-mono);
  display: block;
}

.tp-jnl-entry-meta {
  font-size: 0.7rem;
  color: var(--tp-text-muted);
}

.tp-jnl-outcome-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-jnl-outcome-pill.win { background: rgba(16,185,129,0.12); color: #059669; }
[data-theme="dark"] .tp-jnl-outcome-pill.win { color: #34d399; }
.tp-jnl-outcome-pill.loss { background: rgba(239,68,68,0.1); color: #dc2626; }
[data-theme="dark"] .tp-jnl-outcome-pill.loss { color: #f87171; }
.tp-jnl-outcome-pill.neutral { background: var(--tp-surface-card); color: var(--tp-text-muted); }

/* Empty state */
.tp-jnl-empty-state {
  background: var(--tp-surface-subtle);
  border: 1px dashed var(--tp-border-medium);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.tp-jnl-empty-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--tp-surface-card);
  color: var(--tp-text-muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
}
.tp-jnl-empty-text { font-size: 0.84rem; font-weight: 700; color: var(--tp-text-primary); margin-bottom: 0.18rem; }
.tp-jnl-empty-sub  { font-size: 0.72rem; color: var(--tp-text-muted); }

/* Guest info */
.tp-jnl-guest-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.77rem;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.tp-jnl-guest-info svg { flex-shrink: 0; margin-top: 2px; color: var(--tp-text-subtle); }

.tp-jnl-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tp-jnl-feature-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  color: var(--tp-text-muted);
}
.tp-jnl-feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tp-jnl-feature-dot.green { background: #10b981; }
.tp-jnl-feature-dot.blue  { background: #2563eb; }
.tp-jnl-feature-dot.amber { background: #f59e0b; }

/* Journal CTA */
.tp-jnl-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  background: #059669;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(5,150,105,0.25);
}
.tp-jnl-cta-btn:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5,150,105,0.35);
  color: #fff;
}
.tp-jnl-cta-btn:active { transform: translateY(0); }
.tp-jnl-cta-btn:focus-visible { outline: 2px solid #059669; outline-offset: 3px; }

/* ==========================================================================
   5.7. PRICE ALERTS PANEL — PREMIUM REDESIGN
   ========================================================================== */

.tp-alt-panel {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tp-alt-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tp-alt-header-left { min-width: 0; flex: 1; }
.tp-alt-header-right { flex-shrink: 0; text-align: right; }

.tp-alt-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}

.tp-alt-active-count {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: #f59e0b;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.tp-alt-active-label {
  font-size: 0.71rem;
  color: var(--tp-text-muted);
  margin-top: 0.12rem;
}

.tp-alt-tagline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  line-height: 1.2;
}
.tp-alt-sub {
  font-size: 0.72rem;
  color: var(--tp-text-muted);
  margin-top: 0.15rem;
}

/* Live badge */
.tp-alt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.22);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
[data-theme="dark"] .tp-alt-live-badge { color: #34d399; }

.tp-alt-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: tpPulse 2s infinite;
  flex-shrink: 0;
}

.tp-alt-inactive-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* KPI grid */
.tp-alt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.tp-alt-kpi {
  padding: 0.6rem 0.7rem;
  border-right: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
}
.tp-alt-kpi:last-child { border-right: none; }

.tp-alt-kpi-val {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  line-height: 1.2;
}
.tp-alt-green { color: #059669; }
[data-theme="dark"] .tp-alt-green { color: #34d399; }
.tp-alt-amber { color: #d97706; }
[data-theme="dark"] .tp-alt-amber { color: #fbbf24; }
.tp-alt-muted { color: var(--tp-text-muted); }

.tp-alt-kpi-lbl {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  margin-top: 0.12rem;
  white-space: nowrap;
}

/* Empty state */
.tp-alt-empty-state {
  background: var(--tp-surface-subtle);
  border: 1px dashed var(--tp-border-medium);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.tp-alt-empty-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(245,158,11,0.1);
  color: #d97706;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.45rem;
}
[data-theme="dark"] .tp-alt-empty-icon { color: #fbbf24; }
.tp-alt-empty-text { font-size: 0.84rem; font-weight: 700; color: var(--tp-text-primary); margin-bottom: 0.15rem; }
.tp-alt-empty-sub  { font-size: 0.72rem; color: var(--tp-text-muted); }

/* Demo alert rows */
.tp-alt-demo-row {
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tp-alt-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

.tp-alt-alert-left { flex: 1; min-width: 0; }
.tp-alt-alert-sym {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  font-family: var(--tp-font-mono);
}
.tp-alt-alert-cond {
  font-size: 0.7rem;
  color: var(--tp-text-muted);
  margin-top: 0.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-alt-alert-status {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-alt-alert-status.active {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
[data-theme="dark"] .tp-alt-alert-status.active { color: #34d399; }
.tp-alt-alert-status.triggered {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
[data-theme="dark"] .tp-alt-alert-status.triggered { color: #fbbf24; }

.tp-alt-demo-notice {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--tp-text-subtle);
  padding-left: 0.2rem;
  margin-top: 0.1rem;
}

/* Feature chips */
.tp-alt-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tp-alt-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Alerts CTA */
.tp-alt-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  background: #d97706;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(217,119,6,0.28);
}
.tp-alt-cta-btn:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217,119,6,0.38);
  color: #fff;
}
.tp-alt-cta-btn:active { transform: translateY(0); }
.tp-alt-cta-btn:focus-visible { outline: 2px solid #d97706; outline-offset: 3px; }




.tp-snapshot-section {
  padding: 1.5rem 0 2rem;
}

.tp-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.tp-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-text-primary);
  margin: 0;
}

.tp-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tp-primary-green);
}

.tp-live-pulse-badge.is-last-trade {
  color: var(--tp-text-secondary);
}

.tp-live-pulse-badge.is-last-trade .tp-live-pulse-dot {
  background-color: #94a3b8;
  animation: none;
}

.tp-live-pulse-badge.is-mixed {
  color: var(--tp-text-secondary);
}

.tp-live-pulse-badge.is-mixed .tp-live-pulse-dot {
  background-color: #38bdf8;
  animation: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.tp-live-pulse-badge.is-unavailable {
  color: var(--tp-text-muted);
}

.tp-live-pulse-badge.is-unavailable .tp-live-pulse-dot {
  background-color: #94a3b8;
  animation: none;
}

.tp-live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--tp-primary-green);
  animation: tpPulse 2s infinite;
}

@keyframes tpPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tp-view-all-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tp-primary-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s;
}

.tp-view-all-link:hover {
  gap: 0.45rem;
  text-decoration: underline;
}

/* 8 Cards Horizontal Grid Desktop */
.tp-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.85rem;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .tp-snapshot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 768px) {
  .tp-snapshot-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tp-snapshot-grid::-webkit-scrollbar {
    display: none;
  }
}

.tp-snapshot-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  padding: 0.95rem 0.85rem 0.65rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

@media (max-width: 768px) {
  .tp-snapshot-card {
    flex: 0 0 calc(48% - 0.5rem);
    min-width: 145px;
    scroll-snap-align: start;
    padding: 0.85rem 0.75rem 0.55rem;
  }
}

.tp-snapshot-card:hover {
  transform: translateY(-2px);
  border-color: var(--tp-border-medium);
  box-shadow: var(--tp-shadow-md);
}

.tp-snap-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tp-text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-snap-val {
  font-size: 1.08rem;
  font-weight: 800;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.tp-snap-chg {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--tp-font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.tp-snap-chg.up {
  color: var(--tp-primary-green);
}

.tp-snap-chg.down {
  color: var(--tp-accent-red);
}

.tp-snap-sparkline {
  width: 100%;
  height: 32px;
  margin-top: 0.45rem;
}

/* ==========================================================================
   7. WORKSPACE ECOSYSTEM ("EVERYTHING YOU NEED IN ONE PLACE")
   ========================================================================== */

.tp-ecosystem-section {
  padding: 2rem 0;
}

.tp-ecosystem-heading-wrap {
  margin-bottom: 1.5rem;
}

.tp-ecosystem-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--tp-text-primary);
  margin: 0 0 0.35rem 0;
}

.tp-ecosystem-subtitle {
  font-size: 0.95rem;
  color: var(--tp-text-muted);
  margin: 0;
}

/* Desktop: 5-Column Grid / Mobile: 2-Column Square Grid */
.tp-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .tp-ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 768px) {
  .tp-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.tp-eco-card {
  min-width: 0 !important;
  box-sizing: border-box !important;
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--tp-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tp-eco-card.tp-mobile-only,
.tp-ecosystem-carousel-dots {
  display: none !important;
}

@media (max-width: 768px) {
  .tp-eco-card {
    padding: 1rem 0.85rem 0.85rem;
    aspect-ratio: 1 / 0.95;
    border-radius: var(--tp-radius-md);
  }
  .tp-eco-card.tp-mobile-only {
    display: flex !important;
  }
}

.tp-eco-card:hover {
  transform: translateY(-2px);
  border-color: var(--tp-border-medium);
  box-shadow: var(--tp-shadow-md);
}

.tp-eco-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.tp-eco-icon-wrap svg {
  width: 22px;
  height: 22px;
}

/* Color Accents for Ecosystem Icons */
.tp-eco-icon-wrap.green {
  background: var(--tp-primary-green-light);
  color: var(--tp-primary-green);
}
.tp-eco-icon-wrap.blue {
  background: var(--tp-primary-blue-light);
  color: var(--tp-primary-blue);
}
.tp-eco-icon-wrap.purple {
  background: var(--tp-accent-purple-light);
  color: var(--tp-accent-purple);
}
.tp-eco-icon-wrap.orange {
  background: var(--tp-accent-orange-light);
  color: var(--tp-accent-orange);
}
.tp-eco-icon-wrap.red {
  background: var(--tp-accent-red-light);
  color: var(--tp-accent-red);
}
.tp-eco-icon-wrap.pink {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.tp-eco-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  margin-bottom: 0.25rem;
}

.tp-eco-card-desc {
  font-size: 0.8rem;
  color: var(--tp-text-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .tp-eco-card-desc {
    font-size: 0.74rem;
  }
}

.tp-eco-card-arrow {
  align-self: flex-end;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.15s;
}

.tp-eco-card:hover .tp-eco-card-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   8. MARKET DISCOVERY & MOVERS (POPULAR, GAINERS, LOSERS, MOST ACTIVE)
   ========================================================================== */

.tp-discovery-section {
  padding: 1.75rem 0 2.25rem;
}

.tp-discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .tp-discovery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tp-panel-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-lg);
  padding: 1.35rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  flex-direction: column;
}

.tp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tp-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Market Breadth / Heat Micro Info (Condition 9) */
.tp-movers-heat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--tp-radius-full);
  border: 1px solid var(--tp-border-subtle);
}

.tp-heat-adv {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--tp-primary-green);
  font-weight: 700;
  font-family: var(--tp-font-mono);
}

.tp-heat-dec {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--tp-accent-red);
  font-weight: 700;
  font-family: var(--tp-font-mono);
}

.tp-heat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tp-heat-dot.green { background-color: var(--tp-primary-green); }
.tp-heat-dot.red { background-color: var(--tp-accent-red); }

/* Premium Segmented Tabs (Condition 8) */
.tp-movers-tabs-wrapper {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tp-movers-tabs {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  gap: 4px;
}

[data-theme="dark"] .tp-movers-tabs {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.tp-movers-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.tp-movers-tab-btn:hover:not(.active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .tp-movers-tab-btn {
  color: #94a3b8;
}

[data-theme="dark"] .tp-movers-tab-btn:hover:not(.active) {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.tp-movers-tab-btn:active {
  transform: scale(0.97);
}

.tp-movers-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  border-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .tp-movers-tab-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive Tab Button Labels */
.tp-btn-label-short {
  display: none;
}

.tp-btn-label-full {
  display: inline;
}

/* Movers Tab Icons & Distinct Category Accents */
.tp-movers-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tp-movers-tab-icon.is-popular {
  color: #ea580c;
}

.tp-movers-tab-icon.is-gainers {
  color: #10b981;
}

.tp-movers-tab-icon.is-losers {
  color: #ef4444;
}

.tp-movers-tab-icon.is-active {
  color: #0284c7;
}

[data-theme="dark"] .tp-movers-tab-icon.is-popular {
  color: #fb923c;
}

[data-theme="dark"] .tp-movers-tab-icon.is-gainers {
  color: #34d399;
}

[data-theme="dark"] .tp-movers-tab-icon.is-losers {
  color: #f87171;
}

[data-theme="dark"] .tp-movers-tab-icon.is-active {
  color: #38bdf8;
}

.tp-movers-tab-btn:hover .tp-movers-tab-icon {
  transform: scale(1.15);
}

.tp-movers-tab-btn.active .tp-movers-tab-icon {
  transform: scale(1.1);
}

/* Market Movers Desktop Table */
.tp-movers-table {
  width: 100%;
  border-collapse: collapse;
}

.tp-movers-table th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tp-text-subtle);
  text-align: left;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-movers-table th:last-child,
.tp-movers-table td:last-child {
  text-align: right;
}

.tp-movers-row {
  border-bottom: 1px solid var(--tp-border-subtle);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.tp-movers-row:last-child {
  border-bottom: none;
}

.tp-movers-row:hover {
  background-color: var(--tp-surface-subtle);
}

.tp-movers-row td {
  padding: 0.68rem 0.5rem;
  vertical-align: middle;
}

.tp-movers-table .idx {
  color: var(--tp-text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  width: 22px;
}

.tp-movers-stock-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tp-movers-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.74rem;
  color: var(--tp-text-secondary);
  flex-shrink: 0;
}

.tp-movers-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--tp-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.tp-movers-sub {
  font-size: 0.7rem;
  color: var(--tp-text-muted);
  font-family: var(--tp-font-mono);
}

.tp-movers-table .tp-movers-price-val {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  font-family: var(--tp-font-mono) !important;
  color: var(--tp-text-primary) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.tp-movers-chg-val {
  font-weight: 700;
  font-family: var(--tp-font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tp-movers-vol-val {
  font-weight: 600;
  font-family: var(--tp-font-mono);
  font-size: 0.82rem;
  color: var(--tp-text-muted);
  white-space: nowrap;
}

.tp-badge-top-gainer {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--tp-primary-green-light);
  color: var(--tp-primary-green);
  border: 1px solid var(--tp-primary-green-border);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Desktop vs Mobile display toggles for Market Movers */
@media (min-width: 769px) {
  .tp-movers-table {
    display: table !important;
    width: 100%;
  }
  .tp-movers-mobile-list {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .tp-movers-table {
    display: none !important;
  }
  .tp-movers-mobile-list {
    display: flex !important;
  }
}

/* Mobile Market Movers List (Condition 23 & 24) */
.tp-movers-mobile-list {
  display: flex;
  flex-direction: column;
}

.tp-movers-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  min-height: 48px;
}

.tp-movers-mobile-row:last-child {
  border-bottom: none;
}

.tp-movers-mobile-row:hover {
  background-color: var(--tp-surface-subtle);
}

.tp-movers-mobile-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.tp-movers-mobile-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
}

/* ==========================================================================
   CONTENT HUB: ARTICLE | MARKET NEWS | BOOKS (Conditions 3-24)
   ========================================================================== */

.tp-content-hub-section {
  padding: 1.5rem 0 2rem;
}

.tp-content-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1080px) and (min-width: 769px) {
  .tp-content-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tp-content-hub-grid > .tp-hub-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .tp-content-hub-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.tp-hub-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tp-hub-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .tp-hub-card:hover {
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tp-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tp-border-subtle);
}

.tp-hub-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.tp-hub-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tp-hub-icon-badge.article {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tp-hub-icon-badge.news {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tp-hub-icon-badge.books {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tp-hub-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.tp-hub-subtitle {
  font-size: 0.72rem;
  color: var(--tp-text-subtle);
  margin: 0.1rem 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1. ARTICLE ROWS */
.tp-article-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.tp-article-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0.45rem;
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  border-bottom: 1px solid var(--tp-border-subtle);
}

.tp-article-row:last-child {
  border-bottom: none;
}

.tp-article-row:hover {
  background: var(--tp-surface-subtle);
  transform: translateX(2px);
}

.tp-article-idx {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--tp-text-subtle);
  font-family: var(--tp-font-mono);
  width: 18px;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.tp-article-content {
  flex: 1;
  min-width: 0;
}

.tp-article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.tp-article-cat-pill {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tp-article-time {
  font-size: 0.69rem;
  color: var(--tp-text-muted);
}

.tp-article-headline {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.tp-article-row:hover .tp-article-headline {
  color: var(--tp-primary-blue);
}

@media (max-width: 768px) {
  .tp-article-row:nth-child(n+4) {
    display: none !important;
  }
}

/* 2. MARKET NEWS (TERMINAL TEXT-FIRST, NO IMAGES) */
.tp-news-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tp-news-filter-tabs::-webkit-scrollbar {
  display: none;
}

.tp-news-tab-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--tp-radius-full);
  color: var(--tp-text-muted);
  background: var(--tp-surface-subtle);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.tp-news-tab-pill.active {
  background: var(--tp-primary-green-light);
  color: var(--tp-primary-green);
  font-weight: 700;
}

.tp-news-terminal-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.tp-news-terminal-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.tp-news-terminal-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tp-news-terminal-row:hover {
  opacity: 0.85;
}

.tp-news-meta-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.69rem;
  color: var(--tp-text-subtle);
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.tp-news-cat-tag {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tp-primary-green);
}

.tp-news-terminal-headline {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.tp-news-terminal-row:hover .tp-news-terminal-headline {
  color: var(--tp-primary-green);
}

@media (max-width: 768px) {
  .tp-news-terminal-row:nth-child(n+4) {
    display: none !important;
  }
}

/* 3. BOOKS (LOGIN GATE & CARDS) */
.tp-books-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  justify-content: space-between;
}

.tp-book-item {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  transition: border-color 0.18s ease;
}

.tp-book-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.tp-book-cat-badge {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: inline-block;
  align-self: flex-start;
}

.tp-book-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  margin: 0.2rem 0 0.1rem 0;
  line-height: 1.3;
}

.tp-book-author {
  font-size: 0.7rem;
  color: var(--tp-text-muted);
  margin-bottom: 0.2rem;
}

.tp-book-desc {
  font-size: 0.74rem;
  color: var(--tp-text-secondary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-book-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--tp-border-subtle);
}

.tp-btn-book-action {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  background: var(--tp-primary-blue);
  color: #ffffff;
}

.tp-btn-book-action:hover {
  background: var(--tp-primary-blue-hover);
}

.tp-btn-book-action.guest {
  background: var(--tp-surface-card);
  color: var(--tp-primary-blue);
  border: 1px solid var(--tp-border-subtle);
}

.tp-btn-book-action.guest:hover {
  background: var(--tp-primary-blue-light);
  border-color: var(--tp-primary-blue-border);
}

@media (max-width: 768px) {
  .tp-book-item:nth-child(n+3) {
    display: none !important;
  }
}

/* Connected TickerPulse AI Card (Condition 12 Option A) */
.tp-ai-connected-banner {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(16,185,129,0.04)), var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--tp-shadow-sm);
}

[data-theme="dark"] .tp-ai-connected-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(16,185,129,0.06)), var(--tp-surface-card);
}

.tp-ai-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .tp-ai-banner-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tp-ai-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tp-ai-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tp-ai-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0 0 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tp-ai-banner-sub {
  font-size: 0.84rem;
  color: var(--tp-text-muted);
  margin: 0;
}

.tp-ai-banner-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-ai-banner-input-box {
  position: relative;
  width: 100%;
}

.tp-ai-banner-input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: var(--tp-surface-input);
  border: 1.5px solid var(--tp-border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tp-ai-banner-input-box:focus-within {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.18), 0 8px 24px -4px rgba(99, 102, 241, 0.12) !important;
}

[data-theme="dark"] .tp-ai-banner-input-box {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .tp-ai-banner-input-box:focus-within {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.3), 0 8px 28px -4px rgba(99, 102, 241, 0.25) !important;
}

.tp-ai-banner-input {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.82rem 3.4rem 0.82rem 1.15rem;
  background: transparent !important;
  border: none !important;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--tp-text-primary);
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit;
}

#homeAiInput:focus,
#homeAiInput:focus-visible,
#homeAiInput:active,
.tp-ai-banner-input:focus,
.tp-ai-banner-input:focus-visible,
.tp-ai-banner-input:active {
  border: none !important;
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.tp-ai-banner-send-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.tp-ai-banner-send-btn:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 18px -2px rgba(79, 70, 229, 0.6);
}

.tp-ai-banner-send-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.tp-ai-banner-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.tp-ai-prompt-pill {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tp-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.tp-ai-prompt-pill:hover {
  background: var(--tp-primary-blue-light);
  color: var(--tp-primary-blue);
  border-color: var(--tp-primary-blue-border);
}

/* ==========================================================================
   11. PREMIUM TWO-COLUMN HOMEPAGE SECTION v2
       LEFT:  Market Movers  |  RIGHT: Financial Insights Hub
   ========================================================================== */

/* ---- Outer Section ---- */
.tp-hub-movers-section {
  padding: 1.75rem 0 2.5rem;
}

/* ---- Two-Column Grid: Movers LEFT (bigger) | Hub RIGHT ---- */
.tp-hub-movers-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 2fr);
  gap: 1.375rem;
  align-items: start;
}

/* Order: Movers card is marked order-1 (left), Hub is order-2 (right) */
.tp-hub-order-left  { order: 1; }
.tp-hub-order-right { order: 2; }

@media (max-width: 1100px) {
  .tp-hub-movers-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 860px) {
  .tp-hub-movers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tp-hub-order-left  { order: 1; }
  .tp-hub-order-right { order: 2; }
}

/* ==========================================================================
   SHARED CARD SHELL — premium glass, gradient top accent
   ========================================================================== */
.tp-unified-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: 18px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.tp-unified-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.tp-unified-card > * { position: relative; z-index: 1; }

[data-theme="dark"] .tp-unified-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
}

/* ==========================================================================
   MARKET MOVERS CARD (Left)
   ========================================================================== */

/* Gradient top accent bar for Movers */
.tp-movers-unified-card {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--tp-surface-card), var(--tp-surface-card)),
                    linear-gradient(90deg, #10b981 0%, #059669 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Movers Header */
.tp-movers-unified-header {
  padding: 1.15rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  background: linear-gradient(135deg, rgba(16,185,129,0.04) 0%, transparent 60%);
}

.tp-movers-unified-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.tp-movers-unified-title-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tp-movers-unified-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}

.tp-movers-unified-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0 0 0.12rem 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tp-movers-unified-subtitle {
  font-size: 0.71rem;
  color: var(--tp-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Movers tab bar */
.tp-movers-unified-tabs-wrap {
  display: flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
  gap: 0.25rem;
}

/* Movers segmented pill tabs */
.tp-movers-unified-tabs-wrap .tp-movers-tabs {
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .tp-movers-unified-tabs-wrap .tp-movers-tabs {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

/* Movers body */
.tp-movers-unified-body { padding: 0 0.2rem; }

.tp-movers-unified-body .tp-movers-table th {
  font-size: 0.69rem;
  padding: 0.55rem 0.6rem;
  color: var(--tp-text-subtle);
  background: var(--tp-surface-subtle);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.tp-movers-unified-body .tp-movers-table td {
  padding: 0.72rem 0.6rem;
}

.tp-movers-unified-body .tp-movers-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--tp-surface-subtle), var(--tp-surface-card));
  border: 1px solid var(--tp-border-subtle);
}

.tp-movers-unified-body .tp-movers-title {
  max-width: 150px;
  font-size: 0.86rem;
  font-weight: 700;
}

.tp-movers-unified-body .tp-movers-price-val {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.tp-movers-unified-body .tp-movers-chg-val {
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
}

.tp-movers-unified-body .tp-text-green.tp-movers-chg-val {
  background: rgba(16,185,129,0.1);
  color: #059669 !important;
}
[data-theme="dark"] .tp-movers-unified-body .tp-text-green.tp-movers-chg-val {
  color: #34d399 !important;
  background: rgba(16,185,129,0.15);
}

.tp-movers-unified-body .tp-text-red.tp-movers-chg-val {
  background: rgba(239,68,68,0.1);
  color: #dc2626 !important;
}
[data-theme="dark"] .tp-movers-unified-body .tp-text-red.tp-movers-chg-val {
  color: #f87171 !important;
  background: rgba(239,68,68,0.15);
}

/* Movers footer */
.tp-movers-unified-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--tp-border-subtle);
  text-align: center;
  background: var(--tp-surface-subtle);
}

.tp-movers-unified-footer .tp-view-all-link {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--tp-primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: gap 0.15s ease;
}
.tp-movers-unified-footer .tp-view-all-link:hover { gap: 0.5rem; }

/* ==========================================================================
   FINANCIAL INSIGHTS CARD (Right)
   ========================================================================== */

/* Gradient top accent bar for Hub */
.tp-hub-unified-card {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--tp-surface-card), var(--tp-surface-card)),
                    linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Hub Header */
.tp-hub-unified-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(124,58,237,0.03) 100%);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tp-hub-unified-title-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tp-hub-unified-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.tp-hub-unified-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0 0 0.12rem 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tp-hub-unified-subtitle {
  font-size: 0.71rem;
  color: var(--tp-text-muted);
  margin: 0;
  line-height: 1.35;
}

.tp-hub-view-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tp-primary-blue);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--tp-primary-blue-border);
  background: var(--tp-primary-blue-light);
  transition: all 0.15s ease;
}
.tp-hub-view-all:hover {
  background: var(--tp-primary-blue);
  color: #fff;
  border-color: var(--tp-primary-blue);
}

/* Hub Tab Bar */
.tp-hub-tab-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--tp-border-subtle);
  background: var(--tp-surface-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.tp-hub-tab-bar::-webkit-scrollbar { display: none; }

.tp-hub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tp-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tp-hub-tab-btn:hover:not(.active) {
  color: var(--tp-text-primary);
  background: var(--tp-surface-card);
  border-color: var(--tp-border-subtle);
}

.tp-hub-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

[data-theme="dark"] .tp-hub-tab-btn.active {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.tp-hub-tab-btn svg { opacity: 0.75; }
.tp-hub-tab-btn.active svg { opacity: 1; }

.tp-hub-tab-btn:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 2px;
}

/* Hub Tab Panels */
.tp-hub-tab-panels { flex: 1; }

.tp-hub-panel {
  display: none;
  padding: 0.85rem 1.1rem;
  flex-direction: column;
  gap: 0;
  animation: hubFadeIn 0.2s ease;
}

@keyframes hubFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tp-hub-panel.is-active { display: flex; }

/* Article rows inside hub */
.tp-hub-panel .tp-article-list { gap: 0.3rem; }

.tp-hub-panel .tp-article-row {
  padding: 0.5rem 0.5rem;
  border-radius: 10px;
  border-bottom: 1px solid var(--tp-border-subtle);
}
.tp-hub-panel .tp-article-row:last-child { border-bottom: none; }

.tp-hub-panel .tp-article-row:hover {
  background: rgba(37,99,235,0.04);
  transform: translateX(3px);
}

.tp-hub-panel .tp-article-headline {
  font-size: 0.84rem;
  font-weight: 650;
}

/* News rows inside hub */
.tp-hub-panel .tp-news-filter-tabs {
  margin-bottom: 0.65rem;
  gap: 0.3rem;
}

.tp-hub-panel .tp-news-terminal-row {
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.tp-hub-panel .tp-news-terminal-row:hover {
  background: rgba(16,185,129,0.05);
  opacity: 1;
}

/* Books inside hub */
.tp-hub-panel .tp-books-compact-list { gap: 0.65rem; }

.tp-hub-panel .tp-book-item {
  border-radius: 12px;
  background: var(--tp-surface-subtle);
}

/* ==========================================================================
   RESPONSIVE FINE-TUNING
   ========================================================================== */
@media (min-width: 861px) and (max-width: 1100px) {
  .tp-movers-unified-body .tp-movers-title { max-width: 115px; }
}

@media (max-width: 860px) {
  .tp-movers-unified-body .tp-movers-title { max-width: 160px; }
  .tp-hub-unified-header,
  .tp-movers-unified-header { padding: 1rem 1rem 0.75rem; }
  .tp-hub-panel { padding: 0.75rem 0.9rem; }
  .tp-movers-unified-footer { padding: 0.75rem 1rem; }
}

/* ---- Legacy hidden classes ---- */
.tp-discovery-section-hidden,
.tp-content-hub-section-hidden {
  display: none !important;
}


.tp-mobile-insights-section {
  display: none;
}

@media (max-width: 768px) {
  .tp-mobile-insights-section {
    display: block;
    padding: 1.5rem 0;
  }

  .tp-insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .tp-insights-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .tp-insights-tab-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--tp-radius-full);
    border: none;
    cursor: pointer;
    background: var(--tp-surface-subtle);
    color: var(--tp-text-muted);
  }

  .tp-insights-tab-btn.active {
    background: var(--tp-primary-blue-light);
    color: var(--tp-primary-blue);
  }

  .tp-insights-cards-scroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
  }

  .tp-insights-cards-scroll::-webkit-scrollbar {
    display: none;
  }

  .tp-insight-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
    background: var(--tp-surface-card);
    border: 1px solid var(--tp-border-subtle);
    border-radius: var(--tp-radius-md);
    overflow: hidden;
    box-shadow: var(--tp-shadow-sm);
    text-decoration: none;
    color: inherit;
  }

  .tp-insight-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
  }

  .tp-insight-body {
    padding: 0.75rem;
  }

  .tp-insight-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
  }

  .tp-insight-category-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--tp-primary-blue-light);
    color: var(--tp-primary-blue);
  }

  .tp-insight-read-time {
    font-size: 0.7rem;
    color: var(--tp-text-subtle);
  }

  .tp-insight-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tp-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ==========================================================================
   10. BOTTOM 3-CARD ROW (FINANCIAL TOOLS, IPO WATCH, CORPORATE CALENDAR)
   ========================================================================== */

.tp-bottom-3col-section {
  padding: 1.5rem 0 2.25rem;
}

.tp-bottom-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .tp-bottom-3col-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tp-bottom-3col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

/* Card 1: Financial Tools */
.tp-tools-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .tp-tools-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tp-tool-mini-card {
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  padding: 1rem 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.tp-tool-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--tp-primary-blue);
}

.tp-tool-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tp-surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--tp-shadow-sm);
}

.tp-tool-title-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  line-height: 1.25;
}

/* Card 2: IPO Watch */
.tp-ipo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-ipo-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  color: inherit;
}

.tp-ipo-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tp-ipo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tp-surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--tp-text-secondary);
}

.tp-ipo-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tp-text-primary);
}

.tp-ipo-dates {
  font-size: 0.72rem;
  color: var(--tp-text-subtle);
}

.tp-ipo-right {
  text-align: right;
}

.tp-ipo-price {
  font-size: 0.86rem;
  font-weight: 700;
  font-family: var(--tp-font-mono);
  color: var(--tp-text-primary);
}

.tp-ipo-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-block;
}

.tp-ipo-status-badge.open {
  background: var(--tp-primary-green-light);
  color: var(--tp-primary-green);
}

.tp-ipo-status-badge.upcoming {
  background: var(--tp-surface-card);
  color: var(--tp-text-muted);
}

/* Card 3: Corporate Calendar */
.tp-cal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-cal-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--tp-surface-subtle);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  color: inherit;
}

.tp-cal-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tp-cal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tp-surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--tp-text-secondary);
}

.tp-cal-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tp-text-primary);
}

.tp-cal-date {
  font-size: 0.72rem;
  color: var(--tp-text-subtle);
}

.tp-cal-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--tp-primary-blue-light);
  color: var(--tp-primary-blue);
}

/* ==========================================================================
   11. TELEGRAM & NEWSLETTER SECTION
   ========================================================================== */

.tp-community-section {
  padding: 1.5rem 0 2rem;
}

.tp-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .tp-community-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.tp-comm-card {
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-lg);
  padding: 1.35rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tp-comm-card.telegram {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05)), var(--tp-surface-card);
}

.tp-comm-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tp-text-primary);
  margin: 0 0 0.35rem 0;
}

.tp-comm-desc {
  font-size: 0.86rem;
  color: var(--tp-text-muted);
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.tp-newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tp-newsletter-input {
  flex: 1;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  background: var(--tp-surface-input);
  border: 1px solid var(--tp-border-subtle);
  border-radius: var(--tp-radius-md);
  font-size: 0.85rem;
  color: var(--tp-text-primary);
  outline: none;
}

.tp-newsletter-btn {
  background: var(--tp-primary-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--tp-radius-md);
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tp-newsletter-btn:hover {
  background: var(--tp-primary-blue-hover);
}

/* ==========================================================================
   12. MOBILE FOOTER ACCORDION & FIXED BOTTOM NAVIGATION
   ========================================================================== */

@media (max-width: 768px) {
  /* Hide the 6-column desktop footer layout on mobile */
  .tp-footer-columns-v2 {
    display: none !important;
  }

  /* Mobile Accordion Footer */
  .tp-mobile-accordion-footer {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .tp-accordion-group {
    border-bottom: 1px solid var(--tp-border-subtle);
  }

  .tp-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tp-text-primary);
    cursor: pointer;
    text-align: left;
  }

  .tp-accordion-icon {
    font-size: 1.1rem;
    color: var(--tp-text-muted);
    transition: transform 0.2s;
  }

  .tp-accordion-content {
    display: none;
    padding-bottom: 0.85rem;
  }

  .tp-accordion-content.is-open {
    display: block;
  }

  .tp-accordion-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tp-accordion-links a {
    color: var(--tp-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--tp-surface-card);
    border-top: 1px solid var(--tp-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--tp-text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
  }

  .mobile-bottom-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-item.active {
    color: var(--tp-primary-green);
  }

  body {
    padding-bottom: 64px; /* Ensure content is not hidden behind fixed bar */
  }
}

@media (min-width: 769px) {
  .tp-mobile-accordion-footer {
    display: none !important;
  }
}

/* ==========================================================================
   13. PREMIUM COMPACT FOOTER STYLES (Conditions 27-34)
   ========================================================================== */
.tp-footer-social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--tp-border-subtle);
  border-bottom: 1px solid var(--tp-border-subtle);
  flex-wrap: wrap;
}

.tp-footer-social-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tp-text-primary);
  letter-spacing: -0.01em;
}

.tp-footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tp-footer-social-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--tp-surface-card);
  border: 1px solid var(--tp-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-text-secondary);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.15s ease, 
              border-color 0.15s ease, 
              background-color 0.15s ease,
              box-shadow 0.2s ease;
}

.tp-footer-social-btn:hover {
  transform: translateY(-2px);
  color: var(--tp-primary-blue);
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tp-footer-social-btn:hover {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   MOBILE WORKSPACE CARD — STRUCTURAL FIXES ONLY
   Font sizes and spacing intentionally match desktop.
   ========================================================================== */

/* ── Tabs: horizontal scroll on mobile so all 4 fit ─────────────────── */
@media (max-width: 640px) {
  .tp-ws-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
  }
  .tp-ws-tabs::-webkit-scrollbar { display: none; }
  .tp-ws-tab-btn { flex-shrink: 0; }
}

/* ── Research: 2-col metrics on mobile (4-col is too cramped) ────────── */
@media (max-width: 1024px) {
  .tp-rs-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tp-rs-metric { border-right: 1px solid var(--tp-border-subtle); }
  .tp-rs-metric:nth-child(2) { border-right: none; }
  .tp-rs-metric:nth-child(3) { border-top: 1px solid var(--tp-border-subtle); border-right: 1px solid var(--tp-border-subtle); }
  .tp-rs-metric:nth-child(4) { border-top: 1px solid var(--tp-border-subtle); border-right: none; }

  /* CTA buttons: centre-align on mobile */
  .tp-rs-cta-btn  { justify-content: center; }
  .tp-pt-cta-btn  { justify-content: center; }
  .tp-jnl-cta-btn { justify-content: center; }
  .tp-alt-cta-btn { justify-content: center; }
}

/* ── Hero right column: centred with max-width on tablet ────────────── */
@media (min-width: 569px) and (max-width: 1024px) {
  .tp-hero-right {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}


@media (max-width: 768px) {
  .tp-footer-social-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
  }
}

/* Refined financial tools, IPO and corporate calendar panel row */
.tp-bottom-3col-section {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

/* Modern workspace ecosystem cards */
.tp-ecosystem-section {
  padding-block: clamp(2.4rem, 4vw, 3.75rem);
}

.tp-ecosystem-heading-wrap {
  margin-bottom: clamp(1.25rem, 2.2vw, 1.8rem);
}

.tp-ecosystem-title {
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.15;
}

.tp-ecosystem-subtitle {
  margin-top: .55rem;
  font-size: .94rem;
  line-height: 1.55;
}

.tp-ecosystem-grid {
  gap: clamp(.7rem, 1vw, 1rem);
}

.tp-eco-card {
  min-height: 224px;
  padding: 1.25rem 1.15rem 1rem;
  overflow: hidden;
  border-radius: 18px;
  border-color: var(--tp-border-medium);
  background: linear-gradient(155deg, var(--tp-surface-card) 0%, color-mix(in srgb, var(--tp-surface-card) 88%, var(--tp-surface-subtle)) 100%);
  box-shadow: var(--tp-shadow-md);
}

.tp-eco-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--tp-primary-green), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.tp-eco-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tp-primary-green) 38%, var(--tp-border-medium));
  box-shadow: var(--tp-shadow-lg);
}

.tp-eco-card:hover::before { opacity: 1; }

.tp-eco-icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 1.05rem;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 15px;
  box-shadow: 0 5px 14px color-mix(in srgb, currentColor 12%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tp-eco-icon-wrap svg { width: 23px; height: 23px; }
.tp-eco-card:hover .tp-eco-icon-wrap { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px color-mix(in srgb, currentColor 20%, transparent); }

.tp-eco-card-title {
  margin-bottom: .4rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.tp-eco-card-desc {
  max-width: 24ch;
  margin-bottom: .85rem;
  font-size: .8rem;
  line-height: 1.5;
}

.tp-eco-card-arrow {
  align-self: flex-end;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease !important;
  cursor: pointer;
}

.tp-eco-card-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode: High-Contrast, Vibrant Borders and Accents */
/* Light Mode: High-Contrast, Vibrant Borders and Accents */
html:not([data-theme="dark"]) .tp-eco-card-arrow.green,
html[data-theme="light"] .tp-eco-card-arrow.green {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1.5px solid #6ee7b7 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}

html:not([data-theme="dark"]) .tp-eco-card-arrow.blue,
html[data-theme="light"] .tp-eco-card-arrow.blue {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1.5px solid #93c5fd !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

html:not([data-theme="dark"]) .tp-eco-card-arrow.purple,
html[data-theme="light"] .tp-eco-card-arrow.purple {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1.5px solid #c4b5fd !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2) !important;
}

html:not([data-theme="dark"]) .tp-eco-card-arrow.orange,
html[data-theme="light"] .tp-eco-card-arrow.orange {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1.5px solid #fcd34d !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2) !important;
}

html:not([data-theme="dark"]) .tp-eco-card-arrow.pink,
html[data-theme="light"] .tp-eco-card-arrow.pink {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1.5px solid #fda4af !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2) !important;
}

html:not([data-theme="dark"]) .tp-eco-card-arrow.indigo,
html[data-theme="light"] .tp-eco-card-arrow.indigo {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border: 1.5px solid #a5b4fc !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
}

/* Dark Mode: Vivid Neon-Tints & Ambient Glow */
html[data-theme="dark"] .tp-eco-card-arrow.green {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .tp-eco-card-arrow.blue {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #60a5fa !important;
  border: 1.5px solid rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] .tp-eco-card-arrow.purple {
  background: rgba(139, 92, 246, 0.16) !important;
  color: #a78bfa !important;
  border: 1.5px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25) !important;
}

html[data-theme="dark"] .tp-eco-card-arrow.orange {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="dark"] .tp-eco-card-arrow.pink {
  background: rgba(244, 63, 94, 0.16) !important;
  color: #fb7185 !important;
  border: 1.5px solid rgba(244, 63, 94, 0.5) !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25) !important;
}

html[data-theme="dark"] .tp-eco-card-arrow.indigo {
  background: rgba(99, 102, 241, 0.16) !important;
  color: #818cf8 !important;
  border: 1.5px solid rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25) !important;
}

/* Hover Micro-Animation: Solid Vibrant Fill & Smooth Slide */
.tp-eco-card:hover .tp-eco-card-arrow {
  transform: translateX(4px) scale(1.1) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow svg {
  transform: translateX(2px);
}

.tp-eco-card:hover .tp-eco-card-arrow.green {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow.blue {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.55) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow.purple {
  background: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow.orange {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow.pink {
  background: #ec4899 !important;
  color: #ffffff !important;
  border-color: #ec4899 !important;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55) !important;
}

.tp-eco-card:hover .tp-eco-card-arrow.indigo {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55) !important;
}

[data-theme="dark"] .tp-eco-card { border-color: rgba(148,163,184,.15); }
[data-theme="light"] .tp-eco-card { border-color: #e2e9ef; }

@media (max-width: 768px) {
  .tp-ecosystem-section { padding-block: 1.75rem; }
  .tp-ecosystem-heading-wrap { margin-bottom: 1rem; }
  .tp-ecosystem-title { font-size: 1.45rem; }
  .tp-ecosystem-subtitle { margin-top: .4rem; font-size: .84rem; }
  .tp-ecosystem-grid { gap: .7rem; }
  .tp-eco-card { min-height: 178px; aspect-ratio: auto; padding: .95rem .85rem .8rem; border-radius: 15px; }
  .tp-eco-icon-wrap { width: 42px; height: 42px; margin-bottom: .8rem; border-radius: 13px; }
  .tp-eco-icon-wrap svg { width: 21px; height: 21px; }
  .tp-eco-card-title { font-size: .92rem; }
  .tp-eco-card-desc { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-eco-card, .tp-eco-card::before, .tp-eco-icon-wrap, .tp-eco-card-arrow { transition: none; }
}

.tp-bottom-3col-grid {
  align-items: stretch;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.tp-bottom-3col-grid > .tp-panel-card {
  min-width: 0;
  min-height: 292px;
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  border-radius: 18px;
  border-color: var(--tp-border-medium);
  background: linear-gradient(160deg, var(--tp-surface-card), var(--tp-surface-elevated));
  box-shadow: var(--tp-shadow-md);
}

.tp-bottom-3col-grid > .tp-panel-card:hover {
  border-color: color-mix(in srgb, var(--tp-primary-green) 30%, var(--tp-border-medium));
  box-shadow: var(--tp-shadow-lg);
}

.tp-bottom-3col-grid .tp-panel-header {
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--tp-border-subtle);
}

.tp-bottom-3col-grid .tp-panel-title {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  letter-spacing: -.035em;
}

.tp-bottom-3col-grid .tp-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--tp-primary-green);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tp-bottom-3col-grid .tp-view-all-link:hover { color: var(--tp-primary-green-hover); }

.tp-tools-subgrid { gap: .65rem; }

.tp-tool-mini-card {
  min-height: 126px;
  justify-content: center;
  gap: .2rem;
  padding: .85rem .5rem;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--tp-surface-subtle), color-mix(in srgb, var(--tp-surface-subtle) 72%, var(--tp-surface-card)));
}

.tp-tool-mini-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tp-primary-green) 55%, var(--tp-border-medium));
  box-shadow: var(--tp-shadow-md);
}

.tp-tool-mini-card .tp-tool-icon-circle {
  width: 42px;
  height: 42px;
  margin-bottom: .35rem;
}

.tp-tool-title-lbl {
  max-width: 10ch;
  font-size: .76rem;
  line-height: 1.35;
}

.tp-ipo-list, .tp-cal-list { gap: .65rem; }

.tp-ipo-row-item, .tp-cal-row-item {
  min-height: 68px;
  gap: .6rem;
  padding: .8rem;
  border-radius: 13px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tp-ipo-row-item:hover, .tp-cal-row-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tp-primary-green) 42%, var(--tp-border-medium));
  background: color-mix(in srgb, var(--tp-surface-subtle) 78%, var(--tp-primary-green-light));
  box-shadow: var(--tp-shadow-sm);
}

.tp-ipo-left, .tp-cal-left { min-width: 0; }
.tp-ipo-left > div:last-child, .tp-cal-left > div:last-child { min-width: 0; }
.tp-ipo-name, .tp-cal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ipo-dates, .tp-cal-date { margin-top: .2rem; font-variant-numeric: tabular-nums; }
.tp-ipo-right { flex: 0 0 auto; }
.tp-ipo-price { white-space: nowrap; font-size: .82rem; }
.tp-ipo-status-badge, .tp-cal-badge { border-radius: 999px; padding: .22rem .55rem; white-space: nowrap; }
.tp-cal-avatar, .tp-ipo-avatar { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--tp-border-subtle); }

[data-theme="dark"] .tp-bottom-3col-grid > .tp-panel-card {
  background: linear-gradient(155deg, #0e1b2e 0%, #0b1728 100%);
  border-color: rgba(148, 163, 184, .16);
}

[data-theme="light"] .tp-bottom-3col-grid > .tp-panel-card {
  background: linear-gradient(155deg, #fff 0%, #f8fbfd 100%);
  border-color: #e1e9ef;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .tp-bottom-3col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0.85rem !important; }
  .tp-bottom-3col-grid > .tp-panel-card { min-width: 0 !important; }
  .tp-bottom-3col-grid > .tp-panel-card:last-child { grid-column: auto !important; }
  .tp-bottom-3col-grid > .tp-panel-card:last-child .tp-cal-list { display: flex !important; flex-direction: column !important; }
}

@media (max-width: 768px) {
  .tp-bottom-3col-grid { gap: .9rem; }
  .tp-bottom-3col-grid > .tp-panel-card { min-height: 0; padding: 1rem; border-radius: 16px; }
  .tp-tools-subgrid { gap: .6rem; }
  .tp-tool-mini-card { min-height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-bottom-3col-grid > .tp-panel-card,
  .tp-tool-mini-card,
  .tp-ipo-row-item,
  .tp-cal-row-item { transition: none; }
}

/* Refined typography for the Market Movers and Financial Insights panels */
.tp-bottom-3col-grid .tp-tools-subgrid {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.tp-bottom-3col-grid .tp-tool-mini-card {
  min-height: 60px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  text-align: left;
  border-radius: 12px;
  background: var(--tp-surface-subtle);
  box-shadow: none;
}

.tp-bottom-3col-grid .tp-tool-mini-card:hover {
  transform: translateX(2px);
  box-shadow: none;
}

.tp-bottom-3col-grid .tp-tool-icon-circle {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, currentColor 12%, transparent);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.tp-bottom-3col-grid .tp-tool-mini-card:hover .tp-tool-icon-circle {
  transform: scale(1.08);
  box-shadow: 0 4px 14px color-mix(in srgb, currentColor 26%, transparent);
}

.tp-bottom-3col-grid .tp-tool-copy {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.tp-bottom-3col-grid .tp-tool-title-lbl {
  max-width: none;
  font-size: .82rem;
  line-height: 1.25;
}

.tp-bottom-3col-grid .tp-tool-description {
  color: var(--tp-text-muted);
  font-size: .69rem;
  line-height: 1.3;
}

.tp-bottom-3col-grid .tp-row-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tp-text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-bottom-3col-grid .tp-row-arrow svg {
  width: 13px;
  height: 13px;
  display: block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html:not([data-theme="dark"]) .tp-bottom-3col-grid .tp-row-arrow,
html[data-theme="light"] .tp-bottom-3col-grid .tp-row-arrow {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.tp-bottom-3col-grid .tp-tool-mini-card:hover .tp-row-arrow {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

html:not([data-theme="dark"]) .tp-bottom-3col-grid .tp-tool-mini-card:hover .tp-row-arrow,
html[data-theme="light"] .tp-bottom-3col-grid .tp-tool-mini-card:hover .tp-row-arrow {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.16);
}

.tp-view-all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  vertical-align: middle;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-view-all-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
}

.tp-view-all-link:hover .tp-view-all-arrow {
  transform: translateX(3px);
}

.tp-bottom-3col-grid .tp-ipo-row-item,
.tp-bottom-3col-grid .tp-cal-row-item {
  min-height: 60px;
  padding: .65rem .75rem;
  background: var(--tp-surface-subtle);
}

.tp-bottom-3col-grid .tp-cal-list {
  gap: .5rem;
}

.tp-bottom-3col-grid .tp-cal-row-item {
  min-height: 56px;
  padding: .5rem .65rem;
}

.tp-bottom-3col-grid .tp-cal-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-bottom-3col-grid .tp-ipo-status-badge.closed,
.tp-bottom-3col-grid .tp-ipo-status-badge.listed {
  background: var(--tp-primary-blue-light);
  color: var(--tp-primary-blue);
}

.tp-bottom-3col-grid .tp-preview-empty {
  display: flex;
  min-height: 204px;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed var(--tp-border-medium);
  border-radius: 12px;
  color: var(--tp-text-muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.tp-bottom-3col-grid .tp-tool-mini-card:focus-visible,
.tp-bottom-3col-grid .tp-ipo-row-item:focus-visible,
.tp-bottom-3col-grid .tp-cal-row-item:focus-visible,
.tp-bottom-3col-grid .tp-view-all-link:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 3px;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .tp-bottom-3col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .tp-bottom-3col-grid > .tp-panel-card { min-width: 0 !important; }
  .tp-bottom-3col-grid > .tp-panel-card:last-child { grid-column: auto !important; }
  .tp-bottom-3col-grid > .tp-panel-card:last-child .tp-cal-list { display: flex !important; flex-direction: column !important; }
}

@media (max-width: 768px) {
  .tp-bottom-3col-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-bottom-3col-grid > .tp-panel-card:last-child { grid-column: auto; }
  .tp-bottom-3col-grid .tp-panel-header { margin-bottom: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-bottom-3col-grid .tp-row-arrow { transition: none; }
}

/* Bottom dashboard cards: reference-matched icon headers and IPO brand marks */
.tp-bottom-3col-grid .tp-panel-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: .85rem;
  min-width: 0;
}

.tp-bottom-3col-grid .tp-panel-heading-group {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.tp-bottom-3col-grid .tp-panel-heading-icon {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
}

.tp-bottom-3col-grid .tp-panel-heading-icon svg {
  width: 25px;
  height: 25px;
}

.tp-bottom-3col-grid .tp-panel-heading-icon.tools {
  color: #36e3d0;
  background: linear-gradient(145deg, rgba(13, 148, 136, .35), rgba(8, 47, 73, .75));
  border-color: rgba(45, 212, 191, .22);
}

.tp-bottom-3col-grid .tp-panel-heading-icon.ipo {
  color: #c4b5fd;
  background: linear-gradient(145deg, rgba(79, 70, 229, .8), rgba(67, 56, 202, .56));
  border-color: rgba(129, 140, 248, .28);
}

.tp-bottom-3col-grid .tp-panel-heading-icon.calendar {
  color: #a7f3d0;
  background: linear-gradient(145deg, rgba(5, 150, 105, .75), rgba(6, 78, 59, .8));
  border-color: rgba(52, 211, 153, .26);
}

.tp-bottom-3col-grid .tp-panel-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-bottom-3col-grid .tp-panel-heading-copy .tp-panel-title {
  margin: 0;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}

.tp-bottom-3col-grid .tp-panel-subtitle {
  margin: .2rem 0 0;
  color: var(--tp-text-muted);
  font-size: .77rem;
  line-height: 1.35;
}

.tp-bottom-3col-grid .tp-view-all-link {
  flex: 0 0 auto;
  color: var(--tp-primary-blue);
  font-size: .83rem;
}

.tp-bottom-3col-grid .tp-ipo-row-item {
  min-height: 56px;
  padding: .35rem .6rem;
}

.tp-bottom-3col-grid .tp-ipo-list {
  gap: .5rem;
}

.tp-bottom-3col-grid .tp-ipo-logo-frame {
  position: relative;
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  background: #fff;
}

.tp-bottom-3col-grid .tp-ipo-company-logo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}

.tp-bottom-3col-grid .tp-ipo-logo-frame.fusion {
  border-color: #172033;
  background: #05070d;
}

.tp-bottom-3col-grid .tp-ipo-logo-frame.fusion .tp-ipo-company-logo {
  transform: scale(2.1);
  background: #05070d;
}

.tp-bottom-3col-grid .tp-ipo-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #1d4ed8;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.tp-bottom-3col-grid .tp-ipo-logo-fallback.fusion {
  color: #174f72;
  background: linear-gradient(145deg, #f8fbff 0%, #e5f5f7 100%);
}

.tp-bottom-3col-grid .tp-ipo-logo-fallback.parle {
  color: #a52231;
  background: linear-gradient(145deg, #fff9f1 0%, #fce8e6 100%);
}

.tp-bottom-3col-grid .tp-ipo-logo-fallback.twinkle {
  color: #176746;
  background: linear-gradient(145deg, #f4fbf5 0%, #dcf1e2 100%);
}

.tp-bottom-3col-grid .tp-ipo-company-copy { min-width: 0; }
.tp-bottom-3col-grid .tp-ipo-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.tp-bottom-3col-grid .tp-ipo-dates { margin-top: .18rem; }
.tp-bottom-3col-grid .tp-ipo-status-badge.closed { background: rgba(100,116,139,.13); color: #64748b; }
.tp-bottom-3col-grid .tp-ipo-status-badge.listed { background: rgba(37,99,235,.11); color: #2563eb; }
.tp-bottom-3col-grid .tp-ipo-status-badge.pending-verification { background: rgba(245,158,11,.12); color: #b45309; }

.tp-bottom-3col-grid .tp-ipo-logo-frame .tp-stock-logo-box {
  box-shadow: none !important;
}

[data-theme="dark"] .tp-bottom-3col-grid > .tp-panel-card {
  border-color: rgba(56, 115, 166, .28);
  background: linear-gradient(150deg, #091a2d 0%, #071626 100%);
}

[data-theme="light"] .tp-bottom-3col-grid .tp-panel-subtitle {
  color: #64748b;
}

@media (max-width: 480px) {
  .tp-bottom-3col-grid .tp-panel-header {
    align-items: flex-start;
  }

  .tp-bottom-3col-grid .tp-panel-heading-group {
    gap: .6rem;
  }

  .tp-bottom-3col-grid .tp-panel-heading-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .tp-bottom-3col-grid .tp-panel-heading-icon svg {
    width: 22px;
    height: 22px;
  }

  .tp-bottom-3col-grid .tp-panel-subtitle {
    font-size: .69rem;
  }

  .tp-bottom-3col-grid .tp-view-all-link {
    font-size: .75rem;
  }
}

.tp-hub-movers-section {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

.tp-movers-unified-title,
.tp-hub-unified-title {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.tp-movers-unified-subtitle,
.tp-hub-unified-subtitle {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.45;
}

.tp-movers-unified-body .tp-movers-table th {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.tp-movers-unified-body .tp-movers-title,
.tp-movers-unified-body .tp-movers-price-val,
.tp-movers-unified-body .tp-movers-chg-val,
.tp-hub-panel .tp-article-headline {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-feature-settings: "tnum" 1;
}

.tp-movers-unified-body .tp-movers-title { font-size: .87rem; font-weight: 650; letter-spacing: -.015em; }
.tp-movers-unified-body .tp-movers-price-val { font-size: .89rem !important; font-weight: 650 !important; letter-spacing: -.015em; }
.tp-movers-unified-body .tp-movers-chg-val { font-size: .75rem; font-weight: 700; }
.tp-movers-unified-footer .tp-view-all-link { font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif); font-size: .8rem; font-weight: 700; }

.tp-hub-tab-btn {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.tp-hub-panel .tp-article-headline {
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: -.012em;
  line-height: 1.45;
}

.tp-hub-panel .tp-article-cat-pill {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .055em;
}

.tp-hub-panel .tp-article-time {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: .69rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tp-hub-view-all { font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif); font-size: .77rem; font-weight: 700; }

@media (max-width: 860px) {
  .tp-movers-unified-title, .tp-hub-unified-title { font-size: 1.08rem; }
  .tp-hub-panel .tp-article-headline { font-size: .84rem; }
}

/* Homepage composition: compact fintech dashboard inspired by the supplied reference */
.tp-home-root {
  font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.tp-hero-section {
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(1rem, 1.65vw, 1.55rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.9rem);
}

.tp-hero-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 83% 22%, rgba(37,99,235,.12), transparent 42%),
    radial-gradient(ellipse at 18% 100%, rgba(16,185,129,.08), transparent 40%),
    linear-gradient(180deg, transparent 76%, rgba(16,185,129,.035));
}

.tp-hero-title {
  max-width: none;
  margin-bottom: .9rem;
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(2.05rem, 2.55vw, 2.45rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.tp-hero-subtitle {
  max-width: 60ch;
  margin-bottom: 1.15rem;
  font-size: .98rem;
  line-height: 1.65;
  letter-spacing: -.01em;
}

.tp-hero-actions { gap: .75rem; margin-bottom: 1.15rem; }
.tp-btn-hero-primary, .tp-btn-hero-secondary { min-height: 46px; padding: .7rem 1.15rem; font-size: .88rem; }
.tp-hero-trust-row { gap: .75rem 1.25rem; }
.tp-trust-badge-item { font-size: .78rem; }

.tp-ws-preview-card {
  padding: .9rem;
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(2,8,23,.15);
}

.tp-ws-tabs { gap: .25rem; margin-bottom: .55rem; }
.tp-ws-tab-btn { min-height: 31px; padding: .38rem .55rem; font-size: .71rem; }
.tp-rs-panel { padding-top: .55rem; }
.tp-rs-header { margin-bottom: .4rem; }
.tp-rs-company-name { font-size: .82rem; }
.tp-rs-price { font-size: 1.03rem; }
.tp-rs-chart-wrap { margin-bottom: .35rem; }
.tp-rs-chart-svg { height: 48px; max-height: 48px; }
.tp-rs-period-row { margin-top: .25rem; }
.tp-rs-period-chip { padding: .1rem .38rem; font-size: .62rem; }
.tp-rs-range-section { margin-bottom: .38rem; }
.tp-rs-range-header { margin-bottom: .28rem; font-size: .6rem; }
.tp-rs-range-track { height: 4px; }
.tp-rs-metrics-grid { margin-bottom: .4rem; }
.tp-rs-metric { padding: .34rem .4rem; }
.tp-rs-metric-lbl { font-size: .58rem; }
.tp-rs-metric-val { font-size: .78rem; }
.tp-rs-cta-btn { min-height: 36px; padding-block: .5rem; font-size: .77rem; }

.tp-snapshot-section { padding-top: 1rem; padding-bottom: 1.25rem; }
.tp-section-header-row { margin-bottom: .8rem; }
.tp-section-title { font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif); font-size: 1.12rem; font-weight: 750; letter-spacing: -.035em; }
.tp-snapshot-card { min-height: 0; padding: .62rem .65rem .42rem; border-radius: 12px; }
.tp-snapshot-card .tp-snap-name { margin-bottom: .25rem; font-size: .66rem; }
.tp-snapshot-card .tp-snap-val { margin-bottom: .15rem; font-size: .94rem; }
.tp-snapshot-card .tp-snap-chg { font-size: .68rem; }
.tp-snapshot-card .tp-snap-sparkline { height: 23px; margin-top: .28rem; }

.tp-ecosystem-section { padding-block: 1.25rem; }
.tp-ecosystem-heading-wrap { margin-bottom: 1rem; }
.tp-ecosystem-title { font-size: 1.25rem; }
.tp-ecosystem-subtitle { margin-top: .35rem; font-size: .82rem; }
.tp-eco-card { min-height: 192px; padding: 1rem .95rem .8rem; border-radius: 15px; }
.tp-eco-icon-wrap { width: 42px; height: 42px; margin-bottom: .75rem; }
.tp-eco-icon-wrap svg { width: 21px; height: 21px; }
.tp-eco-card-title { font-size: .9rem; }
.tp-eco-card-desc { font-size: .73rem; }

.tp-hub-movers-section { padding-top: 1.25rem; padding-bottom: 1.4rem; }
.tp-bottom-3col-section { padding-top: 1.1rem; padding-bottom: 1.5rem; }
.tp-ai-section { padding-top: .35rem !important; padding-bottom: 1.35rem !important; }
.tp-community-section { padding-top: .9rem; padding-bottom: 1.5rem; }

[data-theme="dark"] .tp-hero-section {
  background: linear-gradient(120deg, #071426 0%, #08172b 56%, #071426 100%);
}

[data-theme="dark"] .tp-hero-section::before {
  background:
    radial-gradient(ellipse at 82% 24%, rgba(37,99,235,.18), transparent 43%),
    radial-gradient(ellipse at 12% 100%, rgba(16,185,129,.12), transparent 40%),
    linear-gradient(180deg, transparent 65%, rgba(16,185,129,.055));
}

[data-theme="dark"] .tp-ws-preview-card {
  border-color: rgba(96,165,250,.18);
  background: linear-gradient(155deg, #0e1c31 0%, #0a1628 100%);
  box-shadow: 0 16px 38px rgba(0,0,0,.36), 0 0 35px rgba(37,99,235,.07);
}

[data-theme="dark"] .tp-snapshot-section,
[data-theme="dark"] .tp-hub-movers-section,
[data-theme="dark"] .tp-bottom-3col-section,
[data-theme="dark"] .tp-community-section { background: transparent; }

[data-theme="light"] .tp-hero-section {
  background: linear-gradient(125deg, #f7fbff 0%, #f4faf9 60%, #f1f7fc 100%);
}

@media (min-width: 1025px) {
  /* Give the live research preview enough room to read like a real workspace. */
  .tp-hero-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(1.35rem, 2.4vw, 2.25rem);
  }
  .tp-hero-left { max-width: 600px; }
  .tp-hero-right { width: 100%; max-width: 850px; justify-self: end; }
  .tp-ws-preview-card {
    padding: clamp(1.05rem, 1.5vw, 1.4rem);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .04);
  }
  .tp-ws-tabs { gap: .4rem; margin-bottom: .8rem; }
  .tp-ws-tab-btn { min-height: 36px; padding: .45rem .75rem; font-size: .78rem; }
  .tp-rs-panel { padding-top: .7rem; }
  .tp-rs-header { gap: .8rem; margin-bottom: .65rem; }
  .tp-rs-avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
  .tp-rs-stock-left { gap: .7rem; }
  .tp-rs-company-name { max-width: 220px; font-size: .96rem; }
  .tp-rs-signal-badge { padding: .2rem .48rem; font-size: .67rem; }
  .tp-rs-badges-row { gap: .4rem; }
  .tp-rs-badge { padding: .18rem .48rem; font-size: .7rem; }
  .tp-rs-price { font-size: 1.28rem; }
  .tp-rs-change { font-size: .82rem; }
  .tp-rs-chart-wrap { margin-bottom: .55rem; }
  .tp-rs-chart-svg { height: 70px; max-height: 70px; }
  .tp-rs-period-row { gap: .4rem; margin-top: .35rem; }
  .tp-rs-period-chip { padding: .2rem .55rem; font-size: .7rem; }
  .tp-rs-range-section { margin-bottom: .65rem; }
  .tp-rs-range-header { margin-bottom: .35rem; font-size: .68rem; }
  .tp-rs-range-center { font-size: .7rem; }
  .tp-rs-range-track { height: 6px; }
  .tp-rs-metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .65rem; border-radius: 12px; }
  .tp-rs-metric { padding: .58rem .62rem; }
  .tp-rs-metric-lbl { margin-bottom: .25rem; font-size: .67rem; }
  .tp-rs-metric-val { font-size: .9rem; }
  .tp-rs-metric-ctx { margin-top: .16rem; font-size: .62rem; }
  .tp-rs-cta-btn { min-height: 44px; padding: .7rem 1rem; border-radius: 12px; font-size: .87rem; }
}

/* Laptop framing: preserve the roomy preview proportions without crowding copy. */
@media (min-width: 1025px) and (max-width: 1440px) {
  .tp-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.2vw, 2rem);
  }
  .tp-ws-preview-card {
    height: 496px;
    min-height: 496px;
    box-sizing: border-box;
  }
}

/* Consistent full-height workspace states across Research, Paper, Journal and Alerts. */
@media (min-width: 1025px) {
  .tp-ws-preview-card {
    display: flex;
    flex-direction: column;
  }

  .tp-rs-panel,
  .tp-pt-panel,
  .tp-jnl-panel,
  .tp-alt-panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .tp-rs-cta-btn,
  .tp-jnl-cta-btn,
  .tp-alt-cta-btn {
    min-height: 46px;
    margin-top: auto;
    border-radius: 12px;
    font-size: .88rem;
  }

  /* Keep paper-trading information grouped, with its primary action at the foot. */
  .tp-pt-capital-row { order: 1; margin-bottom: 1rem; }
  .tp-pt-trade-section { order: 2; margin-bottom: .85rem; }
  .tp-pt-stats-row { order: 3; }
  .tp-pt-cta-btn {
    order: 4;
    min-height: 46px;
    margin-top: auto;
    margin-bottom: 0;
    border-radius: 12px;
    font-size: .88rem;
  }

  .tp-jnl-header-row,
  .tp-alt-header-row { margin-bottom: 1rem; }
  .tp-jnl-guest-info,
  .tp-alt-alert-item,
  .tp-pt-trade-card { border-radius: 12px; }
  .tp-jnl-guest-info { padding: .8rem .9rem; line-height: 1.55; }
  .tp-jnl-guest-copy {
    flex: 1;
    min-width: 0;
    max-width: 72ch;
    font-size: .84rem;
  }
  .tp-jnl-feature-list { gap: .55rem; margin-bottom: 1rem; }
  .tp-jnl-feature-item { font-size: .82rem; }
  .tp-alt-alert-item { padding: .65rem .8rem; }
  .tp-alt-demo-row { gap: .45rem; margin-bottom: .8rem; }
}

@media (max-width: 1024px) {
  .tp-hero-section { padding-top: 1.25rem; padding-bottom: 1.4rem; }
  .tp-hero-title { font-size: clamp(2rem, 6vw, 2.7rem); }
  .tp-rs-chart-svg { height: 66px; max-height: 66px; }
}

@media (max-width: 768px) {
  .tp-hero-section { padding-top: 1rem; padding-bottom: 1.15rem; }
  .tp-hero-title { font-size: clamp(1.9rem, 8vw, 2.35rem); line-height: 1.1; }
  .tp-hero-subtitle { margin-bottom: .8rem; font-size: .88rem; }
  .tp-hero-actions { gap: .55rem; margin-bottom: .85rem; }
  .tp-btn-hero-primary { min-height: 46px; }
  .tp-ws-preview-card { padding: .75rem; }
  .tp-snapshot-section { padding-block: 1rem; }
  .tp-ecosystem-section { padding-block: 1.1rem; }
  .tp-eco-card { min-height: 168px; padding: .85rem .8rem .7rem; }
  .tp-eco-icon-wrap { width: 38px; height: 38px; margin-bottom: .65rem; }
  .tp-hub-movers-section { padding-block: 1rem; }
  .tp-bottom-3col-section { padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-rs-chart-line { animation: none; stroke-dashoffset: 0; }
}

/* Keep the full homepage, header, and footer on the font already loaded by the site. */
body.tp-home-page {
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--tp-font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Calm, consistent typography and neutral card framing across the homepage. */
.tp-home-root {
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-font-heading: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--tp-font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tp-movers-unified-card,
.tp-hub-unified-card {
  border: 1px solid var(--tp-border-subtle);
  border-top-width: 1px;
  background-image: none;
}

[data-theme="dark"] .tp-movers-unified-card,
[data-theme="dark"] .tp-hub-unified-card {
  border-color: rgba(148, 163, 184, .16);
}

[data-theme="light"] .tp-movers-unified-card,
[data-theme="light"] .tp-hub-unified-card {
  border-color: #e2e8f0;
}

.tp-hub-tab-bar {
  gap: .45rem;
  padding: .7rem 1.1rem;
}

.tp-hub-tab-btn {
  min-height: 40px;
  gap: .55rem;
  padding: .42rem .78rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.tp-hub-tab-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 7px;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-muted);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tp-hub-tab-icon svg { width: 14px; height: 14px; display: block; }

.tp-hub-tab-btn:hover:not(.active) {
  border-color: var(--tp-border-medium);
  background: var(--tp-surface-card);
}

.tp-hub-tab-btn.active {
  border-color: rgba(37, 99, 235, .18);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .22);
}

.tp-hub-tab-btn.active .tp-hub-tab-icon {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

[data-theme="dark"] .tp-hub-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}

.tp-hub-tab-btn:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .tp-hub-tab-bar { gap: .3rem; padding-inline: .75rem; }
  .tp-hub-tab-btn { gap: .4rem; padding-inline: .65rem; }
}

/* Keep View All paired with the Financial Insights title. */
.tp-hub-unified-header {
  flex-wrap: nowrap;
  align-items: center;
}

.tp-hub-unified-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-hub-unified-title-block > div:last-child { min-width: 0; }

.tp-hub-view-all {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

@media (max-width: 420px) {
  .tp-hub-unified-header { gap: .5rem; padding-inline: .8rem; }
  .tp-hub-unified-title-block { gap: .55rem; }
  .tp-hub-unified-icon { width: 34px; height: 34px; }
  .tp-hub-unified-title { font-size: .98rem; }
  .tp-hub-unified-subtitle { font-size: .65rem; }
  .tp-hub-view-all { padding: .28rem .5rem; font-size: .68rem; }
}

/* Compact editorial thumbnails for the five latest published articles. */
.tp-hub-panel .tp-article-list { gap: .15rem; }

.tp-hub-panel .tp-article-row {
  display: grid;
  grid-template-columns: 20px 76px minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  min-height: 76px;
  padding: .55rem .45rem;
}

.tp-hub-panel .tp-article-idx {
  width: auto;
  padding-top: 0;
  text-align: center;
}

.tp-hub-panel .tp-article-thumb {
  position: relative;
  width: 76px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 9px;
  background: var(--tp-surface-subtle);
  color: var(--tp-text-subtle);
}

.tp-hub-panel .tp-article-thumb-fallback {
  width: 20px;
  height: 20px;
}

.tp-hub-panel .tp-article-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.tp-hub-panel .tp-article-row:hover .tp-article-thumb img { transform: scale(1.04); }
.tp-hub-panel .tp-article-meta-row { gap: .5rem; margin-bottom: .25rem; }
.tp-hub-panel .tp-article-headline { line-height: 1.4; }

@media (max-width: 768px) {
  .tp-hub-panel .tp-article-row,
  .tp-hub-panel .tp-article-row:nth-child(n+4) {
    display: grid !important;
    grid-template-columns: 18px 64px minmax(0, 1fr);
    gap: .55rem;
    min-height: 68px;
    padding-inline: .25rem;
  }
  .tp-hub-panel .tp-article-thumb { width: 64px; height: 48px; border-radius: 8px; }
  .tp-hub-panel .tp-article-headline { font-size: .8rem; }
}

/* Editorial treatment for the Market News feed (filters are intentionally absent). */
.tp-hub-panel .tp-news-terminal-list {
  gap: .32rem;
}

.tp-hub-panel .tp-news-terminal-row {
  position: relative;
  padding: .58rem 2rem .62rem .75rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 12px;
  background: var(--tp-surface-subtle);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tp-hub-panel .tp-news-terminal-row::after {
  content: "↗";
  position: absolute;
  top: 50%;
  right: .8rem;
  color: var(--tp-text-subtle);
  font-size: .9rem;
  transform: translateY(-50%);
  transition: color .18s ease, transform .18s ease;
}

.tp-hub-panel .tp-news-terminal-row:hover {
  border-color: var(--tp-border-medium);
  background: color-mix(in srgb, var(--tp-surface-subtle) 72%, var(--tp-surface-card));
  box-shadow: var(--tp-shadow-sm);
  transform: translateY(-1px);
}

.tp-hub-panel .tp-news-terminal-row:hover::after {
  color: var(--tp-primary-green);
  transform: translate(2px, -50%);
}

.tp-hub-panel .tp-news-meta-line {
  gap: .5rem;
  margin-bottom: .32rem;
  font-size: .68rem;
  line-height: 1.35;
}

.tp-hub-panel .tp-news-meta-line > span:nth-child(2),
.tp-hub-panel .tp-news-meta-line > span:nth-child(4) { display: none; }

.tp-hub-panel .tp-news-cat-tag {
  padding: .14rem .48rem;
  border: 1px solid color-mix(in srgb, var(--tp-primary-green) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tp-primary-green) 9%, transparent);
  color: var(--tp-primary-green);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .045em;
}

.tp-hub-panel .tp-news-terminal-headline {
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.tp-hub-panel .tp-news-terminal-row:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .tp-hub-panel .tp-news-terminal-row { padding: .62rem 1.8rem .65rem .7rem; border-radius: 10px; }
  .tp-hub-panel .tp-news-terminal-row:nth-child(4) { display: flex !important; }
  .tp-hub-panel .tp-news-terminal-headline { font-size: .81rem; }
}

/* More editorial, cover-led book cards with a compact footprint. */
.tp-hub-panel .tp-books-compact-list {
  gap: .55rem;
  justify-content: flex-start;
}

.tp-hub-panel .tp-book-item {
  gap: .62rem;
  padding: .72rem .8rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 13px;
  background: var(--tp-surface-subtle);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tp-hub-panel .tp-book-item:hover {
  border-color: color-mix(in srgb, #8b5cf6 28%, var(--tp-border-medium));
  background: color-mix(in srgb, var(--tp-surface-subtle) 78%, var(--tp-surface-card));
  box-shadow: var(--tp-shadow-sm);
  transform: translateY(-1px);
}

.tp-book-card-main {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
}

.tp-book-cover {
  position: relative;
  width: 66px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--tp-border-medium);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(139, 92, 246, .18), var(--tp-surface-card));
  color: #8b5cf6;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .12);
}

.tp-book-cover-fallback { width: 22px; height: 22px; }

.tp-book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tp-book-copy { min-width: 0; }
.tp-hub-panel .tp-book-cat-badge { border-radius: 999px; padding: .14rem .48rem; }
.tp-hub-panel .tp-book-title { margin: .3rem 0 .16rem; font-size: .86rem; line-height: 1.38; }
.tp-hub-panel .tp-book-author { margin-bottom: .3rem; font-size: .68rem; }
.tp-hub-panel .tp-book-desc { font-size: .72rem; line-height: 1.45; }

.tp-hub-panel .tp-book-action-row {
  min-height: 36px;
  padding-top: .5rem;
  border-top: 1px solid var(--tp-border-subtle);
}

.tp-hub-panel .tp-btn-book-action {
  min-height: 32px;
  padding: .36rem .72rem;
  border-radius: 8px;
  font-size: .72rem;
}

@media (max-width: 420px) {
  .tp-book-card-main { grid-template-columns: 56px minmax(0, 1fr); gap: .65rem; }
  .tp-book-cover { width: 56px; height: 76px; }
}

/* Refined AI prompt banner. */
.tp-ai-connected-banner {
  padding: clamp(1.1rem, 2vw, 1.7rem);
  border: 1px solid var(--tp-border-medium);
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tp-primary-blue) 5%, var(--tp-surface-card)), var(--tp-surface-card) 56%, color-mix(in srgb, var(--tp-primary-green) 5%, var(--tp-surface-card)));
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

[data-theme="dark"] .tp-ai-connected-banner {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(120deg, #101d33 0%, #0e1b2d 58%, #0b2028 100%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.tp-ai-banner-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.tp-ai-banner-left { gap: 1rem; }

.tp-ai-banner-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, #2563eb, #6d4aff);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .24);
}

.tp-ai-banner-title {
  gap: .55rem;
  margin-bottom: .28rem;
  font-size: 1.22rem;
  font-weight: 760;
  letter-spacing: -.035em;
}

.tp-ai-beta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: .12rem .5rem;
  border: 1px solid rgba(37, 99, 235, .24);
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: var(--tp-primary-blue);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .02em;
}

[data-theme="dark"] .tp-ai-beta-tag { color: #93c5fd; }

.tp-ai-banner-sub {
  max-width: 38ch;
  font-size: .86rem;
  line-height: 1.55;
}

.tp-ai-banner-right { gap: .7rem; }

.tp-ai-banner-input-box {
  min-height: 52px;
}

.tp-ai-banner-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.tp-ai-banner-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.tp-ai-banner-pills-row { gap: .45rem; }

.tp-ai-suggest-label {
  margin-right: .15rem;
  color: var(--tp-text-subtle);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.tp-ai-prompt-pill {
  min-height: 34px;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tp-surface-card) 88%, var(--tp-primary-blue-light));
  font-size: .75rem;
  font-weight: 600;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.tp-ai-prompt-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--tp-shadow-sm);
}

.tp-ai-prompt-pill:focus-visible,
.tp-ai-banner-send-btn:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .tp-ai-banner-grid { gap: 1rem; }
  .tp-ai-banner-sub { max-width: none; }
}

@media (max-width: 480px) {
  .tp-ai-connected-banner { padding: 1rem; border-radius: 16px; }
  .tp-ai-banner-left { align-items: flex-start; gap: .75rem; }
  .tp-ai-banner-icon { width: 42px; height: 42px; border-radius: 12px; }
  .tp-ai-banner-title { font-size: 1.08rem; }
  .tp-ai-banner-pills-row { gap: .4rem; }
  .tp-ai-suggest-label { flex-basis: 100%; }
  .tp-ai-prompt-pill { min-height: 32px; padding-inline: .62rem; font-size: .72rem; }
}

/* Community cards: polished, compact callouts for Telegram and the newsletter. */
.tp-community-section .tp-community-grid { align-items: stretch; gap: 1.15rem; }
.tp-community-section .tp-comm-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 210px;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  gap: 1.1rem;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--tp-border-subtle) 78%, #38bdf8 22%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tp-surface-card) 88%, #0ea5e9 12%), var(--tp-surface-card) 72%);
  box-shadow: 0 12px 30px rgba(2, 8, 23, .09), inset 0 1px rgba(255,255,255,.035);
}
.tp-community-section .tp-comm-card.newsletter {
  background: linear-gradient(145deg, color-mix(in srgb, var(--tp-surface-card) 87%, #7c3aed 13%), var(--tp-surface-card) 72%);
  border-color: color-mix(in srgb, var(--tp-border-subtle) 78%, #8b5cf6 22%);
}
.tp-comm-content, .tp-comm-card form { position: relative; z-index: 1; }
.tp-comm-heading { display: flex; align-items: flex-start; gap: .85rem; max-width: 92%; }
.tp-comm-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; box-shadow: 0 7px 16px rgba(2,8,23,.18); }
.tp-comm-icon svg { width: 24px; height: 24px; fill: currentColor; }
.tp-comm-icon-telegram { background: linear-gradient(145deg, #38bdf8, #0878df); }
.tp-comm-icon-news { background: linear-gradient(145deg, #a78bfa, #6338e8); }
.tp-community-section .tp-comm-title { margin: .08rem 0 .35rem; font-size: clamp(1rem, 1.15vw, 1.2rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.3; }
.tp-comm-card.telegram .tp-comm-title span { color: #38bdf8; }
.tp-community-section .tp-comm-desc { max-width: 620px; margin: 0; font-size: .91rem; line-height: 1.55; }
.tp-comm-telegram-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: fit-content; min-height: 48px; padding: .75rem 1.15rem; border-radius: 13px; background: linear-gradient(100deg, #10b981, #05a879); color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; box-shadow: 0 8px 18px rgba(16,185,129,.2); transition: transform .18s ease, box-shadow .18s ease; }
.tp-comm-telegram-cta svg { width: 18px; height: 18px; fill: currentColor; }
.tp-comm-telegram-cta:hover { transform: translateY(-2px); box-shadow: 0 11px 24px rgba(16,185,129,.29); }
.tp-comm-news-art { position: absolute; z-index: 0; width: 112px; height: 112px; right: 18px; top: 8px; color: #8b5cf6; opacity: .11; fill: currentColor; pointer-events: none; }
.tp-comm-news-art rect { fill: currentColor; }
.tp-comm-telegram-art { position: absolute; z-index: 0; width: 150px; height: 120px; right: 18px; bottom: 10px; overflow: visible; color: #38bdf8; opacity: .48; pointer-events: none; }
.tp-comm-telegram-art path:first-child { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 4 6; }
.tp-comm-telegram-art circle { fill: currentColor; }
.tp-comm-telegram-art .tp-comm-art-plane { fill: currentColor; }
.tp-community-section .tp-newsletter-input-group { gap: .65rem; margin-bottom: .7rem; }
.tp-community-section .tp-newsletter-input { min-width: 0; min-height: 48px; padding-inline: 1rem; border-radius: 13px; background: color-mix(in srgb, var(--tp-surface-input) 90%, transparent); }
.tp-community-section .tp-newsletter-input:focus { border-color: var(--tp-primary-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tp-primary-blue) 18%, transparent); }
.tp-community-section .tp-newsletter-btn { min-height: 48px; padding-inline: 1.15rem; border-radius: 13px; background: linear-gradient(100deg, #2872f0, #1760df); font-weight: 750; box-shadow: 0 8px 18px rgba(37,99,235,.2); }
.tp-community-section .tp-newsletter-btn:hover { filter: brightness(1.08); }
.tp-community-section .tp-comm-card form label { position: relative; z-index: 1; gap: .45rem !important; line-height: 1.45; }
.tp-community-section .tp-comm-card form label input { accent-color: var(--tp-primary-blue); }
[data-theme="dark"] .tp-community-section .tp-comm-card { box-shadow: 0 16px 36px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035); }
@media (max-width: 768px) {
  .tp-community-section .tp-comm-card { min-height: 0; padding: 1.1rem; border-radius: 17px; }
  .tp-comm-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
  .tp-comm-icon svg { width: 24px; height: 24px; }
  .tp-comm-heading { max-width: 100%; gap: .75rem; }
  .tp-community-section .tp-comm-title { font-size: 1.05rem; }
  .tp-community-section .tp-comm-desc { font-size: .84rem; }
  .tp-comm-telegram-art { right: 4px; bottom: 7px; width: 100px; opacity: .28; }
  .tp-comm-news-art { right: -9px; width: 88px; opacity: .08; }
}
@media (max-width: 480px) {
  .tp-community-section .tp-newsletter-input-group { flex-wrap: wrap; }
  .tp-community-section .tp-newsletter-input { flex-basis: 100%; }
  .tp-community-section .tp-newsletter-btn { flex: 1; }
  .tp-community-section .tp-comm-card form label { font-size: .68rem !important; align-items: flex-start !important; }
}

/* Premium homepage hero: full-bleed market atmosphere with a real research preview. */
.tp-home-root { background: var(--tp-bg-main); }
.tp-hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(.85rem, 1.4vw, 1.4rem) clamp(1.25rem, 2.2vw, 2rem);
  background: var(--tp-bg-main);
}
.tp-hero-section::before,
.tp-hero-section::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; }
.tp-hero-section::before {
  background: radial-gradient(ellipse at 76% 46%, rgba(23,105,255,.13), transparent 42%), radial-gradient(ellipse at 16% 86%, rgba(0,199,232,.085), transparent 45%);
}
.tp-hero-section::after {
  background: linear-gradient(180deg, transparent 68%, var(--tp-bg-main) 100%);
}
.tp-hero-market-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; min-height: 520px; color: #00c7e8; opacity: .72; pointer-events: none; }
.tp-hero-chart-grid path { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .055; }
.tp-hero-candles { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-opacity: .24; }
.tp-hero-wave-line { fill: none; stroke: url(#tpHeroWave); stroke-width: 2; }
.tp-hero-wave-glow { fill: none; stroke: url(#tpHeroWave); stroke-width: 12; opacity: .13; filter: blur(5px); }
.tp-hero-section .tp-home-wrap { position: relative; z-index: 1; width: min(100%, 1440px); max-width: 1440px; }
.tp-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4.2vw, 5rem); align-items: center; }
.tp-hero-left { max-width: 900px; }
.tp-hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; margin-bottom: 1rem; padding: .52rem .85rem; border: 1px solid rgba(16,185,129,.23); border-radius: 999px; background: rgba(16,185,129,.1); color: #10d5a0; font-size: .8rem; font-weight: 700; letter-spacing: .005em; }
.tp-hero-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-hero-title { max-width: 900px; margin: 0 0 1.05rem; font-size: clamp(2.65rem, 3.35vw, 4.15rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.tp-hero-title-line, .tp-hero-title-rest { display: block; }
.tp-hero-title-accent { display: inline-block; white-space: nowrap; background: linear-gradient(95deg, #2681ff 4%, #00c7e8 95%); color: transparent; -webkit-background-clip: text; background-clip: text; }
.tp-hero-subtitle { max-width: 62ch; margin-bottom: 1.5rem; font-size: clamp(1rem, 1.17vw, 1.18rem); line-height: 1.62; }
.tp-hero-actions { gap: .85rem; margin-bottom: 1.65rem; }
.tp-hero-actions .tp-btn-hero-primary,
.tp-hero-actions .tp-btn-hero-secondary { min-height: 54px; padding: .88rem 1.35rem; border-radius: 13px; font-size: .94rem; font-weight: 720; }
.tp-hero-actions .tp-btn-hero-primary { gap: .7rem; background: linear-gradient(105deg, #1769ff 0%, #087fe8 45%, #00c98d 100%); box-shadow: 0 9px 24px rgba(23,105,255,.23); }
.tp-hero-actions .tp-btn-hero-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 28px rgba(23,105,255,.32); }
.tp-hero-actions .tp-btn-hero-primary svg,
.tp-hero-actions .tp-btn-hero-secondary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-hero-actions .tp-btn-hero-secondary { gap: .55rem; border-color: color-mix(in srgb, var(--tp-border-medium) 78%, #60a5fa 22%); background: color-mix(in srgb, var(--tp-surface-card) 72%, transparent); box-shadow: none; }
.tp-hero-actions .tp-btn-hero-secondary:hover { border-color: var(--tp-primary-blue); }
.tp-hero-actions a:focus-visible,
.tp-ws-tab-btn:focus-visible,
.tp-rs-period-chip:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
.tp-hero-trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: .65rem; }
.tp-trust-badge-item { display: flex; align-items: center; gap: .65rem; min-width: 0; font-size: .8rem; }
.tp-trust-badge-item > span:last-child { display: grid; gap: .12rem; min-width: 0; }
.tp-trust-badge-item strong { overflow: hidden; color: var(--tp-text-primary); font-size: .8rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.tp-trust-badge-item small { color: var(--tp-text-muted); font-size: .7rem; line-height: 1.35; }
.tp-trust-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 16%, transparent); border-radius: 13px; background: color-mix(in srgb, currentColor 11%, transparent); }
.tp-trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-trust-stocks { color: #00c7e8; }.tp-trust-free { color: #00d69a; }.tp-trust-practice { color: #f4a900; }.tp-trust-learn { color: #9d6bff; }
.tp-ws-preview-card { width: 100%; overflow: hidden; min-height: 520px; padding: clamp(1.15rem, 1.65vw, 1.85rem); border: 1px solid rgba(75,151,220,.24); border-radius: 24px; background: color-mix(in srgb, var(--tp-surface-card) 89%, #0a2947 11%); box-shadow: 0 22px 56px rgba(2,8,23,.2), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(14px); }
.tp-ws-tabs { gap: .45rem; margin-bottom: 1.05rem; }
.tp-ws-tab-btn { min-height: 40px; padding: .5rem .8rem; border-color: rgba(148,163,184,.07); background: rgba(100,116,139,.12); font-size: .78rem; }
.tp-ws-tab-btn.active { background: linear-gradient(120deg, #1769ff, #0e5be4); box-shadow: 0 6px 16px rgba(23,105,255,.28); }
.tp-rs-panel { min-height: 0; }
.tp-rs-header { gap: .8rem; margin-bottom: .35rem; }
.tp-rs-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: linear-gradient(145deg, #ff9c18, #e85b00); box-shadow: 0 8px 18px rgba(249,115,22,.16); }
.tp-rs-company-name { max-width: 240px; font-size: .98rem; }
.tp-rs-price { font-size: clamp(1.12rem, 1.5vw, 1.45rem); font-variant-numeric: tabular-nums; }
.tp-rs-data-status { display: flex; align-items: center; gap: .4rem; margin: -.1rem 0 .55rem 3.55rem; color: var(--tp-text-subtle); font-size: .67rem; }
.tp-rs-data-status span { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.tp-rs-data-status span.is-verified { background: #10b981; }
.tp-rs-data-status span.is-unavailable { background: #94a3b8; }
.tp-movers-empty { padding: 1.15rem; text-align: center; color: var(--tp-text-muted); font-size: .82rem; line-height: 1.5; }
.tp-rs-chart-wrap { position: relative; margin-bottom: .65rem; width: 100%; }
.tp-rs-chart-svg { width: 100%; height: clamp(75px, 8vw, 104px); max-height: 104px; overflow: visible; display: block; }
.tp-rs-chart-gridline { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 3 4; stroke-width: 1; }
[data-theme="light"] .tp-rs-chart-gridline { stroke: rgba(0, 0, 0, .06); }
.tp-chart-scale-text { font-size: 8.5px; fill: rgba(148, 163, 184, .5); font-weight: 550; }
.tp-chart-crosshair { stroke: rgba(148, 163, 184, .45); stroke-width: 1; stroke-dasharray: 2 3; }
.tp-chart-tooltip { position: absolute; pointer-events: none; z-index: 20; transform: translateX(-50%); background: rgba(10, 20, 38, .94); border: 1px solid rgba(56, 189, 248, .35); box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 14px rgba(37, 99, 235, .25); border-radius: 9px; padding: 5px 10px; font-size: .72rem; color: #f8fafc; white-space: nowrap; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .15s ease; }
[data-theme="light"] .tp-chart-tooltip { background: rgba(255, 255, 255, .96); border-color: rgba(37, 99, 235, .25); box-shadow: 0 8px 24px rgba(15, 23, 42, .12); color: #0f172a; }
.tp-rs-chart-empty { display: grid; min-height: 80px; place-items: center; color: var(--tp-text-subtle); font-size: .78rem; text-align: center; }
.tp-rs-period-row { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(15, 23, 42, .65); border: 1px solid rgba(255, 255, 255, .08); margin-top: .55rem; }
[data-theme="light"] .tp-rs-period-row { background: rgba(241, 245, 249, .9); border-color: rgba(203, 213, 225, .7); }
.tp-rs-period-chip { min-width: 38px; padding: .24rem .62rem; border-radius: 7px; font-size: .73rem; font-weight: 620; color: #94a3b8; background: transparent; border: none; cursor: pointer; user-select: none; transition: all .18s cubic-bezier(.4, 0, .2, 1); outline: none; }
[data-theme="light"] .tp-rs-period-chip { color: #64748b; }
.tp-rs-period-chip:hover { color: #ffffff; background: rgba(255, 255, 255, .09); }
[data-theme="light"] .tp-rs-period-chip:hover { color: #0f172a; background: rgba(0, 0, 0, .05); }
.tp-rs-period-chip.active { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; color: #ffffff !important; font-weight: 750; box-shadow: 0 2px 10px rgba(37, 99, 235, .45); }
.tp-rs-period-chip:disabled { cursor: not-allowed; opacity: .42; }
.tp-rs-range-header { font-size: .69rem; }
.tp-rs-range-center { text-align: center; }
.tp-rs-range-unavailable { width: 100%; height: 100%; border-radius: inherit; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(148,163,184,.18) 5px 7px); }
.tp-rs-metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .85rem; border-radius: 13px; }
.tp-rs-metric { padding: .68rem .72rem; }
.tp-rs-metric-val { overflow: hidden; font-size: clamp(.75rem, .94vw, .96rem); text-overflow: ellipsis; }
.tp-rs-metric-ctx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-rs-cta-btn { min-height: 48px; border-radius: 13px; background: linear-gradient(100deg, #1769ff, #7137ed); box-shadow: 0 8px 20px rgba(23,105,255,.2); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.tp-rs-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 11px 25px rgba(23,105,255,.29); }
[data-theme="dark"] .tp-hero-section { background: #070e1b; }
[data-theme="dark"] .tp-hero-section::before { background: radial-gradient(ellipse at 78% 43%, rgba(23,105,255,.19), transparent 43%), radial-gradient(ellipse at 16% 91%, rgba(0,199,232,.11), transparent 47%); }
[data-theme="dark"] .tp-hero-section::after { background: linear-gradient(180deg, transparent 72%, #070e1b 100%); }
[data-theme="dark"] .tp-hero-market-art { opacity: .8; }
[data-theme="dark"] .tp-ws-preview-card { border-color: rgba(56,189,248,.22); background: rgba(6,20,37,.83); box-shadow: 0 22px 56px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.045); }
[data-theme="light"] .tp-hero-section { background: #f8fafc; }
[data-theme="light"] .tp-hero-section::before { background: radial-gradient(ellipse at 78% 43%, rgba(23,105,255,.09), transparent 44%), radial-gradient(ellipse at 16% 91%, rgba(0,199,232,.08), transparent 48%); }
[data-theme="light"] .tp-hero-section::after { background: linear-gradient(180deg, transparent 68%, #f8fafc 100%); }
[data-theme="light"] .tp-hero-market-art { opacity: .3; }
[data-theme="light"] .tp-ws-preview-card { border-color: #d5e1ee; background: rgba(255,255,255,.91); box-shadow: 0 18px 48px rgba(15,23,42,.1); }
@media (min-width: 1025px) and (max-width: 1440px) {
  .tp-hero-grid { gap: clamp(1.25rem, 2.2vw, 2.5rem); }
  .tp-hero-title { font-size: clamp(2.55rem, 3.6vw, 3.45rem); }
  .tp-hero-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-ws-preview-card { height: 520px; min-height: 520px; padding: 1.1rem; }
}
@media (max-width: 1024px) {
.tp-hero-section { padding-block: .7rem 1.5rem; }
  .tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .tp-hero-left { max-width: 800px; }
  .tp-hero-title { max-width: 820px; font-size: clamp(2.65rem, 6.5vw, 4rem); }
  .tp-hero-trust-row { max-width: 820px; }
  .tp-hero-market-art { min-height: 100%; }
  .tp-ws-preview-card { min-height: 0; }
}
@media (max-width: 768px) {
  .tp-hero-section { padding-block: .55rem 1.4rem; }
  /* Keep the hero copy aligned with the logo in the responsive header. */
  .tp-hero-section .tp-home-wrap { padding-inline: .85rem; }
  .tp-hero-grid { gap: 1.2rem; }
  .tp-hero-left { width: 100%; max-width: none; text-align: center; }
  .tp-hero-eyebrow { margin-bottom: .8rem; padding: .42rem .68rem; font-size: .72rem; }
  .tp-hero-eyebrow { margin-inline: auto; }
  .tp-hero-title { width: 100%; max-width: 640px; margin: 0 auto .8rem; font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1.08; text-align: center; }
  .tp-hero-title-line, .tp-hero-title-rest { display: block; }
  .tp-hero-title-accent { display: inline; white-space: normal; }
  .tp-hero-subtitle { max-width: 60ch; margin: 0 auto 1rem; font-size: .95rem; text-align: center; }
  .tp-hero-actions { justify-content: center; margin-bottom: 1.1rem; }
  .tp-hero-actions .tp-btn-hero-primary,
  .tp-hero-actions .tp-btn-hero-secondary { display: inline-flex !important; }
  .tp-hero-actions .tp-btn-hero-primary,
  .tp-hero-actions .tp-btn-hero-secondary { width: auto; min-height: 48px; padding: .75rem 1rem; font-size: .85rem; }
  .tp-hero-trust-row { width: min(100%, 500px); margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .tp-trust-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .tp-trust-icon svg { width: 19px; height: 19px; }
  .tp-trust-badge-item strong { font-size: .76rem; }
  .tp-trust-badge-item small { font-size: .67rem; }
  .tp-ws-preview-card { padding: .95rem; border-radius: 18px; }
  .tp-ws-tabs { flex-wrap: nowrap; overflow-x: auto; padding: .1rem .1rem .35rem; scrollbar-width: thin; }
  .tp-ws-tab-btn { min-height: 38px; }
  .tp-rs-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-rs-metric:nth-child(2) { border-right: 0; }
  .tp-rs-metric:nth-child(-n+2) { border-bottom: 1px solid var(--tp-border-subtle); }
  .tp-hero-market-art { width: 150%; left: -20%; opacity: .38; }
  [data-theme="light"] .tp-hero-market-art { opacity: .18; }
}

@media (max-width: 350px) {
  .tp-hero-section .tp-home-wrap { padding-inline: .5rem; }
}
@media (max-width: 480px) {
  .tp-hero-actions { width: min(100%, 400px); align-items: stretch; flex-direction: column; margin-inline: auto; }
  .tp-hero-actions .tp-btn-hero-primary,
  .tp-hero-actions .tp-btn-hero-secondary { width: 100%; }
  .tp-ws-preview-card { padding: .78rem; }
  .tp-ws-tab-btn { padding-inline: .58rem; font-size: .7rem; }
  .tp-rs-header { align-items: flex-start; }
  .tp-rs-stock-left { gap: .55rem; }
  .tp-rs-avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .tp-rs-name-row { flex-wrap: wrap; }
  .tp-rs-company-name { max-width: 145px; font-size: .82rem; }
  .tp-rs-signal-badge { font-size: .58rem; }
  .tp-rs-price { font-size: .91rem; }
  .tp-rs-data-status { margin-left: 3rem; }
  .tp-rs-range-header { display: grid; grid-template-columns: 1fr 1fr; row-gap: .25rem; font-size: .6rem; }
  .tp-rs-range-center { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .tp-rs-range-lbl:last-child { text-align: right; }
  .tp-rs-metric { padding: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-hero-actions a, .tp-rs-cta-btn, .tp-rs-period-chip { transition: none !important; }
}

/* Refined hero workspace tabs; keeps the preview card footprint unchanged. */
.tp-ws-tabs {
  align-items: center;
  gap: .45rem;
}

.tp-ws-tab-btn {
  min-height: 40px;
  padding: .5rem .8rem;
  gap: .48rem;
  border: 1px solid rgba(148, 163, 184, .14);
  background: color-mix(in srgb, var(--tp-surface-subtle) 88%, transparent);
  color: var(--tp-text-muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -.012em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tp-ws-tab-btn[data-tab="research"] { --ws-tab-accent: #38bdf8; }
.tp-ws-tab-btn[data-tab="paper"] { --ws-tab-accent: #a78bfa; }
.tp-ws-tab-btn[data-tab="journal"] { --ws-tab-accent: #34d399; }
.tp-ws-tab-btn[data-tab="alerts"] { --ws-tab-accent: #fbbf24; }

.tp-ws-tab-btn svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  flex: 0 0 15px;
  color: var(--ws-tab-accent, currentColor);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-ws-tab-btn:hover:not(.active) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ws-tab-accent, #60a5fa) 38%, transparent);
  background: color-mix(in srgb, var(--ws-tab-accent, #60a5fa) 8%, var(--tp-surface-subtle));
  color: var(--tp-text-primary);
}

.tp-ws-tab-btn.active {
  border-color: rgba(147, 197, 253, .32);
  background: linear-gradient(135deg, #2877fa 0%, #1559df 100%);
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 105, 255, .25), inset 0 1px rgba(255, 255, 255, .18);
}

.tp-ws-tab-btn.active svg { color: #fff; }
.tp-ws-tab-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }

@media (max-width: 480px) {
  .tp-ws-tab-btn { min-height: 38px; padding-inline: .58rem; font-size: .7rem; }
  .tp-ws-tab-btn svg { width: 14px; height: 14px; flex-basis: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-ws-tab-btn { transition: none; }
  .tp-ws-tab-btn:hover:not(.active) { transform: none; }
}

/* Paper trading preview: premium visual treatment inside the existing card footprint. */
.tp-ws-preview-card.is-paper-active {
  border-color: rgba(59, 130, 246, .32);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(37, 99, 235, .10), transparent 42%),
    linear-gradient(155deg, rgba(11, 29, 51, .98), rgba(6, 22, 41, .98));
  box-shadow: 0 22px 56px rgba(2, 8, 23, .24), 0 0 30px rgba(37, 99, 235, .07), inset 0 1px rgba(255, 255, 255, .045);
}

[data-theme="light"] .tp-ws-preview-card.is-paper-active {
  border-color: rgba(37, 99, 235, .24);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(37, 99, 235, .055), transparent 46%),
    linear-gradient(155deg, #fff, #f6faff);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10), inset 0 1px rgba(255, 255, 255, .9);
}

.tp-ws-tab-btn[data-tab="paper"].active {
  border-color: rgba(56, 189, 248, .48);
  background: linear-gradient(125deg, #1877f8 0%, #145be5 100%);
  box-shadow: 0 6px 17px rgba(23, 105, 255, .27), 0 0 0 1px rgba(56, 189, 248, .08), inset 0 1px rgba(255, 255, 255, .18);
}

.tp-pt-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding-top: .9rem;
}

.tp-pt-panel::before {
  position: absolute;
  z-index: -1;
  inset: 32% 0 3.25rem;
  border-radius: 18px;
  background-image:
    radial-gradient(ellipse at 18% 72%, rgba(0, 199, 232, .09), transparent 45%),
    radial-gradient(ellipse at 76% 24%, rgba(37, 99, 235, .10), transparent 47%),
    linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px, 30px 30px;
  content: "";
  opacity: .72;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
}

.tp-pt-panel > * {
  position: relative;
  z-index: 1;
}

.tp-pt-capital-row {
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
}

.tp-pt-label {
  margin-bottom: .32rem;
  color: var(--tp-text-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .075em;
}

.tp-pt-balance {
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.045em;
}

.tp-pt-sandbox-badge {
  padding: .42rem .72rem;
  border-color: rgba(16, 214, 160, .28);
  background: rgba(16, 214, 160, .075);
  color: #10d6a0;
  font-size: .76rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.tp-pt-sandbox-dot {
  box-shadow: 0 0 0 3px rgba(16, 214, 160, .12), 0 0 12px rgba(16, 214, 160, .35);
}

.tp-pt-trade-section {
  margin-bottom: .85rem;
}

.tp-pt-trade-card {
  min-height: 82px;
  box-sizing: border-box;
  gap: .8rem;
  padding: .76rem .9rem;
  border-color: rgba(83, 151, 218, .20);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(20, 40, 64, .94), rgba(13, 31, 53, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 22px rgba(2, 8, 23, .10);
}

.tp-pt-trade-demo { opacity: 1; }

[data-theme="light"] .tp-pt-trade-card {
  border-color: #dce7f3;
  background: linear-gradient(110deg, #f0f6fd, #f8fbff);
  box-shadow: inset 0 1px #fff, 0 5px 16px rgba(15, 23, 42, .045);
}

.tp-pt-trade-left { min-width: 0; }

.tp-pt-trade-header {
  gap: .52rem;
  margin-bottom: .35rem;
}

.tp-pt-side-badge {
  padding: .25rem .55rem;
  border-radius: 7px;
  font-size: .69rem;
}

.tp-pt-side-badge.buy {
  border-color: rgba(16, 214, 160, .40);
  background: rgba(16, 214, 160, .13);
  color: #10d6a0;
}

.tp-pt-side-badge.sell {
  border-color: rgba(248, 113, 113, .35);
  background: rgba(239, 68, 68, .11);
}

.tp-pt-trade-sym {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.tp-pt-trade-name {
  max-width: clamp(90px, 13vw, 190px);
  font-size: .82rem;
}

.tp-pt-trade-detail {
  color: var(--tp-text-muted);
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
}

.tp-pt-trade-right {
  flex: 0 0 auto;
  min-width: 132px;
  box-sizing: border-box;
  padding: .48rem .68rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tp-pt-trade-right.is-gain {
  border-color: rgba(16, 214, 160, .12);
  background: rgba(16, 214, 160, .095);
}

.tp-pt-trade-right.is-loss {
  border-color: rgba(248, 113, 113, .13);
  background: rgba(239, 68, 68, .09);
}

[data-theme="light"] .tp-pt-trade-right.is-gain { background: rgba(16, 185, 129, .09); }
[data-theme="light"] .tp-pt-trade-right.is-loss { background: rgba(239, 68, 68, .07); }

.tp-pt-trade-pnl.tp-pt-gain,
.tp-pt-trade-pct.tp-pt-gain,
.tp-pt-trade-pnl.tp-pt-loss,
.tp-pt-trade-pct.tp-pt-loss {
  padding: 0;
  background: transparent;
}

.tp-pt-trade-pnl { font-size: 1.16rem; letter-spacing: -.025em; }
.tp-pt-trade-pct { margin-top: .12rem; font-size: .82rem; }

.tp-pt-trade-disclaimer {
  gap: .42rem;
  margin-top: .52rem;
  color: var(--tp-text-subtle);
  font-size: .72rem;
}

.tp-pt-cta-btn {
  min-height: 50px;
  margin-bottom: .65rem;
  padding: .82rem 1rem;
  border: 1px solid rgba(147, 197, 253, .24);
  border-radius: 13px;
  background: linear-gradient(105deg, #1769ff 0%, #1267f3 54%, #087fe8 100%);
  box-shadow: 0 9px 24px rgba(23, 105, 255, .22), inset 0 1px rgba(255, 255, 255, .16);
  font-size: .92rem;
  letter-spacing: -.012em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tp-pt-cta-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(23, 105, 255, .30), inset 0 1px rgba(255, 255, 255, .18);
}

.tp-pt-cta-btn svg:last-child {
  transition: transform .18s ease;
}

.tp-pt-cta-btn:hover svg:last-child { transform: translateX(3px); }

.tp-pt-cta-btn:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

[data-theme="light"] .tp-pt-panel::before {
  background-image:
    radial-gradient(ellipse at 18% 72%, rgba(0, 160, 190, .055), transparent 45%),
    radial-gradient(ellipse at 76% 24%, rgba(37, 99, 235, .055), transparent 47%),
    linear-gradient(rgba(100, 116, 139, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, .045) 1px, transparent 1px);
}

@media (max-width: 768px) {
  .tp-pt-panel { padding-top: .55rem; }
  .tp-pt-trade-card { min-height: 74px; padding: .66rem .72rem; }
  .tp-pt-trade-right { min-width: 116px; padding: .42rem .52rem; }
  .tp-pt-trade-pnl { font-size: 1rem; }
  .tp-pt-cta-btn { min-height: 48px; }
}

@media (max-width: 480px) {
  .tp-pt-capital-row { align-items: center; gap: .4rem; margin-bottom: .7rem; }
  .tp-pt-label { font-size: .65rem; letter-spacing: .065em; }
  .tp-pt-balance { font-size: clamp(1.25rem, 6vw, 1.55rem); }
  .tp-pt-sandbox-badge { gap: .32rem; padding: .34rem .48rem; font-size: .66rem; }
  .tp-pt-sandbox-dot { width: 6px; height: 6px; }
  .tp-pt-trade-card { min-height: 70px; gap: .45rem; padding: .6rem .62rem; border-radius: 12px; }
  .tp-pt-trade-header { gap: .34rem; }
  .tp-pt-side-badge { padding: .2rem .42rem; font-size: .62rem; }
  .tp-pt-trade-sym { font-size: .9rem; }
  .tp-pt-trade-name { max-width: clamp(58px, 20vw, 100px); font-size: .71rem; }
  .tp-pt-trade-detail { gap: .35rem; font-size: .69rem; }
  .tp-pt-trade-time { font-size: .62rem; }
  .tp-pt-trade-right { min-width: 100px; padding: .38rem .43rem; border-radius: 10px; }
  .tp-pt-trade-pnl { font-size: .91rem; }
  .tp-pt-trade-pct { font-size: .72rem; }
  .tp-pt-trade-disclaimer { margin-top: .4rem; font-size: .67rem; }
  .tp-pt-cta-btn { min-height: 46px; gap: .45rem; padding: .72rem .75rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-pt-cta-btn,
  .tp-pt-cta-btn svg:last-child,
  .tp-pt-sandbox-dot { transition: none; animation: none; }
}

/* Market Snapshot: denser verified quote cards, scaled for wide dashboards. */
.tp-snapshot-section {
  padding-block: clamp(1.35rem, 2vw, 2rem);
}

.tp-snapshot-section .tp-home-wrap {
  width: 100%;
  max-width: 1760px;
}

.tp-snapshot-section .tp-section-header-row {
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tp-snapshot-section .tp-section-title-wrap {
  min-width: 0;
  gap: .85rem;
  flex-wrap: wrap;
}

.tp-snapshot-section .tp-section-title {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 760;
  letter-spacing: -.04em;
}

.tp-snapshot-section .tp-live-pulse-badge {
  min-height: 32px;
  padding: .38rem .72rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 999px;
  background: var(--tp-surface-card);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.tp-snapshot-section .tp-live-pulse-badge.is-live {
  border-color: rgba(16, 185, 129, .22);
  background: rgba(16, 185, 129, .08);
}

.tp-snapshot-section .tp-live-pulse-badge.is-last-trade,
.tp-snapshot-section .tp-live-pulse-badge.is-unavailable {
  color: var(--tp-text-secondary);
}

.tp-snapshot-section .tp-live-pulse-dot {
  flex: 0 0 7px;
}

.tp-snapshot-section .tp-live-pulse-badge.is-last-trade .tp-live-pulse-dot,
.tp-snapshot-section .tp-live-pulse-badge.is-unavailable .tp-live-pulse-dot {
  box-shadow: none;
}

.tp-snapshot-section .tp-view-all-link {
  gap: .45rem;
  flex: 0 0 auto;
  font-weight: 700;
}

.tp-snapshot-section .tp-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .72rem;
  overflow: visible;
  padding: 0;
}

.tp-snapshot-section .tp-snapshot-card {
  position: relative;
  min-width: 0;
  min-height: 202px;
  gap: .8rem;
  padding: .95rem .85rem .8rem;
  overflow: hidden;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--tp-surface-card), var(--tp-surface-subtle));
  box-shadow: var(--tp-shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tp-snapshot-section .tp-snapshot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, .42);
  box-shadow: var(--tp-shadow-md);
}

.tp-snapshot-section .tp-snapshot-card:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 3px;
}

.tp-snapshot-section .tp-snap-card-head {
  display: flex;
  align-items: center;
  gap: .58rem;
  min-width: 0;
}

.tp-snapshot-section .tp-snap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 50%;
  background: rgba(37, 99, 235, .12);
  color: #60a5fa;
  font-size: 1.08rem;
  font-weight: 750;
}

.tp-snapshot-section .tp-snap-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-snapshot-section .tp-snap-icon-nifty-50,
.tp-snapshot-section .tp-snap-icon-sensex { color: #60a5fa; }
.tp-snapshot-section .tp-snap-icon-bank-nifty { color: #38bdf8; background: rgba(14, 165, 233, .12); }
.tp-snapshot-section .tp-snap-icon-nifty-it { color: #a78bfa; background: rgba(139, 92, 246, .12); }
.tp-snapshot-section .tp-snap-icon-nifty-midcap { color: #22d3ee; background: rgba(6, 182, 212, .12); }
.tp-snapshot-section .tp-snap-icon-gold-mcx { color: #fbbf24; background: rgba(245, 158, 11, .13); border-color: rgba(245, 158, 11, .2); }
.tp-snapshot-section .tp-snap-icon-usd-inr { color: #34d399; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .2); }
.tp-snapshot-section .tp-snap-icon-btc { color: #fb923c; background: rgba(249, 115, 22, .13); border-color: rgba(249, 115, 22, .2); }

.tp-snapshot-section .tp-snap-name-wrap {
  display: flex;
  flex-direction: column;
  gap: .16rem;
  min-width: 0;
}

.tp-snapshot-section .tp-snap-name {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--tp-text-primary);
  font-size: .75rem;
  font-weight: 720;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-snapshot-section .tp-snap-type {
  color: var(--tp-text-subtle);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tp-snapshot-section .tp-snap-card-arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
  flex: 0 0 17px;
  stroke: var(--tp-text-subtle);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease, stroke .18s ease;
}

.tp-snapshot-section .tp-snapshot-card:hover .tp-snap-card-arrow {
  transform: translateX(2px);
  stroke: var(--tp-primary-blue);
}

.tp-snapshot-section .tp-snap-card-main {
  min-width: 0;
  margin-top: auto;
}

.tp-snapshot-section .tp-snap-val {
  margin: 0 0 .38rem;
  color: var(--tp-text-primary);
  font-family: var(--tp-font-body, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(.91rem, .95vw, 1.14rem);
  font-feature-settings: "tnum" 1;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tp-snapshot-section .tp-snap-change-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .32rem .55rem;
  min-height: 20px;
}

.tp-snapshot-section .tp-snap-chg,
.tp-snapshot-section .tp-snap-pct {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-family: var(--tp-font-mono);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.tp-snapshot-section .tp-snap-chg.up,
.tp-snapshot-section .tp-snap-pct.up { color: #10b981; }
.tp-snapshot-section .tp-snap-chg.down,
.tp-snapshot-section .tp-snap-pct.down { color: #f87171; }
.tp-snapshot-section .tp-snap-chg.neutral,
.tp-snapshot-section .tp-snap-pct.neutral { color: var(--tp-text-muted); }

.tp-snapshot-section .tp-snap-card-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .45rem;
  min-height: 27px;
  padding-top: .55rem;
  border-top: 1px solid var(--tp-border-subtle);
}

.tp-snapshot-section .tp-snap-meta {
  margin: 0;
  color: var(--tp-text-muted);
  font-size: .59rem;
  font-weight: 550;
  line-height: 1.3;
}

.tp-snapshot-section .tp-snap-empty-state {
  display: flex;
  align-items: center;
  gap: .48rem;
  flex: 1;
  color: var(--tp-text-muted);
  font-size: .75rem;
  font-weight: 620;
}

.tp-snapshot-section .tp-snap-empty-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--tp-text-subtle);
  border-radius: 50%;
}

.tp-snapshot-section .tp-snapshot-card.is-unavailable {
  background: var(--tp-surface-card);
  box-shadow: none;
}

.tp-snapshot-section .tp-snapshot-card.is-unavailable .tp-snap-card-arrow {
  opacity: .55;
}

.tp-snapshot-section .tp-snapshot-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-top: .9rem;
  padding: .72rem .15rem 0;
  border-top: 1px solid var(--tp-border-subtle);
  color: var(--tp-text-muted);
  font-size: .72rem;
}

.tp-snapshot-section .tp-snapshot-update,
.tp-snapshot-section .tp-snapshot-sources {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.tp-snapshot-section .tp-snapshot-update svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: var(--tp-text-subtle);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-snapshot-section .tp-snapshot-sources strong {
  color: var(--tp-text-secondary);
  font-weight: 650;
}

@media (max-width: 1500px) {
  .tp-snapshot-section .tp-snapshot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tp-snapshot-section .tp-snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .75rem !important; }
}

@media (max-width: 768px) {
  .tp-snapshot-section { padding-block: 1.15rem; }
  .tp-snapshot-section .tp-home-wrap { padding-inline: 1rem; }
  .tp-snapshot-section .tp-section-header-row { align-items: flex-start; gap: .65rem; margin-bottom: .8rem; }
  .tp-snapshot-section .tp-section-title-wrap { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .tp-snapshot-section .tp-section-title { font-size: 1.22rem; }
  .tp-snapshot-section .tp-live-pulse-badge { min-height: 28px; padding: .32rem .55rem; font-size: .65rem; }
  .tp-snapshot-section .tp-view-all-link { margin-top: .12rem; font-size: .76rem; }
  .tp-snapshot-section .tp-snapshot-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; overflow: visible; }
  .tp-snapshot-section .tp-snapshot-card { flex: initial; min-width: 0; min-height: 166px; gap: .6rem; padding: .78rem .7rem .68rem; border-radius: 14px; }
  .tp-snapshot-section .tp-snap-card-head { gap: .45rem; }
  .tp-snapshot-section .tp-snap-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: .98rem; }
  .tp-snapshot-section .tp-snap-icon svg { width: 16px; height: 16px; }
  .tp-snapshot-section .tp-snap-name { font-size: .7rem; }
  .tp-snapshot-section .tp-snap-type { font-size: .51rem; }
  .tp-snapshot-section .tp-snap-card-arrow { width: 14px; height: 14px; flex-basis: 14px; }
  .tp-snapshot-section .tp-snap-val { margin-bottom: .3rem; font-size: clamp(.85rem, 4vw, 1.03rem); }
  .tp-snapshot-section .tp-snap-chg,
  .tp-snapshot-section .tp-snap-pct { font-size: .59rem; }
  .tp-snapshot-section .tp-snap-meta { font-size: .55rem; }
  .tp-snapshot-section .tp-snapshot-footnote { align-items: flex-start; flex-direction: column; gap: .48rem; font-size: .67rem; }
}

@media (max-width: 360px) {
  .tp-snapshot-section .tp-snapshot-card { padding-inline: .58rem; }
  .tp-snapshot-section .tp-snap-icon { flex-basis: 27px; width: 27px; height: 27px; }
  .tp-snapshot-section .tp-snap-card-arrow { display: none; }
  .tp-snapshot-section .tp-snap-change-row { gap: .25rem .35rem; }
  .tp-snapshot-section .tp-snap-chg,
  .tp-snapshot-section .tp-snap-pct { font-size: .54rem; }
}

[data-theme="dark"] .tp-snapshot-section .tp-snapshot-card {
  border-color: rgba(71, 99, 133, .28);
  background: linear-gradient(155deg, #0e1b2d 0%, #0a1525 100%);
}

[data-theme="dark"] .tp-snapshot-section .tp-snapshot-card:hover {
  border-color: rgba(59, 130, 246, .5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), 0 0 0 1px rgba(59, 130, 246, .06);
}

[data-theme="dark"] .tp-snapshot-section .tp-snapshot-card.is-unavailable {
  background: linear-gradient(155deg, #0c1727 0%, #0a1422 100%);
}

/* Mobile polish: Insight tabs are cleanly handled in dedicated mobile section below */
@media (max-width: 768px) {

  .tp-home-page .tp-ws-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: .25rem;
  }

  .tp-home-page .tp-ws-tab-btn {
    gap: .22rem;
    padding-inline: .35rem;
    font-size: .72rem;
  }

  .tp-home-page .tp-ws-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
  }
}

@media (max-width: 360px) {
  .tp-home-page .tp-ws-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .tp-home-page .tp-ws-tab-btn {
    flex: 1 1 calc(50% - .25rem);
    min-width: 0;
    justify-content: center;
  }
}

/* Premium Paper Trading, Journal, and Alerts previews.
   These rules stay inside the homepage workspace card and do not alter its footprint. */
.tp-home-page .tp-ws-preview-card.is-journal-active {
  border-color: rgba(16, 185, 129, .28);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(16, 185, 129, .09), transparent 46%),
    linear-gradient(155deg, rgba(11, 29, 51, .98), rgba(6, 22, 41, .98));
  box-shadow: 0 22px 56px rgba(2, 8, 23, .24), 0 0 30px rgba(16, 185, 129, .055), inset 0 1px rgba(255, 255, 255, .045);
}

.tp-home-page .tp-ws-preview-card.is-alerts-active {
  border-color: rgba(249, 115, 22, .28);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(249, 115, 22, .09), transparent 46%),
    linear-gradient(155deg, rgba(11, 29, 51, .98), rgba(6, 22, 41, .98));
  box-shadow: 0 22px 56px rgba(2, 8, 23, .24), 0 0 30px rgba(249, 115, 22, .05), inset 0 1px rgba(255, 255, 255, .045);
}

[data-theme="light"] .tp-home-page .tp-ws-preview-card.is-journal-active {
  border-color: rgba(5, 150, 105, .23);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(16, 185, 129, .055), transparent 46%),
    linear-gradient(155deg, #fff, #f5fcf9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .09), inset 0 1px rgba(255, 255, 255, .9);
}

[data-theme="light"] .tp-home-page .tp-ws-preview-card.is-alerts-active {
  border-color: rgba(234, 88, 12, .22);
  background-image:
    radial-gradient(ellipse at 78% 18%, rgba(249, 115, 22, .055), transparent 46%),
    linear-gradient(155deg, #fff, #fff9f5);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .09), inset 0 1px rgba(255, 255, 255, .9);
}

.tp-home-page .tp-pt-panel,
.tp-home-page .tp-jnl-panel,
.tp-home-page .tp-alt-panel { min-width: 0; }

.tp-home-page .tp-pt-capital-row,
.tp-home-page .tp-jnl-header-row,
.tp-home-page .tp-alt-header-row { margin-bottom: .7rem; }

.tp-home-page .tp-pt-label,
.tp-home-page .tp-jnl-label,
.tp-home-page .tp-alt-label {
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .075em;
}

.tp-home-page .tp-pt-label { color: #2563eb; }
[data-theme="dark"] .tp-home-page .tp-pt-label { color: #60a5fa; }
.tp-home-page .tp-jnl-label { color: #047857; }
[data-theme="dark"] .tp-home-page .tp-jnl-label { color: #34d399; }
.tp-home-page .tp-alt-label { color: #c2410c; }
[data-theme="dark"] .tp-home-page .tp-alt-label { color: #fdba74; }

.tp-home-page .tp-preview-empty-state {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: .65rem;
  row-gap: .12rem;
  padding: .72rem .8rem;
  border-style: solid;
  border-radius: 13px;
  text-align: left;
}

.tp-home-page .tp-preview-empty-state .tp-pt-empty-icon,
.tp-home-page .tp-preview-empty-state .tp-jnl-empty-icon,
.tp-home-page .tp-preview-empty-state .tp-alt-empty-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
}

.tp-home-page .tp-preview-empty-state .tp-pt-empty-text,
.tp-home-page .tp-preview-empty-state .tp-jnl-empty-text,
.tp-home-page .tp-preview-empty-state .tp-alt-empty-text {
  grid-column: 2;
  margin: 0;
  color: var(--tp-text-primary);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.tp-home-page .tp-preview-empty-state .tp-pt-empty-sub,
.tp-home-page .tp-preview-empty-state .tp-jnl-empty-sub,
.tp-home-page .tp-preview-empty-state .tp-alt-empty-sub {
  grid-column: 2;
  color: var(--tp-text-muted);
  font-size: .68rem;
  line-height: 1.4;
}

.tp-home-page .tp-pt-empty-state.tp-preview-empty-state,
.tp-home-page .tp-jnl-empty-state.tp-preview-empty-state,
.tp-home-page .tp-alt-empty-state.tp-preview-empty-state { margin-bottom: .55rem; }

.tp-home-page .tp-preview-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  min-width: 0;
  margin: 0 0 .65rem;
}

.tp-home-page .tp-preview-feature {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  padding: .4rem .35rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 11px;
  background: color-mix(in srgb, var(--tp-surface-subtle) 80%, transparent);
  color: var(--tp-text-secondary);
  font-size: .65rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
}

.tp-home-page .tp-preview-feature svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-home-page .tp-pt-feature-row .tp-preview-feature svg { color: #2563eb; }
[data-theme="dark"] .tp-home-page .tp-pt-feature-row .tp-preview-feature svg { color: #60a5fa; }
.tp-home-page .tp-jnl-feature-row .tp-preview-feature svg { color: #047857; }
[data-theme="dark"] .tp-home-page .tp-jnl-feature-row .tp-preview-feature svg { color: #34d399; }

.tp-home-page .tp-pt-capital-row { order: 1; }
.tp-home-page .tp-pt-trade-section { order: 2; }
.tp-home-page .tp-pt-stats-row { order: 3; }
.tp-home-page .tp-pt-feature-row { order: 4; }
.tp-home-page .tp-pt-toolkit-section {
  order: 5;
  margin: .05rem 0 .7rem;
  padding-top: .62rem;
  border-top: 1px solid var(--tp-border-subtle);
}

.tp-home-page .tp-pt-toolkit-header {
  margin-bottom: .48rem;
  color: #2563eb;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.3;
}

[data-theme="dark"] .tp-home-page .tp-pt-toolkit-header { color: #60a5fa; }

.tp-home-page .tp-pt-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  min-width: 0;
}

.tp-home-page .tp-pt-toolkit-card {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .25rem;
  padding: .5rem .58rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 11px;
  background: color-mix(in srgb, var(--tp-surface-subtle) 84%, transparent);
  color: var(--tp-text-primary);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tp-home-page .tp-pt-toolkit-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #2563eb;
}

[data-theme="dark"] .tp-home-page .tp-pt-toolkit-icon { color: #60a5fa; }

.tp-home-page .tp-pt-toolkit-title {
  max-width: 100%;
  overflow: hidden;
  color: var(--tp-text-primary);
  font-size: .69rem;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-home-page .tp-pt-toolkit-sub {
  max-width: 100%;
  overflow: hidden;
  color: var(--tp-text-muted);
  font-size: .61rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-home-page .tp-pt-toolkit-card:focus-visible {
  outline: 2px solid var(--tp-primary-blue);
  outline-offset: 2px;
}

.tp-home-page .tp-pt-cta-btn {
  order: 6;
  min-height: 48px;
  margin-top: auto;
  margin-bottom: 0;
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 13px;
  background: linear-gradient(105deg, #155ce4, #0877d5);
  box-shadow: 0 8px 20px rgba(23, 105, 255, .2), inset 0 1px rgba(255, 255, 255, .16);
}

.tp-home-page .tp-pt-cta-btn:hover { filter: brightness(1.06); }

@media (max-width: 768px) {
  .tp-home-page .tp-pt-toolkit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tp-home-page .tp-jnl-headline {
  color: var(--tp-text-primary);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.tp-home-page .tp-jnl-win-label {
  max-width: 42ch;
  margin-top: .22rem;
  font-size: .71rem;
  line-height: 1.4;
}

.tp-home-page .tp-jnl-header-right { align-self: center; }
.tp-home-page .tp-jnl-badge-chip { font-size: .67rem; padding: .3rem .55rem; }
.tp-home-page .tp-jnl-stats-grid { margin-bottom: .55rem; }
.tp-home-page .tp-jnl-stat { padding: .5rem .58rem; }
.tp-home-page .tp-jnl-stat-val { font-size: .82rem; }
.tp-home-page .tp-jnl-stat-lbl { font-size: .61rem; }
.tp-home-page .tp-jnl-last-entry { margin-bottom: .55rem; }
.tp-home-page .tp-jnl-feature-row { margin-top: .2rem; }

.tp-home-page .tp-jnl-insights {
  margin: .1rem 0 .5rem;
}

.tp-home-page .tp-jnl-insights-heading {
  margin: 0 0 .42rem;
  color: #047857;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.3;
  text-transform: uppercase;
}

[data-theme="dark"] .tp-home-page .tp-jnl-insights-heading { color: #34d399; }

.tp-home-page .tp-jnl-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  min-width: 0;
}

.tp-home-page .tp-jnl-insight-card {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .28rem;
  padding: .52rem .62rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 11px;
  background: color-mix(in srgb, var(--tp-surface-subtle) 84%, transparent);
  color: var(--tp-text-primary);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.tp-home-page .tp-jnl-insight-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #059669;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .tp-home-page .tp-jnl-insight-card svg { stroke: #34d399; }

.tp-home-page .tp-jnl-insight-title {
  max-width: 100%;
  color: var(--tp-text-primary);
  font-size: .69rem;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tp-home-page .tp-jnl-insight-label {
  max-width: 100%;
  color: var(--tp-text-muted);
  font-size: .61rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tp-home-page .tp-jnl-insight-card:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.tp-home-page .tp-ws-preview-card.is-journal-active {
  height: auto;
  min-height: 0;
}

.tp-home-page .tp-jnl-cta-btn {
  min-height: 48px;
  margin-top: auto;
  border: 1px solid rgba(110, 231, 183, .22);
  border-radius: 13px;
  background: linear-gradient(105deg, #036c51, #047857);
  box-shadow: 0 8px 20px rgba(4, 120, 87, .18), inset 0 1px rgba(255, 255, 255, .13);
}

.tp-home-page .tp-jnl-cta-btn:hover { background: linear-gradient(105deg, #025943, #036c51); }

@media (max-width: 768px) {
  .tp-home-page .tp-jnl-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tp-home-page .tp-alt-tagline {
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.tp-home-page .tp-alt-sub {
  max-width: 44ch;
  margin-top: .22rem;
  font-size: .71rem;
  line-height: 1.4;
}

.tp-home-page .tp-alt-monitoring-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: .3rem .6rem;
  border: 1px solid rgba(234, 88, 12, .18);
  border-radius: 999px;
  background: rgba(249, 115, 22, .08);
  color: #9a3412;
  font-size: .67rem;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .tp-home-page .tp-alt-monitoring-badge {
  border-color: rgba(251, 146, 60, .24);
  background: rgba(249, 115, 22, .09);
  color: #fdba74;
}

.tp-home-page .tp-alt-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  min-width: 0;
  margin: 0 0 .65rem;
}

.tp-home-page .tp-alt-feature-tile {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: .42rem;
  row-gap: .1rem;
  min-width: 0;
  min-height: 58px;
  padding: .42rem .5rem;
  border: 1px solid var(--tp-border-subtle);
  border-radius: 11px;
  background: color-mix(in srgb, var(--tp-surface-subtle) 80%, transparent);
}

.tp-home-page .tp-alt-feature-icon {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(249, 115, 22, .11);
  color: #c2410c;
}

[data-theme="dark"] .tp-home-page .tp-alt-feature-icon { color: #fdba74; }

.tp-home-page .tp-alt-feature-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-home-page .tp-alt-feature-tile strong {
  min-width: 0;
  overflow: hidden;
  color: var(--tp-text-primary);
  font-size: .67rem;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-home-page .tp-alt-feature-tile small {
  min-width: 0;
  overflow: hidden;
  color: var(--tp-text-muted);
  font-size: .59rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-home-page .tp-alt-kpi-grid { margin-bottom: .55rem; }
.tp-home-page .tp-alt-kpi { padding: .48rem .55rem; }
.tp-home-page .tp-alt-kpi-val { font-size: .98rem; }
.tp-home-page .tp-alt-kpi-lbl { font-size: .6rem; }

.tp-home-page .tp-alt-cta-btn {
  min-height: 48px;
  border: 1px solid rgba(255, 237, 213, .2);
  border-radius: 13px;
  background: linear-gradient(105deg, #b93809, #c2410c);
  box-shadow: 0 8px 20px rgba(194, 65, 12, .18), inset 0 1px rgba(255, 255, 255, .14);
}

.tp-home-page .tp-alt-cta-btn:hover { background: linear-gradient(105deg, #9a3412, #b93809); }

@media (max-width: 640px) {
  .tp-home-page .tp-preview-feature-grid,
  .tp-home-page .tp-alt-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .tp-home-page .tp-preview-feature {
    min-height: 51px;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .3rem .12rem;
    font-size: .58rem;
    text-align: center;
  }

  .tp-home-page .tp-preview-feature svg { width: 16px; height: 16px; flex-basis: 16px; }
  .tp-home-page .tp-pt-feature-row .tp-preview-feature {
    min-height: 48px;
    padding-block: .24rem;
    font-size: .56rem;
    text-align: center;
  }
  .tp-home-page .tp-pt-feature-row .tp-preview-feature svg { width: 16px; height: 16px; flex-basis: 16px; }
  .tp-home-page .tp-pt-trade-section { margin-bottom: .55rem; }
  .tp-home-page .tp-pt-pnl-pill { gap: .22rem; margin-top: .2rem; padding: .13rem .42rem; font-size: .65rem; }
  .tp-home-page .tp-preview-empty-state { padding: .62rem .68rem; }
  .tp-home-page .tp-pt-balance { font-size: clamp(1.22rem, 5.8vw, 1.55rem); }
  .tp-home-page .tp-alt-feature-tile {
    display: flex;
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .3rem .1rem;
    text-align: center;
  }
  .tp-home-page .tp-alt-feature-icon { width: 23px; height: 23px; }
  .tp-home-page .tp-alt-feature-icon svg { width: 14px; height: 14px; }
  .tp-home-page .tp-alt-feature-tile strong {
    max-width: 100%;
    font-size: .58rem;
    text-align: center;
    white-space: normal;
  }
  .tp-home-page .tp-alt-feature-tile small { display: none; }
  .tp-home-page .tp-jnl-headline,
  .tp-home-page .tp-alt-tagline { font-size: 1.08rem; }
}

@media (max-width: 360px) {
  .tp-home-page .tp-preview-feature-grid,
  .tp-home-page .tp-alt-feature-grid { gap: .22rem; }
  .tp-home-page .tp-preview-feature { padding-inline: .06rem; font-size: .55rem; }
  .tp-home-page .tp-pt-feature-row .tp-preview-feature { font-size: .53rem; }
  .tp-home-page .tp-pt-toolkit-grid { gap: .32rem; }
  .tp-home-page .tp-pt-toolkit-card { min-height: 70px; padding-inline: .48rem; }
  .tp-home-page .tp-pt-toolkit-title { font-size: .65rem; }
  .tp-home-page .tp-pt-toolkit-sub { font-size: .58rem; }
  .tp-home-page .tp-alt-feature-tile strong { font-size: .54rem; }
}

@media (hover: hover) and (pointer: fine) {
  .tp-home-page .tp-pt-toolkit-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #3b82f6 42%, var(--tp-border-subtle));
    background: color-mix(in srgb, #3b82f6 8%, var(--tp-surface-subtle));
    box-shadow: 0 7px 16px rgba(37, 99, 235, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-home-page .tp-pt-cta-btn,
  .tp-home-page .tp-jnl-cta-btn,
  .tp-home-page .tp-alt-cta-btn,
  .tp-home-page .tp-pt-toolkit-card { transition: none; }
}

/* Light hover feedback for homepage feature highlights; transforms avoid layout shifts. */
@media (hover: hover) and (pointer: fine) {
  .tp-home-page .tp-preview-feature,
  .tp-home-page .tp-alt-feature-tile {
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  }

  .tp-home-page .tp-preview-feature svg,
  .tp-home-page .tp-alt-feature-icon,
  .tp-home-page .tp-jnl-insight-card svg {
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }

  .tp-home-page .tp-pt-feature-row .tp-preview-feature:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #3b82f6 42%, var(--tp-border-subtle));
    background: color-mix(in srgb, #3b82f6 8%, var(--tp-surface-subtle));
    box-shadow: 0 7px 16px rgba(37, 99, 235, .12);
  }

  .tp-home-page .tp-pt-feature-row .tp-preview-feature:hover svg {
    transform: translateY(-1px) scale(1.06);
  }

  .tp-home-page .tp-jnl-feature-row .tp-preview-feature:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #10b981 40%, var(--tp-border-subtle));
    background: color-mix(in srgb, #10b981 8%, var(--tp-surface-subtle));
    box-shadow: 0 7px 16px rgba(16, 185, 129, .11);
  }

  .tp-home-page .tp-jnl-feature-row .tp-preview-feature:hover svg {
    transform: translateY(-1px) scale(1.06);
  }

  .tp-home-page .tp-jnl-insight-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #10b981 42%, var(--tp-border-subtle));
    background: color-mix(in srgb, #10b981 9%, var(--tp-surface-subtle));
    box-shadow: 0 7px 16px rgba(16, 185, 129, .13);
  }

  .tp-home-page .tp-jnl-insight-card:hover svg {
    transform: translateY(-1px) scale(1.08);
  }

  .tp-home-page .tp-alt-feature-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #f97316 40%, var(--tp-border-subtle));
    background: color-mix(in srgb, #f97316 8%, var(--tp-surface-subtle));
    box-shadow: 0 7px 16px rgba(249, 115, 22, .12);
  }

  .tp-home-page .tp-alt-feature-tile:hover .tp-alt-feature-icon {
    transform: scale(1.06);
    box-shadow: 0 4px 11px rgba(249, 115, 22, .16);
  }

  .tp-home-page .tp-trust-badge-item {
    transition: transform .18s ease;
  }

  .tp-home-page .tp-trust-badge-item:hover {
    transform: translateY(-2px);
  }

  .tp-home-page .tp-trust-icon {
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }

  .tp-home-page .tp-trust-badge-item:hover .tp-trust-icon {
    transform: translateY(-1px);
    background: color-mix(in srgb, currentColor 17%, transparent);
    box-shadow: 0 6px 15px color-mix(in srgb, currentColor 20%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-home-page .tp-preview-feature,
  .tp-home-page .tp-preview-feature svg,
  .tp-home-page .tp-alt-feature-tile,
  .tp-home-page .tp-alt-feature-icon,
  .tp-home-page .tp-jnl-insight-card,
  .tp-home-page .tp-jnl-insight-card svg,
  .tp-home-page .tp-trust-badge-item,
  .tp-home-page .tp-trust-icon { transition: none; }

  .tp-home-page .tp-preview-feature:hover,
  .tp-home-page .tp-preview-feature:hover svg,
  .tp-home-page .tp-alt-feature-tile:hover,
  .tp-home-page .tp-alt-feature-tile:hover .tp-alt-feature-icon,
  .tp-home-page .tp-jnl-insight-card:hover,
  .tp-home-page .tp-jnl-insight-card:hover svg,
  .tp-home-page .tp-trust-badge-item:hover,
  .tp-home-page .tp-trust-badge-item:hover .tp-trust-icon { transform: none; }
}

/* ==========================================================================
   MOBILE-ONLY UI REDESIGN — EXACT MATCH TO REFERENCE DESIGN (<= 768px)
   Desktop & laptop styles (min-width: 769px) are 100% UNTOUCHED.
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Global Page Background & Variables for Mobile (Theme-Aware) */
  html:not([data-theme="dark"]),
  html:not([data-theme="dark"]) body,
  html:not([data-theme="dark"]) body.tp-home-page,
  html:not([data-theme="dark"]) .tp-home-root,
  html:not([data-theme="dark"]) .tp-home-wrap,
  html[data-theme="light"],
  html[data-theme="light"] body,
  html[data-theme="light"] body.tp-home-page,
  html[data-theme="light"] .tp-home-root,
  html[data-theme="light"] .tp-home-wrap {
    background-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
  }

  html[data-theme="dark"],
  html[data-theme="dark"] body,
  html[data-theme="dark"] body.tp-home-page,
  html[data-theme="dark"] .tp-home-root,
  html[data-theme="dark"] .tp-home-wrap {
    background-color: #090e17 !important;
    background: #090e17 !important;
    background-image: none !important;
    color: #f8fafc !important;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
  }

  /* Hide Desktop Rotating Marquee Ticker on Mobile */
  .market-ticker-wrapper {
    display: none !important;
  }

  /* 2. Compact Mobile Header (Theme-Aware) */
  html:not([data-theme="dark"]) .site-header,
  html[data-theme="light"] .site-header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 54px !important;
  }

  html[data-theme="dark"] .site-header {
    background: #0d1527 !important;
    background-color: #0d1527 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 54px !important;
  }

  .tp-nav-container {
    height: 54px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Brand Logo (Left Side: Only Logo) */
  .brand-logo.tp-header-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
  }

  .brand-logo-img.tp-desktop-logo,
  .tp-brand-img-wrap .tp-desktop-logo,
  .brand-logo.tp-header-brand .tp-desktop-logo,
  .brand-logo.tp-header-brand .brand-logo-img.tp-desktop-logo,
  html[data-theme="light"] .brand-logo.tp-header-brand .tp-desktop-logo,
  html[data-theme="light"] .brand-logo.tp-header-brand .brand-logo-light-theme.tp-desktop-logo,
  html[data-theme="dark"] .brand-logo.tp-header-brand .tp-desktop-logo,
  html[data-theme="dark"] .brand-logo.tp-header-brand .brand-logo-dark-theme.tp-desktop-logo,
  [data-theme="light"] .tp-desktop-logo,
  [data-theme="dark"] .tp-desktop-logo,
  .tp-desktop-logo {
    display: none !important;
  }

  html:not([data-theme="dark"]) .brand-logo.tp-header-brand .brand-logo-light-theme.tp-mobile-logo,
  html[data-theme="light"] .brand-logo.tp-header-brand .brand-logo-light-theme.tp-mobile-logo {
    display: block !important;
    height: 32px !important;
    width: auto !important;
    max-width: 155px !important;
    object-fit: contain !important;
  }

  html:not([data-theme="dark"]) .brand-logo.tp-header-brand .brand-logo-dark-theme,
  html[data-theme="light"] .brand-logo.tp-header-brand .brand-logo-dark-theme {
    display: none !important;
  }

  html[data-theme="dark"] .brand-logo.tp-header-brand .brand-logo-dark-theme.tp-mobile-logo {
    display: block !important;
    height: 32px !important;
    width: auto !important;
    max-width: 155px !important;
    object-fit: contain !important;
  }

  html[data-theme="dark"] .brand-logo.tp-header-brand .brand-logo-light-theme {
    display: none !important;
  }

  .tp-brand-tagline {
    display: none !important;
  }

  /* Right Header Controls */
  .tp-nav-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* Right Hamburger Menu Button */
  .tp-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .tp-mobile-menu-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
  }

  .tp-mobile-menu-btn:active {
    transform: scale(0.93) !important;
  }

  .tp-mobile-menu-btn svg {
    width: 19px !important;
    height: 19px !important;
    stroke: #0f172a !important;
  }

  html[data-theme="dark"] .tp-mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
  }

  html[data-theme="dark"] .tp-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  html[data-theme="dark"] .tp-mobile-menu-btn svg {
    stroke: #f8fafc !important;
  }

  .tp-nav-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .tp-nav-search-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
  }

  .tp-nav-search-btn:active {
    transform: scale(0.93) !important;
  }

  .tp-nav-search-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #0f172a !important;
    margin: 0 !important;
  }

  html[data-theme="dark"] .tp-nav-search-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
  }

  html[data-theme="dark"] .tp-nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  html[data-theme="dark"] .tp-nav-search-btn svg {
    stroke: #f8fafc !important;
  }

  .tp-nav-search-btn .tp-search-text,
  .tp-nav-search-btn .tp-search-kbd,
  .tp-nav-search-btn .tp-short-text {
    display: none !important;
  }

  .tp-nav-ai-btn {
    display: none !important;
  }

  .tp-theme-toggle {
    display: none !important;
  }

  /* Mobile Header Sign Up Button (Modern Fintech CTA - Mobile View Only) */
  .tp-mobile-nav-signup-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 0 13px !important;
    font-family: var(--tp-font-sans, "Plus Jakarta Sans", -apple-system, sans-serif) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #00b074 0%, #059669 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 176, 116, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background 0.16s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .tp-mobile-nav-signup-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 176, 116, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
  }

  .tp-mobile-nav-signup-btn:active {
    transform: scale(0.96) !important;
    box-shadow: 0 1px 3px rgba(0, 176, 116, 0.2) !important;
  }

  html[data-theme="dark"] .tp-mobile-nav-signup-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .tp-mobile-nav-signup-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }

  @media (max-width: 360px) {
    .tp-nav-actions {
      gap: 6px !important;
    }
    .tp-mobile-nav-signup-btn {
      height: 30px !important;
      padding: 0 10px !important;
      font-size: 0.75rem !important;
      border-radius: 8px !important;
    }
  }

  /* Notification Bell & Red Badge */
  .tp-mobile-notif-guest {
    display: none !important;
  }

  #tpNavNotificationWrapper,
  .tp-notif-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #tpNavNotifBellBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
    position: relative !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  #tpNavNotifBellBtn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #0f172a !important;
  }

  html[data-theme="dark"] #tpNavNotifBellBtn {
    color: #f8fafc !important;
  }

  html[data-theme="dark"] #tpNavNotifBellBtn svg {
    stroke: #f8fafc !important;
  }

  .tp-notif-badge {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    line-height: 16px !important;
    text-align: center !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4) !important;
  }

  .tp-notif-badge[style*="display: none"] {
    display: none !important;
  }

  html[data-theme="dark"] .tp-notif-badge {
    border-color: #0d1527 !important;
  }

  /* User Avatar / Profile Icon - Hidden on Mobile Header as per instruction */
  .tp-mobile-user-avatar-wrap {
    display: none !important;
  }

  .tp-mobile-user-btn {
    display: none !important;
  }

  /* 3. Mobile Hero Section (Must have overflow: visible so search dropdown is not clipped) */
  html:not([data-theme="dark"]) .tp-hero-section,
  html[data-theme="light"] .tp-hero-section {
    padding: 12px 0 6px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
    isolation: auto !important;
  }

  html[data-theme="dark"] .tp-hero-section {
    padding: 12px 0 6px !important;
    background: #090e17 !important;
    background-color: #090e17 !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
    isolation: auto !important;
  }

  .tp-hero-section::before,
  .tp-hero-section::after {
    display: none !important;
  }

  .tp-hero-market-art,
  .tp-hero-left,
  .tp-hero-right,
  .tp-hero-trust-row {
    display: none !important;
  }

  .tp-home-wrap {
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile Hero Presentation (Seamless Normal Screen) */
  html:not([data-theme="dark"]) .tp-mobile-hero-card,
  html[data-theme="light"] .tp-mobile-hero-card {
    display: block !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 6px 0 16px 0 !important;
    border: none !important;
    position: relative !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-hero-card:hover,
  html[data-theme="light"] .tp-mobile-hero-card:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html[data-theme="dark"] .tp-mobile-hero-card {
    display: block !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 6px 0 16px 0 !important;
    border: none !important;
    position: relative !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html[data-theme="dark"] .tp-mobile-hero-card:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .tp-mobile-hero-card:active {
    opacity: 0.96 !important;
  }

  .tp-m-hero-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
  }

  .tp-m-hero-text {
    flex: 1 1 58% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .tp-m-hero-eyebrow {
    font-size: 9.5px !important;
    font-weight: 750 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    padding: 3px 8.5px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 7px !important;
    line-height: 1.2 !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
  }

  .tp-mobile-hero-card:hover .tp-m-hero-eyebrow {
    background: #dbeafe !important;
  }

  .tp-m-eyebrow-pulse {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    margin-right: 5px !important;
    display: inline-block !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
  }

  html[data-theme="dark"] .tp-m-hero-eyebrow {
    background: rgba(30, 64, 175, 0.3) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.25) !important;
  }

  html[data-theme="dark"] .tp-mobile-hero-card:hover .tp-m-hero-eyebrow {
    background: rgba(30, 64, 175, 0.45) !important;
  }

  .tp-m-hero-title {
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
    font-size: 20.5px !important;
    font-weight: 850 !important;
    color: #091322 !important;
    line-height: 1.2 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.025em !important;
  }

  html[data-theme="dark"] .tp-m-hero-title {
    color: #f8fafc !important;
  }

  .tp-m-title-accent {
    color: #0284c7 !important;
    font-weight: 850 !important;
  }

  html[data-theme="dark"] .tp-m-title-accent {
    color: #38bdf8 !important;
  }

  .tp-m-hero-desc {
    font-size: 11.8px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    line-height: 1.45 !important;
    margin: 0 0 9px 0 !important;
  }

  html[data-theme="dark"] .tp-m-hero-desc {
    color: #cbd5e1 !important;
  }

  .tp-m-hero-perks {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tp-m-hero-perks::-webkit-scrollbar {
    display: none !important;
  }

  .tp-m-perk {
    font-size: 9.2px !important;
    font-weight: 700 !important;
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 2.5px 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: -0.01em !important;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease !important;
  }

  .tp-m-perk svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
  }

  .tp-m-perk:hover {
    transform: translateY(-1.5px) !important;
    background: rgba(16, 185, 129, 0.22) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
  }

  html[data-theme="dark"] .tp-m-perk {
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, 0.22) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
  }

  html[data-theme="dark"] .tp-m-perk:hover {
    background: rgba(16, 185, 129, 0.34) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  }

  .tp-m-hero-graphic {
    flex: 0 0 42% !important;
    max-width: 155px !important;
    min-width: 110px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 4px !important;
    transition: transform 0.25s ease !important;
  }

  .tp-mobile-hero-card:hover .tp-m-hero-graphic {
    transform: scale(1.025) !important;
  }

  .tp-m-hero-stock-art {
    width: 100% !important;
    height: auto !important;
    max-height: 155px !important;
    display: block !important;
    overflow: visible !important;
  }

  /* SVG Theme Adaptations */
  .tp-m-badge-card {
    transition: filter 0.2s ease !important;
  }

  .tp-mobile-hero-card:hover .tp-m-badge-card {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12)) !important;
  }
  html[data-theme="dark"] .tp-m-badge-card {
    fill: #1e293b !important;
    stroke: rgba(255, 255, 255, 0.12) !important;
  }

  html[data-theme="dark"] .tp-m-badge-text-title {
    fill: #f8fafc !important;
  }

  html[data-theme="dark"] .tp-m-badge-text-sub {
    fill: #94a3b8 !important;
  }

  html[data-theme="dark"] .tp-m-svg-screen-fill {
    fill: #0d1527 !important;
  }

  html[data-theme="dark"] .tp-m-svg-grid-line {
    stroke: #1e293b !important;
  }

  html[data-theme="dark"] .tp-m-phone-pill-bg {
    fill: #064e3b !important;
    stroke: rgba(16, 185, 129, 0.4) !important;
  }

  html[data-theme="dark"] .tp-m-phone-dock-bg {
    fill: #132238 !important;
    stroke: rgba(16, 185, 129, 0.35) !important;
  }

  /* Alternating Reliance & BTC Floating Badge Transition */
  @keyframes tpBadgeRelianceCycle {
    0%, 45% {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    50%, 95% {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-3px);
    }
    100% {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }

  @keyframes tpBadgeBtcCycle {
    0%, 45% {
      opacity: 0;
      visibility: hidden;
      transform: translateY(3px);
    }
    50%, 95% {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-3px);
    }
  }

  .tp-m-badge-reliance {
    animation: tpBadgeRelianceCycle 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  .tp-m-badge-btc {
    animation: tpBadgeBtcCycle 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  @media (prefers-reduced-motion: reduce) {
    .tp-m-badge-reliance {
      animation: none !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
    .tp-m-badge-btc {
      display: none !important;
    }
  }

  @media (max-width: 380px) {
    .tp-m-hero-text {
      flex: 1 1 60% !important;
    }
    .tp-m-hero-title {
      font-size: 18px !important;
    }
    .tp-m-hero-desc {
      font-size: 11px !important;
      margin-bottom: 7px !important;
    }
    .tp-m-hero-eyebrow {
      font-size: 8.5px !important;
      padding: 2.5px 7px !important;
    }
    .tp-m-hero-perks {
      gap: 3.5px !important;
    }
    .tp-m-perk {
      font-size: 8.8px !important;
      padding: 2px 5px !important;
      gap: 3px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }
    .tp-m-perk svg {
      width: 9px !important;
      height: 9px !important;
    }
    .tp-m-hero-graphic {
      flex: 0 0 40% !important;
      max-width: 135px !important;
      min-width: 100px !important;
    }
  }

  @media (max-width: 340px) {
    .tp-mobile-hero-card {
      padding: 4px 0 12px 0 !important;
    }
    .tp-m-hero-title {
      font-size: 16px !important;
      line-height: 1.18 !important;
    }
    .tp-m-hero-desc {
      font-size: 10px !important;
      line-height: 1.3 !important;
      margin-bottom: 5px !important;
    }
    .tp-m-hero-eyebrow {
      font-size: 8px !important;
      padding: 2px 6px !important;
      margin-bottom: 5px !important;
    }
    .tp-m-hero-perks {
      gap: 3px !important;
    }
    .tp-m-perk {
      font-size: 8px !important;
      padding: 1.5px 4.5px !important;
      gap: 2.5px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }
    .tp-m-perk svg {
      width: 8.5px !important;
      height: 8.5px !important;
    }
    .tp-m-hero-graphic {
      flex: 0 0 38% !important;
      min-width: 90px !important;
    }
  }

  /* 4. Modern Professional Mobile Stock Search Bar & Live Dropdown */
  .tp-mobile-search-area {
    display: block !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
  }

  .tp-mobile-search-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: visible !important;
    z-index: 100 !important;
  }

  /* Sleek Modern Search Pill */
  html:not([data-theme="dark"]) .tp-mobile-search-box,
  html[data-theme="light"] .tp-mobile-search-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 0 8px 0 16px !important;
    height: 52px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-box:focus-within,
  html[data-theme="light"] .tp-mobile-search-box:focus-within {
    border-color: #00b074 !important;
    box-shadow: 0 8px 24px -4px rgba(0, 176, 116, 0.22), 0 0 0 3.5px rgba(0, 176, 116, 0.12) !important;
  }

  html[data-theme="dark"] .tp-mobile-search-box {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0d1527 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    padding: 0 8px 0 16px !important;
    height: 52px !important;
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html[data-theme="dark"] .tp-mobile-search-box:focus-within {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 28px -4px rgba(56, 189, 248, 0.26), 0 0 0 3.5px rgba(56, 189, 248, 0.15) !important;
  }

  .tp-mobile-search-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-box:focus-within .tp-mobile-search-icon-wrap,
  html[data-theme="light"] .tp-mobile-search-box:focus-within .tp-mobile-search-icon-wrap {
    color: #00b074 !important;
    transform: scale(1.08) !important;
  }

  html[data-theme="dark"] .tp-mobile-search-icon-wrap {
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-mobile-search-box:focus-within .tp-mobile-search-icon-wrap {
    color: #38bdf8 !important;
    transform: scale(1.08) !important;
  }

  .tp-mobile-search-icon {
    width: 20px !important;
    height: 20px !important;
  }

  /* Seamless Input with ZERO Browser Focus Rings */
  #mobileHomeSearchInput,
  .tp-mobile-search-input,
  .tp-mobile-search-box input[type="search"] {
    flex: 1 1 auto !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14.5px !important;
    font-weight: 550 !important;
    letter-spacing: -0.01em !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 6px !important;
    font-family: inherit !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    border-radius: 0 !important;
  }

  #mobileHomeSearchInput:focus,
  #mobileHomeSearchInput:focus-visible,
  #mobileHomeSearchInput:active,
  .tp-mobile-search-input:focus,
  .tp-mobile-search-input:focus-visible,
  .tp-mobile-search-input:active,
  .tp-mobile-search-box input[type="search"]:focus,
  .tp-mobile-search-box input[type="search"]:focus-visible,
  .tp-mobile-search-box input[type="search"]:active,
  #homeAiInput:focus,
  #homeAiInput:focus-visible,
  #homeAiInput:active,
  .tp-ai-banner-input:focus,
  .tp-ai-banner-input:focus-visible,
  .tp-ai-banner-input:active {
    outline: none !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .tp-mobile-search-input::-webkit-search-decoration,
  .tp-mobile-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none !important;
    display: none !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-input,
  html[data-theme="light"] .tp-mobile-search-input {
    color: #0f172a !important;
  }

  html[data-theme="dark"] .tp-mobile-search-input {
    color: #f8fafc !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-input::placeholder,
  html[data-theme="light"] .tp-mobile-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 450 !important;
  }

  html[data-theme="dark"] .tp-mobile-search-input::placeholder {
    color: #64748b !important;
    font-weight: 450 !important;
  }

  /* Modern Refined Clear Button */
  .tp-mobile-search-clear {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-clear,
  html[data-theme="light"] .tp-mobile-search-clear {
    background: #f1f5f9 !important;
    color: #64748b !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-clear:active,
  html[data-theme="light"] .tp-mobile-search-clear:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: scale(0.9) !important;
  }

  html[data-theme="dark"] .tp-mobile-search-clear {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
  }

  html[data-theme="dark"] .tp-mobile-search-clear:active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    transform: scale(0.9) !important;
  }

  /* Live Pulsing Spinner */
  .tp-mobile-search-spinner {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    animation: tpSearchSpin 0.6s linear infinite !important;
    flex-shrink: 0 !important;
  }

  html:not([data-theme="dark"]) .tp-mobile-search-spinner,
  html[data-theme="light"] .tp-mobile-search-spinner {
    border: 2px solid rgba(0, 176, 116, 0.25) !important;
    border-top-color: #00b074 !important;
  }

  html[data-theme="dark"] .tp-mobile-search-spinner {
    border: 2px solid rgba(56, 189, 248, 0.25) !important;
    border-top-color: #38bdf8 !important;
  }

  @keyframes tpSearchSpin {
    to { transform: rotate(360deg); }
  }

  /* Tactile Modern Action Submit Button */
  .tp-mobile-search-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #00d68f 0%, #00a86b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 168, 107, 0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .tp-mobile-search-submit:hover {
    filter: brightness(1.05) !important;
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.45) !important;
  }

  .tp-mobile-search-submit:active {
    transform: scale(0.92) !important;
    box-shadow: 0 1px 4px rgba(0, 168, 107, 0.25) !important;
  }

  /* Live Inline Search Dropdown (Never Clipped) */
  .tp-home-search-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    border-radius: 20px !important;
    max-height: min(410px, 68vh) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: tpDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes tpDropdownFade {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .tp-home-search-dropdown::-webkit-scrollbar {
    width: 5px !important;
  }

  .tp-home-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4) !important;
    border-radius: 4px !important;
  }

  html:not([data-theme="dark"]) .tp-home-search-dropdown,
  html[data-theme="light"] .tp-home-search-dropdown {
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(20px) !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08) !important;
  }

  html[data-theme="dark"] .tp-home-search-dropdown {
    background: rgba(13, 21, 39, 0.99) !important;
    backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 24px 56px -8px rgba(0, 0, 0, 0.8), 0 8px 20px -4px rgba(0, 0, 0, 0.5) !important;
  }

  .tp-search-results-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 6px 0 !important;
  }

  .tp-search-result-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    margin: 2px 6px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.1s ease !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-row,
  html[data-theme="light"] .tp-search-result-row {
    border-bottom: 1px solid rgba(226, 232, 240, 0.4) !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-row:active,
  html[data-theme="light"] .tp-search-result-row:active {
    background: #f1f5f9 !important;
    transform: scale(0.99) !important;
  }

  html[data-theme="dark"] .tp-search-result-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  }

  html[data-theme="dark"] .tp-search-result-row:active {
    background: rgba(56, 189, 248, 0.08) !important;
    transform: scale(0.99) !important;
  }

  .tp-search-result-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .tp-search-result-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-avatar,
  html[data-theme="light"] .tp-search-result-avatar {
    background: #f1f5f9 !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-avatar.is-stock,
  html[data-theme="light"] .tp-search-result-avatar.is-stock {
    background: linear-gradient(135deg, rgba(0, 176, 116, 0.16), rgba(0, 199, 232, 0.16)) !important;
    color: #00875a !important;
    border: 1px solid rgba(0, 176, 116, 0.25) !important;
  }

  html[data-theme="dark"] .tp-search-result-avatar {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  html[data-theme="dark"] .tp-search-result-avatar.is-stock {
    background: linear-gradient(135deg, rgba(0, 176, 116, 0.25), rgba(56, 189, 248, 0.25)) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
  }

  .tp-search-avatar-text {
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: -0.02em !important;
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
  }

  .tp-search-result-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .tp-search-result-title {
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-title,
  html[data-theme="light"] .tp-search-result-title {
    color: #0f172a !important;
  }

  html[data-theme="dark"] .tp-search-result-title {
    color: #f8fafc !important;
  }

  .tp-search-result-sub {
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
  }

  html:not([data-theme="dark"]) .tp-search-result-sub,
  html[data-theme="light"] .tp-search-result-sub {
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-search-result-sub {
    color: #94a3b8 !important;
  }

  .tp-search-result-sub.tp-trend-up {
    color: #10b981 !important;
    font-weight: 600 !important;
  }

  .tp-search-result-sub.tp-trend-down {
    color: #ef4444 !important;
    font-weight: 600 !important;
  }

  .tp-search-result-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .tp-search-type-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    letter-spacing: 0.04em !important;
  }

  html:not([data-theme="dark"]) .tp-search-type-badge,
  html[data-theme="light"] .tp-search-type-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
  }

  html[data-theme="dark"] .tp-search-type-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
  }

  .tp-search-arrow {
    font-size: 16px !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
  }

  /* Search Footer */
  .tp-search-dropdown-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }

  html:not([data-theme="dark"]) .tp-search-dropdown-footer,
  html[data-theme="light"] .tp-search-dropdown-footer {
    background: #f8fafc !important;
    color: #00b074 !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  html[data-theme="dark"] .tp-search-dropdown-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #38bdf8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Empty state */
  .tp-search-empty-state {
    padding: 26px 18px !important;
    text-align: center !important;
  }

  .tp-search-empty-icon {
    font-size: 26px !important;
    margin-bottom: 6px !important;
  }

  .tp-search-empty-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
  }

  html:not([data-theme="dark"]) .tp-search-empty-title,
  html[data-theme="light"] .tp-search-empty-title {
    color: #0f172a !important;
  }

  html[data-theme="dark"] .tp-search-empty-title {
    color: #f8fafc !important;
  }

  .tp-search-empty-sub {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html:not([data-theme="dark"]) .tp-search-empty-sub,
  html[data-theme="light"] .tp-search-empty-sub {
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-search-empty-sub {
    color: #94a3b8 !important;
  }

  .tp-trending-chips-scroll {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 4px 4px !important;
    align-items: center !important;
    scroll-behavior: auto !important;
    cursor: grab !important;
    mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 14px), transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 14px), transparent 100%) !important;
  }
  .tp-trending-chips-scroll:active {
    cursor: grabbing !important;
  }

  .tp-trending-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }

  html:not([data-theme="dark"]) .tp-chip-btn,
  html[data-theme="light"] .tp-chip-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease !important;
  }

  html[data-theme="dark"] .tp-chip-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease !important;
  }

  .tp-chip-btn:active {
    background: #e2e8f0 !important;
  }

  html[data-theme="dark"] .tp-chip-btn:active {
    background: #1a2942 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-flame,
  html[data-theme="light"] .tp-chip-flame {
    background: #fef2f2 !important;
    border-color: #fee2e2 !important;
    color: #b91c1c !important;
  }

  html[data-theme="dark"] .tp-chip-flame {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
  }

  .tp-chip-flame-icon {
    margin-right: 4px !important;
  }

  html:not([data-theme="dark"]) .tp-chip-arrow-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  html[data-theme="dark"] .tp-chip-arrow-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Top Stock Badges (Reliance, HDFC Bank, Tata Motors) */
  .tp-chip-stock {
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
  }

  html:not([data-theme="dark"]) .tp-chip-stock-reliance,
  html[data-theme="light"] .tp-chip-stock-reliance {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
  }
  html:not([data-theme="dark"]) .tp-chip-stock-reliance:hover,
  html[data-theme="light"] .tp-chip-stock-reliance:hover {
    background: #ffe4e6 !important;
    border-color: #fda4af !important;
    transform: translateY(-1px) !important;
  }
  html[data-theme="dark"] .tp-chip-stock-reliance {
    background: rgba(225, 29, 72, 0.18) !important;
    border-color: rgba(251, 113, 133, 0.3) !important;
    color: #fda4af !important;
  }
  html[data-theme="dark"] .tp-chip-stock-reliance:hover {
    background: rgba(225, 29, 72, 0.3) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-stock-hdfc,
  html[data-theme="light"] .tp-chip-stock-hdfc {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }
  html:not([data-theme="dark"]) .tp-chip-stock-hdfc:hover,
  html[data-theme="light"] .tp-chip-stock-hdfc:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
  }
  html[data-theme="dark"] .tp-chip-stock-hdfc {
    background: rgba(51, 65, 85, 0.45) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f1f5f9 !important;
  }
  html[data-theme="dark"] .tp-chip-stock-hdfc:hover {
    background: rgba(71, 85, 105, 0.6) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-stock-tatamotors,
  html[data-theme="light"] .tp-chip-stock-tatamotors {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
  }
  html:not([data-theme="dark"]) .tp-chip-stock-tatamotors:hover,
  html[data-theme="light"] .tp-chip-stock-tatamotors:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateY(-1px) !important;
  }
  html[data-theme="dark"] .tp-chip-stock-tatamotors {
    background: rgba(29, 78, 216, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #93c5fd !important;
  }
  html[data-theme="dark"] .tp-chip-stock-tatamotors:hover {
    background: rgba(29, 78, 216, 0.32) !important;
    transform: translateY(-1px) !important;
  }

  /* Smart AI Suggestion Chips (Image 2 Replica) */
  .tp-chip-icon {
    display: inline-block !important;
    vertical-align: -1.5px !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-blue,
  html[data-theme="light"] .tp-chip-ai-blue {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-blue:hover,
  html[data-theme="light"] .tp-chip-ai-blue:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="dark"] .tp-chip-ai-blue {
    background: rgba(30, 64, 175, 0.22) !important;
    border-color: rgba(147, 197, 253, 0.25) !important;
    color: #93c5fd !important;
  }

  html[data-theme="dark"] .tp-chip-ai-blue:hover {
    background: rgba(30, 64, 175, 0.35) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-cyan,
  html[data-theme="light"] .tp-chip-ai-cyan {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-cyan:hover,
  html[data-theme="light"] .tp-chip-ai-cyan:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="dark"] .tp-chip-ai-cyan {
    background: rgba(2, 132, 199, 0.22) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    color: #7dd3fc !important;
  }

  html[data-theme="dark"] .tp-chip-ai-cyan:hover {
    background: rgba(2, 132, 199, 0.35) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-flame,
  html[data-theme="light"] .tp-chip-ai-flame {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-flame:hover,
  html[data-theme="light"] .tp-chip-ai-flame:hover {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="dark"] .tp-chip-ai-flame {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
  }

  html[data-theme="dark"] .tp-chip-ai-flame:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-purple,
  html[data-theme="light"] .tp-chip-ai-purple {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #7c3aed !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-purple:hover,
  html[data-theme="light"] .tp-chip-ai-purple:hover {
    background: #ede9fe !important;
    border-color: #c4b5fd !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="dark"] .tp-chip-ai-purple {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(167, 139, 250, 0.28) !important;
    color: #c4b5fd !important;
  }

  html[data-theme="dark"] .tp-chip-ai-purple:hover {
    background: rgba(124, 58, 237, 0.32) !important;
    transform: translateY(-1px) !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-green,
  html[data-theme="light"] .tp-chip-ai-green {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
  }

  html:not([data-theme="dark"]) .tp-chip-ai-green:hover,
  html[data-theme="light"] .tp-chip-ai-green:hover {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
    transform: translateY(-1px) !important;
  }

  html[data-theme="dark"] .tp-chip-ai-green {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
    color: #6ee7b7 !important;
  }

  html[data-theme="dark"] .tp-chip-ai-green:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px) !important;
  }

  /* Dual Action CTAs Row (Image 2 Replica - Side by Side with Hover Effects) */
  .tp-m-actions-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-m-action-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    min-width: 0 !important;
  }

  .tp-m-action-btn {
    width: 100% !important;
    height: 44px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--tp-font-sans, "Plus Jakarta Sans", sans-serif) !important;
    font-size: 11.8px !important;
    font-weight: 750 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease !important;
    position: relative !important;
  }

  .tp-m-action-label {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .tp-m-action-icon {
    flex-shrink: 0 !important;
  }

  .tp-m-action-arrow {
    flex-shrink: 0 !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  /* Left Primary Button (Green Gradient) */
  .tp-m-action-primary .tp-m-action-btn {
    background: linear-gradient(135deg, #00b074 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 14px rgba(0, 176, 116, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  }

  .tp-m-action-primary:hover .tp-m-action-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 176, 116, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
  }

  .tp-m-action-primary:hover .tp-m-action-arrow {
    transform: translateX(3px) !important;
  }

  .tp-m-action-primary:active .tp-m-action-btn {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(0, 176, 116, 0.25) !important;
  }

  html[data-theme="dark"] .tp-m-action-primary .tp-m-action-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .tp-m-action-primary:hover .tp-m-action-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }

  /* Right Secondary Button (White/Surface with Border) */
  html:not([data-theme="dark"]) .tp-m-action-secondary .tp-m-action-btn,
  html[data-theme="light"] .tp-m-action-secondary .tp-m-action-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  }

  html:not([data-theme="dark"]) .tp-m-action-secondary:hover .tp-m-action-btn,
  html[data-theme="light"] .tp-m-action-secondary:hover .tp-m-action-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1) !important;
    color: #00b074 !important;
  }

  html:not([data-theme="dark"]) .tp-m-action-secondary:hover .tp-m-action-icon,
  html[data-theme="light"] .tp-m-action-secondary:hover .tp-m-action-icon {
    stroke: #00b074 !important;
  }

  .tp-m-action-secondary:hover .tp-m-action-arrow {
    transform: translateX(3px) !important;
  }

  .tp-m-action-secondary:active .tp-m-action-btn {
    transform: scale(0.97) !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  }

  html[data-theme="dark"] .tp-m-action-secondary .tp-m-action-btn {
    background: #0d1527 !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  }

  html[data-theme="dark"] .tp-m-action-secondary:hover .tp-m-action-btn {
    background: #132238 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
  }

  html[data-theme="dark"] .tp-m-action-secondary:hover .tp-m-action-icon {
    stroke: #38bdf8 !important;
  }

  /* Micro-copy Text Under Buttons */
  .tp-m-action-sub {
    font-size: 10px !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
    text-align: center !important;
    color: #64748b !important;
    display: block !important;
    transition: color 0.18s ease !important;
  }

  html[data-theme="dark"] .tp-m-action-sub {
    color: #94a3b8 !important;
  }

  .tp-m-action-primary:hover .tp-m-action-sub {
    color: #059669 !important;
  }

  html[data-theme="dark"] .tp-m-action-primary:hover .tp-m-action-sub {
    color: #34d399 !important;
  }

  .tp-m-action-secondary:hover .tp-m-action-sub {
    color: #334155 !important;
  }

  html[data-theme="dark"] .tp-m-action-secondary:hover .tp-m-action-sub {
    color: #cbd5e1 !important;
  }

  @media (max-width: 360px) {
    .tp-m-actions-row {
      gap: 6px !important;
    }
    .tp-m-action-btn {
      height: 40px !important;
      font-size: 10.5px !important;
      padding: 0 6px !important;
      gap: 4px !important;
      border-radius: 10px !important;
    }
    .tp-m-action-sub {
      font-size: 8.8px !important;
      margin-top: 4px !important;
    }
    .tp-m-action-icon {
      width: 14px !important;
      height: 14px !important;
    }
    .tp-m-action-arrow {
      width: 12px !important;
      height: 12px !important;
    }
  }

  /* 5. Mobile Market Snapshot Section */
  .tp-snapshot-section {
    padding: 10px 0 !important;
  }

  .tp-section-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
  }

  .tp-section-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .tp-section-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  html[data-theme="dark"] .tp-section-title {
    color: #ffffff !important;
  }

  .tp-live-pulse-badge {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #00b074 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .tp-live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    background: #00b074 !important;
    border-radius: 50% !important;
    display: inline-block !important;
  }

  .tp-view-all-link {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  html[data-theme="dark"] .tp-view-all-link {
    color: #38bdf8 !important;
  }

  .tp-home-root .tp-snapshot-section .tp-snapshot-grid,
  .tp-snapshot-section .tp-snapshot-grid,
  .tp-snapshot-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 2px 14px 10px !important;
    scrollbar-width: none !important;
    margin: 0 -14px !important;
    grid-template-columns: none !important;
  }

  .tp-snapshot-grid::-webkit-scrollbar {
    display: none !important;
  }

  html:not([data-theme="dark"]) .tp-snapshot-card,
  html[data-theme="light"] .tp-snapshot-card {
    flex: 0 0 142px !important;
    width: 142px !important;
    min-width: 142px !important;
    max-width: 145px !important;
    scroll-snap-align: start !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 12px 11px 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
  }

  html[data-theme="dark"] .tp-snapshot-card {
    flex: 0 0 142px !important;
    width: 142px !important;
    min-width: 142px !important;
    max-width: 145px !important;
    scroll-snap-align: start !important;
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 12px 11px 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
  }

  .tp-snapshot-card .tp-snap-card-head {
    margin-bottom: 2px !important;
    display: block !important;
  }

  .tp-snap-icon,
  .tp-snap-type,
  .tp-snap-card-arrow,
  .tp-snap-meta,
  .tp-snapshot-footnote {
    display: none !important;
  }

  .tp-snap-name {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    display: block !important;
  }

  html[data-theme="dark"] .tp-snap-name {
    color: #94a3b8 !important;
  }

  .tp-snap-val {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 3px 0 2px !important;
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
  }

  html[data-theme="dark"] .tp-snap-val {
    color: #ffffff !important;
  }

  .tp-snap-change-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    flex-wrap: wrap !important;
  }

  .tp-snap-chg,
  .tp-snap-pct {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .tp-snap-chg.up,
  .tp-snap-pct.up {
    color: #00b074 !important;
  }

  .tp-snap-chg.down,
  .tp-snap-pct.down {
    color: #ef4444 !important;
  }

  .tp-snap-sparkline {
    width: 100% !important;
    height: 26px !important;
    display: block !important;
    margin-top: auto !important;
  }

  .tp-snap-carousel-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 10px 0 4px !important;
  }

  html:not([data-theme="dark"]) .tp-snap-dot,
  html[data-theme="light"] .tp-snap-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #cbd5e1 !important;
    transition: all 0.2s ease !important;
  }

  html[data-theme="dark"] .tp-snap-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #334155 !important;
    transition: all 0.2s ease !important;
  }

  html:not([data-theme="dark"]) .tp-snap-dot.active,
  html[data-theme="light"] .tp-snap-dot.active {
    width: 18px !important;
    border-radius: 3px !important;
    background: #0284c7 !important;
  }

  html[data-theme="dark"] .tp-snap-dot.active {
    width: 18px !important;
    border-radius: 3px !important;
    background: #38bdf8 !important;
  }

  /* 6. Mobile "What do you want to do today?" Feature Grid */
  .tp-ecosystem-section {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  .tp-ecosystem-heading-wrap {
    margin-bottom: 14px !important;
  }

  .tp-ecosystem-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
  }

  html[data-theme="dark"] .tp-ecosystem-title {
    color: #ffffff !important;
  }

  .tp-ecosystem-subtitle {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.45 !important;
  }

  html[data-theme="dark"] .tp-ecosystem-subtitle {
    color: #94a3b8 !important;
  }

  .tp-ecosystem-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 8px !important;
    padding: 4px 14px 12px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    margin: 0 -14px !important;
    grid-template-columns: none !important;
  }

  .tp-ecosystem-grid::-webkit-scrollbar {
    display: none !important;
  }

  .tp-eco-card {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: calc((100% - 16px) / 3) !important;
    min-width: 110px !important;
    max-width: 140px !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    border-radius: 16px !important;
    padding: 10px 8px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 125px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.15s ease !important;
    box-sizing: border-box !important;
  }

  .tp-eco-card:active {
    transform: scale(0.97) !important;
  }

  /* Tinted backgrounds - Light Theme */
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-research,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(1),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-research,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(1) { background: #f0fdf4 !important; border: 1px solid rgba(16, 185, 129, 0.12) !important; }

  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-paper,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(2),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-paper,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(2) { background: #f5f3ff !important; border: 1px solid rgba(139, 92, 246, 0.12) !important; }

  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-journal,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(3),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-journal,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(3) { background: #eef2ff !important; border: 1px solid rgba(99, 102, 241, 0.12) !important; }

  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-backtest,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(4),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-backtest,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(4) { background: #eff6ff !important; border: 1px solid rgba(59, 130, 246, 0.12) !important; }

  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-alerts,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(5),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-alerts,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(5) { background: #fffbeb !important; border: 1px solid rgba(245, 158, 11, 0.12) !important; }

  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card-books,
  html:not([data-theme="dark"]) .tp-ecosystem-grid .tp-eco-card:nth-child(6),
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card-books,
  html[data-theme="light"] .tp-ecosystem-grid .tp-eco-card:nth-child(6) { background: #fff1f2 !important; border: 1px solid rgba(244, 63, 94, 0.12) !important; }

  /* Tinted backgrounds - Dark Theme */
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-research,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(1) { background: rgba(16, 185, 129, 0.1) !important; border: 1px solid rgba(16, 185, 129, 0.28) !important; }

  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-paper,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(2) { background: rgba(139, 92, 246, 0.1) !important; border: 1px solid rgba(139, 92, 246, 0.28) !important; }

  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-journal,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(3) { background: rgba(99, 102, 241, 0.1) !important; border: 1px solid rgba(99, 102, 241, 0.28) !important; }

  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-backtest,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(4) { background: rgba(59, 130, 246, 0.1) !important; border: 1px solid rgba(59, 130, 246, 0.28) !important; }

  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-alerts,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(5) { background: rgba(245, 158, 11, 0.1) !important; border: 1px solid rgba(245, 158, 11, 0.28) !important; }

  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card-books,
  html[data-theme="dark"] .tp-ecosystem-grid .tp-eco-card:nth-child(6) { background: rgba(244, 63, 94, 0.1) !important; border: 1px solid rgba(244, 63, 94, 0.28) !important; }

  .tp-eco-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
  }

  .tp-eco-icon-wrap.green { background: #00b074 !important; color: #ffffff !important; }
  .tp-eco-icon-wrap.blue { background: #3b82f6 !important; color: #ffffff !important; }
  .tp-eco-icon-wrap.purple { background: #8b5cf6 !important; color: #ffffff !important; }
  .tp-eco-icon-wrap.orange { background: #f59e0b !important; color: #ffffff !important; }
  .tp-eco-icon-wrap.pink { background: #ec4899 !important; color: #ffffff !important; }
  .tp-eco-icon-wrap.indigo { background: #6366f1 !important; color: #ffffff !important; }

  .tp-eco-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
  }

  .tp-eco-card-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin: 0 0 2px 0 !important;
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
  }

  html[data-theme="dark"] .tp-eco-card-title {
    color: #ffffff !important;
  }

  .tp-eco-card-desc {
    font-size: 10px !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  html[data-theme="dark"] .tp-eco-card-desc {
    color: #94a3b8 !important;
  }

  .tp-eco-card-arrow {
    align-self: flex-end !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 6px !important;
    flex-shrink: 0 !important;
  }

  .tp-eco-card-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Ecosystem Carousel Pagination Dots on Mobile */
  .tp-ecosystem-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 10px 0 2px !important;
    padding-bottom: 2px !important;
  }

  .tp-ecosystem-carousel-dots .tp-eco-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
  }

  html[data-theme="dark"] .tp-ecosystem-carousel-dots .tp-eco-dot {
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .tp-ecosystem-carousel-dots .tp-eco-dot.active {
    width: 18px !important;
    border-radius: 999px !important;
    background: #0284c7 !important;
  }

  html[data-theme="dark"] .tp-ecosystem-carousel-dots .tp-eco-dot.active {
    background: #38bdf8 !important;
  }

  /* 7. Mobile "Latest Insights" Section & Unified Hub */
  .tp-hub-movers-section {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }

  .tp-hub-movers-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  #hubCard {
    order: 1 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html:not([data-theme="dark"]) #moversCard,
  html[data-theme="light"] #moversCard {
    order: 2 !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  html[data-theme="dark"] #moversCard {
    order: 2 !important;
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
  }

  .tp-hub-unified-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-hub-unified-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .tp-hub-unified-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  html[data-theme="dark"] .tp-hub-unified-title {
    color: #ffffff !important;
  }

  .tp-hub-unified-icon {
    width: 22px !important;
    height: 22px !important;
    color: #0284c7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tp-hub-view-all {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  html[data-theme="dark"] .tp-hub-view-all {
    color: #38bdf8 !important;
  }

  .tp-home-page .tp-hub-tab-bar,
  .tp-hub-tab-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-hub-tab-bar::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  html:not([data-theme="dark"]) .tp-home-page .tp-hub-tab-btn,
  html:not([data-theme="dark"]) .tp-hub-tab-btn,
  html[data-theme="light"] .tp-home-page .tp-hub-tab-btn,
  html[data-theme="light"] .tp-hub-tab-btn {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 3px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  }

  html[data-theme="dark"] .tp-home-page .tp-hub-tab-btn,
  html[data-theme="dark"] .tp-hub-tab-btn {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 3px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
  }

  .tp-home-page .tp-hub-tab-icon,
  .tp-hub-tab-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    border: none !important;
    background: transparent !important;
    color: inherit !important;
  }

  .tp-hub-tab-icon svg {
    width: 13.5px !important;
    height: 13.5px !important;
    stroke: currentColor !important;
  }

  html:not([data-theme="dark"]) .tp-home-page .tp-hub-tab-btn.active,
  html:not([data-theme="dark"]) .tp-hub-tab-btn.active,
  html[data-theme="light"] .tp-home-page .tp-hub-tab-btn.active,
  html[data-theme="light"] .tp-hub-tab-btn.active,
  html[data-theme="dark"] .tp-home-page .tp-hub-tab-btn.active,
  html[data-theme="dark"] .tp-hub-tab-btn.active,
  .tp-home-page .tp-hub-tab-btn.active,
  .tp-hub-tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
  }

  html:not([data-theme="dark"]) .tp-home-page .tp-hub-tab-btn.active .tp-hub-tab-icon,
  html:not([data-theme="dark"]) .tp-hub-tab-btn.active .tp-hub-tab-icon,
  html[data-theme="light"] .tp-home-page .tp-hub-tab-btn.active .tp-hub-tab-icon,
  html[data-theme="light"] .tp-hub-tab-btn.active .tp-hub-tab-icon,
  html[data-theme="dark"] .tp-home-page .tp-hub-tab-btn.active .tp-hub-tab-icon,
  html[data-theme="dark"] .tp-hub-tab-btn.active .tp-hub-tab-icon,
  .tp-home-page .tp-hub-tab-btn.active .tp-hub-tab-icon,
  .tp-hub-tab-btn.active .tp-hub-tab-icon {
    color: #ffffff !important;
  }

  /* Horizontal Article Cards Carousel on Mobile */
  .tp-hub-tab-panels {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .tp-hub-panel {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .tp-article-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 12px !important;
    margin: 0 -14px !important;
    padding: 4px 14px 14px 14px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: calc(100% + 28px) !important;
    box-sizing: border-box !important;
  }

  .tp-article-list::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  html:not([data-theme="dark"]) .tp-hub-panel .tp-article-row,
  html[data-theme="light"] .tp-hub-panel .tp-article-row {
    flex: 0 0 215px !important;
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    min-height: unset !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html:not([data-theme="dark"]) .tp-hub-panel .tp-article-row:active {
    transform: scale(0.98) !important;
  }

  html[data-theme="dark"] .tp-hub-panel .tp-article-row,
  html[data-theme="dark"] .tp-article-row {
    flex: 0 0 215px !important;
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    min-height: unset !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html[data-theme="dark"] .tp-hub-panel .tp-article-row:active {
    transform: scale(0.98) !important;
  }

  .tp-article-idx {
    display: none !important;
  }

  .tp-hub-panel .tp-article-thumb,
  .tp-article-thumb {
    width: 100% !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    border: none !important;
    border-radius: 0 !important;
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%) !important;
  }

  html[data-theme="dark"] .tp-hub-panel .tp-article-thumb,
  html[data-theme="dark"] .tp-article-thumb {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  }

  .tp-hub-panel .tp-article-thumb img,
  .tp-article-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .tp-article-content {
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .tp-article-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  html:not([data-theme="dark"]) .tp-article-cat-pill,
  html[data-theme="light"] .tp-article-cat-pill {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 1.5px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.03em !important;
  }

  html[data-theme="dark"] .tp-article-cat-pill {
    background: rgba(2, 132, 199, 0.2) !important;
    color: #38bdf8 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 1.5px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.03em !important;
  }

  .tp-article-time {
    font-size: 10.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
  }

  html[data-theme="dark"] .tp-article-time {
    color: #94a3b8 !important;
  }

  .tp-article-headline {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  html[data-theme="dark"] .tp-article-headline {
    color: #ffffff !important;
  }

  /* Article Carousel Pagination Dots on Mobile */
  .tp-article-carousel-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
    padding-bottom: 2px !important;
  }

  .tp-article-carousel-dots .tp-art-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    transition: all 0.25s ease !important;
  }

  html[data-theme="dark"] .tp-article-carousel-dots .tp-art-dot {
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .tp-article-carousel-dots .tp-art-dot.active {
    width: 18px !important;
    background: #2563eb !important;
  }

  html[data-theme="dark"] .tp-article-carousel-dots .tp-art-dot.active {
    background: #38bdf8 !important;
  }

  /* 8. Additional Homepage Sections on Mobile */
  /* Market Movers Card - Fully Responsive on all screen sizes including Samsung S23 */
  .tp-movers-unified-card {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .tp-movers-unified-header {
    padding: 12px 12px 10px !important;
    margin-bottom: 0 !important;
  }

  .tp-movers-unified-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .tp-movers-unified-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .tp-movers-unified-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
  }

  .tp-movers-unified-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .tp-movers-unified-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  html[data-theme="dark"] .tp-movers-unified-title {
    color: #ffffff !important;
  }

  .tp-movers-unified-subtitle {
    font-size: 10.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html[data-theme="dark"] .tp-movers-unified-subtitle {
    color: #94a3b8 !important;
  }

  .tp-movers-heat-badge {
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    border-radius: 9999px !important;
  }

  /* Movers Tab Bar - 4 Equal Grid Columns, Seamless Pill, Zero Overflow */
  .tp-movers-unified-tabs-wrap {
    padding: 6px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  html[data-theme="dark"] .tp-movers-unified-tabs-wrap {
    background: rgba(15, 23, 42, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .tp-movers-unified-tabs-wrap .tp-movers-tabs,
  .tp-movers-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px !important;
    gap: 3px !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 9999px !important;
  }

  .tp-movers-tabs::-webkit-scrollbar {
    display: none !important;
  }

  /* Responsive Label Toggling: Full text on desktop, clean short 'Active' on mobile */
  .tp-btn-label-full {
    display: none !important;
  }
  .tp-btn-label-short {
    display: inline !important;
  }

  .tp-movers-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 6px 2px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    gap: 3px !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
  }

  html:not([data-theme="dark"]) .tp-movers-tab-btn,
  html[data-theme="light"] .tp-movers-tab-btn {
    color: #64748b !important;
    background: transparent !important;
    border: 1px solid transparent !important;
  }

  html:not([data-theme="dark"]) .tp-movers-tab-btn.active,
  html[data-theme="light"] .tp-movers-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  html[data-theme="dark"] .tp-movers-tab-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid transparent !important;
  }

  html[data-theme="dark"] .tp-movers-tab-btn.active {
    background: #1e293b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .tp-movers-tab-btn .tp-movers-tab-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  .tp-movers-tab-btn .tp-movers-tab-icon svg {
    width: 11.5px !important;
    height: 11.5px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .tp-movers-unified-body {
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-movers-mobile-list {
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tp-movers-mobile-row {
    padding: 9px 12px !important;
    box-sizing: border-box !important;
  }

  .tp-movers-unified-footer {
    padding: 10px 14px 12px !important;
    text-align: center !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  html[data-theme="dark"] .tp-movers-unified-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .tp-movers-table {
    width: 100% !important;
    font-size: 12px !important;
  }

  .tp-movers-table th {
    color: #64748b !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  html[data-theme="dark"] .tp-movers-table th {
    color: #94a3b8 !important;
  }

  html:not([data-theme="dark"]) .tp-movers-table td,
  html[data-theme="light"] .tp-movers-table td {
    color: #0f172a !important;
    padding: 8px 4px !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  html[data-theme="dark"] .tp-movers-table td {
    color: #ffffff !important;
    padding: 8px 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* AI Copilot Connected Banner */
  html:not([data-theme="dark"]) .tp-ai-connected-banner,
  html[data-theme="light"] .tp-ai-connected-banner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  html[data-theme="dark"] .tp-ai-connected-banner {
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
  }

  .tp-ai-banner-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .tp-ai-banner-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  html[data-theme="dark"] .tp-ai-banner-title {
    color: #ffffff !important;
  }

  .tp-ai-banner-sub {
    font-size: 12px !important;
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-ai-banner-sub {
    color: #94a3b8 !important;
  }

  html:not([data-theme="dark"]) .tp-ai-banner-input-box,
  html[data-theme="light"] .tp-ai-banner-input-box {
    position: relative !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html[data-theme="dark"] .tp-ai-banner-input-box {
    position: relative !important;
    background: #0d1527 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 0 !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  html:not([data-theme="dark"]) .tp-ai-banner-input-box:focus-within,
  html[data-theme="light"] .tp-ai-banner-input-box:focus-within {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 4px 14px rgba(79, 70, 229, 0.12) !important;
  }

  html[data-theme="dark"] .tp-ai-banner-input-box:focus-within {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3), 0 4px 20px rgba(99, 102, 241, 0.25) !important;
  }

  html:not([data-theme="dark"]) .tp-ai-banner-input,
  html[data-theme="light"] .tp-ai-banner-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 10px 48px 10px 14px !important;
    box-sizing: border-box !important;
  }

  html[data-theme="dark"] .tp-ai-banner-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 10px 48px 10px 14px !important;
    box-sizing: border-box !important;
  }

  .tp-ai-banner-send-btn {
    position: absolute !important;
    right: 7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.45) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
  }

  .tp-ai-banner-send-btn:hover {
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.6) !important;
  }

  .tp-ai-banner-send-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
  }

  .tp-ai-banner-send-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .tp-ai-banner-pills-row {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    margin-top: 8px !important;
  }

  html:not([data-theme="dark"]) .tp-ai-prompt-pill,
  html[data-theme="light"] .tp-ai-prompt-pill {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
  }

  html[data-theme="dark"] .tp-ai-prompt-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
  }

  /* Bottom 3-col section */
  .tp-bottom-3col-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  html:not([data-theme="dark"]) .tp-panel-card,
  html[data-theme="light"] .tp-panel-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  html[data-theme="dark"] .tp-panel-card {
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28) !important;
  }

  .tp-panel-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  html[data-theme="dark"] .tp-panel-title {
    color: #ffffff !important;
  }

  .tp-panel-subtitle {
    font-size: 11.5px !important;
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-panel-subtitle {
    color: #94a3b8 !important;
  }

  html:not([data-theme="dark"]) .tp-tool-mini-card,
  html[data-theme="light"] .tp-tool-mini-card {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, background-color 0.15s ease !important;
  }

  html[data-theme="dark"] .tp-tool-mini-card {
    background: #0d1527 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, background-color 0.15s ease !important;
  }

  .tp-tool-icon-circle {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, currentColor 14%, transparent) !important;
  }

  .tp-tool-title-lbl {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: block !important;
  }

  html[data-theme="dark"] .tp-tool-title-lbl {
    color: #ffffff !important;
  }

  .tp-tool-description {
    font-size: 11px !important;
    color: #64748b !important;
    display: block !important;
  }

  html[data-theme="dark"] .tp-tool-description {
    color: #94a3b8 !important;
  }

  .tp-tool-mini-card .tp-row-arrow {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
  }

  html:not([data-theme="dark"]) .tp-tool-mini-card .tp-row-arrow,
  html[data-theme="light"] .tp-tool-mini-card .tp-row-arrow {
    background: #eef2f6 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-tool-mini-card .tp-row-arrow {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #94a3b8 !important;
  }

  .tp-tool-mini-card .tp-row-arrow svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
  }

  .tp-tool-mini-card:active .tp-row-arrow {
    transform: scale(0.92) !important;
  }

  /* 9. Fixed Bottom Navigation Bar (Dual Theme Support) */
  html:not([data-theme="dark"]) .mobile-bottom-bar,
  html[data-theme="light"] .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 4px env(safe-area-inset-bottom, 0px) !important;
    justify-content: space-around !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  html[data-theme="dark"] .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #0d1527 !important;
    background-color: #0d1527 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.35) !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 4px env(safe-area-inset-bottom, 0px) !important;
    justify-content: space-around !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  html:not([data-theme="dark"]) .mobile-bottom-item,
  html[data-theme="light"] .mobile-bottom-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
    box-sizing: border-box !important;
  }

  html[data-theme="dark"] .mobile-bottom-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-family: var(--tp-font-heading, Outfit, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
    box-sizing: border-box !important;
  }

  .mobile-bottom-item svg {
    width: 21px !important;
    height: 21px !important;
    stroke: currentColor !important;
    transition: transform 0.15s ease !important;
  }

  html:not([data-theme="dark"]) .mobile-bottom-item.active,
  html[data-theme="light"] .mobile-bottom-item.active {
    color: #2563eb !important;
  }

  html[data-theme="dark"] .mobile-bottom-item.active {
    color: #38bdf8 !important;
  }

  html:not([data-theme="dark"]) .mobile-bottom-item.active svg,
  html[data-theme="light"] .mobile-bottom-item.active svg {
    transform: none !important;
    stroke: #2563eb !important;
  }

  html[data-theme="dark"] .mobile-bottom-item.active svg {
    transform: none !important;
    stroke: #38bdf8 !important;
  }

  /* 10. Community Section (Telegram & Newsletter Cards) - Consistent Typography & Dual Theme */
  .tp-community-section {
    padding: 16px 0 !important;
  }

  .tp-community-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .tp-comm-card {
    min-height: 0 !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
  }

  .tp-comm-heading {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .tp-comm-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
  }

  .tp-comm-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .tp-comm-title {
    font-family: var(--tp-font-heading, Outfit, -apple-system, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.015em !important;
    margin: 0 0 5px 0 !important;
  }

  .tp-comm-desc {
    font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, sans-serif) !important;
    font-size: 12.8px !important;
    line-height: 1.52 !important;
    margin: 0 !important;
  }

  .tp-comm-telegram-cta {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-family: var(--tp-font-heading, Outfit, -apple-system, sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
  }

  .tp-newsletter-input-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .tp-newsletter-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, sans-serif) !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  .tp-newsletter-btn {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-family: var(--tp-font-heading, Outfit, -apple-system, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  .tp-comm-card form label {
    font-family: var(--tp-font-body, "Plus Jakarta Sans", -apple-system, sans-serif) !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
  }

  /* --- LIGHT THEME (White Mode) On Mobile --- */
  html[data-theme="light"] .tp-comm-card,
  .tp-comm-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  html[data-theme="light"] .tp-comm-title,
  .tp-comm-title {
    color: #0f172a !important;
  }

  html[data-theme="light"] .tp-comm-card.telegram .tp-comm-title span,
  .tp-comm-card.telegram .tp-comm-title span {
    color: #0284c7 !important;
  }

  html[data-theme="light"] .tp-comm-desc,
  .tp-comm-desc {
    color: #475569 !important;
  }

  html[data-theme="light"] .tp-newsletter-input,
  .tp-newsletter-input {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
  }

  html[data-theme="light"] .tp-newsletter-input::placeholder,
  .tp-newsletter-input::placeholder {
    color: #94a3b8 !important;
  }

  html[data-theme="light"] .tp-comm-card form label,
  .tp-comm-card form label {
    color: #64748b !important;
  }

  html[data-theme="light"] .tp-comm-card form label a,
  .tp-comm-card form label a {
    color: #2563eb !important;
    font-weight: 600 !important;
  }

  html[data-theme="light"] .tp-comm-telegram-art,
  html[data-theme="light"] .tp-comm-news-art,
  .tp-comm-telegram-art,
  .tp-comm-news-art {
    opacity: 0.12 !important;
    pointer-events: none !important;
  }

  /* --- DARK THEME On Mobile --- */
  html[data-theme="dark"] .tp-comm-card {
    background: #111c33 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35) !important;
  }

  html[data-theme="dark"] .tp-comm-title {
    color: #f8fafc !important;
  }

  html[data-theme="dark"] .tp-comm-card.telegram .tp-comm-title span {
    color: #38bdf8 !important;
  }

  html[data-theme="dark"] .tp-comm-desc {
    color: #94a3b8 !important;
  }

  html[data-theme="dark"] .tp-newsletter-input {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
  }

  html[data-theme="dark"] .tp-newsletter-input::placeholder {
    color: #64748b !important;
  }

  html[data-theme="dark"] .tp-comm-card form label {
    color: #94a3b8 !important;
  }

  html[data-theme="dark"] .tp-comm-card form label a {
    color: #38bdf8 !important;
    font-weight: 600 !important;
  }

  html[data-theme="dark"] .tp-comm-telegram-art,
  html[data-theme="dark"] .tp-comm-news-art {
    opacity: 0.22 !important;
    pointer-events: none !important;
  }
}

