/* ============================================================================
   Liquiplex Membership – Signal Pages CSS
   ============================================================================ */

:root {
  --lpm-radius: 12px;
  --lpm-shadow: 0 4px 24px rgba(0,0,0,.10);
  --lpm-primary: #7b2ff7;
  --lpm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Signal Header ──────────────────────────────────────────────────────────── */
.lpm-signal-header {
  font-family: var(--lpm-font);
  margin: 0 0 32px;
}

.lpm-signal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--lpm-radius);
  padding: 20px 24px;
  box-shadow: var(--lpm-shadow);
  flex-wrap: wrap;
}

.lpm-signal-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.lpm-signal-icon img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  display: block;
}

.lpm-signal-name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.lpm-ticker {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chain-color, #7b2ff7);
  margin-left: 6px;
  background: color-mix(in srgb, var(--chain-color, #7b2ff7) 12%, white);
  padding: 2px 10px;
  border-radius: 20px;
}

.lpm-live-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.lpm-price-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

.lpm-price-change {
  font-size: .9rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
.lpm-price-change.positive { background: #d1fae5; color: #065f46; }
.lpm-price-change.negative { background: #fee2e2; color: #991b1b; }

.lpm-price-badge {
  background: #10b981;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: lpm-pulse 2s ease-in-out infinite;
}

@keyframes lpm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.lpm-signal-tier-badge {
  margin-left: auto;
}
.lpm-signal-tier-badge span {
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
}

/* ── TradingView Container ───────────────────────────────────────────────────── */
.lpm-signal-chart {
  margin: 16px 0;
}

.lpm-signal-chart .tradingview-widget-container {
  border-radius: var(--lpm-radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: var(--lpm-shadow);
}

.lpm-signal-chart .tradingview-widget-container__widget {
  min-height: 450px;
  position: relative;
}

.lpm-signal-chart .tradingview-widget-container__widget iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 450px;
  border: none;
  display: block;
}

.lpm-tradingview-container {
  margin: 16px 0;
  border-radius: var(--lpm-radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* ── Signal Summary Panel ───────────────────────────────────────────────────── */
.lpm-signal-summary {
  background: linear-gradient(135deg, #f8f4ff 0%, #eff6ff 100%);
  border: 1px solid #e0d7f3;
  border-radius: var(--lpm-radius);
  padding: 20px 24px;
  margin: 16px 0;
}

/* ── AI Plotter ───────────────────────────────────────────────────────────── */
.lpm-ai-plotter {
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: var(--lpm-radius);
  padding: 16px 18px;
  background: #ffffff;
}

.lpm-ai-plotter-head h3 {
  margin: 0 0 6px;
  color: #111827;
}

.lpm-ai-plotter-head p {
  margin: 0;
  color: #4b5563;
  font-size: .9rem;
}

.lpm-ai-plotter-form-wrap {
  margin-top: 10px;
}

.lpm-ai-plotter-preset-label {
  display: block;
  margin: 0 0 6px;
  color: #4b5563;
  font-size: .82rem;
  font-weight: 600;
}

.lpm-ai-plotter-preset {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--lpm-font);
  font-size: .88rem;
  background: #fff;
  color: #111827;
  margin-bottom: 8px;
}

.lpm-ai-plotter-preset-help {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: .8rem;
}

.lpm-ai-plotter-preset optgroup {
  color: #111827;
  font-weight: 700;
}

.lpm-ai-plotter-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--lpm-font);
  font-size: .92rem;
  resize: vertical;
  min-height: 78px;
}

.lpm-ai-plotter-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lpm-ai-plotter-output {
  margin-top: 10px;
}

.lpm-ai-plotter-summary {
  margin: 0 0 6px;
  color: #111827;
  font-weight: 600;
}

.lpm-ai-plotter-meta {
  margin: 0;
  color: #374151;
  font-size: .9rem;
}

.lpm-ai-plotter-notes {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: .88rem;
}

.lpm-ai-plotter-status { color: #6b7280; margin: 0; }
.lpm-ai-plotter-error { color: #dc2626; margin: 0; }


/* ── Claude analysis result card ───────────────────────────────────────── */
.lpm-ai-result-header { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; }
.lpm-ai-pattern-name { font-size:1.05rem; font-weight:700; color:#111827; flex:1; min-width:160px; }
.lpm-ai-badge { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.78rem; font-weight:600; white-space:nowrap; }
.lpm-ai-badge-tf          { background:#e5e7eb; color:#374151; }
.lpm-ai-badge-confirmed   { background:#d1fae5; color:#065f46; }
.lpm-ai-badge-unconfirmed { background:#fef3c7; color:#92400e; }
.lpm-ai-bias-bullish      { background:#d1fae5; color:#065f46; }
.lpm-ai-bias-bearish      { background:#fee2e2; color:#991b1b; }
.lpm-ai-bias-neutral      { background:#e5e7eb; color:#374151; }
.lpm-ai-stats-row { display:flex; gap:12px; margin-bottom:14px; }
.lpm-ai-stat { flex:1; text-align:center; background:#f9fafb; border-radius:8px; padding:10px 6px 8px; border:1px solid #e5e7eb; }
.lpm-ai-stat-val { font-size:1.25rem; font-weight:700; color:#111827; line-height:1; }
.lpm-ai-stat-lbl { font-size:.72rem; color:#6b7280; margin-top:4px; text-transform:uppercase; letter-spacing:.04em; }
.lpm-ai-analysis { font-size:.9rem; color:#374151; line-height:1.6; margin:0 0 14px; padding:10px 12px; background:#f0f9ff; border-left:3px solid #0ea5e9; border-radius:0 6px 6px 0; }
.lpm-ai-trade-levels { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; margin-bottom:14px; }
.lpm-ai-level { padding:8px 12px; border-radius:8px; border:1px solid #e5e7eb; }
.lpm-ai-level-lbl { font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; color:#6b7280; display:block; margin-bottom:2px; }
.lpm-ai-level-val { font-size:.95rem; font-weight:600; color:#111827; }
.lpm-ai-entry  { border-color:#0ea5e9; background:#f0f9ff; }
.lpm-ai-stop   { border-color:#ef4444; background:#fef2f2; }
.lpm-ai-target,.lpm-ai-target2 { border-color:#22c55e; background:#f0fdf4; }
.lpm-ai-key-levels { margin-bottom:12px; font-size:.85rem; }
.lpm-ai-key-levels strong { color:#374151; display:block; margin-bottom:4px; }
.lpm-ai-key-levels ul { margin:0; padding-left:18px; color:#4b5563; }
.lpm-ai-key-levels li { margin-bottom:2px; }

.lpm-ai-mini-canvas {
  margin-top: 16px;
  border-radius: var(--lpm-radius, 8px);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.lpm-ai-mini-canvas-label {
  font-size: .75rem;
  color: #6b7280;
  text-align: right;
  padding: 4px 8px 0;
}
body.is-style-dark .lpm-ai-mini-canvas { border-color: #374151; }


/* ── Zi 10x STEPS Strategy Rules ────────────────────────────────────────── */
.lpm-steps-rules {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--lpm-radius, 10px);
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid #312e81;
}
.lpm-steps-title { color: #e0e7ff; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.lpm-steps-title span { color: #818cf8; font-weight: 500; font-size: .78rem; }
.lpm-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lpm-step { display: flex; align-items: center; gap: 8px; background: rgba(99,102,241,.12); border-radius: 8px; padding: 7px 10px; }
.lpm-step b { color: #a5b4fc; font-size: 1.1rem; min-width: 16px; }
.lpm-step span { color: #c7d2fe; font-size: .76rem; line-height: 1.3; }

/* Timeframe dropdown */
.lpm-ai-plotter-timeframe {
  width: 100%; padding: 8px 10px; margin-bottom: 12px;
  border-radius: 8px; border: 1px solid #d1d5db; font-size: .9rem;
}

/* Indicators confluence row */
.lpm-ai-indicators { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lpm-ind { padding: 3px 10px; border-radius: 14px; font-size: .78rem; font-weight: 600; background: #e5e7eb; color: #374151; }
.lpm-ind-bull { background: #d1fae5; color: #065f46; }
.lpm-ind-bear { background: #fee2e2; color: #991b1b; }

/* Wyckoff summary */
.lpm-ai-wyckoff {
  font-size: .85rem; color: #374151; margin-bottom: 12px;
  padding: 8px 12px; background: #fefce8; border-left: 3px solid #f59e0b; border-radius: 0 6px 6px 0;
}
body.is-style-dark .lpm-ai-wyckoff { background: #2a2410; color: #fde68a; }

.lpm-ai-algo-note { font-size:.78rem; color:#9ca3af; margin:8px 0 0; }
body.is-style-dark .lpm-ai-pattern-name,
body.is-style-dark .lpm-ai-stat-val,
body.is-style-dark .lpm-ai-level-val { color:#f9fafb; }
body.is-style-dark .lpm-ai-stat { background:#1f2937; border-color:#374151; }
body.is-style-dark .lpm-ai-analysis { background:#0c1a2e; border-color:#0ea5e9; color:#cbd5e1; }
body.is-style-dark .lpm-ai-entry  { background:#0c1a2e; border-color:#0ea5e9; }
body.is-style-dark .lpm-ai-stop   { background:#2d0a0a; border-color:#ef4444; }
body.is-style-dark .lpm-ai-target,
body.is-style-dark .lpm-ai-target2 { background:#052e16; border-color:#22c55e; }

.lpm-ai-plotter-upsell p {
  margin: 0 0 10px;
  color: #374151;
}


.lpm-signal-summary-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .95rem;
}

.lpm-signal-data {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.lpm-signal-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

.lpm-signal-item-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: 4px;
}

.lpm-signal-item-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.lpm-signal-item-value.bullish { color: #059669; }
.lpm-signal-item-value.bearish { color: #dc2626; }
.lpm-signal-item-value.neutral { color: #d97706; }

/* ── Usage Guide + Upsell ─────────────────────────────────────────────────── */
.lpm-usage-guide {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--lpm-radius);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: var(--lpm-shadow);
}

.lpm-usage-guide-head h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #111827;
}

.lpm-usage-guide-head p {
  margin: 0;
  color: #4b5563;
  font-size: .92rem;
}

.lpm-usage-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #374151;
}

.lpm-usage-steps li { margin: 4px 0; }

.lpm-tier-guide-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lpm-tier-guide-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f9fafb;
}

.lpm-tier-guide-card.is-current {
  border-color: var(--chain-color, #7b2ff7);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--chain-color, #7b2ff7) 35%, white);
}

.lpm-tier-guide-card h4 {
  margin: 0 0 8px;
  color: #111827;
}

.lpm-tier-guide-card ul {
  margin: 0;
  padding-left: 16px;
  color: #374151;
  font-size: .88rem;
}

.lpm-tier-guide-card li { margin: 4px 0; }

.lpm-tier-guide-cta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lpm-current-tier {
  color: #374151;
  font-size: .9rem;
}

.lpm-shortcode-comments {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: var(--lpm-radius);
  border: 1px solid #e5e7eb;
  background: #fff;
}

.lpm-shortcode-comments h3 {
  margin: 0 0 8px;
  color: #111827;
}

.lpm-shortcode-comments-note {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: .9rem;
}

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

/* ── Dark theme overrides ─────────────────────────────────────────────────── */
body.is-style-dark .lpm-signal-hero,
body.dark .lpm-signal-hero,
body.dark-mode .lpm-signal-hero,
html[data-theme="dark"] .lpm-signal-hero,
body[data-theme="dark"] .lpm-signal-hero {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-signal-name,
body.dark .lpm-signal-name,
body.dark-mode .lpm-signal-name,
html[data-theme="dark"] .lpm-signal-name,
body[data-theme="dark"] .lpm-signal-name,
body.is-style-dark .lpm-price-value,
body.dark .lpm-price-value,
body.dark-mode .lpm-price-value,
html[data-theme="dark"] .lpm-price-value,
body[data-theme="dark"] .lpm-price-value {
  color: #f9fafb;
}

body.is-style-dark .lpm-signal-chart .tradingview-widget-container,
body.dark .lpm-signal-chart .tradingview-widget-container,
body.dark-mode .lpm-signal-chart .tradingview-widget-container,
html[data-theme="dark"] .lpm-signal-chart .tradingview-widget-container,
body[data-theme="dark"] .lpm-signal-chart .tradingview-widget-container {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-signal-summary,
body.dark .lpm-signal-summary,
body.dark-mode .lpm-signal-summary,
html[data-theme="dark"] .lpm-signal-summary,
body[data-theme="dark"] .lpm-signal-summary {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border-color: #374151;
}

body.is-style-dark .lpm-ai-plotter,
body.dark .lpm-ai-plotter,
body.dark-mode .lpm-ai-plotter,
html[data-theme="dark"] .lpm-ai-plotter,
body[data-theme="dark"] .lpm-ai-plotter {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-ai-plotter-head h3,
body.dark .lpm-ai-plotter-head h3,
body.dark-mode .lpm-ai-plotter-head h3,
html[data-theme="dark"] .lpm-ai-plotter-head h3,
body[data-theme="dark"] .lpm-ai-plotter-head h3,
body.is-style-dark .lpm-ai-plotter-summary,
body.dark .lpm-ai-plotter-summary,
body.dark-mode .lpm-ai-plotter-summary,
html[data-theme="dark"] .lpm-ai-plotter-summary,
body[data-theme="dark"] .lpm-ai-plotter-summary {
  color: #f3f4f6;
}

body.is-style-dark .lpm-ai-plotter-head p,
body.dark .lpm-ai-plotter-head p,
body.dark-mode .lpm-ai-plotter-head p,
html[data-theme="dark"] .lpm-ai-plotter-head p,
body[data-theme="dark"] .lpm-ai-plotter-head p,
body.is-style-dark .lpm-ai-plotter-meta,
body.dark .lpm-ai-plotter-meta,
body.dark-mode .lpm-ai-plotter-meta,
html[data-theme="dark"] .lpm-ai-plotter-meta,
body[data-theme="dark"] .lpm-ai-plotter-meta,
body.is-style-dark .lpm-ai-plotter-notes,
body.dark .lpm-ai-plotter-notes,
body.dark-mode .lpm-ai-plotter-notes,
html[data-theme="dark"] .lpm-ai-plotter-notes,
body[data-theme="dark"] .lpm-ai-plotter-notes,
body.is-style-dark .lpm-ai-plotter-upsell p,
body.dark .lpm-ai-plotter-upsell p,
body.dark-mode .lpm-ai-plotter-upsell p,
html[data-theme="dark"] .lpm-ai-plotter-upsell p,
body[data-theme="dark"] .lpm-ai-plotter-upsell p,
body.is-style-dark .lpm-ai-plotter-status,
body.dark .lpm-ai-plotter-status,
body.dark-mode .lpm-ai-plotter-status,
html[data-theme="dark"] .lpm-ai-plotter-status,
body[data-theme="dark"] .lpm-ai-plotter-status {
  color: #d1d5db;
}

body.is-style-dark .lpm-ai-plotter-input,
body.dark .lpm-ai-plotter-input,
body.dark-mode .lpm-ai-plotter-input,
html[data-theme="dark"] .lpm-ai-plotter-input,
body[data-theme="dark"] .lpm-ai-plotter-input {
  background: #1f2937;
  border-color: #4b5563;
  color: #f3f4f6;
}

body.is-style-dark .lpm-ai-plotter-preset-label,
body.dark .lpm-ai-plotter-preset-label,
body.dark-mode .lpm-ai-plotter-preset-label,
html[data-theme="dark"] .lpm-ai-plotter-preset-label,
body[data-theme="dark"] .lpm-ai-plotter-preset-label {
  color: #d1d5db;
}

body.is-style-dark .lpm-ai-plotter-preset,
body.dark .lpm-ai-plotter-preset,
body.dark-mode .lpm-ai-plotter-preset,
html[data-theme="dark"] .lpm-ai-plotter-preset,
body[data-theme="dark"] .lpm-ai-plotter-preset {
  background: #1f2937;
  border-color: #4b5563;
  color: #f3f4f6;
}

body.is-style-dark .lpm-ai-plotter-preset-help,
body.dark .lpm-ai-plotter-preset-help,
body.dark-mode .lpm-ai-plotter-preset-help,
html[data-theme="dark"] .lpm-ai-plotter-preset-help,
body[data-theme="dark"] .lpm-ai-plotter-preset-help {
  color: #d1d5db;
}

body.is-style-dark .lpm-signal-summary-loading,
body.dark .lpm-signal-summary-loading,
body.dark-mode .lpm-signal-summary-loading,
html[data-theme="dark"] .lpm-signal-summary-loading,
body[data-theme="dark"] .lpm-signal-summary-loading,
body.is-style-dark .lpm-signal-item-label,
body.dark .lpm-signal-item-label,
body.dark-mode .lpm-signal-item-label,
html[data-theme="dark"] .lpm-signal-item-label,
body[data-theme="dark"] .lpm-signal-item-label {
  color: #9ca3af;
}

body.is-style-dark .lpm-signal-item,
body.dark .lpm-signal-item,
body.dark-mode .lpm-signal-item,
html[data-theme="dark"] .lpm-signal-item,
body[data-theme="dark"] .lpm-signal-item {
  background: #1f2937;
  border-color: #374151;
}

body.is-style-dark .lpm-signal-item-value,
body.dark .lpm-signal-item-value,
body.dark-mode .lpm-signal-item-value,
html[data-theme="dark"] .lpm-signal-item-value,
body[data-theme="dark"] .lpm-signal-item-value,
body.is-style-dark .lpm-signal-updated,
body.dark .lpm-signal-updated,
body.dark-mode .lpm-signal-updated,
html[data-theme="dark"] .lpm-signal-updated,
body[data-theme="dark"] .lpm-signal-updated {
  color: #e5e7eb;
}

body.is-style-dark .lpm-usage-guide,
body.dark .lpm-usage-guide,
body.dark-mode .lpm-usage-guide,
html[data-theme="dark"] .lpm-usage-guide,
body[data-theme="dark"] .lpm-usage-guide {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-usage-guide-head h3,
body.dark .lpm-usage-guide-head h3,
body.dark-mode .lpm-usage-guide-head h3,
html[data-theme="dark"] .lpm-usage-guide-head h3,
body[data-theme="dark"] .lpm-usage-guide-head h3,
body.is-style-dark .lpm-tier-guide-card h4,
body.dark .lpm-tier-guide-card h4,
body.dark-mode .lpm-tier-guide-card h4,
html[data-theme="dark"] .lpm-tier-guide-card h4,
body[data-theme="dark"] .lpm-tier-guide-card h4 {
  color: #f3f4f6;
}

body.is-style-dark .lpm-usage-guide-head p,
body.dark .lpm-usage-guide-head p,
body.dark-mode .lpm-usage-guide-head p,
html[data-theme="dark"] .lpm-usage-guide-head p,
body[data-theme="dark"] .lpm-usage-guide-head p,
body.is-style-dark .lpm-usage-steps,
body.dark .lpm-usage-steps,
body.dark-mode .lpm-usage-steps,
html[data-theme="dark"] .lpm-usage-steps,
body[data-theme="dark"] .lpm-usage-steps,
body.is-style-dark .lpm-current-tier,
body.dark .lpm-current-tier,
body.dark-mode .lpm-current-tier,
html[data-theme="dark"] .lpm-current-tier,
body[data-theme="dark"] .lpm-current-tier,
body.is-style-dark .lpm-tier-guide-card ul,
body.dark .lpm-tier-guide-card ul,
body.dark-mode .lpm-tier-guide-card ul,
html[data-theme="dark"] .lpm-tier-guide-card ul,
body[data-theme="dark"] .lpm-tier-guide-card ul {
  color: #d1d5db;
}

body.is-style-dark .lpm-tier-guide-card,
body.dark .lpm-tier-guide-card,
body.dark-mode .lpm-tier-guide-card,
html[data-theme="dark"] .lpm-tier-guide-card,
body[data-theme="dark"] .lpm-tier-guide-card {
  background: #1f2937;
  border-color: #374151;
}

body.is-style-dark .lpm-shortcode-comments,
body.dark .lpm-shortcode-comments,
body.dark-mode .lpm-shortcode-comments,
html[data-theme="dark"] .lpm-shortcode-comments,
body[data-theme="dark"] .lpm-shortcode-comments {
  background: #111827;
  border-color: #374151;
}

body.is-style-dark .lpm-shortcode-comments h3,
body.dark .lpm-shortcode-comments h3,
body.dark-mode .lpm-shortcode-comments h3,
html[data-theme="dark"] .lpm-shortcode-comments h3,
body[data-theme="dark"] .lpm-shortcode-comments h3 {
  color: #f3f4f6;
}

body.is-style-dark .lpm-shortcode-comments-note,
body.dark .lpm-shortcode-comments-note,
body.dark-mode .lpm-shortcode-comments-note,
html[data-theme="dark"] .lpm-shortcode-comments-note,
body[data-theme="dark"] .lpm-shortcode-comments-note {
  color: #d1d5db;
}

/* ── Access Wall ─────────────────────────────────────────────────────────────── */
.lpm-access-wall {
  text-align: center;
  padding: 60px 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px dashed #d1d5db;
  border-radius: var(--lpm-radius);
  margin: 24px 0;
}

.lpm-access-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 20px;
}

.lpm-access-wall h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}

.lpm-access-wall p {
  color: #6b7280;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

.lpm-access-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.lpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.lpm-btn-primary {
  background: var(--lpm-primary);
  color: #fff;
}
.lpm-btn-primary:hover {
  background: #6320d4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,47,247,.35);
}

.lpm-btn-outline {
  background: transparent;
  color: var(--lpm-primary);
  border: 2px solid var(--lpm-primary);
}
.lpm-btn-outline:hover {
  background: var(--lpm-primary);
  color: #fff;
}

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.lpm-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: var(--lpm-primary);
  border-radius: 50%;
  animation: lpm-spin .7s linear infinite;
}
@keyframes lpm-spin { to { transform: rotate(360deg); } }

/* ── Archive (Signal Index) ──────────────────────────────────────────────────── */
.lpm-signal-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px 0;
}

.lpm-signal-card {
  background: #fff;
  border-radius: var(--lpm-radius);
  border: 1px solid #e5e7eb;
  box-shadow: var(--lpm-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.lpm-signal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}

.lpm-signal-card-header {
  padding: 20px 20px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lpm-signal-card-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.lpm-signal-card-icon img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  display: block;
}

/* ── Related Signals (single page) ────────────────────────────────────────── */
.lpm-other-signals-wrap {
  margin: 28px auto 8px;
  text-align: center;
}

.lpm-other-signals-wrap h3 {
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin: 0 0 12px;
}

.lpm-other-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.lpm-other-signal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: .9rem;
  border: 1px solid #e5e7eb;
  transition: background .15s ease;
  background: #fff;
}

.lpm-other-signal-card:hover {
  background: #f9fafb;
}

.lpm-other-signal-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.lpm-other-signal-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
}

.lpm-other-signal-name {
  text-align: left;
  font-weight: 600;
}

.lpm-other-signal-card strong {
  margin-left: auto;
  font-size: .8rem;
}

.lpm-signal-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 2px;
}

.lpm-signal-card-ticker {
  font-size: .85rem;
  font-weight: 600;
  color: #6b7280;
}

.lpm-signal-card-price {
  padding: 0 20px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.lpm-signal-card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: #9ca3af;
}

/* ── Reply Title ─────────────────────────────────────────────────────────────── */
.lpm-reply-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid var(--lpm-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ── Upgrade / Must Login Notice ─────────────────────────────────────────────── */
.lpm-must-login,
.lpm-upgrade-notice {
  background: linear-gradient(135deg, #f0ebff 0%, #eff6ff 100%);
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: .95rem;
  color: #3b0764;
  margin: 16px 0;
}

.lpm-upgrade-notice .lpm-btn-primary {
  display: inline-flex;
  margin-top: 10px;
}

/* ── Char counter ────────────────────────────────────────────────────────────── */
.lpm-char-counter {
  display: block;
  text-align: right;
  font-size: .78rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ── Comment Images ──────────────────────────────────────────────────────────── */
.lpm-comment-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lpm-comment-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: zoom-in;
  transition: transform .2s;
}
.lpm-comment-image:hover { transform: scale(1.03); }

/* Responsive */
@media (max-width: 600px) {
  .lpm-signal-hero { padding: 14px 16px; gap: 12px; }
  .lpm-signal-index { grid-template-columns: 1fr; }
  .lpm-comment-image { width: 100%; height: auto; }
}


/* ── Full-width signal pages (Prespa has-sidebar fix) ─────────────────────── */
body.single-lp_signal,
body.post-type-archive-lp_signal,
body.lpm-signal-fullwidth {
  --lpm-signal-page-max: 100%;
}

body.single-lp_signal.has-sidebar .site-wrapper,
body.post-type-archive-lp_signal.has-sidebar .site-wrapper,
body.lpm-signal-fullwidth .site-wrapper,
body.single-lp_signal .site-wrapper,
body.post-type-archive-lp_signal .site-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

body.single-lp_signal #page,
body.post-type-archive-lp_signal #page,
body.lpm-signal-fullwidth #page,
body.single-lp_signal .site,
body.post-type-archive-lp_signal .site {
  max-width: 100% !important;
  width: 100% !important;
}

body.single-lp_signal .content-area,
body.post-type-archive-lp_signal .content-area,
body.lpm-signal-fullwidth .content-area,
body.single-lp_signal #primary,
body.post-type-archive-lp_signal #primary,
.lpm-signal-page,
.lpm-signal-page--full {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  padding-left: clamp(12px, 2vw, 28px) !important;
  padding-right: clamp(12px, 2vw, 28px) !important;
  box-sizing: border-box;
}

/* Hide theme sidebar gutters on signal pages */
body.single-lp_signal #secondary,
body.post-type-archive-lp_signal #secondary,
body.lpm-signal-fullwidth #secondary,
body.single-lp_signal aside.widget-area,
body.post-type-archive-lp_signal aside.widget-area,
body.single-lp_signal .widget-area,
body.post-type-archive-lp_signal .widget-area {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-lp_signal .site-content,
body.post-type-archive-lp_signal .site-content,
body.lpm-signal-fullwidth .site-content,
body.single-lp_signal .site-main,
body.post-type-archive-lp_signal .site-main {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  grid-template-columns: 1fr !important;
}

body.single-lp_signal .site-content > *,
body.post-type-archive-lp_signal .site-content > * {
  width: 100% !important;
  max-width: 100% !important;
}

.lpm-signal-article {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.lpm-sidebar-icon {
  position: relative;
  overflow: hidden;
}

.lpm-sidebar-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Dark mode header cards on Prespa */
body.dark-mode .lpm-signal-hero,
body.is-style-dark .lpm-signal-hero {
  background: #0f111a;
  border-color: #2d3345;
}

body.dark-mode .lpm-signal-name,
body.is-style-dark .lpm-signal-name,
body.dark-mode .lpm-price-value,
body.is-style-dark .lpm-price-value {
  color: #f8fafc;
}
