/* ============================================================
   Zero to Hero Scanner — Stylesheet
   ============================================================ */

:root {
  --zth-accent:    #2563eb;
  --zth-bg:        #f8fafc;
  --zth-card:      #ffffff;
  --zth-border:    #e2e8f0;
  --zth-text:      #1e293b;
  --zth-muted:     #64748b;
  --zth-long:      #059669;
  --zth-short:     #dc2626;
  --zth-long-bg:   #ecfdf5;
  --zth-short-bg:  #fef2f2;
  --zth-gold:      #d97706;
  --zth-radius:    10px;
  --zth-shadow:    0 2px 12px rgba(0,0,0,.07);
}

/* ── Wrapper ─────────────────────────────────────────────── */
.zth-module-wrap,
.zth-dashboard,
.zth-outcomes-wrap,
.zth-active-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--zth-text);
  background: var(--zth-bg);
  border-radius: var(--zth-radius);
  padding: 0;
  margin-bottom: 30px;
  box-shadow: var(--zth-shadow);
  border: 1px solid var(--zth-border);
  position: relative;
  overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────── */
.zth-module-header {
  background: var(--zth-accent);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.zth-module-title { display: flex; align-items: center; gap: 10px; }
.zth-module-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.zth-tf-badge {
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}
.zth-module-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Button group ────────────────────────────────────────── */
.zth-btn-group { display: flex; gap: 4px; }
.zth-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.zth-btn:hover, .zth-btn.active {
  background: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.7);
}
.zth-btn.long.active  { background: var(--zth-long);  border-color: var(--zth-long); }
.zth-btn.short.active { background: var(--zth-short); border-color: var(--zth-short); }

.zth-date-picker {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.zth-date-picker::-webkit-calendar-picker-indicator { filter: invert(1); }

.zth-refresh-btn {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.zth-refresh-btn:hover { transform: rotate(180deg); background: rgba(255,255,255,.3); }
.zth-last-updated { font-size: 11px; opacity: .8; }

/* ── Stats bar ───────────────────────────────────────────── */
.zth-stats-bar {
  padding: 8px 20px;
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid var(--zth-border);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.zth-stat { font-size: 12px; color: var(--zth-muted); display: flex; align-items: center; gap: 5px; }
.zth-stat.total { font-weight: 700; color: var(--zth-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.long  { background: var(--zth-long); }
.dot.short { background: var(--zth-short); }

/* ── Table scroll ────────────────────────────────────────── */
.zth-table-scroll { overflow-x: auto; }

/* ── Table ───────────────────────────────────────────────── */
.zth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.zth-table thead th {
  background: #1e293b;
  color: #94a3b8;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.zth-table tbody tr {
  border-bottom: 1px solid var(--zth-border);
  transition: background .15s;
}
.zth-table tbody tr:hover { background: #f1f5f9; }
.zth-table tbody tr.long  { border-left: 3px solid var(--zth-long); }
.zth-table tbody tr.short { border-left: 3px solid var(--zth-short); }
.zth-table td { padding: 9px 12px; vertical-align: middle; white-space: nowrap; }

/* ── Price cells ─────────────────────────────────────────── */
.zth-price        { font-family: 'Courier New', monospace; font-weight: 600; }
.zth-price.entry  { color: var(--zth-accent); }
.zth-price.sl     { color: var(--zth-short); }
.zth-price.t1     { color: #16a34a; }
.zth-price.t2     { color: #15803d; }
.zth-price.t3     { color: #166534; font-weight: 700; }
.zth-price.risk   { color: var(--zth-muted); font-size: 12px; }

/* ── Symbol cell ─────────────────────────────────────────── */
.zth-symbol { min-width: 90px; }
.zth-symbol strong { font-size: 14px; }
.zth-tf-tag {
  display: block;
  font-size: 10px;
  color: var(--zth-muted);
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 2px;
  width: fit-content;
}

/* ── Direction badge ─────────────────────────────────────── */
.zth-dir-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.zth-dir-badge.long  { background: var(--zth-long-bg);  color: var(--zth-long); }
.zth-dir-badge.short { background: var(--zth-short-bg); color: var(--zth-short); }

/* ── Trend ───────────────────────────────────────────────── */
.zth-trend { font-size: 12px; font-weight: 600; }
.zth-trend.up       { color: var(--zth-long); }
.zth-trend.down     { color: var(--zth-short); }
.zth-trend.sideways { color: var(--zth-gold); }

/* ── Location ────────────────────────────────────────────── */
.zth-location {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--zth-muted);
}

/* ── PE Score ────────────────────────────────────────────── */
.zth-pe {
  font-weight: 700;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--zth-muted);
}
.zth-pe.pe-gold   { background: #fef3c7; color: var(--zth-gold); }
.zth-pe.pe-silver { background: #f1f5f9; color: #475569; }
.pe-gold   { color: var(--zth-gold); font-weight: 700; }
.pe-silver { color: #475569; font-weight: 600; }

/* ── Status ──────────────────────────────────────────────── */
.zth-status {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}
.status-active { background: #dbeafe; color: #1d4ed8; }
.status-t1     { background: #dcfce7; color: #16a34a; }
.status-t2     { background: #bbf7d0; color: #15803d; }
.status-t3     { background: #a7f3d0; color: #065f46; }
.status-sl     { background: #fee2e2; color: #dc2626; }
.status-exp    { background: #f1f5f9; color: #94a3b8; }

/* ── Reasons popup ───────────────────────────────────────── */
.zth-reasons { position: relative; }
.zth-reasons-toggle {
  background: #e0e7ff; color: #3730a3;
  border: none; border-radius: 6px;
  padding: 3px 8px; font-size: 11px;
  cursor: pointer; font-weight: 600;
}
.zth-reasons-popup {
  display: none;
  position: absolute; right: 0; top: 100%;
  background: #1e293b; color: #e2e8f0;
  border-radius: 8px; padding: 10px 14px;
  min-width: 260px; max-width: 340px;
  z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  font-size: 12px; line-height: 1.6;
}
.zth-reasons-popup ul { margin: 0; padding-left: 16px; }
.zth-reasons-popup li { margin-bottom: 4px; }
.zth-reasons:hover .zth-reasons-popup { display: block; }

/* ── Empty state ─────────────────────────────────────────── */
.zth-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--zth-muted);
}
.zth-empty span { font-size: 36px; display: block; margin-bottom: 10px; }
.zth-empty p    { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.zth-empty small{ font-size: 12px; }

/* ── Loading overlay ─────────────────────────────────────── */
.zth-loading {
  display: none;
  position: absolute; inset: 0;
  background: rgba(248,250,252,.85);
  z-index: 50;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  color: var(--zth-accent);
}
.zth-loading.active { display: flex; }
.zth-spinner {
  width: 28px; height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--zth-accent);
  border-radius: 50%;
  animation: zth-spin .7s linear infinite;
}
@keyframes zth-spin { to { transform: rotate(360deg); } }

/* ── Dashboard ───────────────────────────────────────────── */
.zth-dashboard { padding: 0; }
.zth-dash-header {
  background: #1e293b;
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.zth-dash-header h2 { margin: 0; color: #fff; font-size: 20px; }
.zth-last-run { font-size: 12px; color: #94a3b8; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.zth-run-status { font-weight: 700; }
.zth-run-status.ok  { color: #4ade80; }
.zth-run-status.err { color: #f87171; }

.zth-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--zth-border);
}
.zth-dash-card {
  padding: 18px 20px;
  border-right: 1px solid var(--zth-border);
  display: flex;
  gap: 14px;
  align-items: center;
  transition: background .15s;
}
.zth-dash-card:last-child { border-right: none; }
.zth-dash-card:hover { background: #f8fafc; }
.zth-dash-card-icon { font-size: 28px; }
.zth-dash-card-title {
  font-size: 12px; font-weight: 700;
  color: var(--zth-muted); text-transform: uppercase;
  letter-spacing: .5px;
}
.zth-dash-card-title small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.zth-dash-card-count {
  font-size: 28px; font-weight: 800;
  color: var(--card-color, var(--zth-accent));
  line-height: 1;
}
.zth-dash-card-sub { display: flex; gap: 10px; font-size: 11px; color: var(--zth-muted); margin-top: 2px; }
.zth-dash-card-sub .long  { color: var(--zth-long); font-weight: 600; }
.zth-dash-card-sub .short { color: var(--zth-short); font-weight: 600; }

.zth-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 0;
  border-bottom: 1px solid var(--zth-border);
}
.zth-stat-box {
  padding: 16px 20px;
  border-right: 1px solid var(--zth-border);
  text-align: center;
}
.zth-stat-box:last-child { border-right: none; }
.zth-stat-label { font-size: 11px; color: var(--zth-muted); text-transform: uppercase; letter-spacing: .5px; }
.zth-stat-val   { font-size: 24px; font-weight: 800; margin: 4px 0; }
.zth-stat-val.good    { color: var(--zth-long); }
.zth-stat-val.ok      { color: var(--zth-gold); }
.zth-stat-val.bad     { color: var(--zth-short); }
.zth-stat-val.neutral { color: var(--zth-accent); }
.zth-stat-sub  { font-size: 11px; color: var(--zth-muted); }

.zth-pe-legend {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--zth-muted);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}

/* ── Outcomes ────────────────────────────────────────────── */
.zth-outcomes-stats {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--zth-border);
}
.os-box {
  flex: 1; padding: 14px;
  text-align: center;
  border-right: 1px solid var(--zth-border);
}
.os-box:last-child { border-right: none; }
.os-val  { display: block; font-size: 22px; font-weight: 800; }
.os-lbl  { font-size: 11px; color: var(--zth-muted); text-transform: uppercase; }
.os-box.good .os-val { color: var(--zth-long); }
.os-box.bad  .os-val { color: var(--zth-short); }

.zth-hit-badge {
  padding: 3px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
}
.zth-hit-badge.win  { background: #dcfce7; color: #15803d; }
.zth-hit-badge.loss { background: #fee2e2; color: #dc2626; }

.profit   { color: var(--zth-long);  font-weight: 700; }
.loss-txt { color: var(--zth-short); font-weight: 700; }

.zth-module-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: #e0e7ff; color: #3730a3; font-weight: 600;
  white-space: nowrap;
}

/* ── Strategy cell ───────────────────────────────────────── */
.zth-strategy {
    font-size: 12px;
    color: var(--zth-muted);
    min-width: 180px;
    max-width: 320px;
    white-space: normal;
    line-height: 1.5;
    padding: 6px 12px !important;
}
.zth-rr       { font-weight: 700; color: var(--zth-accent); }

/* ── Strategy pills ──────────────────────────────────────── */
.zth-strat-pill {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin: 2px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.zth-strat-pill:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .zth-strat-pill {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}
[data-theme="light"] .zth-strat-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Stretch Confluence Scanner page to 100% full screen ── */
body.zth-confluence-page-active .elementor-container,
body.zth-confluence-page-active .elementor-row,
body.zth-confluence-page-active .elementor-section,
body.zth-confluence-page-active .elementor-column,
body.zth-confluence-page-active .elementor-widget-wrap,
body.zth-confluence-page-active .elementor-widget-container,
body.zth-confluence-page-active .elementor-widget,
body.zth-confluence-page-active #content,
body.zth-confluence-page-active .site-main,
body.zth-confluence-page-active .container,
body.zth-confluence-page-active .wrapper,
body.zth-confluence-page-active main,
body.zth-confluence-page-active article,
body.zth-confluence-page-active .post-content,
body.zth-confluence-page-active .entry-content,
body.zth-confluence-page-active div:has(> .zth-confluence-wrap),
body.zth-confluence-page-active div:has(> div > .zth-confluence-wrap),
body.zth-confluence-page-active div:has(> div > div > .zth-confluence-wrap),
body.zth-confluence-page-active div:has(> div > div > div > .zth-confluence-wrap),
body.zth-confluence-page-active div:has(> div > div > div > div > .zth-confluence-wrap) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}


/* ── Widget ──────────────────────────────────────────────── */
.zth-widget-list { margin: 0; padding: 0; list-style: none; }
.zth-widget-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .zth-module-header  { flex-direction: column; align-items: flex-start; }
  .zth-module-controls{ flex-direction: column; align-items: flex-start; }
  .zth-dash-cards,
  .zth-dash-stats     { grid-template-columns: 1fr 1fr; }
  .zth-outcomes-stats { flex-wrap: wrap; }
  .os-box             { min-width: 48%; }
}
@media (max-width: 480px) {
  .zth-dash-cards,
  .zth-dash-stats     { grid-template-columns: 1fr; }
  .zth-table          { font-size: 11px; }
  .zth-table td, .zth-table th { padding: 7px 8px; }
}

/* ── Access Control ──────────────────────────────────────────── */
.zth-locked-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px 24px;
  background: #fffbeb;
  border: 1.5px dashed #d97706;
  border-radius: var(--zth-radius);
  margin: 16px;
}
.zth-locked-icon { font-size: 36px; line-height: 1; }
.zth-locked-content h3 { margin: 0 0 6px; font-size: 16px; }
.zth-locked-content p  { margin: 0 0 14px; color: var(--zth-muted); font-size: 13px; }

.zth-buy-btn {
  display: inline-block;
  background: var(--zth-accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: opacity .2s;
}
.zth-buy-btn:hover { opacity: .85; color: #fff !important; }

.zth-buy-btn-sm {
  display: inline-block;
  background: var(--zth-accent);
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Upcoming blurred teaser ─────────────────────────────────── */
.zth-upcoming-wrap { padding: 16px; }
.zth-upcoming-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: #fef3c7;
  border-radius: 8px 8px 0 0;
  font-weight: 700; font-size: 13px;
  border: 1px solid #fde68a;
}
.zth-upcoming-sub { font-weight: 400; color: var(--zth-muted); font-size: 11px; }
.zth-upcoming-blurred {
  position: relative;
  border: 1px solid #fde68a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  padding: 12px;
}
.zth-upcoming-row {
  display: flex; gap: 16px; align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--zth-border);
  filter: blur(3px);
  user-select: none;
}
.zth-upcoming-symbol { font-weight: 800; color: #94a3b8; letter-spacing: 2px; }
.zth-upcoming-price  { font-family: monospace; color: #94a3b8; }
.zth-upcoming-more   { text-align: center; color: var(--zth-muted); font-size: 12px; padding: 8px; }
.zth-upcoming-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(1px);
}
.zth-upcoming-cta { text-align: center; }
.zth-upcoming-cta p { font-weight: 700; margin-bottom: 12px; }

/* ── Extra setup badge ───────────────────────────────────────── */
.zth-extra-badge {
  display: inline-block;
  background: #fef3c7; color: #92400e;
  border-radius: 4px; padding: 1px 5px;
  font-size: 10px; font-weight: 700;
  margin-left: 4px;
}
tr.is-extra { background: #fffbeb !important; }
tr.is-extra:hover { background: #fef3c7 !important; }

/* ── Extra teaser below table ────────────────────────────────── */
.zth-extra-teaser-wrap { border-top: 2px dashed #d97706; margin-top: 8px; }
.zth-extra-teaser-header {
  padding: 10px 20px;
  background: #fffbeb;
  font-weight: 700;
  font-size: 13px;
  color: #92400e;
}

/* ── My Access page ──────────────────────────────────────────── */
.zth-my-access h2 { margin-bottom: 20px; }
.zth-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.zth-access-card {
  background: var(--zth-card);
  border: 1px solid var(--zth-border);
  border-radius: var(--zth-radius);
  padding: 16px;
  box-shadow: var(--zth-shadow);
}
.zth-access-card-title {
  font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.zth-access-card-title small {
  font-weight: 400; font-size: 11px; color: var(--zth-muted); display: block;
}
.zth-access-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--zth-border);
  font-size: 13px; gap: 8px;
}
.zth-access-row:last-child { border-bottom: none; }
.zth-live-access { background: #fff5f5; }

/* ── Live scan form ──────────────────────────────────────────── */
.zth-live-scan-wrap {
  max-width: 700px; margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.zth-ls-header { text-align: center; margin-bottom: 24px; }
.zth-ls-header h2 { font-size: 24px; margin-bottom: 8px; }
.zth-ls-header p  { color: var(--zth-muted); }
.zth-ls-form {
  background: var(--zth-card);
  border: 1px solid var(--zth-border);
  border-radius: var(--zth-radius);
  padding: 24px;
  box-shadow: var(--zth-shadow);
}
.zth-ls-input-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.zth-ls-input-row input {
  flex: 1; min-width: 160px;
  padding: 10px 14px; border: 1.5px solid var(--zth-border);
  border-radius: 8px; font-size: 15px;
  text-transform: uppercase;
}
.zth-ls-input-row input:focus { border-color: var(--zth-accent); outline: none; }
.zth-ls-input-row select {
  padding: 10px 14px; border: 1.5px solid var(--zth-border);
  border-radius: 8px; font-size: 14px; cursor: pointer;
}
.zth-ls-price-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.zth-ls-price-badge {
  background: #dbeafe; color: #1d4ed8;
  padding: 6px 14px; border-radius: 20px;
  font-weight: 700; font-size: 14px;
}
.zth-ls-pay-btn {
  background: var(--zth-accent); color: #fff;
  border: none; padding: 12px 24px;
  border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.zth-ls-pay-btn:hover    { opacity: .88; }
.zth-ls-pay-btn:disabled { opacity: .55; cursor: not-allowed; }
.zth-ls-disclaimer { font-size: 11px; color: var(--zth-muted); margin-top: 12px; }
.zth-ls-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 50px 20px; text-align: center;
}
.zth-ls-offline, .zth-ls-login-notice {
  text-align: center; padding: 40px 20px;
  background: #f8fafc; border-radius: var(--zth-radius);
  border: 1px dashed var(--zth-border);
}
.zth-ls-offline span { font-size: 32px; display: block; margin-bottom: 10px; }
.zth-ls-result-header { padding: 16px 0 8px; }
.zth-ls-result-header h3 { margin: 0 0 4px; font-size: 18px; }
.zth-ls-signal {
  background: var(--zth-card); border-radius: var(--zth-radius);
  border: 1px solid var(--zth-border); margin-bottom: 14px;
  overflow: hidden; box-shadow: var(--zth-shadow);
}
.zth-ls-signal.long  { border-left: 4px solid var(--zth-long); }
.zth-ls-signal.short { border-left: 4px solid var(--zth-short); }
.zth-ls-signal-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: #f8fafc;
  border-bottom: 1px solid var(--zth-border);
}
.zth-ls-strategy { font-weight: 700; font-size: 13px; }
.zth-ls-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px,1fr));
  gap: 0;
}
.zth-ls-level {
  padding: 14px 16px; border-right: 1px solid var(--zth-border); text-align: center;
}
.zth-ls-level:last-child { border-right: none; }
.lvl-label { display: block; font-size: 10px; color: var(--zth-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.lvl-val   { font-size: 15px; font-weight: 800; font-family: monospace; }
.zth-ls-level.entry .lvl-val { color: var(--zth-accent); }
.zth-ls-level.sl    .lvl-val { color: var(--zth-short); }
.zth-ls-level.t1    .lvl-val { color: #16a34a; }
.zth-ls-level.t2    .lvl-val { color: #15803d; }
.zth-ls-level.t3    .lvl-val { color: #166534; }
.zth-ls-level.rr    .lvl-val { color: var(--zth-accent); }
.zth-ls-reasons { padding: 10px 16px; font-size: 12px; color: var(--zth-muted); background: #f8fafc; }
.zth-ls-no-signal { text-align: center; padding: 30px; }
.zth-ls-no-signal span { font-size: 36px; display: block; margin-bottom: 10px; }
.zth-ls-error { background: #fee2e2; color: #dc2626; padding: 16px; border-radius: 8px; }

/* ── Sortable column headers ──────────────────────────────────── */

/* Fix: Elementor background overlay sits on top of content and blocks clicks.
   Force it to pass pointer events through so table headers and buttons work. */
.elementor-section > .elementor-background-overlay,
.elementor-element > .elementor-background-overlay,
.elementor-widget-container .elementor-background-overlay {
    pointer-events: none !important;
}

/* Ensure the ZTH table scroll and headers are above Elementor overlays */
.zth-table-scroll {
    position: relative;
    z-index: 10;
}

.zth-table thead {
    position: relative;
    z-index: 11;
}

.zth-table thead th {
    cursor: pointer !important;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 12;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    pointer-events: auto !important;
}

.zth-table thead th:hover {
    background: #263347 !important;
    color: #e2e8f0 !important;
}

.zth-sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    opacity: 0.5;
    vertical-align: middle;
    transition: opacity 0.15s, color 0.15s;
    pointer-events: none;
}

.zth-table thead th:hover .zth-sort-icon {
    opacity: 0.9;
}

.zth-table thead th.zth-sort-active {
    background: #1a2742 !important;
    color: #f59e0b !important;
}

.zth-table thead th.zth-sort-active .zth-sort-icon {
    color: #f59e0b;
    opacity: 1;
    font-size: 12px;
}

/* Dark mode sort overrides */
[data-theme="dark"] .zth-table thead th:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .zth-table thead th.zth-sort-active {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border-bottom: 2px solid #f59e0b !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONFLUENCE SCANNER STYLES
   ═══════════════════════════════════════════════════════════════ */

.zth-confluence-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
    padding: 24px 32px 40px !important;
    font-family: var(--zth-font, 'Inter', sans-serif);
}
@media (max-width: 768px) {
    .zth-confluence-wrap {
        padding: 16px 16px 30px !important;
    }
}

/* ── Header ──────────────────────────────────────────────────── */
.zth-confluence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}
.zth-confluence-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.zth-conf-icon {
    font-size: 32px;
    line-height: 1;
}
.zth-confluence-title h2 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
}
.zth-confluence-title small {
    color: #94a3b8;
    font-size: 12px;
}
.zth-confluence-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.zth-conf-date {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
}
.zth-conf-refresh {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: color .2s, transform .3s;
}
.zth-conf-refresh:hover { color: #f59e0b; transform: rotate(180deg); }

/* ── Section headers ────────────────────────────────────────── */
.zth-conf-section {
    margin-bottom: 32px;
}
.zth-conf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
}
.zth-conf-section-header.strongest {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%);
    color: #fef2f2;
    border-bottom: 2px solid #f87171;
}
.zth-conf-section-header.strong {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
    color: #eff6ff;
    border-bottom: 2px solid #60a5fa;
}
.zth-conf-section-header em {
    font-style: normal;
    opacity: 0.75;
    font-size: 12px;
    font-weight: 400;
}
.zth-conf-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.strongest-badge { background: rgba(255,255,255,0.15); color: #fff; }
.strong-badge    { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Locked section ─────────────────────────────────────────── */
.zth-conf-locked-section {
    background: rgba(13, 20, 38, 0.6) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 20px 40px rgba(0, 0, 0, 0.5);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.zth-conf-locked-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 60%);
    pointer-events: none;
}
.zth-conf-lock-icon { 
    font-size: 56px; 
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.2));
    animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.4)); }
}
.zth-conf-locked-section h3 { 
    color: #ffffff; 
    font-size: 22px; 
    font-weight: 800;
    margin: 0 0 12px; 
    letter-spacing: -0.5px;
}
.zth-conf-locked-section p { 
    color: #94a3b8; 
    font-size: 14px; 
    margin: 0 auto 20px; 
    line-height: 1.6; 
    max-width: 500px;
}
.zth-conf-examples { 
    font-style: normal; 
    color: #64748b !important; 
    font-size: 12px !important; 
    margin-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    display: inline-block;
}

.zth-conf-teaser-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

/* ── Buy buttons ─────────────────────────────────────────────── */
.zth-conf-buy-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    text-transform: uppercase;
}
.zth-conf-buy-btn:hover { 
    transform: translateY(-3px); 
    text-decoration: none; 
}
.strongest-btn {
    background: linear-gradient(135deg, #ff9933 0%, #f97316 100%);
    color: #000000 !important;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}
.strongest-btn:hover {
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}
.strong-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}
.strong-btn:hover {
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.4);
}

/* ── Card grid ───────────────────────────────────────────────── */
.zth-conf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding: 16px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* ── Individual card ─────────────────────────────────────────── */
.zth-conf-card {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
}
.zth-conf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.zth-conf-card.long  { border-top: 3px solid #22c55e; }
.zth-conf-card.short { border-top: 3px solid #ef4444; }
.zth-conf-card.strongest { box-shadow: 0 0 0 1px #dc262633; }
.zth-conf-card.strong    { box-shadow: 0 0 0 1px #2563eb33; }

.zth-conf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 12px 8px;
}
.zth-conf-card-symbol strong {
    display: block;
    font-size: 15px;
    color: #f1f5f9;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.zth-conf-card-symbol .zth-dir-badge {
    font-size: 10px;
    margin-top: 3px;
    display: inline-block;
}

/* ── Timeframe pills ─────────────────────────────────────────── */
.zth-conf-tf-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 12px 8px;
    align-items: center;
}
.zth-tf-pill {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.zth-tf-pill.hit { background: #7c3aed22; color: #a78bfa; border: 1px solid #7c3aed44; }
.zth-tf-pill.dit { background: #2563eb22; color: #60a5fa; border: 1px solid #2563eb44; }
.zth-tf-pill.wit { background: #05966922; color: #34d399; border: 1px solid #05966944; }
.zth-tf-pill.mit { background: #d9770622; color: #fbbf24; border: 1px solid #d9770644; }

.zth-conf-count {
    margin-left: auto;
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

/* ── High-Tech 2x2 Grid block ─────────────────────────────────── */
.zth-conf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.2);
}
.zth-conf-grid-item {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zth-conf-grid-item:nth-child(2n) {
    border-right: none;
}
.zth-conf-grid-item:nth-child(3),
.zth-conf-grid-item:nth-child(4) {
    border-bottom: none;
}
.zth-conf-grid-item .lbl {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.zth-conf-grid-item .val {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}
.zth-conf-grid-item.entry .val { color: #10b981; }
.zth-conf-grid-item.sl .val    { color: #f43f5e; }
.zth-conf-grid-item.cmp .val   { color: #f1f5f9; }
.zth-conf-grid-item.rr .val    { color: #fbbf24; }

/* ── Targets section ─────────────────────────────────────────── */
.zth-conf-targets {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zth-conf-target-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}
.zth-conf-target-row span {
    color: #64748b;
}
.zth-conf-target-row strong {
    color: #38bdf8;
    font-weight: 600;
}

/* ── Strategy tags ───────────────────────────────────────────── */
.zth-conf-strategies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
    border-top: 1px solid #334155;
}
.zth-conf-strategy-tag {
    background: #0f172a;
    color: #94a3b8;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #1e293b;
}

/* ── Card footer ─────────────────────────────────────────────── */
.zth-conf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #334155;
    background: #0f172a44;
    font-size: 11px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.zth-conf-empty {
    text-align: center;
    padding: 50px 20px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: #64748b;
}
.zth-conf-empty span { font-size: 36px; display: block; margin-bottom: 10px; }
.zth-conf-empty p    { font-size: 14px; margin: 0 0 6px; }
.zth-conf-empty small { font-size: 12px; }

/* ── Dark mode overrides ─────────────────────────────────────── */
[data-theme="dark"] .zth-conf-date,
[data-theme="dark"] .zth-conf-refresh {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .zth-conf-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .zth-conf-locked-section,
[data-theme="dark"] .zth-conf-empty,
[data-theme="dark"] .zth-conf-cards {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .zth-conf-price-row span,
[data-theme="dark"] .zth-conf-section-header em {
    color: #94a3b8 !important;
}
[data-theme="dark"] .zth-conf-price-row strong {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .zth-conf-price-row.entry strong { color: #34d399 !important; }
[data-theme="dark"] .zth-conf-price-row.sl    strong { color: #f87171 !important; }
[data-theme="dark"] .zth-conf-price-row.t1    strong { color: #60a5fa !important; }

/* ── Confluence Table Container Styles ────────────────────────── */
.zth-conf-table-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    padding: 0;
}
.zth-conf-table-container .zth-table-scroll {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
}
.zth-conf-table {
    margin: 0 !important;
    border: none !important;
}
[data-theme="dark"] .zth-conf-table-container {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

/* Confluence Redesign Lock Screen Overrides */
.zth-module-wrap .zth-conf-locked-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0;
    padding: 50px 20px;
}
.zth-module-wrap .zth-conf-locked-section::before {
    display: none;
}
