:root {
  --ink: #08111f;
  --ink-2: #111c2c;
  --paper: #f7f5ef;
  --paper-2: #ebe7dc;
  --panel: #ffffff;
  --muted: #6f766f;
  --line: #d7d0c0;
  --line-dark: rgba(255, 255, 255, 0.16);
  --gold: #c59a4a;
  --gold-2: #e2c078;
  --blue: #203d5e;
  --danger: #b6403f;
  --good: #1f7a55;
  --shadow: 0 28px 70px rgba(8, 17, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 17, 31, 0.025) 1px, transparent 1px);
  background-size: 92px 92px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: center;
  gap: 12px 28px;
  padding: 16px 38px 14px;
  color: white;
  background: rgba(8, 17, 31, 0.95);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 192, 120, 0.7);
  color: var(--gold-2);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.brand strong,
.main-nav,
.nav-cta,
.button,
.ghost-button,
input,
select,
textarea,
th,
.label,
.eyebrow,
.tag-row span,
.chip,
.lead-row,
.muted,
.form-card label,
.stacked-form label {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.main-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  min-width: 0;
  overflow: visible;
  padding: 4px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav a,
.nav-cta,
.button,
.ghost-button {
  text-decoration: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(226, 192, 120, 0.38);
  box-shadow: inset 0 0 0 1px rgba(226, 192, 120, 0.12), 0 10px 22px rgba(0, 0, 0, 0.2);
  outline: 0;
  transform: translateY(-1px);
}

.main-nav a.is-active:not(.nav-live-trades) {
  color: var(--gold-2);
  background: rgba(226, 192, 120, 0.11);
  border-color: rgba(226, 192, 120, 0.5);
  box-shadow: inset 0 -2px 0 rgba(226, 192, 120, 0.82), 0 12px 28px rgba(226, 192, 120, 0.1);
}

.main-nav a.nav-live-trades {
  margin: 0;
  border: 1px solid rgba(30, 185, 108, 0.78);
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  background: #0b7a4b;
  box-shadow: 0 0 0 1px rgba(38, 213, 132, 0.18), 0 0 22px rgba(38, 213, 132, 0.22);
  animation: live-trades-siren 0.9s ease-in-out infinite alternate;
}

.main-nav a.nav-live-trades::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #74ffc0;
  box-shadow: 0 0 0 5px rgba(116, 255, 192, 0.18), 0 0 16px rgba(116, 255, 192, 0.9);
  animation: live-trades-dot 0.9s ease-in-out infinite alternate;
}

.main-nav a.nav-live-trades span {
  color: #b9ffd8;
  font-weight: 950;
}

.main-nav a.nav-live-trades:hover,
.main-nav a.nav-live-trades:focus-visible {
  color: white;
  border-color: rgba(116, 255, 192, 0.92);
  box-shadow: 0 0 0 1px rgba(38, 213, 132, 0.24), 0 0 30px rgba(38, 213, 132, 0.34);
  outline: 0;
  transform: translateY(-1px);
}

.main-nav a.nav-live-trades.is-active {
  border-color: rgba(226, 192, 120, 0.9);
  box-shadow: 0 0 0 1px rgba(226, 192, 120, 0.32), 0 0 28px rgba(38, 213, 132, 0.28);
}

.main-nav a.nav-live-trades.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(226, 192, 120, 0.55);
}

.trade-highlight-cta {
  color: white;
  background: transparent;
  border-color: rgba(226, 192, 120, 0.8);
  box-shadow: inset 0 0 0 1px rgba(226, 192, 120, 0.18), 0 14px 34px rgba(226, 192, 120, 0.14);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-cta {
  justify-self: end;
  white-space: nowrap;
}

.primary,
.nav-cta {
  color: var(--ink);
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.secondary {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.ghost-button {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.section-shell {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.58fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 82px);
  padding-top: 0;
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(17, 28, 44, 0.94)),
    radial-gradient(circle at 80% 25%, rgba(197, 154, 74, 0.24), transparent 34%);
  border-bottom: 1px solid var(--line-dark);
}

.hero.section-shell {
  width: 100%;
  margin: 0;
  padding-left: max(42px, calc((100vw - 1220px) / 2));
  padding-right: max(42px, calc((100vw - 1220px) / 2));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
}

.hero-copy,
.summary-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 82px);
  padding: 86px 72px 86px 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.17rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.32rem;
  font-weight: 600;
}

p {
  color: #3f463f;
  font-size: 1.03rem;
  line-height: 1.72;
}

.hero-actions,
.tag-row,
.period-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 16px;
}

.summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: end;
  gap: 0;
  padding: 0 0 80px 38px;
  border-left: 1px solid var(--line-dark);
}

.summary-column {
  display: grid;
  align-content: end;
  min-width: 0;
}

.summary-column + .summary-column {
  padding-left: 24px;
  margin-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.summary-heading {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-stat {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-panel strong {
  display: block;
  color: white;
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: clamp(2rem, 2.8vw, 3.15rem);
  font-weight: 500;
  line-height: 1;
}

.backtest-column .summary-stat {
  padding: 18px 0;
}

.backtest-column .label {
  margin-bottom: 8px;
  font-size: 0.66rem;
}

.backtest-column strong {
  font-size: clamp(1.8rem, 2.45vw, 2.75rem);
}

.summary-panel small {
  color: rgba(255, 255, 255, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.home-live-ticker {
  position: sticky;
  top: 118px;
  z-index: 9;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  color: white;
  background: #101a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.home-live-ticker[hidden] {
  display: none;
}

.home-live-ticker > strong {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 18px;
  color: var(--gold-2);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-ticker-marquee {
  overflow: hidden;
}

.home-ticker-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  animation: ticker-scroll 58s linear infinite;
}

.home-ticker-marquee:hover .home-ticker-track {
  animation-play-state: paused;
}

.home-ticker-line {
  display: inline-flex;
  align-items: center;
  padding-right: 42px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  color: #24c39a;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.home-ticker-item.down {
  color: #ff5a78;
}

.home-ticker-item.indices {
  border: 1px solid rgba(226, 192, 120, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.05);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.period-controls {
  justify-content: flex-end;
  max-width: 600px;
}

.period-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(197, 154, 74, 0.38);
  outline-offset: 2px;
}

.chip,
.tag-row span {
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: transparent;
  color: #343c38;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip {
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.report-note {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 660px;
  padding: 18px;
  border: 1px solid rgba(197, 154, 74, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 192, 120, 0.18)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 46px rgba(197, 154, 74, 0.14);
}

.report-note strong,
.report-note span,
.report-note small {
  display: block;
}

.report-note strong {
  font-size: 1.02rem;
}

.report-note span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.report-note small {
  margin-top: 8px;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-cta {
  min-height: 50px;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold-2);
  box-shadow: inset 0 0 0 1px rgba(8, 17, 31, 0.12), 0 14px 28px rgba(197, 154, 74, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.download-cta::after {
  content: "→";
  margin-left: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  min-height: 138px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  font-weight: 500;
}

.live-deployment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 0.86fr) minmax(210px, auto);
  gap: 1px;
  margin: -18px 0 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.live-deployment-strip > div,
.live-deployment-strip > button {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.74);
}

.live-deployment-strip span {
  display: block;
  margin-bottom: 8px;
  color: #506073;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-deployment-strip strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.94rem;
}

.live-deployment-strip > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.basis-note {
  margin: -12px 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(12, 22, 38, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: #4c5968;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.basis-note strong {
  color: #101827;
  font-weight: 850;
}

.backtest-disclosure {
  margin: -10px 0 24px;
  padding: 14px 16px;
  border-left: 3px solid rgba(15, 23, 42, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #4c5968;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
}

.backtest-disclosure strong {
  color: #101827;
  font-weight: 850;
}

.unlock-code-button {
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.unlock-code-button strong {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.unlock-code-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.deploy-cta {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-2), #f0d692) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 17, 31, 0.08), 0 16px 34px rgba(197, 154, 74, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.deploy-cta::after {
  content: "→";
  margin-left: 12px;
  font-size: 1.05rem;
}

.interest-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.interest-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-note {
  margin: -4px 0 0;
  font-size: 0.82rem;
}

.drawdown-note {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  margin: -4px 0 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  line-height: 1.6;
}

.drawdown-note strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.admin-login-section[hidden],
.admin-section[hidden] {
  display: none;
}

.admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.admin-login-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dashboard-grid.single-panel {
  grid-template-columns: 1fr;
}

.compliance-alert {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: #f7fafc;
  background: #101827;
  border-bottom: 1px solid rgba(226, 197, 123, 0.35);
}

.compliance-alert.section-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(22px, calc((100vw - 1220px) / 2));
  padding-right: max(22px, calc((100vw - 1220px) / 2));
}

.compliance-alert strong {
  color: var(--gold-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compliance-alert p {
  max-width: 1120px;
  margin: 0;
  color: rgba(247, 250, 252, 0.84);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.panel,
.risk-box,
.form-card,
.profile-card,
.profile-copy {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.panel {
  padding: 26px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.chart {
  min-height: 248px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(235, 231, 220, 0.52));
}

.chart svg {
  width: 100%;
  height: 248px;
  display: block;
}

.chart .report-equity-svg {
  height: 330px;
  background: #ffffff;
}

body.live-chart-route {
  background: #eef2f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

body.oi-dashboard-route {
  background: #eef2f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.live-trades-route {
  background: #f4f5f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.live-chart-route main > section:not(#live-chart),
body.oi-dashboard-route main > section:not(#oi-dashboard),
body.live-trades-route main > section:not(#live-trades),
body.live-trades-route .site-footer,
body.oi-dashboard-route .site-footer,
body.live-chart-route .site-footer {
  display: none;
}

body.live-chart-route .site-header,
body.oi-dashboard-route .site-header,
body.live-trades-route .site-header {
  position: sticky;
  grid-template-columns: minmax(250px, 1fr) auto;
  padding: 12px 22px 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-bottom: 1px solid #dbe3ec;
}

body.live-chart-route .brand small,
body.oi-dashboard-route .brand small,
body.oi-dashboard-route .main-nav a,
body.live-trades-route .brand small,
body.live-trades-route .main-nav a,
body.live-chart-route .main-nav a {
  color: #667789;
}

body.live-chart-route .main-nav a.nav-live-trades,
body.oi-dashboard-route .main-nav a.nav-live-trades,
body.live-trades-route .main-nav a.nav-live-trades {
  color: white;
}

body.live-chart-route .main-nav a:not(.nav-live-trades):hover,
body.live-chart-route .main-nav a:not(.nav-live-trades):focus-visible,
body.oi-dashboard-route .main-nav a:not(.nav-live-trades):hover,
body.oi-dashboard-route .main-nav a:not(.nav-live-trades):focus-visible,
body.live-trades-route .main-nav a:not(.nav-live-trades):hover,
body.live-trades-route .main-nav a:not(.nav-live-trades):focus-visible {
  color: #111827;
  background: #eef4fb;
  border-color: #c7d5e3;
  box-shadow: inset 0 0 0 1px rgba(25, 47, 71, 0.04), 0 8px 20px rgba(25, 47, 71, 0.12);
}

body.live-chart-route .main-nav a.is-active:not(.nav-live-trades),
body.oi-dashboard-route .main-nav a.is-active:not(.nav-live-trades),
body.live-trades-route .main-nav a.is-active:not(.nav-live-trades) {
  color: #0e1726;
  background: #fff6dc;
  border-color: rgba(189, 148, 55, 0.62);
  box-shadow: inset 0 -2px 0 rgba(189, 148, 55, 0.82), 0 10px 22px rgba(189, 148, 55, 0.12);
}

body.live-chart-route .secondary,
body.oi-dashboard-route .secondary,
body.live-trades-route .secondary {
  color: var(--ink);
  border-color: #cbd6e2;
}

body.live-trades-route #live-trades,
body.oi-dashboard-route #oi-dashboard {
  width: min(1320px, calc(100% - 28px));
  padding-top: 28px;
  padding-bottom: 64px;
}

.live-chart-page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  width: 100%;
  height: calc(100vh - 69px);
  min-height: 0;
  padding: 8px 14px;
  background: #eef2f6;
  overflow: hidden;
}

.live-chart-page-shell[hidden] {
  display: none;
}

.grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.live-trades-section[hidden] {
  display: none;
}

.trade-monitor-card {
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.trade-monitor-header,
.trade-monitor-meta,
.trade-monitor-footer {
  padding: 14px 18px;
}

.trade-monitor-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
}

.trade-monitor-header h1 {
  margin: 0 0 7px;
  color: #5d63f1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0;
}

.trade-monitor-header h1 span {
  color: #111827;
  font-size: 0.9rem;
}

.trade-monitor-header h1 em {
  display: inline-flex;
  margin-left: 5px;
  border-radius: 999px;
  padding: 2px 7px;
  color: #6b78d6;
  background: #dfe6ff;
  font-size: 0.65rem;
  font-style: normal;
}

.trade-monitor-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

.trade-monitor-actions,
.trade-monitor-meta > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trade-monitor-actions {
  color: #111827;
  font-weight: 900;
}

.trade-monitor-actions label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.fixed-multiplier {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 76px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
}

.trade-monitor-card select {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 28px 0 10px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
}

.icon-menu {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 900;
}

.trade-monitor-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 38px;
  border-bottom: 1px solid #dce2ea;
  color: #111827;
  font-size: 0.96rem;
}

.trade-monitor-meta span {
  font-weight: 900;
}

.trade-monitor-meta strong {
  font-weight: 500;
}

.trade-monitor-meta small {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #9aa8ba;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
}

.trade-active {
  color: #00a164;
}

.pause-indicator {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #ff7379;
  font-weight: 900;
}

.trade-monitor-table-wrap {
  overflow-x: auto;
  padding: 0 18px 14px;
}

.trade-monitor-table,
.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.trade-monitor-table th,
.trade-monitor-table td,
.positions-table th,
.positions-table td {
  border-bottom: 1px solid #dfe5ec;
  padding: 10px 10px;
  color: #1f2937;
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.trade-monitor-table th:first-child,
.trade-monitor-table td:first-child,
.positions-table th:first-child,
.positions-table td:first-child,
.positions-table th:nth-child(4),
.positions-table td:nth-child(4) {
  text-align: left;
}

.trade-monitor-table th,
.positions-table th {
  color: #111827;
  font-size: 0.72rem;
  font-weight: 950;
}

.trade-monitor-table small {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 0.65rem;
  font-weight: 750;
}

.instrument-link {
  border: 0;
  padding: 0;
  color: #123d80;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.trade-total-row td {
  border-bottom: 0;
  font-weight: 850;
}

.trade-monitor-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #64748b;
  font-size: 0.78rem;
}

.positions-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
}

.positions-modal.is-open {
  display: grid;
}

.positions-card {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 32px));
  max-height: min(78vh, 620px);
  overflow: auto;
  border-radius: 6px;
  padding: 34px 28px 30px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.positions-card h2 {
  margin: 0 0 22px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  text-align: center;
}

.positions-detail {
  overflow-x: auto;
}

.qty-pill {
  display: inline-block;
  min-width: 78px;
  border-radius: 5px;
  padding: 9px 12px;
  background: #c9c9c9;
  text-align: right;
}

.index-watch-strip,
.market-news-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(8, 17, 31, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  z-index: 2;
}

.live-chart-scroll {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.index-watch-strip > strong,
.market-news-strip > strong {
  padding: 0 16px;
  color: #008a6b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid #e4ebf2;
}

.index-watchlist,
.news-marquee {
  overflow: hidden;
  min-height: 42px;
}

.index-watchlist {
  display: flex;
  align-items: center;
}

.index-track,
.news-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  animation: ticker-scroll 34s linear infinite;
}

.index-watchlist:hover .index-track,
.news-marquee:hover .news-track {
  animation-play-state: paused;
}

.index-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 6px 6px;
  border: 1px solid #dce6f1;
  border-radius: 999px;
  padding: 6px 13px;
  color: #0f172a;
  background: #f3f7fb;
  white-space: nowrap;
}

.index-pill b,
.index-pill strong,
.index-pill em,
.index-pill small {
  font-style: normal;
  line-height: 1;
}

.index-pill b {
  font-size: 0.78rem;
  font-weight: 950;
}

.index-pill strong {
  font-size: 0.8rem;
  color: #00a67d;
}

.index-pill.down strong,
.index-pill.down em {
  color: #df4261;
}

.index-pill.up em {
  color: #00a67d;
}

.index-pill small {
  padding-left: 8px;
  border-left: 1px solid #d9e3ee;
  color: #8896a8;
  font-size: 0.72rem;
}

.watch-collapse {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 7px;
  border: 1px solid #d8e2ec;
  border-radius: 9px;
  color: #334155;
  background: #f5f8fb;
  font-size: 1rem;
}

.market-news-strip {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  border-radius: 0;
}

.news-track {
  gap: 18px;
  animation-duration: 72s;
}

.news-track a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.news-track span {
  color: #708095;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes live-trades-siren {
  0% {
    background: #12b76a;
    border-color: rgba(116, 255, 192, 0.95);
    box-shadow: 0 0 0 1px rgba(116, 255, 192, 0.25), 0 0 12px rgba(18, 183, 106, 0.28);
  }

  100% {
    background: #05603a;
    border-color: rgba(5, 96, 58, 0.95);
    box-shadow: 0 0 0 1px rgba(5, 96, 58, 0.35), 0 0 28px rgba(18, 183, 106, 0.55);
  }
}

@keyframes live-trades-dot {
  0% {
    background: #a7f3d0;
    box-shadow: 0 0 0 5px rgba(167, 243, 208, 0.16), 0 0 10px rgba(167, 243, 208, 0.75);
  }

  100% {
    background: #00d084;
    box-shadow: 0 0 0 7px rgba(0, 208, 132, 0.26), 0 0 18px rgba(0, 208, 132, 1);
  }
}

.tool-topbar,
.tool-control-bar,
.market-strip,
.tool-layout {
  width: 100%;
}

.tool-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tool-topbar h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #9dd8ca;
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  background: #f5fffc;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #0fae87;
  box-shadow: 0 0 0 5px rgba(15, 174, 135, 0.12);
}

.viewer-pill strong {
  color: #009875;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #9dd8ca;
  border-radius: 999px;
  padding: 7px 11px;
  color: #007a60;
  background: #f5fffc;
  font-size: 0.8rem;
  font-weight: 900;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0fae87;
}

.tool-control-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, auto)) 1fr;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 12px 30px rgba(8, 17, 31, 0.06);
}

.tool-control-bar label {
  display: grid;
  gap: 4px;
  color: #506174;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-control-bar select {
  min-height: 34px;
  border-radius: 7px;
  border-color: #d6e0ea;
  background: white;
  font-weight: 800;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  overflow: visible;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #dbe3ec;
  box-shadow: 0 12px 30px rgba(8, 17, 31, 0.06);
}

.market-cell {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  background: white;
  min-width: 0;
}

.market-cell span,
.market-cell small {
  color: #506174;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-cell strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.88rem, 1vw, 1.12rem);
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-cell.highlight strong {
  color: #0b9b73;
  font-size: clamp(1rem, 1.25vw, 1.34rem);
}

.market-cell.blue {
  background: #d8f0f3;
}

.market-cell.blue strong {
  color: #0b837e;
}

.market-cell.option-legs {
  grid-template-columns: auto 1fr auto;
  gap: 2px 6px;
}

.market-cell.option-legs span:nth-of-type(1) {
  color: #247853;
}

.market-cell.option-legs span:nth-of-type(2) {
  color: #c64d55;
}

.market-cell.option-legs small {
  color: #6f7b88;
  font-size: 0.58rem;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(455px, 500px);
  gap: 12px;
  min-height: 455px;
}

.tool-chart-panel,
.option-chain-panel {
  border-color: #dbe3ec;
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.08);
}

.tool-chart-panel {
  padding: 12px;
}

.straddle-hover-pane {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  min-height: 42px;
  margin: -2px 0 10px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
  color: #64748b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.straddle-hover-pane strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.straddle-hover-pane span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  white-space: nowrap;
}

.straddle-hover-pane .straddle-value strong {
  color: #d05c62;
}

.straddle-hover-pane .spot-value strong {
  color: #1f2937;
}

.series-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  color: #475569;
}

.series-toggles label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid currentColor;
}

.legend-line.straddle {
  color: #d05c62;
}

.legend-line.vwap {
  color: #c9a968;
  border-top-style: dotted;
}

.legend-line.spot {
  color: #1f2937;
}

.option-chain-panel {
  padding: 12px;
}

.live-tool-chart {
  min-height: 356px;
  border-color: #dbe3ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.live-tool-chart svg {
  height: 356px;
}

.hover-point .hover-guide,
.hover-point circle {
  opacity: 0;
  pointer-events: none;
}

.hover-point:hover .hover-guide,
.hover-point:hover circle {
  opacity: 1;
}

.hover-point .hover-guide {
  stroke: #111827;
  stroke-dasharray: 3 3;
  stroke-width: 1.2;
}

.hover-point circle {
  fill: #0f172a;
  stroke: white;
  stroke-width: 1.5;
}

.compact-chain {
  max-height: none;
  overflow: auto;
}

.option-chain-table {
  min-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.option-chain-table th,
.option-chain-table td {
  padding: 7px 5px;
  text-align: right;
  font-size: 0.78rem;
  white-space: nowrap;
}

.option-chain-table th {
  color: #8090a3;
  background: #eef3f8;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.option-chain-table th:nth-child(3),
.option-chain-table td:nth-child(3) {
  text-align: center;
}

.option-chain-table .is-atm td {
  color: #08111f;
  background: #ffe75b;
  font-weight: 900;
}

.oi-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.oi-tool-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.oi-chart {
  min-height: 420px;
}

.oi-bars {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.oi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.oi-row strong {
  text-align: center;
  color: var(--ink);
}

.oi-call,
.oi-put {
  display: block;
  min-width: 34px;
  border-radius: 4px;
  padding: 6px 8px;
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.oi-call {
  justify-self: end;
  background: #d05c62;
  text-align: right;
}

.oi-put {
  justify-self: start;
  background: #009b72;
}

.oi-row.is-resistance .oi-call,
.oi-row.is-support .oi-put {
  outline: 3px solid rgba(245, 184, 75, 0.45);
}

.pcr-panel {
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.pcr-reading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.9;
}

.pcr-reading.positive {
  color: #009b72;
}

.pcr-reading.negative {
  color: #d05c62;
}

.report-equity-svg text {
  fill: #607086;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.report-equity-svg .axis-title {
  fill: #252c59;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #273029;
}

.monthly-report-table {
  min-width: 980px;
}

.monthly-report-table th,
.monthly-report-table td {
  text-align: center;
}

.monthly-report-table tbody th {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.monthly-report-table td strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.monthly-report-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
}

.positive {
  color: var(--good);
}

.negative {
  color: var(--danger);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.report-card {
  display: block;
  min-height: 360px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-card:hover,
.archive-report:hover,
.archive-report:focus-visible {
  border-color: rgba(13, 48, 89, 0.36);
  box-shadow: 0 16px 34px rgba(8, 17, 31, 0.1);
  transform: translateY(-1px);
}

.featured-report {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.96), rgba(32, 61, 94, 0.92)),
    radial-gradient(circle at 80% 15%, rgba(226, 192, 120, 0.22), transparent 32%);
  color: white;
}

.report-card small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-report small,
.featured-report p {
  color: rgba(255, 255, 255, 0.68);
}

.featured-report h3 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.report-card-footer,
.report-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.report-card a,
.archive-report,
.back-link,
.featured-report-action {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  color: var(--blue);
}

.featured-report-action {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.report-archive {
  display: grid;
  align-content: start;
  gap: 12px;
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.archive-heading .eyebrow {
  margin: 0;
}

.archive-report,
.admin-report-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.archive-report span,
.admin-report-item span {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-report small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.report-toggle {
  justify-self: start;
  margin-top: 4px;
}

.report-detail {
  padding: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.report-detail h2 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.96;
}

.report-lede {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-top: 34px;
}

.report-detail-grid section {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.82);
}

.report-detail-grid section:first-child {
  grid-row: span 2;
}

.admin-report-archive {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.danger-button {
  border: 1px solid rgba(179, 38, 30, 0.32);
  background: rgba(179, 38, 30, 0.08);
  color: #9f1f18;
  padding: 12px 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(179, 38, 30, 0.58);
  background: rgba(179, 38, 30, 0.14);
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-report-item {
  cursor: pointer;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.video-card {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #0d1725;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card small {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.split-section,
.conversion-section,
.profile-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.risk-box,
.form-card,
.profile-card,
.profile-copy {
  padding: 30px;
}

.risk-box {
  background: var(--ink);
}

.risk-box h3,
.risk-box p {
  color: white;
}

.risk-box p {
  color: rgba(255, 255, 255, 0.72);
}

.compliance-section {
  padding-top: 46px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compliance-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.compliance-card-wide {
  grid-column: 1 / -1;
  border-left: 5px solid #c54848;
  background: #fff8f5;
}

.compliance-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compliance-card p {
  margin: 0;
  color: #3f473f;
  font-size: 1rem;
  line-height: 1.65;
}

.check-list {
  padding-left: 20px;
  line-height: 1.95;
}

.profile-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--ink);
  background: var(--gold-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
}

.form-card,
.stacked-form {
  display: grid;
  gap: 14px;
}

.form-card label,
.stacked-form label {
  display: grid;
  gap: 7px;
  color: #273029;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-status {
  margin: 0;
  color: var(--good);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.compact {
  max-height: 260px;
  margin: 14px 0;
}

.lead-dashboard {
  display: grid;
  gap: 10px;
}

.lead-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lead-row {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.82);
}

.lead-table-wrap {
  max-height: 360px;
  overflow: auto;
  margin-top: 8px;
}

.lead-table {
  min-width: 760px;
}

.lead-table th,
.lead-table td {
  vertical-align: top;
}

.seo-page-section {
  display: grid;
  gap: 24px;
  padding-top: 68px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-card,
.seo-faq,
.seo-related-links {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.seo-card,
.seo-faq {
  padding: 24px;
}

.seo-card h3,
.seo-faq h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.15;
}

.seo-card p,
.seo-faq p {
  margin: 0;
  color: var(--muted);
}

.seo-faq-list {
  display: grid;
  gap: 14px;
}

.seo-faq-list > h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
}

.seo-related-links strong {
  margin-right: 4px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-related-links a {
  border: 1px solid var(--line);
  padding: 8px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px;
  color: white;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.site-footer p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
  color: var(--gold-2);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a + a {
  margin-left: 20px;
}

@media (max-width: 1280px) {
  .site-header,
  body.live-chart-route .site-header,
  body.oi-dashboard-route .site-header,
  body.live-trades-route .site-header {
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px 16px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .main-nav {
    gap: 7px 9px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .main-nav a {
    padding: 7px 8px;
  }

  .main-nav a.nav-live-trades {
    padding: 7px 10px;
  }

  .nav-cta {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .market-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tool-layout {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 455px);
  }

  .option-chain-table th,
  .option-chain-table td {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 0.74rem;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .main-nav {
    justify-content: center;
    overflow: visible;
    width: 100%;
    padding: 4px 0 0;
  }

  .hero,
  .dashboard-grid,
  .admin-grid,
  .admin-login-card,
  .live-deployment-strip,
  .report-grid,
  .report-detail-grid,
  .video-grid,
  .compliance-grid,
  .tool-layout,
  .split-section,
  .conversion-section,
  .profile-section {
    grid-template-columns: 1fr;
  }

  .drawdown-note {
    grid-template-columns: 1fr;
  }

  .report-note {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .download-cta {
    width: 100%;
  }

  .hero.section-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-copy {
    min-height: auto;
    padding: 74px 0 36px;
  }

  .summary-panel {
    grid-template-columns: 1fr;
    padding: 0 0 54px;
    border-left: 0;
  }

  .summary-column + .summary-column {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }

  .metric-grid,
  .report-grid,
  .seo-card-grid,
  .oi-summary-grid,
  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-control-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .site-footer a + a {
    margin-left: 0;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 2px 0 8px;
    overflow: visible;
  }

  .main-nav a {
    flex: 0 1 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .main-nav a.nav-live-trades {
    margin: 0;
    padding: 7px 11px;
  }

  .nav-cta {
    width: 100%;
    min-height: 40px;
  }

  .home-live-ticker {
    top: 0;
  }

  .section-shell {
    width: min(100% - 28px, 1220px);
    padding: 58px 0;
  }

  .compliance-alert {
    width: 100%;
    padding: 16px 14px;
  }

  .compliance-alert p {
    font-size: 0.86rem;
  }

  .hero.section-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    padding: 46px 0 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .summary-panel {
    padding-bottom: 34px;
  }

  .summary-stat {
    padding: 18px 0;
  }

  .summary-panel strong {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
  }

  .metric-grid,
  .report-grid,
  .seo-card-grid,
  .oi-summary-grid,
  .market-strip,
  .tool-control-bar,
  .lead-summary-grid {
    grid-template-columns: 1fr;
  }

  .oi-row {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 6px;
    font-size: 0.7rem;
  }

  .live-chart-page-shell {
    padding: 14px;
  }

  .tool-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .live-tool-chart,
  .live-tool-chart svg {
    min-height: 330px;
    height: 330px;
  }

  .report-detail {
    padding: 26px;
  }

  .featured-report h3,
  .report-detail h2 {
    font-size: 2.5rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }

  body.live-chart-route .site-header,
  body.oi-dashboard-route .site-header,
  body.live-trades-route .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  body.live-chart-route .main-nav,
  body.oi-dashboard-route .main-nav,
  body.live-trades-route .main-nav {
    order: 3;
  }

  body.live-chart-route .nav-cta,
  body.oi-dashboard-route .nav-cta,
  body.live-trades-route .nav-cta {
    display: none;
  }

  body.live-trades-route #live-trades,
  body.oi-dashboard-route #oi-dashboard {
    width: min(100% - 18px, 1320px);
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .trade-monitor-card {
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .trade-monitor-header {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .trade-monitor-header h1 {
    font-size: 1.05rem;
    line-height: 1.22;
  }

  .trade-monitor-header h1 span {
    display: inline;
    font-size: 0.82rem;
  }

  .trade-monitor-actions {
    width: 100%;
    justify-content: space-between;
  }

  .fixed-multiplier {
    min-height: 36px;
    min-width: 64px;
  }

  .trade-monitor-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .trade-monitor-meta > div {
    justify-content: space-between;
    gap: 12px;
  }

  .trade-monitor-meta select {
    max-width: 62%;
  }

  .trade-monitor-table-wrap {
    padding: 0 12px 12px;
  }

  .trade-monitor-table {
    min-width: 560px;
  }

  .trade-monitor-table th,
  .trade-monitor-table td {
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .trade-monitor-table th:first-child,
  .trade-monitor-table td:first-child {
    min-width: 250px;
    white-space: normal;
  }

  .trade-monitor-table small {
    font-size: 0.6rem;
    line-height: 1.35;
  }

  .trade-monitor-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 16px;
  }

  .trade-monitor-footer .ghost-button {
    width: 100%;
  }

  .positions-modal {
    align-items: flex-end;
  }

  .positions-dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 14px 14px 0 0;
    padding: 18px;
  }

  .positions-table {
    min-width: 760px;
  }
}
