/* Easy Forex Solutions - homepage styles. Mobile first. */

:root {
  --navy-900: #060f1d;
  --navy-800: #0a1628;
  --navy-700: #0f1f36;
  --navy-600: #162a47;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #e0a83e;
  --gold-dark: #c8922c;
  --teal: #4f8f8c;
  --text: #f4f6fa;
  --muted: #9fb0c8;
  --radius: 10px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: rgba(224, 168, 62, 0.55); color: var(--gold); }
.btn-outline:hover { border-color: var(--gold); background: rgba(224, 168, 62, 0.08); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #458280; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn.is-disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.btn.is-disabled:hover { transform: none; background: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 15, 29, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 34px; padding: 0 6px; border-radius: 7px;
  background: var(--gold); color: #1a1405; font-size: 14px; font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.site-nav a:not(.btn) { color: var(--muted); display: none; }
.site-nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 15% 85%, rgba(38, 84, 160, 0.35), transparent 70%),
    radial-gradient(700px 380px at 90% 20%, rgba(224, 168, 62, 0.10), transparent 70%),
    var(--navy-900);
}
.hero-inner { padding-top: 84px; padding-bottom: 92px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(79, 143, 140, 0.6); background: rgba(79, 143, 140, 0.12);
  font-family: var(--mono); font-size: 13px; color: #d5e4e3;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0773e; }
.hero h1 {
  margin: 26px auto 0; max-width: 780px;
  font-size: clamp(32px, 6.4vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
}
.hero-sub { margin: 20px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Live strip */
.live-strip {
  margin-top: -34px; position: relative;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  background: var(--navy-700); border: 1px solid var(--line);
}
.live-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-icon {
  width: 12px; height: 12px; border-radius: 50%; background: #e0573e; margin-right: 6px;
  box-shadow: 0 0 0 5px rgba(224, 87, 62, 0.18);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--navy-900); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.section h2 { margin-top: 10px; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.section-note { margin-top: 10px; color: var(--muted); }

.card {
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}

/* Steps */
.steps { margin-top: 32px; display: grid; gap: 16px; }
.step { position: relative; }
.step-num { position: absolute; top: 20px; right: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step h3 { font-size: 22px; font-weight: 800; }
.step h3::before {
  content: ""; display: block; width: 34px; height: 4px; border-radius: 2px;
  background: var(--gold); margin-bottom: 16px;
}
.step p { margin-top: 8px; color: var(--muted); }

/* Firms */
.firms { margin-top: 32px; display: grid; gap: 16px; }
.firm { display: flex; flex-direction: column; gap: 14px; }
.firm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.firm h3 { font-size: 22px; font-weight: 800; }
.tag {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(224, 119, 62, 0.14); color: #f0a57c; border: 1px solid rgba(224, 119, 62, 0.4);
}
.firm-verdict { color: var(--muted); flex: 1; }
.text-link { color: var(--gold); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.firm-us { font-size: 14px; text-align: center; margin-top: -4px; }

/* Free account vs membership table (homepage, plan page) */
.compare { margin-top: 24px; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--navy-900); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-table thead th { font-size: 15px; font-weight: 800; background: var(--navy-700); }
.compare-table thead th:nth-child(2), .compare-table thead th:nth-child(3) { text-align: center; width: 22%; }
.compare-table thead .cmp-paid { color: var(--gold); }
.compare-table tbody th { font-weight: 500; font-size: 15px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td { text-align: center; font-size: 18px; }
.compare-table td:last-child { background: rgba(224, 168, 62, 0.06); }
.cmp-yes { color: #5fb7b1; font-weight: 800; }
.compare-table td:last-child.cmp-yes { color: var(--gold); }
.cmp-no { color: var(--muted); }
.cmp-text { font-size: 14px !important; font-weight: 600; color: var(--muted); }
.compare-table td:last-child.cmp-text { color: var(--gold); }
/* Highlighted rows: a badge ("Only at EFS"), an optional one-line note, and one headline "star" row */
.cmp-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px;
  color: var(--gold); background: rgba(224, 168, 62, 0.12); border: 1px solid rgba(224, 168, 62, 0.5); }
.cmp-note { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.compare-table tr.cmp-hl th { font-weight: 700; }
.compare-table tr.cmp-star th, .compare-table tr.cmp-star td { background: rgba(224, 168, 62, 0.12); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.compare-table tr.cmp-star th { font-size: 17px; font-weight: 800; color: #fff; box-shadow: inset 4px 0 0 var(--gold); padding-top: 16px; padding-bottom: 16px; }
.compare-table tr.cmp-star .cmp-tag { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.compare-table tr.cmp-star .cmp-note { color: #e8e2d4; }
.compare-table tr.cmp-star td.cmp-yes { font-size: 22px; }
.compare-join { margin-top: 16px; display: grid; gap: 16px; }
.cmp-box { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-700); display: flex; flex-direction: column; gap: 8px; }
.cmp-box-paid { border-color: rgba(224, 168, 62, 0.6); }
.cmp-box .btn { margin-top: auto; }
.cmp-sub { color: var(--muted); font-size: 15px; margin: 4px 0 18px; }
.compare-wrap { margin-top: 40px; }
.compare .fine { border-top: 0; padding-top: 0; margin-top: 14px; }
.tag-free { margin-left: 8px; background: rgba(95, 183, 177, 0.14); color: #a9ecd0; border-color: rgba(95, 183, 177, 0.5); }
@media (min-width: 700px) {
  .compare-join { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .compare-table tbody th { font-size: 14px; }
}

/* Payout planner */
.planner [hidden] { display: none !important; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rule-grid label { font-size: 14px; }
.plan-list { margin-top: 14px; }
.plan-list li.no { color: #ff9a8a; }
.plan-list li.ok { color: #a9ecd0; }

/* Prop firm picker */
.picker .pq { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.picker .pq legend { font-weight: 800; font-size: 17px; margin-bottom: 8px; padding: 0; }
.pick-title { margin-top: 28px; }
.picker-new { margin-bottom: 0; }
.picker [hidden] { display: none !important; }
.pq-help { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pick-beginner { margin-top: 16px; display: grid; gap: 8px; border-color: rgba(95, 183, 177, 0.6); }
.pick-beginner p { margin: 0; }
.pick-card { margin-top: 16px; display: grid; gap: 10px; }
.pick-card.is-best { border-color: rgba(224, 168, 62, 0.6); }
.pick-card h2 { font-size: 20px; }
.rules-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rules-chips li { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--navy-900); border: 1px solid var(--line); }
.pick-h { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pick-good, .pick-bad { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.pick-good li::marker { color: #5fb7b1; }
.pick-bad li::marker { color: #e0573e; }
.pick-card .discount { justify-content: flex-start; }
.pick-rest { margin-top: 16px; }
.pick-rest summary { cursor: pointer; font-weight: 700; }
.pick-rest ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }

/* Discount codes (homepage firm cards, playbooks) */
.discount { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; font-size: 14px; }
.discount-label { color: var(--muted); font-weight: 600; }
.discount-code {
  font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  color: var(--gold); background: rgba(224, 168, 62, 0.10); border: 1px dashed rgba(224, 168, 62, 0.7);
  border-radius: 6px; padding: 3px 10px; cursor: pointer;
}
.discount-code:hover { background: rgba(224, 168, 62, 0.18); }
.discount-offer { color: #f0a57c; font-weight: 600; }
.pb-join .discount { justify-content: flex-start; margin-top: 10px; }
.firm-fields { border: 0; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.firm-fields legend { font-weight: 800; font-size: 17px; padding: 0; }
.firm-fields label:first-of-type { margin-top: 8px; }

/* Membership */
.member-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--navy-900); }
.member-main { padding: 30px 24px; }
.member-main h2 { margin-top: 10px; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.member-price { padding: 28px 24px 30px; background: var(--navy-700); border-top: 1px solid var(--line); }
.price { margin-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price s { color: var(--muted); font-size: 22px; }
.price-now { color: var(--gold); font-size: 48px; font-weight: 800; line-height: 1; }
.price-per { color: var(--muted); font-size: 18px; font-weight: 600; }
.founding { margin: 10px 0 22px; color: #f0a57c; font-size: 15px; }
.pay-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy-700); border-top: 1px solid var(--line); padding: 52px 0 30px; }
.site-footer h4 { margin-top: 28px; font-size: 15px; font-weight: 700; }
.site-footer p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 900px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.footer-links { display: inline-flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* Wider screens */
@media (min-width: 640px) {
  .live-strip { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 26px; }
  .firms { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .site-nav a:not(.btn) { display: inline; }
  .hero-inner { padding-top: 120px; padding-bottom: 132px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .firms { grid-template-columns: repeat(4, 1fr); }
  .member-box { display: grid; grid-template-columns: 1.5fr 1fr; }
  .member-main { padding: 40px; }
  .member-price { border-top: 0; border-left: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---- Inner pages: sign-up, login, members area ---- */

.inner { padding: 48px 0 72px; min-height: 60vh; }
.inner h1 { margin-top: 10px; font-size: clamp(28px, 5vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.inner h2 { font-size: 20px; font-weight: 800; }
.narrow { max-width: 520px; }
.auth { padding: 30px 24px; }
.lead { margin-top: 12px; font-size: 17px; }
.auth .muted { margin: 10px 0 20px; }

.site-nav a.nav-always { display: inline; }
.inline-form { display: inline; margin: 0; }
button.btn { font-family: inherit; background: none; }
button.btn.btn-gold { background: var(--gold); }
button.btn.btn-gold:hover { background: var(--gold-dark); }

form label { display: block; margin-top: 20px; font-weight: 700; font-size: 15px; }
form input[type="text"], form input[type="email"], form input[type="password"], form input[type="url"], form input[type="date"], .copy-field {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  background: var(--navy-900); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
  font: inherit;
}
form input:focus, .copy-field:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
form .btn-block { margin-top: 26px; }
.hint { margin-top: 6px; color: var(--muted); font-size: 14px; }
.field-error { margin-top: 6px; color: #ff9a8a; font-size: 14px; font-weight: 600; }
.switch { margin-top: 22px; color: var(--muted); font-size: 15px; }

.alert { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.alert-error { background: rgba(224, 87, 62, 0.14); border: 1px solid rgba(224, 87, 62, 0.5); color: #ffb3a6; }
.alert-ok { background: rgba(79, 143, 140, 0.16); border: 1px solid rgba(79, 143, 140, 0.6); color: #cfe8e6; margin-bottom: 26px; }

.panels { margin-top: 28px; display: grid; gap: 16px; }
.panels .muted { margin-top: 8px; }
.copy-field { font-family: var(--mono); font-size: 14px; cursor: pointer; margin-top: 14px; }
.stat { margin-top: 14px; color: var(--muted); }
.stat strong { color: var(--gold); font-size: 20px; }

/* Plan picker */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-list { border: 0; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
form label.plan {
  margin: 0; display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
  background: var(--navy-900); cursor: pointer;
}
form label.plan:has(input:checked) { border-color: var(--gold); }
form label.plan:has(input:disabled) { cursor: default; opacity: 0.7; }
.plan input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; grid-row: span 2; }
.plan-price { color: var(--gold); font-size: 20px; font-weight: 800; grid-row: span 2; }
.plan-note { color: var(--muted); font-size: 14px; font-weight: 500; }
.plan-note-deal { color: #f0a57c; font-weight: 800; }
form .btn-block + .btn-block { margin-top: 12px; }
.panels .card > .btn { margin-top: 16px; }
.billing-form { margin-top: 12px; }

/* Private trading room and recordings */
.room { margin-top: 28px; border-color: rgba(224, 168, 62, 0.45); }
.room-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.room .hint { margin-top: 12px; }
.rec-empty { margin-top: 24px; }
.rec-list { margin-top: 24px; display: grid; gap: 16px; }
.rec { padding: 16px; }
.rec h2 { margin-top: 4px; font-size: 18px; }
.rec-date { margin-top: 14px; color: var(--muted); font-size: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--navy-900); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .rec-list { grid-template-columns: 1fr 1fr; }
}

/* Payout details */
.review-box { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--navy-900); display: grid; gap: 4px; }
.review-box .stat-label { margin-top: 8px; }
.review-box .stat-label:first-child { margin-top: 0; }
.break { overflow-wrap: anywhere; }
form label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
form label.check input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
form .btn-block + form, form + form .btn-block { margin-top: 12px; }

/* Members Tools Area */
.tools { margin-top: 24px; display: grid; gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; }
.tool h2, .tool h3 { font-size: 20px; font-weight: 800; }
.tool .muted { flex: 1; }
.tool .btn { align-self: flex-start; }
.tool-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.tool.is-soon { opacity: 0.75; }
.paid-only { width: min(460px, calc(100% - 32px)); padding: 26px; border: 1px solid rgba(224, 168, 62, 0.5); border-radius: var(--radius); background: var(--navy-700); color: var(--text); }
.paid-only::backdrop { background: rgba(3, 8, 16, 0.75); }
.paid-only h2 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.paid-only .muted { margin-top: 10px; }
.paid-only-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.paid-only button.btn-outline { color: var(--gold); }
@media (min-width: 900px) {
  .tools { grid-template-columns: 1fr 1fr; }
}

/* Position Size Calculator */
.calc form select {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  background: var(--navy-900); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; font: inherit;
}
.calc form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.calc-row { display: flex; gap: 10px; }
.calc-row input { flex: 1; }
.calc-row select { flex: 1.4; }
.calc-more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-more summary { cursor: pointer; font-weight: 700; }
.calc-result { margin-top: 16px; }
.calc-lots { margin-top: 4px; color: var(--gold); font-size: 40px; font-weight: 800; line-height: 1.1; }
.calc-lots.no { color: #ff9a8a; font-size: 26px; }
.calc-result .muted { margin-top: 8px; }
.calc-result .data td:first-child { white-space: normal; }
.data tr.is-tight td { color: var(--gold); font-weight: 700; }
.calc-note { margin-top: 14px; }

/* Legal pages */
.legal h2 { margin-top: 32px; font-size: 20px; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal .muted { margin-top: 8px; }

/* Admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 10px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.admin-page .inner h1 { margin-top: 0; }
.admin-search { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.admin-search input { flex: 1; margin: 0; padding: 10px 12px; background: var(--navy-900); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; font: inherit; }
.admin-pay { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-pay input[type="text"] { flex: 1; min-width: 200px; margin: 0; }
.earnings form .btn-gold:not(.btn-small) { margin-top: 20px; }

/* Referrals and earnings */
.stat-row { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-box strong { color: var(--gold); font-size: 24px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 14px; }
.plain-list { margin: 12px 0 16px; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.earnings { margin-top: 16px; }
.data { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.data th, .data td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data th { color: var(--muted); font-weight: 600; font-size: 13px; }
@media (min-width: 900px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .data { display: table; }
}

.site-footer-slim { padding: 28px 0; }
.site-footer-slim .footer-bottom { margin-top: 16px; }

@media (min-width: 900px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .auth { padding: 40px; }
}

/* Keep the header on one line on phones. */
.brand, .site-nav a, .site-nav .btn { white-space: nowrap; }
@media (max-width: 479px) {
  .site-nav { gap: 14px; }
  .inner-page .brand-name { display: none; }
}

/* ---------- Prop Rules Explained (guide.php) ---------- */
.guide { max-width: 760px; }
.guide-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.guide-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; transition: border-color 0.15s; }
.guide-item:hover { border-color: rgba(224, 168, 62, 0.55); }
.guide-item strong { display: block; font-size: 17px; }
.guide-item .muted { display: block; margin-top: 4px; font-size: 15px; }
.guide-num { font-family: var(--mono); color: var(--gold); font-size: 14px; padding-top: 3px; }
.guide-fine { margin-top: 26px; }
.guide-body { margin-top: 26px; font-size: 16.5px; line-height: 1.65; }
.guide-body > * + * { margin-top: 14px; }
.guide-body h2 { margin-top: 34px; font-size: 21px; line-height: 1.3; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li + li { margin-top: 6px; }
.guide-body strong { color: #fff; }
.calc-line { font-family: var(--mono); font-size: 15px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--navy-900); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.calc-line strong { color: var(--gold); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; display: block; overflow-x: auto; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.guide-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.guide-nav { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Diagrams */
.dg { margin: 22px 0 0; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-900); }
.dg { overflow-x: auto; }
.dg svg { display: block; width: 100%; min-width: 520px; height: auto; }   /* phones: scroll the diagram sideways rather than shrink the text */
.dg figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }
.dg text { fill: #cbd6e6; font-family: var(--sans); font-size: 13px; }
.dg .dg-muted { fill: var(--muted); }
.dg .dg-red { fill: #ff8f7d; font-weight: 700; }
.dg .dg-teal { fill: #7cc7c2; font-weight: 700; }
.dg .dg-on { fill: #0a1628; font-weight: 800; }
.dg .dg-big { font-size: 17px; font-weight: 800; fill: #fff; }
.dg-axis { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.dg-ghost { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; stroke-dasharray: 3 5; }
.dg-bal { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; }
.dg-eq { fill: none; stroke: #5fb7b1; stroke-width: 3; stroke-linejoin: round; }
.dg-floor { fill: none; stroke: #e0573e; stroke-width: 2.5; stroke-dasharray: 8 5; }
.dg-badzone { fill: rgba(224, 87, 62, 0.14); }
.dg-dot { fill: #e0573e; stroke: var(--navy-900); stroke-width: 2; }
.dg-dot-gold { fill: var(--gold); }
.dg-fill-gold { fill: var(--gold); }
.dg-fill-teal { fill: #5fb7b1; }
.dg-fill-red { fill: #e0573e; }
.dg-day-ok { fill: rgba(95, 183, 177, 0.16); stroke: #5fb7b1; stroke-width: 1.5; }
.dg-day-no { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.dg-win5 { fill: rgba(224, 87, 62, 0.12); }
.dg-win2 { fill: rgba(224, 87, 62, 0.28); }
.dg-closed { fill: rgba(255, 255, 255, 0.05); }
.dg-days rect { fill: rgba(255, 255, 255, 0.12); }
.dg-days .dg-sq-start { fill: var(--gold); }
.dg-days .dg-sq-end { fill: #e0573e; }

/* ---------- Pick / Pass / Keep (tools.php, members.php, guide.php) ---------- */
.step-jump { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.step-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; }
.step-jump a:hover { border-color: rgba(224, 168, 62, 0.6); }
.step-jump span, .step-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #1a1405; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tool-step { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.tool-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 32px; }
.inner .step-title { margin-top: 6px; font-size: clamp(22px, 3.6vw, 28px); }
.tool-step > .muted { margin-top: 6px; }
.tool-step .tools { margin-top: 18px; }
.step-guide { margin-top: 16px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.step-guide span { font-weight: 700; color: var(--text); margin-right: 4px; }
.step-guide a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.step-guide a:hover { text-decoration: underline; }
.steps-home { margin-top: 28px; }
.steps-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.steps-home-grid { margin-top: 14px; display: grid; gap: 12px; }
.step-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; transition: border-color 0.15s; }
.step-card:hover { border-color: rgba(224, 168, 62, 0.55); }
.step-card strong { font-size: 20px; font-weight: 800; }
.step-card .muted { font-size: 15px; }
.inner .guide-step { margin-top: 34px; font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.guide-step span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.guide-step + .guide-list { margin-top: 12px; }
@media (min-width: 640px) { .steps-home-grid { grid-template-columns: repeat(3, 1fr); } }

/* After-payment progress (checkout-done.php) and pending notice (members.php) */
.pay-steps { list-style: none; margin: 20px 0 6px; padding: 0; display: grid; gap: 12px; }
.pay-steps li { position: relative; padding-left: 34px; font-weight: 600; min-height: 24px; display: flex; align-items: center; }
.pay-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; box-sizing: border-box; }
.pay-steps .is-done::before { content: "\2713"; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 14px; font-weight: 800; }
.pay-steps .is-now { color: var(--gold); }
.pay-steps .is-now::before { display: none; }
.pay-spinner { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 3px solid rgba(224, 168, 62, 0.25); border-top-color: var(--gold); animation: pay-spin 0.9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation: none; } }

/* ---------- Challenge playbooks (playbook.php) ---------- */
.pb .tool-step:first-of-type { margin-top: 32px; }
.pb-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-900); }
.pb-table { display: table; min-width: 760px; font-size: 14px; }
.pb-table thead th { white-space: nowrap; }
.pb-table tbody th { color: var(--text); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.pb-table tbody tr:last-child th, .pb-table tbody tr:last-child td { border-bottom: 0; }
.pb-notes { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pb-notes li + li { margin-top: 6px; }
.pb-notes strong { color: var(--text); }
.pb-take { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--gold); background: rgba(224, 168, 62, 0.06); border-radius: 0 var(--radius) var(--radius) 0; line-height: 1.65; }
.pb-take > * + * { margin-top: 10px; }
.pb-take ul { padding-left: 20px; }
.pb-take-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.pb-empty { border-left-style: dashed; background: none; color: var(--muted); }
.pb-dl { margin: 10px 0 0; display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 8px 14px; font-size: 15px; }
.pb-dl dt { color: var(--muted); font-weight: 600; }
.pb-dl dd { margin: 0; }
.pb-cards { margin-top: 18px; display: grid; gap: 14px; }
.pb-card { padding: 18px 20px; }
.pb-card h3 { font-size: 18px; font-weight: 800; }
.watch-list { margin: 14px 0 0; padding-left: 20px; color: #f6d59a; font-size: 14px; line-height: 1.55; }
.pb-join { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pb-join .hint { flex-basis: 100%; margin-top: 0; }
@media (min-width: 900px) { .pb-cards { grid-template-columns: 1fr 1fr; } }

/* Referral reward message (members area only) */
.earn-box { margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(224, 168, 62, 0.45); border-radius: var(--radius); background: rgba(224, 168, 62, 0.06); display: grid; gap: 8px; }
.earn-box p { margin: 0; }
.earn-title { color: var(--gold); font-size: 18px; font-weight: 800; }
.earn-box .hint { margin: 0; }
.panels .earn-box + .btn { margin-top: 16px; }

/* Guide: firm-by-firm banned strategies (filled by assets/js/guide-banned.js) */
.banned-firm { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 16px; }
.banned-firm + .banned-firm { margin-top: 10px; }
.banned-firm summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 17px; }
.banned-firm dl { margin: 12px 0 0; }
.banned-firm dt { font-weight: 700; color: #fff; font-size: 15px; margin-top: 12px; }
.banned-firm dd { margin: 2px 0 0; }
.banned-firm .hint { margin-top: 12px; }

/* Pass simulator */
.sim .calc-result h3 { margin-top: 26px; font-size: 18px; }
.sim .calc-result h3 + p, .sim .calc-result h3 + table { margin-top: 8px; }
.sim .calc-result .data { margin-top: 10px; }
.sim-sweep tr.is-you td { background: rgba(224, 168, 62, 0.08); }
.sim-bar { display: block; height: 6px; width: var(--w); min-width: 2px; margin-bottom: 4px; border-radius: 3px; background: var(--gold); opacity: .8; }
.sim-how { margin-top: 16px; }
.sim-how ul { margin-top: 10px; }
.sim-open { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--navy-900); border-radius: 0 6px 6px 0; }
.sim .calc-result .data th { white-space: normal; }
.sim .calc-result .data td { white-space: normal; }

/* Trade journal */
.journal input[type="file"] { display: block; margin-top: 8px; color: var(--muted); }
.journal .calc-result h2 { font-size: 22px; }
.journal .calc-result h3 { margin-top: 26px; font-size: 18px; }
.journal .stat-row { margin-top: 18px; }
.jchecks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.jcheck { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.jcheck > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-top: 1px; }
.jcheck.ok > span { background: rgba(95, 183, 177, 0.18); color: #a9ecd0; }
.jcheck.warn > span { background: rgba(224, 87, 62, 0.2); color: #ff9a8a; }
.jcheck.info > span { background: rgba(159, 176, 200, 0.18); color: var(--muted); font-style: italic; }
.jactions { margin-top: 22px; }
.sim [hidden] { display: none !important; }
.sim-mode { border: 0; padding: 0; margin: 18px 0 0; }
.sim-mode legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.sim-mode label.check { margin-top: 8px; }
.sim-mode input:disabled + span { opacity: .55; }
.journal .stat-row { grid-template-columns: 1fr 1fr !important; }
.jsaved { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.jsaved li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.jsaved li:first-child { border-top: 0; padding-top: 0; }
.jsaved li strong { display: block; color: #fff; }
.jsaved-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.jsave { margin-top: 22px; }
.jsave input { display: block; width: 100%; margin-top: 8px; }

/* Start here (guided path) */
.start-ask fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.start-ask legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 6px; }
.start-ask label.check { margin-top: 10px; }
.start-progress { margin-top: 18px; }
.start-count { margin-top: 6px; font-size: 18px; }
.start-count strong { color: var(--gold); }
.start-bar { margin-top: 10px; height: 8px; border-radius: 4px; background: var(--navy-900); overflow: hidden; }
.start-bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.start-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.start-step { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px; }
.start-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--navy-900); color: var(--muted); border: 1px solid var(--line); }
.start-step h2 { font-size: 18px; line-height: 1.35; }
.start-step .muted { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.start-step .room-actions { margin-top: 12px; }
.start-step.is-done { opacity: .72; }
.start-step.is-done .start-num { background: rgba(95, 183, 177, 0.18); color: #a9ecd0; border-color: transparent; }
.start-step.is-next { border-color: rgba(224, 168, 62, 0.7); box-shadow: inset 4px 0 0 var(--gold); }
.start-step.is-next .start-num { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.start-flag { color: var(--gold) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px !important; }
.start-home { margin-top: 24px; border-color: rgba(224, 168, 62, 0.6); }
.start-home h2 { font-size: 20px; }
.start-home .muted { margin-top: 6px; }
.start-home .btn { margin-top: 14px; }

/* "How this page works" panels (app/page-help.php) */
.page-help { margin-top: 18px; padding: 14px 18px; border-color: rgba(224, 168, 62, 0.45); }
.page-help summary { cursor: pointer; font-weight: 800; color: var(--gold); }
.page-help ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.page-help li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.page-help li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(224, 168, 62, 0.16); color: var(--gold); }
.page-help .hint { margin-top: 12px; }

/* Admin: rule-update email preview */
.mail-preview { margin-top: 10px; padding: 14px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.5; background: var(--navy-900); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.rule-updates { margin-top: 28px; }
.rule-updates li { margin-top: 8px; }
.rule-updates .stat-label { display: block; }
