.gme-private-insights-shell {
  max-width: 1240px;
  margin: 20px auto 32px;
  padding: 0 14px;
  color: #eaf3f0;
}

/* Keep only the React app title on Private Insights. */
body.page-id-5409 .entry-header,
body.page-id-5409 .page-header,
body.page-id-5409 .entry-title,
body.page-id-5409 .wp-block-post-title,
body.page-id-5409 .elementor-widget-theme-post-title,
body.page-id-5409 .elementor-location-single .elementor-widget-heading {
  display: none;
}

#gme-private-insights-app {
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.gme-pi-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 143, 0.26), transparent 50%),
    linear-gradient(140deg, #071719 0%, #0b2325 55%, #13353a 100%);
  border: 1px solid rgba(0, 194, 143, 0.25);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.gme-pi-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #89cfc0;
  margin: 0 0 8px;
}

.gme-pi-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.03;
  color: #71f2da !important;
  text-shadow: none !important;
}

body.page-id-5409 #gme-private-insights-app h1 {
  color: #71f2da !important;
  text-shadow: none !important;
}

.gme-pi-hero-copy p {
  margin: 12px 0 0;
  color: #c6ddd7;
}

.gme-pi-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
}

.gme-pi-stat {
  background: rgba(4, 12, 14, 0.44);
  border: 1px solid rgba(127, 201, 180, 0.23);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.gme-pi-stat strong {
  display: block;
  font-size: 26px;
  color: #90ffd7;
  line-height: 1.1;
}

.gme-pi-stat span {
  font-size: 12px;
  color: #b7d9cd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gme-pi-actions-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.gme-pi-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.gme-pi-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.gme-pi-search {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(105, 183, 161, 0.36);
  background: rgba(6, 16, 18, 0.88);
  color: #dff6ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.gme-pi-search:focus {
  outline: none;
  border-color: rgba(55, 232, 170, 0.75);
  box-shadow: 0 0 0 1px rgba(55, 232, 170, 0.35);
}

.gme-pi-result-meta {
  color: #a6cac0;
  font-size: 13px;
}

.gme-pi-gate-panel {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(80, 199, 157, 0.36);
  border-radius: 14px;
  background: rgba(6, 18, 19, 0.86);
}

.gme-pi-gate-panel h2 {
  margin: 0 0 8px;
  color: #edfff8;
  font-size: 24px;
}

.gme-pi-gate-panel p {
  margin: 0;
  color: #b8d8cf;
}

.gme-pi-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gme-pi-card-locked {
  opacity: 0.82;
}

.gme-pi-action-chip {
  border: 1px solid rgba(101, 186, 163, 0.35);
  background: rgba(7, 20, 21, 0.82);
  color: #b8d8cf;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gme-pi-action-chip.is-active,
.gme-pi-action-chip:hover {
  color: #f4fffb;
  border-color: rgba(54, 237, 170, 0.6);
  background: rgba(3, 122, 95, 0.42);
}

.gme-pi-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.gme-pi-list {
  display: grid;
  gap: 12px;
}

.gme-pi-card,
.gme-pi-reader {
  border-radius: 16px;
  border: 1px solid rgba(107, 187, 159, 0.24);
  background: linear-gradient(180deg, #0a191b 0%, #081214 100%);
}

.gme-pi-card {
  padding: 16px;
}

.gme-pi-card.is-selected {
  border-color: rgba(32, 234, 161, 0.64);
  box-shadow: 0 0 0 1px rgba(32, 234, 161, 0.34) inset;
}

.gme-pi-card-meta,
.gme-pi-reader-meta {
  font-size: 12px;
  color: #9ac8bc;
}

.gme-pi-card h3 {
  margin: 8px 0 8px;
  color: #f6fffd;
  font-size: 22px;
  line-height: 1.22;
}

.gme-pi-card p {
  margin: 0 0 10px;
  color: #c6ddd7;
}

.gme-pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gme-pi-tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(12, 90, 71, 0.52);
  color: #c4fff1;
}

.gme-pi-tag-soft {
  background: rgba(38, 72, 79, 0.57);
  color: #c0dbe0;
}

.gme-pi-tag-buy { background: rgba(0, 146, 88, 0.45); }
.gme-pi-tag-sell { background: rgba(162, 36, 36, 0.52); }
.gme-pi-tag-hold { background: rgba(105, 106, 108, 0.55); }
.gme-pi-tag-neutral { background: rgba(63, 97, 134, 0.55); }
.gme-pi-tag-research_only { background: rgba(72, 120, 164, 0.58); }
.gme-pi-tag-double_down { background: rgba(38, 96, 192, 0.56); }

.gme-pi-card-actions {
  display: flex;
  gap: 8px;
}

.gme-pi-inline-reader {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 187, 159, 0.24);
}

.gme-pi-inline-reader h4 {
  margin: 0 0 10px;
  color: #dffbf2;
  font-size: 16px;
}

.gme-pi-inline-reader-content {
  color: #d2e6e0;
  font-size: 15px;
  line-height: 1.58;
  margin-bottom: 12px;
}

.gme-pi-inline-reader-content p,
.gme-pi-inline-reader-content li {
  color: #d2e6e0;
}

.gme-pi-btn {
  border: 1px solid rgba(80, 199, 157, 0.52);
  background: linear-gradient(180deg, #0f7458 0%, #0a5945 100%);
  color: #edfff8;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
}

.gme-pi-btn.gme-pi-btn-ghost {
  background: transparent;
  border-color: rgba(129, 184, 166, 0.5);
  color: #c5ded8;
}

.gme-pi-reader {
  padding: 18px;
  position: sticky;
  top: 88px;
}

.gme-pi-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.gme-pi-load-btn {
  min-width: 220px;
}

.gme-pi-end {
  margin: 6px 0 0;
  text-align: center;
  color: #95b9b0;
  font-size: 13px;
}

.gme-pi-reader-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.gme-pi-reader h2 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.15;
  color: #f7fffc;
}

.gme-pi-reader-content {
  color: #d2e6e0;
}

.gme-pi-reader-content p,
.gme-pi-reader-content li {
  color: #d2e6e0;
}

.gme-pi-empty {
  color: #abc7bf;
}

.gme-private-insights-locked {
  max-width: 900px;
  margin: 24px auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(16, 10, 10, 0.72);
  border: 1px solid rgba(196, 92, 92, 0.44);
  color: #ffd8d8;
  text-align: center;
}

.gme-private-insights-debug {
  margin: 8px auto 14px;
  max-width: 1240px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140, 255, 212, 0.38);
  background: rgba(7, 28, 25, 0.85);
  color: #bdf7e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  html.page-id-5409,
  body.page-id-5409 {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: static !important;
    height: auto !important;
    max-height: none !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.page-id-5409 #page,
  body.page-id-5409 #content,
  body.page-id-5409 main,
  body.page-id-5409 .site-main,
  body.page-id-5409 .gme-private-insights-shell,
  body.page-id-5409 #gme-private-insights-app {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  .gme-pi-hero,
  .gme-pi-grid,
  .gme-pi-teaser-grid {
    grid-template-columns: 1fr;
  }

  .gme-pi-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gme-pi-search {
    max-width: none;
  }

  .gme-pi-result-meta {
    font-size: 12px;
  }

  .gme-pi-reader {
    position: static;
  }

  .gme-pi-reader-mobile-hidden {
    display: none;
  }
}
