:root {
  --bg: #07090d;
  --panel: #111722;
  --text: #edf2f7;
  --muted: #93a4b7;
  --green: #25d366;
  --red: #ff4d4d;
  --yellow: #ffd166;
  --gray: #7b8794;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1800px;
  margin: 0 auto;
  padding: 10px 24px 40px;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 34px;
}

.sub {
  color: var(--muted);
  font-size: 18px;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: #061018;
}

.green { background: var(--green); }
.red { background: var(--red); }
.yellow { background: var(--yellow); }
.gray { background: var(--gray); }

.mode {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.name {
  font-size: 22px;
  font-weight: 900;
}

.score {
  font-size: 24px;
  font-weight: 900;
}

.direction {
  margin: 14px 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.msg {
  font-size: 17px;
  color: var(--text);
}

.small {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
}

.state {
  font-weight: 900;
}

.market-card {
  background: linear-gradient(180deg, #151d2b, #111722);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 18px;
  margin: 20px 0;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.market-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.market-title {
  font-size: 28px;
  font-weight: 900;
}

.market-msg {
  color: var(--muted);
  font-size: 18px;
  margin-top: 5px;
}

.market-score {
  color: #061018;
  font-size: 30px;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 16px;
  min-width: 120px;
  text-align: center;
}

.market-direction {
  display: inline-block;
  color: #061018;
  margin: 18px 0 10px;
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 36px;
  font-weight: 900;
}

.power-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 17px;
}

.power-row span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.power-row span.confirm-good {
  color: #22c55e;
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
}

.power-row span.confirm-bad {
  color: #ef4444;
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}

.power-row span.confirm-neutral {
  color: #fbbf24;
  border-color: rgba(251,191,36,.35);
  background: rgba(251,191,36,.12);
}

.regime-pills span {
  padding: 8px 14px;
  font-size: 14px;
}
/* =========================
   TOP BAR / HEADER
   ========================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px 10px;
}

.topbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-right {
  flex: 0 0 auto;
  padding-top: 6px;
}

/* ==========================================
   NAVIGATION + DROPDOWNS
   ========================================== */

.site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(7,7,8,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow: visible;
}

.site-nav-wrap {
  max-width: 1400px;
  margin: 0 auto;

  padding: 12px 32px;

  display: flex;
  align-items: center;

  overflow: visible;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,200,60,.35));
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 42px;

  margin-left: 120px;
}

.site-nav-links > a,
.nav-dropdown > a {
  color: rgba(232,232,234,.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.site-nav-links > a:hover,
.nav-dropdown > a:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}

.nav-dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #07111f;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  z-index: 10001;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  overflow: visible;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a,
.site-nav-links .dropdown-menu a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: #07111f;
  border-radius: 0;
}

.dropdown-menu a:hover,
.site-nav-links .dropdown-menu a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  color: #e8e8ea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.site-btn:hover {
  background: rgba(255,255,255,.05);
}

.site-btn-ghost {
  background: transparent;
}

@media (max-width: 980px) {
  .site-nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-logo-img {
    height: 42px;
  }
}

.edge-notice {
  margin: 0;
  padding: 12px 18px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

/* ================= MARKET CLOSED FULLSCREEN OVERLAY ================= */

.market-closed {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 90px);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.96);
  z-index: 50;
}

.market-closed h1 {
  color: #cd9a09;
  margin-bottom: 8px;
  text-align: center;
}

.market-closed p {
  font-size: 14px;
  text-align: center;
}

.closed-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(0,0,0,0.55);
  border-bottom: none;
}

.closed-brand {
  color: #cd9a09;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.closed-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

/* ================= HELP TOGGLE ================= */

.help-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.help-content {
  display: none;
}

.help-content.open {
  display: block;
}

/* ================= HERO ================= */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #101722, #0b1018);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  font-size: 34px;
  margin: 0;
}

.hero-sub {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.legend.compact {
  margin: 0;
}

.legend.compact .pill {
  padding: 6px 12px;
  font-size: 13px;
}

.hero-right {
  text-align: right;
  min-width: 220px;
}

.hero-right .mode {
  margin: 0;
  font-size: 14px;
}

/* ================= FOOTER ================= */

.site-footer {
  margin: 36px 0 10px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p {
  margin: 6px 0;
}

/* ================= EXPLAIN / WAIT BADGE ================= */

.market-explain {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.wait-badge {
  text-align: center;
  line-height: 1.05;
}

.wait-badge div:first-child {
  font-size: 30px;
  font-weight: 900;
}

.wait-badge div:last-child {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* confirmation css vix, SQQQ SMH*/

.confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.confirm-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
}

.confirm-symbol {
  font-size: 18px;
  font-weight: 900;
}

.confirm-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.confirm-score {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.confirm-score-number {
  font-size: 15px;
  font-weight: 900;
}

.confirm-good { color: var(--green); }
.confirm-bad { color: var(--red); }
.confirm-neutral { color: var(--yellow); }

.conf-green {
  color: #22c55e;
}

.conf-yellow {
  color: #fbbf24;
}

.conf-red {
  color: #ef4444;
}

.conf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 12px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  margin-top: 10px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}