/* Multiply My Traffic - member app design system (v0.6).
   Loaded after mmt-modern.css and mmt-account.css. Mobile first. Everything the ads and links pages use is prefixed mx-.
   The last section restyles the old pages (boxes, step images, tables, offer blocks) without touching their content. */

:root {
  --mx-navy: #0b1536;
  --mx-navy-2: #14246b;
  --mx-sky: #dfe7ff;
  --mx-ok: #0b7d5b;
  --mx-ok-bg: #e3f7ef;
  --mx-warn: #8a5300;
  --mx-warn-bg: #fff2d6;
  --mx-bad: #a3271f;
  --mx-bad-bg: #fde8e6;
  --mx-mute: #4a5670;
  --mx-mute-bg: #eceff6;
  --mx-r: 16px;
  --mx-shadow: 0 1px 2px rgba(11, 21, 54, .06), 0 10px 30px rgba(11, 21, 54, .08);
}

/* the ads/links pages bring their own cards, so the old white wrapper steps aside */
.mmt-content:has(> .mx-page) { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.mx-page { display: grid; gap: 26px; padding: 0 12px; }
@media (min-width: 900px) { .mx-page { padding: 0; } }
.mx-page > * { min-width: 0; }
.mx-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.mmt-content .mx-btn, .mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font: 700 1rem var(--font-body) !important; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; -webkit-tap-highlight-color: transparent; line-height: 1.1; }
.mx-btn:active { transform: translateY(1px); }
.mmt-content .mx-btn-cta { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 31, .32); }
.mmt-content .mx-btn-cta:hover { background: var(--orange-deep); color: #fff; box-shadow: 0 8px 20px rgba(229, 85, 12, .38); }
.mmt-content .mx-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(39, 69, 230, .28); }
.mmt-content .mx-btn-primary:hover { background: var(--blue-deep); color: #fff; }
.mmt-content .mx-btn-soft { background: var(--blue-wash); color: var(--blue-deep); border-color: #c9d4ff; }
.mmt-content .mx-btn-soft:hover { background: #d6dfff; color: var(--blue-deep); }
.mmt-content .mx-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.mmt-content .mx-btn-ghost:hover { background: var(--paper); color: var(--ink); }
.mmt-content .mx-btn-danger { background: #fff; color: var(--mx-bad); border-color: #f0c4c0; }
.mmt-content .mx-btn-danger:hover { background: var(--mx-bad-bg); color: var(--mx-bad); }
.mx-btn-small { min-height: 38px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.mx-btn:focus-visible, .mx-input:focus-visible { outline: 3px solid rgba(39, 69, 230, .45); outline-offset: 2px; }

/* ---------- section headers ---------- */
.mx-section { display: grid; gap: 16px; }
.mx-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.mmt-content .mx-sechead h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 4.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.mx-sechead p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- dashboard ---------- */
.mx-dash { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 18px 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a56ff 0%, rgba(58, 86, 255, 0) 52%), linear-gradient(155deg, var(--mx-navy) 0%, var(--mx-navy-2) 100%); box-shadow: var(--mx-shadow); display: grid; gap: 18px; }
.mx-dash::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); pointer-events: none; }
.mx-dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.mx-hello { margin: 0; color: #b9c6ff; font-weight: 600; font-size: .98rem; }
.mmt-content .mx-name { margin: 0; color: #fff; font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mx-level { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.mx-level-platinum { background: #e9ecf5; color: #232c4a; }
.mx-level-diamond { background: #cfe7ff; color: #0b3b78; }
.mx-level-elite { background: #ffd9a8; color: #6a3500; }
.mx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.mx-tile { display: grid; gap: 2px; padding: 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); }
.mx-tile b { font: 800 clamp(1.6rem, 6vw, 2.2rem) var(--font-display) !important; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.mx-tile span { font-weight: 700; color: #e4eaff; }
.mx-tile small { color: #aebcf5; font-size: .84rem; line-height: 1.3; }
.mx-ref { position: relative; z-index: 1; display: grid; gap: 8px; }
.mx-ref label { font-weight: 700; color: #fff; display: grid; gap: 1px; }
.mx-ref label span { font-weight: 400; color: #b9c6ff; font-size: .92rem; }
.mx-copyrow { display: flex; gap: 8px; }
.mmt-content .mx-copyrow input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 12px; padding: 0 12px; font-weight: 600; }
.mmt-content .mx-copyrow .mx-btn-soft { background: #fff; border-color: #fff; }
.mmt-content .mx-copyrow .mx-btn-soft.is-done { background: var(--mx-ok-bg); color: var(--mx-ok); border-color: var(--mx-ok-bg); }
.mx-upgrade, .mx-flag { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 13px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; }
.mmt-content a.mx-upgrade { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 31, .35); }
.mmt-content a.mx-upgrade:hover { background: var(--orange-deep); color: #fff; }
.mx-upgrade em, .mx-flag em { font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mmt-content .mx-flag { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; }
.mmt-content .mx-flag a, .mmt-content a.mx-flag { color: #fff; font-weight: 700; }
.mx-flag-plain { display: block; }
.mx-page > .mx-flag-plain { background: var(--mx-warn-bg); border-color: #f1d9a6; color: var(--mx-warn); }
@media (min-width: 720px) { .mx-dash { padding: 28px 30px 26px; } .mx-tiles { grid-template-columns: repeat(4, 1fr); } .mx-ref { grid-template-columns: 1fr; } }

/* ---------- offers ---------- */
.mx-offers { border-radius: 22px; padding: 20px 16px 18px; background: linear-gradient(180deg, #eef2ff 0%, #e4eaff 100%); border: 1px solid #cbd6ff; display: grid; gap: 16px; }
.mx-offers-head h2 { margin: 0 0 2px !important; font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800; }
.mx-offers-head p { margin: 0; color: var(--ink-soft); }
.mx-offer-grid { display: grid; gap: 12px; }
.mx-offer { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; background: #fff; border-radius: 16px; border: 1px solid #d3dcff; box-shadow: 0 1px 2px rgba(11, 21, 54, .05), 0 8px 22px rgba(39, 69, 230, .1); overflow: hidden; }
.mx-offer::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--blue); }
.mx-offer-upgrade::before { background: #7a3cf0; }
.mx-offer-life::before { background: var(--mx-navy); }
.mx-offer-monthly::before { background: var(--mx-ok); }
.mx-offer-special::before { background: var(--orange); }
.mmt-content .mx-offer-tag { margin: 6px 0 0; font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.mx-offer-upgrade .mx-offer-tag { color: #5a22c9; }
.mx-offer-monthly .mx-offer-tag { color: var(--mx-ok); }
.mmt-content .mx-offer-title { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.mx-offer-price { margin: 2px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.mx-offer-price .mx-amt { font: 800 2.3rem var(--font-display) !important; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.mx-offer-price .mx-per { color: var(--ink-soft); font-weight: 600; }
.mx-offer form { margin: 0; }
.mmt-content .mx-offer .mx-btn { width: 100%; }
.mx-offers-note { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 640px) { .mx-offers { padding: 24px; } .mx-offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mx-offer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- form: steps ---------- */
.mx-layout { display: grid; gap: 22px; align-items: start; }
.mx-steps { display: grid; gap: 14px; counter-reset: mxs; margin: 0; padding: 0; border: 0; }
.mx-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; margin: 0; padding: 18px 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mx-step::before { counter-increment: mxs; content: counter(mxs); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font: 800 1.25rem var(--font-display); box-shadow: 0 6px 14px rgba(39, 69, 230, .3); }
.mx-step:not(:last-child)::after { content: ""; position: absolute; left: 38px; top: 66px; bottom: -22px; width: 2px; background: linear-gradient(var(--blue), rgba(39, 69, 230, 0)); opacity: .35; z-index: 0; }
.mx-stepbody { min-width: 0; display: grid; gap: 12px; }
.mmt-content .mx-stepbody h3 { margin: 4px 0 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; }
.mx-help { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.mx-field { display: grid; gap: 6px; }
.mx-field > label, .mx-label { font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.mx-field > label span, .mx-label span { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.mmt-content .mx-input, .mmt-content .mx-field input[type=text], .mmt-content .mx-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #c8d2e6; border-radius: 12px; background: #fff; font: 400 1rem var(--font-body) !important; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.mmt-content textarea.mx-input { min-height: 120px; line-height: 1.5; resize: vertical; }
.mmt-content .mx-input:hover { border-color: #9fb0d8; }
.mmt-content .mx-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39, 69, 230, .15); outline: 0; }
.mx-count { margin: 0; color: var(--ink-soft); font-size: .88rem; text-align: right; }
.mx-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mx-warn-bg); color: var(--mx-warn); font-weight: 600; font-size: .96rem; }
.mx-statline { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.mx-statline br { display: none; }
.mx-editor { min-width: 0; overflow-x: auto; }
.mx-editor iframe, .mx-editor table { max-width: 100%; }
.mx-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-tips { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.mx-tips summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--blue-deep); list-style: none; }
.mx-tips summary::-webkit-details-marker { display: none; }
.mx-tips summary::after { content: "\002B"; float: right; font-weight: 800; }
.mx-tips[open] summary::after { content: "\2212"; }
.mx-tips ul { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; color: var(--ink-soft); }
.mx-pill { display: inline-flex; align-self: start; padding: 3px 10px; border-radius: 999px; background: var(--mx-warn-bg); color: var(--mx-warn); font-weight: 700; font-size: .88rem; }

/* category chips (the real multi-select stays in the form; chips mirror it) */
.mx-chips select { width: 100%; min-height: 180px; border: 1.5px solid #c8d2e6; border-radius: 12px; padding: 8px; }
.mx-chips.is-enhanced select { display: none; }
.mx-chiplist { display: flex; flex-wrap: wrap; gap: 8px; }
.mmt-content .mx-chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #c8d2e6; background: #fff; color: var(--ink); font: 600 .95rem var(--font-body) !important; cursor: pointer; transition: background .1s, border-color .1s; }
.mmt-content .mx-chip-btn:hover { border-color: var(--blue); }
.mmt-content .mx-chip-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.mmt-content .mx-chip-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.mmt-content .mx-chiptools button.mx-linkbtn { min-height: 0; box-shadow: none; }
.mx-chiptools { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .92rem; color: var(--ink-soft); }
.mmt-content .mx-chiptools button.mx-linkbtn { border: 0; background: none; color: var(--blue); font: 700 .92rem var(--font-body) !important; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ad frame (the real 650 x 100 box other members see, scaled to fit) ---------- */
.mx-adfit { width: 100%; height: var(--fh, 108px); overflow: hidden; border-radius: 10px; --s: 1; position: relative; }
.mx-adbox { width: 658px; height: 108px; border: 4px solid #888; background: #666; transform-origin: 0 0; transform: scale(var(--s)); box-sizing: border-box; }
.mx-adinner { width: 650px; height: 100px; overflow: hidden; background: #666; text-align: center; font: normal 16px Tahoma, Verdana, sans-serif !important; color: #fff; }
.mx-adinner *, .mx-adinner a { font-family: inherit; }
.mx-adbox a { text-decoration: none; cursor: pointer; display: block; color: inherit; }
.mx-adinner img { max-width: none; }
.mx-preview { display: grid; gap: 10px; padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mmt-content .mx-preview h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.mx-preview .mx-help { font-size: .92rem; }
.mx-hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 980px) {
  .mx-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .mx-preview { position: sticky; top: 76px; }
}
@media (min-width: 640px) { .mx-step { padding: 22px 24px 24px; grid-template-columns: 48px 1fr; gap: 0 18px; } .mx-step::before { width: 48px; height: 48px; } .mx-step:not(:last-child)::after { left: 46px; top: 74px; } }

/* ---------- my ads ---------- */
.mx-adlist { display: grid; gap: 14px; }
.mx-adcard { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--mx-mute); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mx-st-approved { border-left-color: var(--mx-ok); }
.mx-st-pending { border-left-color: #e0a100; }
.mx-st-declined { border-left-color: var(--mx-bad); }
.mx-adhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; }
.mmt-content .mx-adhead h3 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mx-meta { margin: 2px 0 0; color: var(--ink-soft); font-size: .92rem; }
.mx-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: var(--mx-mute-bg); color: var(--mx-mute); white-space: nowrap; }
.mx-chip-approved { background: var(--mx-ok-bg); color: var(--mx-ok); }
.mx-chip-pending { background: var(--mx-warn-bg); color: var(--mx-warn); }
.mx-chip-declined { background: var(--mx-bad-bg); color: var(--mx-bad); }
.mx-adstat { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.mx-adstat b { color: var(--ink); }
.mx-adstat .status_links_active { color: var(--mx-ok); font-weight: 700; }
.mx-adstat .status_links_inactive { color: var(--mx-bad); font-weight: 700; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mmt-content .mx-actions .mx-btn { min-height: 40px; padding: 0 14px; font-size: .94rem; }
.mx-empty { padding: 28px 20px; text-align: center; border: 2px dashed #c8d2e6; border-radius: var(--mx-r); background: #fff; }
.mmt-content .mx-empty h3 { margin: 0 0 6px; }
.mx-empty p { margin: 0 auto; color: var(--ink-soft); max-width: 48ch; }
.mx-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.mx-pager:empty { display: none; }
.mx-pager a, .mx-pager b, .mx-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.mx-pager b { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- links ---------- */
.mx-linkform { display: grid; gap: 16px; padding: 18px 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); }
@media (min-width: 640px) { .mx-linkform { padding: 24px; } }
.mx-linklist { display: grid; gap: 10px; }
.mx-linkrow { display: grid; grid-template-columns: 40px 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(11, 21, 54, .04); min-width: 0; }
.mx-linknum { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-wash); color: var(--blue-deep); font: 800 1rem var(--font-display); }
.mmt-content .mx-linkmain h3 { margin: 0; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.mx-linkurl { margin: 4px 0 0; font-size: .94rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.mx-linkurl a { color: var(--blue); font-weight: 600; }
.mx-linkstat { text-align: right; display: grid; line-height: 1.1; }
.mx-linkstat b { font: 800 1.5rem var(--font-display) !important; color: var(--ink); }
.mx-linkstat span { color: var(--ink-soft); font-size: .85rem; }
.mx-linkact { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-linkact a { font-weight: 700; font-size: .94rem; }

/* ================= old pages: same content, new look ================= */
.mmt-content { counter-reset: mxold; }
.mmt-content h1, .mmt-content h2 { color: var(--ink); }
.mmt-content h2 { font-weight: 800; letter-spacing: -.02em; }
.mx-title-from-image { margin: 6px 0 14px; }

/* decorative gifs are replaced by text (headings by script, icons and spacers removed) */
.mmt-content img[src*="images/hl/"], .mmt-content img[src*="images/ico/"], .mmt-content img[src*="images/prizes/"], .mmt-content img[src*="credits-small"], .mmt-content img[src*="linespacer"], .mmt-content img[src*="images/but/"], .mmt-content img[src*="toolbox"], .mmt-content img[src*="spacer.gif"], .mmt-content img[src*="question.jpg"] { display: none !important; }
.mx-check { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--mx-ok-bg); color: var(--mx-ok); font-weight: 800; font-size: .9rem; vertical-align: middle; }
.mx-gone { display: none !important; }

/* old boxed sections (.zulu) become cards */
.mmt-content .zulu, .mmt-content .zulu > .top, .mmt-content .zulu > .mid, .mmt-content .zulu > .bot, .mmt-content .zulu .content { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; width: auto !important; height: auto !important; min-height: 0; }
.mmt-content .zulu > .top, .mmt-content .zulu > .bot { display: none; }
.mmt-content .zulu { margin: 0 0 18px !important; }
.mmt-content .zulu > .mid { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--mx-r) !important; padding: 18px 16px !important; box-shadow: var(--mx-shadow); }
.mmt-content .zulu .content { text-align: left !important; }

/* old special-offer boxes (box7 / box11) become offer cards */
.mmt-content [class^="box"] > .tc, .mmt-content [class^="box"] > .bc { display: none; }
.mmt-content div[class^="box"] { width: auto !important; max-width: 100% !important; margin: 0 auto !important; }
.mmt-content div[class^="box"] > .cl, .mmt-content div[class^="box"] > .cl > .content { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.mmt-content div[class^="box"] > .cl > .content { position: relative; padding: 20px 18px 18px !important; border: 1px solid #cbd6ff !important; border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f1f4ff 100%) !important; box-shadow: 0 8px 22px rgba(39, 69, 230, .12); text-align: center; overflow: hidden; }
.mmt-content div[class^="box"] > .cl > .content::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--orange); }
.mmt-content div[class^="box"] > .cl > .content b { color: var(--ink); }

/* old numbered step blocks (background image per step) get a step chip instead */
.mmt-content div[style*="images/hl/step"] { background: none !important; padding: 4px 0 4px 18px !important; border-left: 4px solid var(--blue); margin: 0 0 20px !important; }
.mmt-content div[style*="images/hl/step"]::before { counter-increment: mxold; content: "Step " counter(mxold); display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; }
.mmt-content .style25, .mmt-content .style4 { font-weight: 700; color: var(--ink); }
.mmt-content .style10 { color: var(--ink-soft); }

/* old image buttons turned into text buttons by script */
.mx-offer br, .mx-dash br { display: none; }
.mx-offer form { display: grid; }

/* data tables */
.mmt-content table:has(th) { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mmt-content table:has(th) th { background: var(--blue-wash); color: var(--ink); font-weight: 700; text-align: left; padding: 11px 12px; border-bottom: 1px solid #cbd6ff; }
.mmt-content table:has(th) td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.mmt-content table:has(th) tr:last-child td { border-bottom: 0; }
.mmt-content table:has(th) tbody tr:nth-child(even) td { background: #fafbfe; }
.mmt-content table.newlinks { border: 1px solid var(--line); }
.mmt-content table.newlinks .clr1, .mmt-content table.newlinks .clr2 { background: #fff; color: var(--ink); }
.mmt-content .linknumbers { color: var(--blue); }

/* old form buttons and fields: one look everywhere */
.mmt-content input[type=submit], .mmt-content input[type=button], .mmt-content button:not(.mx-btn):not(.mx-chip-btn):not(.mx-linkbtn):not(.mx-share):not(.nav-toggle) { border-radius: 12px; min-height: 46px; padding: 0 20px; background: var(--blue); box-shadow: 0 6px 16px rgba(39, 69, 230, .24); transition: background .12s, transform .12s; }
.mmt-content input[type=text]:focus, .mmt-content input[type=password]:focus, .mmt-content input[type=email]:focus, .mmt-content input[type=url]:focus, .mmt-content input[type=number]:focus, .mmt-content select:focus, .mmt-content textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39, 69, 230, .15); outline: 0; }
.mmt-content select[multiple] { min-height: 160px; }
.mmt-content .notice { color: var(--mx-bad); }
.mmt-content hr { margin: 22px 0; }

@media (min-width: 900px) {
  .mx-actions .mx-btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .mx-btn, .mx-input, .mmt-content .mx-chip-btn { transition: none; } }

/* link colours that the old content rules (.mmt-content a) would otherwise win */
.mmt-content .mx-pager a, .mmt-content .mx-adbox a, .mmt-content .mx-linkact a { color: var(--blue); }
.mmt-content .mx-pager a { color: var(--ink); }
.mmt-content a.mx-btn { text-decoration: none; }
.mmt-content a.mx-btn-soft { color: var(--blue-deep); }

/* ================= v0.6.1: shared pieces for the rebuilt member pages ================= */
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-narrow { max-width: 760px; margin: 0 auto; width: 100%; }
.mx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); padding: 18px 16px 20px; display: grid; gap: 16px; min-width: 0; }
@media (min-width: 640px) { .mx-card { padding: 24px; } }
.mmt-content .mx-subhead { margin: 6px 0 -4px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.mx-tablewrap { overflow-x: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.mx-formcard { overflow-x: auto; }
.mmt-content .mx-copyrow-light input { border: 1.5px solid #c8d2e6; background: #fff; color: var(--ink); }
.mmt-content .mx-copyrow-light .mx-btn-soft { background: var(--blue-wash); border-color: #c9d4ff; }

/* tables built by the app: header band, soft rows, no cell borders on phones */
.mmt-content table.mx-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: table; }
.mmt-content table.mx-table th { background: var(--blue-wash); color: var(--ink); text-align: left; font-weight: 700; padding: 11px 12px; border-bottom: 1px solid #cbd6ff; white-space: nowrap; }
.mmt-content table.mx-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.mmt-content table.mx-table tbody tr:nth-child(even) td { background: #fafbfe; }
.mmt-content table.mx-table tr:last-child td { border-bottom: 0; }
.mx-col-check { width: 44px; text-align: center !important; }
.mmt-content table.mx-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); }
@media (max-width: 720px) {
  .mmt-content table.mx-inbox, .mmt-content table.mx-inbox tbody, .mmt-content table.mx-inbox tr, .mmt-content table.mx-inbox td { display: block; width: 100% !important; }
  .mmt-content table.mx-inbox thead { display: none; }
  .mmt-content table.mx-inbox { border: 0; background: none; }
  .mmt-content table.mx-inbox tr { position: relative; margin: 0 0 10px; padding: 12px 14px 10px 52px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .mmt-content table.mx-inbox td { padding: 2px 0; border: 0; background: none !important; }
  .mmt-content table.mx-inbox td.mx-col-check { position: absolute; left: 10px; top: 10px; width: 32px !important; padding: 0; }
  .mmt-content table.mx-inbox td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: .85rem; }
  .mmt-content table.mx-inbox td[data-label="Subject"]::before { content: ""; }
  .mmt-content table.mx-inbox td[data-label="Subject"] { font-weight: 700; font-size: 1.05rem; }
}

/* membership levels */
.mx-compare { display: grid; gap: 14px; }
.mx-pcard { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); overflow: hidden; }
.mx-pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #3a5a8c; }
.mx-pcard[data-level="platinum"]::before { background: #6b7690; }
.mx-pcard[data-level="diamond"]::before { background: #1f78d1; }
.mx-pcard[data-level="elite"]::before { background: var(--mx-ok); }
.mx-pcard header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mmt-content .mx-pcard h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.mx-pprice { margin: 0; font: 800 1.9rem var(--font-display) !important; letter-spacing: -.03em; color: var(--ink); }
.mx-pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mx-pcard li { position: relative; padding-left: 28px; line-height: 1.4; }
.mx-pcard li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.mx-pcard li.mx-yes::before { content: "\2713"; background: var(--mx-ok-bg); color: var(--mx-ok); }
.mx-pcard li.mx-no { color: #7d879d; }
.mx-pcard li.mx-no::before { content: "\2715"; background: var(--mx-bad-bg); color: var(--mx-bad); }
.mx-pnote { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.mx-pcard.is-current { border: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(39, 69, 230, .12), var(--mx-shadow); }
.mx-pcard.is-current header { flex-wrap: wrap; }
.mx-pcard.is-current header::after { content: "Your plan"; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: .8rem; order: 3; }
.mx-upgrades { display: grid; gap: 12px; padding: 18px 16px; background: linear-gradient(180deg, #eef2ff, #e4eaff); border: 1px solid #cbd6ff; border-radius: var(--mx-r); }
.mx-upgrades:not(:has(a)) { display: none; }
.mmt-content .mx-upgrades h3 { margin: 0; font-size: 1.15rem; }
.mx-upgrade-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mx-upgrade-row p { margin: 0; }
@media (min-width: 640px) { .mx-compare { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mx-compare { grid-template-columns: repeat(4, 1fr); } }

/* profile */
.mx-keyvals { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.mx-keyvals > div { display: grid; gap: 4px; }
.mx-keyvals span { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.mx-keyvals b { font: 800 1.3rem var(--font-display) !important; }
.mmt-content table.mx-fields, .mmt-content table.mx-fields tbody, .mmt-content table.mx-fields tr, .mmt-content table.mx-fields td { display: block; width: 100% !important; border: 0 !important; background: none !important; padding: 0; }
.mmt-content table.mx-fields { overflow: visible; }
.mmt-content table.mx-fields tr { margin: 0 0 14px; display: grid; gap: 6px; }
.mmt-content table.mx-fields td:first-child { font-weight: 700; text-align: left !important; }
.mmt-content table.mx-fields td:empty { display: none; }
.mmt-content table.mx-fields input[type=text], .mmt-content table.mx-fields input[type=email], .mmt-content table.mx-fields select, .mmt-content table.mx-fields textarea { width: 100%; min-height: 48px; border: 1.5px solid #c8d2e6; border-radius: 12px; padding: 10px 14px; background: #fff; }
.mmt-content table.mx-fields td input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); vertical-align: middle; }
.mmt-content table.mx-fields td:nth-child(2):not(:empty)::after { content: "Show this in the members directory"; margin-left: 8px; color: var(--ink-soft); font-size: .92rem; font-weight: 400; vertical-align: middle; }
.mx-directory { padding: 12px 14px; border-radius: 12px; background: var(--paper); color: var(--ink-soft); }
.mx-directory:empty { display: none; }
.mx-accountlinks { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; }
.mx-accountlinks br { display: none; }
.mmt-content .mx-accountlinks a[href*="delete"] { color: var(--mx-bad); }

/* links: edit cards */
.mx-linkcards { display: grid; gap: 14px; }
.mx-linkcard { display: grid; gap: 14px; padding: 18px 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mx-linkhead { display: flex; align-items: center; gap: 12px; }
.mmt-content .mx-linkhead h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.mx-linkhead .mx-linknum { grid-row: auto; }
.mx-linkcard .mx-tablewrap table th, .mx-linkcard .mx-tablewrap table td { font-size: .95rem; }

/* buy credits: plan cards */
.mmt-content .plan-section { margin: 6px 0 26px; }
.mmt-content .plan-section h2 { font-size: clamp(1.3rem, 4.4vw, 1.7rem); font-weight: 800; margin: 0 0 4px; }
.mmt-content .plan-section p.note { color: var(--ink-soft); max-width: 62ch; }
.mmt-content .plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); padding: 20px 18px 18px; box-shadow: var(--mx-shadow); overflow: hidden; gap: 4px; }
.mmt-content .plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--blue); }
.mmt-content .plan-section:nth-of-type(2) .plan::before { background: var(--mx-ok); }
.mmt-content .plan .amt { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.mmt-content .plan .credits { font-size: 1.1rem; margin-top: 6px; }
.mmt-content .plan .pay form { display: grid; }
.mmt-content .plan .pay .mx-btn { width: 100%; }
.mmt-content .page-title { font-weight: 800; letter-spacing: -.025em; }

/* ================= v0.6.2: promo tools page, inbox empty state, downline form ================= */
.mmt-content tr:has(td[data-label="Subject"]:has(> a:empty)) .mx-col-check { display: none; }
.mmt-content tr:has(td[data-label="Subject"]:has(> a:empty)) td[data-label]:empty { display: none; }
.mmt-content table.mx-inbox tr:has(td[data-label="Subject"]:has(> a:empty)) { padding-left: 14px; }
.mx-formcard { background: none; border: 0; box-shadow: none; padding: 0; }

/* promo tools (member.area.earn.money.php): same content, card layout */
.mmt-content #top { text-align: left; }
.mmt-content #top > br { display: none; }
.mmt-content #top > div[align="center"] { text-align: left !important; }
.mmt-content #top div[style*="lemonchiffon"] { width: auto !important; max-width: 100%; margin: 4px 0 18px !important; padding: 16px 18px !important; border: 1px solid #cbd6ff !important; border-radius: 14px; background: linear-gradient(180deg, #f3f6ff, #e8edff) !important; text-align: left !important; overflow-wrap: anywhere; }
.mmt-content #top div[style*="F3F3F3"] { width: auto !important; max-width: 100%; margin: 0 0 22px !important; padding: 18px !important; border: 1px solid var(--line) !important; border-radius: var(--mx-r); background: #fff !important; box-shadow: var(--mx-shadow); }
.mmt-content #top div[style*="F3F3F3"] br { display: none; }
.mmt-content #top div[style*="F3F3F3"] a { display: block; padding: 11px 12px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.mmt-content #top div[style*="F3F3F3"] a:hover { background: var(--blue-wash); }
.mmt-content #top div[style*="F3F3F3"] b { display: block; margin: 0 0 6px; font: 800 1.15rem var(--font-display) !important; }
.mmt-content div:has(> .earn-h2b) { margin: 0 0 18px; padding: 18px 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); text-align: left !important; }
.mmt-content div:has(> .earn-h2b) > br { display: none; }
.mmt-content div:has(> .earn-h2b) > * + * { margin-top: 10px; }
.earn-h2a { display: none; }
.mmt-content .earn-h2b { font: 800 1.25rem var(--font-display) !important; letter-spacing: -.015em; color: var(--ink); }
.mmt-content textarea.earn { width: 100%; min-height: 110px; font: 400 .92rem/1.45 Consolas, Menlo, monospace !important; background: #f6f8fd; border: 1.5px solid #c8d2e6; border-radius: 12px; padding: 12px 14px; }
.mmt-content a.earn-top { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-deep); font-weight: 700; font-size: .9rem; text-decoration: none; }
.mx-copybar { margin: 8px 0 0; }

.mmt-content table.mx-inbox tr.mx-noitem { padding-left: 14px; }
.mmt-content table.mx-inbox tr.mx-noitem td[data-label="From"]::before { content: ""; }

/* ================= v0.7.0: messages, FAQ, support, stats, calendar/notes polish ================= */
.mx-narrow-wide { max-width: 900px; margin: 0 auto; width: 100%; }
.mmt-content .mx-error { display: none; }
.mmt-content .mx-error:not(:empty) { display: block; background: var(--mx-bad-bg); color: var(--mx-bad); }
.mx-message { text-align: center; justify-items: center; padding: 34px 22px; }
.mmt-content .mx-message h2 { margin: 0; font-size: clamp(1.4rem, 5vw, 1.8rem); }
.mx-message p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.mx-message .mx-actions-row { justify-content: center; }
.mx-loading { text-align: center; justify-items: center; padding: 40px 22px; }
.mx-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue-wash); border-top-color: var(--blue); animation: mxspin .9s linear infinite; }
@keyframes mxspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mx-spinner { animation-duration: 3s; } }
.mx-meta-list { display: grid; gap: 8px; margin: 0; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.mx-meta-list > div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mx-meta-list dt { font-weight: 700; min-width: 4.5em; color: var(--ink-soft); }
.mx-meta-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mx-recipient { padding: 11px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }

/* stats tiles on a light card page */
.mx-tiles-light { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mx-tiles-light .mx-tile { background: #fff; border: 1px solid var(--line); box-shadow: var(--mx-shadow); }
.mx-tiles-light .mx-tile b { color: var(--ink); }
.mx-tiles-light .mx-tile span { color: var(--ink-soft); }
@media (min-width: 640px) { .mx-tiles-light { grid-template-columns: repeat(3, 1fr); } }
.mmt-content .mx-card h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }

/* FAQ */
.mx-faqtoc > div { display: grid; gap: 4px; }
.mmt-content .mx-faqcat { margin: 14px 0 4px; padding-top: 10px; font-size: 1.05rem; font-weight: 800; color: var(--blue-deep); border-top: 1px solid var(--line); }
.mmt-content .mx-faqtoc .mx-faqcat:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.mmt-content a.mx-faqlink { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.mmt-content a.mx-faqlink:hover { background: var(--blue-wash); color: var(--blue-deep); }
.mx-faqlink span, .mx-faqitem h4 span { flex: 0 0 auto; min-width: 26px; height: 26px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--blue-wash); color: var(--blue-deep); font-weight: 800; font-size: .82rem; }
.mx-faqanswers { display: grid; gap: 12px; }
.mmt-content .mx-faqanswers .mx-faqcat { margin: 12px 0 0; border: 0; padding: 0; }
.mx-faqitem { background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); padding: 16px; box-shadow: var(--mx-shadow); scroll-margin-top: 80px; }
.mmt-content .mx-faqitem h4 { margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; font-size: 1.08rem; font-weight: 800; }
.mx-faqanswer { color: var(--ink-soft); overflow-wrap: anywhere; }
.mx-audiolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mx-audiolist li { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mx-audiolist li:last-child { border-bottom: 0; padding-bottom: 0; }
.mx-audiolist span { font-weight: 700; }
.mx-audiolist audio { width: 100%; max-width: 420px; }

/* calendar and notes: roomier day cells, current day in the brand colour */
.mmt-content table:has(> tbody > tr > td[colspan="7"]) a { display: inline-block; min-width: 34px; padding: 8px 0; border-radius: 10px; text-decoration: none; font-weight: 600; }
.mmt-content table:has(> tbody > tr > td[colspan="7"]) td { height: 48px; }
.mmt-content table:has(> tbody > tr > td[colspan="7"]) a:hover { background: var(--blue-wash); }
.mmt-content table:has(> tbody > tr > td[colspan="7"]) table { border: 0 !important; }
.mmt-content table:has(> tbody > tr > td[colspan="7"]) table td { border: 0 !important; }

/* sales letters, contest and other long legacy pages: readable measure and rhythm */
.mmt-content h1, .mmt-content h2, .mmt-content h3 { text-wrap: balance; }
.mmt-content ul, .mmt-content ol { padding-left: 1.3em; }
.mmt-content li { margin: 0 0 .4em; }

/* ================= v0.7.1: one top bar that matches the dashboard (dark navy), active page marker, member chip ================= */
.mx-topbar { position: sticky; top: 0; z-index: 40; background: radial-gradient(90% 220% at 100% 0%, rgba(58, 86, 255, .55) 0%, rgba(58, 86, 255, 0) 55%), linear-gradient(155deg, #0b1536 0%, #14246b 100%); box-shadow: 0 8px 26px rgba(11, 21, 54, .28); }
.mx-topbar .member-head { position: static; background: none; border: 0; }
.mx-topbar .member-head .wrap { min-height: 64px; }
.mx-topbar .brand { color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.mx-topbar .brand:hover { color: #fff; }
.mx-topbar .head-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-topbar .nav-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.mx-topbar .nav-toggle:hover { background: rgba(255, 255, 255, .18); }
.mx-topbar .btn-small { background: var(--orange); border-color: var(--orange); color: #fff; }

.mx-me { display: grid; gap: 0; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; line-height: 1.2; min-width: 0; max-width: 46vw; }
.mx-me:hover { background: rgba(255, 255, 255, .18); }
.mx-me-name { color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-me-meta { color: #b9c6ff; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .mx-me-meta { display: none; } .mx-me { padding: 9px 12px; } }

.mx-topbar .mmt-nav-bar { background: none; border: 0; }
.mx-topbar .mmt-nav { padding-top: 0; }
.nav-open .mx-topbar .mmt-nav-bar { max-height: calc(100vh - 70px); overflow-y: auto; border-top: 1px solid rgba(255, 255, 255, .14); }
.mx-topbar .mmt-nav a { color: #dbe3ff; }
.mx-topbar .mmt-nav a + a { border-top: 1px solid rgba(255, 255, 255, .1); }
.mx-topbar .mmt-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mx-topbar .mmt-nav a.is-current { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 4px 0 0 var(--orange); }
.mx-topbar .mmt-nav strong { color: var(--orange); }
@media (min-width: 900px) {
  .mx-topbar .mmt-nav { padding: 0 20px 12px; gap: 4px 6px; }
  .mx-topbar .mmt-nav a { color: #c9d4ff; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
  .mx-topbar .mmt-nav a + a { border-top: 0; }
  .mx-topbar .mmt-nav a.is-current { background: #fff; color: var(--mx-navy); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
  .mx-topbar .mmt-nav a.is-current strong { color: var(--orange-deep); }
  .mx-topbar .mmt-nav-bar { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; }
  .mx-me-name { font-size: 1rem; }
}

/* every member page: same canvas, same card language as the ads and links pages */
body.member { background: var(--paper); }
.member-main { padding-top: 20px; }
.mmt-content:not(:has(> .mx-page)) { border-radius: var(--mx-r); box-shadow: var(--mx-shadow); }
.mmt-content:not(:has(> .mx-page)) > :first-child:is(h1, h2, h3) { margin-top: 0; }
.mx-legacy-title { margin: 0 0 4px; font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }

/* member chip: avatar + text; avatar only on phones */
.mx-me { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; max-width: none; }
.mx-me-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 .95rem var(--font-display); flex: 0 0 auto; }
.mx-me-txt { display: grid; min-width: 0; line-height: 1.2; }
.mx-me-name { max-width: 14ch; }
@media (max-width: 640px) { .mx-me { padding: 4px; } .mx-me-txt { display: none; } }

/* header injected above older pages */
.mx-pagehead { margin: 0 0 14px; padding: 0 12px; }
@media (min-width: 900px) { .mx-pagehead { padding: 0; } }
.member-main > .mx-pagehead h2 { margin: 0; font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); padding: 0; }
.member-main > .mx-pagehead h2::before { display: none; }
.mmt-content.mx-legacy { padding: 20px 16px; }
@media (min-width: 640px) { .mmt-content.mx-legacy { padding: 26px 28px; } }

/* old yellow / grey table backgrounds from the original design -> the app palette */
.mmt-content [style*="#FFFFDD" i], .mmt-content [style*="#FFFFEE" i], .mmt-content [style*="#EEFFCC" i], .mmt-content [style*="lemonchiffon" i], .mmt-content [bgcolor="#FFFFDD" i], .mmt-content [bgcolor="#FFFFEE" i], .mmt-content [bgcolor="#EEFFCC" i], .mmt-content [bgcolor="#EEEEEE" i] { background-color: #fafbfe !important; }
.mmt-content [style*="#CCCCCC" i], .mmt-content [style*="#CCC;" i], .mmt-content [bgcolor="#CCCCCC" i], .mmt-content [bgcolor="#CCC" i] { background-color: var(--blue-wash) !important; color: var(--ink); }
.mmt-content tr[style*="background-color:#CCC" i] td, .mmt-content tr[bgcolor] td { color: inherit; }
.mmt-content tr[bgcolor="#000000"] { background: none !important; }

/* ================= v0.8.0: categories, contest, earnings, profile, inbox, downline, promo tools (2026) ================= */

/* category chips on ad cards */
.mx-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; align-items: center; }
.mx-cat { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-deep); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.mx-catmore { display: inline; }
.mx-catmore summary { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed #9fb0d8; color: var(--ink-soft); font-size: .8rem; font-weight: 700; cursor: pointer; list-style: none; }
.mx-catmore summary::-webkit-details-marker { display: none; }
.mx-catmore[open] { display: contents; }
.mx-catmore[open] summary { display: none; }
@media (max-width: 520px) { .mmt-content .mx-chip-btn { min-height: 38px; padding: 0 12px; font-size: .9rem; } .mx-chiplist { gap: 6px; } }

/* contest page: podium list and prize cards (built from the old tables by script) */
.mx-prizes { display: grid; gap: 10px; margin: 8px 0 18px; }
.mx-prize { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--mx-shadow); }
.mx-prize img { grid-column: 1 / -1; max-width: 220px; border-radius: 10px; }
.mx-prize p { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }
.mx-rank { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; background: var(--mx-navy); color: #fff; font: 800 1rem var(--font-display); }
.mx-leaders { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; }
.mx-leaders li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.mx-leaders li:nth-child(1) .mx-rank { background: #d99a00; }
.mx-leaders li:nth-child(2) .mx-rank { background: #7d8799; }
.mx-leaders li:nth-child(3) .mx-rank { background: #a8662c; }
.mx-leaders li.is-me { border: 2px solid var(--orange); background: #fff7f1; }
.mx-lname { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.mx-lname small { display: block; font-weight: 400; color: var(--ink-soft); }
.mx-refs { text-align: right; font: 800 1.35rem var(--font-display) !important; line-height: 1.05; }
.mx-refs small { display: block; font: 600 .75rem var(--font-body) !important; color: var(--ink-soft); }

/* affiliate earnings */
.mx-earnings { display: grid; gap: 12px; }
.mx-earn { display: grid; gap: 4px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); }
.mx-earn-now { border-top-color: var(--mx-ok); }
.mx-earn-pending { border-top-color: #e0a100; }
.mx-earn-past { border-top-color: var(--blue); }
.mx-earn-cancelled { border-top-color: #8b94a8; }
.mx-earn p { margin: 0; }
.mx-earn-label { font-weight: 700; color: var(--ink-soft); }
.mmt-content .mx-earn-amt a { font: 800 2.2rem var(--font-display) !important; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.mx-earn-text { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px !important; }
.mx-earn .mx-btn { justify-self: start; }
@media (min-width: 720px) { .mx-earnings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mx-earnings { grid-template-columns: repeat(4, 1fr); } }
.mx-payform { display: grid; gap: 14px; }

/* downline mail form and tables */
.mx-mailform { display: grid; gap: 16px; }
.mx-mailnotes:empty { display: none; }
.mx-mailnotes { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.mx-mailnotes br { display: none; }
.mx-sendvia:empty { display: none; }
.mx-sendvia p { margin: 0; display: grid; gap: 6px; }
.mx-formcard { overflow: visible; }
.mmt-content .mx-tablewrap table.mx-table { min-width: 0; }
@media (max-width: 720px) {
  .mmt-content table.mx-stack, .mmt-content table.mx-stack tbody, .mmt-content table.mx-stack tr, .mmt-content table.mx-stack td { display: block; width: 100% !important; }
  .mmt-content table.mx-stack { border: 0; background: none; }
  .mmt-content table.mx-stack tr.mx-thead { display: none; }
  .mmt-content table.mx-stack tr { margin: 0 0 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .mmt-content table.mx-stack td { padding: 3px 0; border: 0; background: none !important; text-align: left !important; }
  .mmt-content table.mx-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
}

/* profile: two columns on wide screens, required marker beside the label */
.mmt-content table.mx-fields tr.is-required td:first-child::after { content: " *"; color: var(--orange-deep); }
@media (min-width: 900px) {
  .mmt-content table.mx-fields tbody { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .mmt-content table.mx-fields tr:first-child:has(td[style*="color:red"], td[style*="color:#0a7a3d"]) { grid-column: 1 / -1; }
}

/* inbox: friendly empty state */
.mx-inbox-empty > table, .mx-inbox-empty > .mx-actions-row { display: none; }

/* promo tools */
.mx-promo-hero { display: grid; gap: 18px; padding: 20px 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a56ff 0%, rgba(58, 86, 255, 0) 52%), linear-gradient(155deg, var(--mx-navy) 0%, var(--mx-navy-2) 100%); box-shadow: var(--mx-shadow); }
.mx-promo-main { display: grid; gap: 12px; min-width: 0; }
.mx-promo-main > label { font-weight: 700; }
.mx-sharegrid { display: flex; flex-wrap: wrap; gap: 8px; }
.mmt-content .mx-share { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; font: 700 .95rem var(--font-body) !important; cursor: pointer; box-shadow: none; }
.mmt-content .mx-share:hover { background: rgba(255, 255, 255, .2); }
.mx-share[hidden] { display: none; }
.mx-qr { display: grid; gap: 8px; justify-items: center; text-align: center; }
#mx-qr { width: 150px; height: 150px; padding: 8px; background: #fff; border-radius: 14px; }
#mx-qr svg { width: 100%; height: 100%; display: block; }
.mx-qr p { margin: 0; color: #b9c6ff; font-size: .85rem; max-width: 22ch; }
.mmt-content .mx-qr .mx-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (min-width: 760px) { .mx-promo-hero { grid-template-columns: 1fr 190px; padding: 26px 28px; } }
.mx-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mx-checklist li { margin: 0; }
.mx-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mx-checklist input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.mx-checklist input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(70, 84, 109, .5); }
.mx-progress { margin: 0; font-weight: 700; color: var(--blue-deep); }
.mx-snipgrid { display: grid; gap: 12px; }
.mx-snip { display: grid; gap: 10px; align-content: start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mmt-content .mx-snip h4 { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mx-snip h4 span { font: 600 .82rem var(--font-body); color: var(--ink-soft); }
.mmt-content .mx-snip textarea { min-height: 150px; font-size: .95rem; line-height: 1.5; background: #f8f9fd; }
.mx-snip .mx-btn { justify-self: start; }
.mx-bannergrid { display: grid; gap: 12px; }
.mx-banner { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); box-shadow: var(--mx-shadow); min-width: 0; }
.mx-bannerpic { overflow: auto; background: var(--paper); border-radius: 10px; padding: 8px; display: grid; place-items: center; }
.mmt-content .mx-bannerpic img { display: block !important; max-width: 100%; height: auto; }
.mx-banner .mx-btn { justify-self: start; }
.mx-rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-soft); }
@media (min-width: 720px) { .mx-snipgrid { grid-template-columns: repeat(2, 1fr); } .mx-bannergrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mx-bannergrid { grid-template-columns: repeat(3, 1fr); } }

.mmt-content .mx-prize, .mmt-content .mx-leaders li { text-align: left; }
.mx-prize > div, .mx-lname { text-align: left; }
.mx-refs { justify-self: end; }

.mmt-content .mx-inbox-empty > table.mx-table, .mmt-content .mx-inbox-empty > .mx-actions-row { display: none !important; }
.mx-mailnotes br { display: block; height: 6px; content: ""; }
.mx-mailnotes { line-height: 1.5; }

/* legal and help pages: privacy, terms, FAQ, contact (2026-11-15) */
.mmt-content .mx-prose { width: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: var(--mx-r); padding: clamp(18px, 3.5vw, 34px); box-shadow: var(--mx-shadow); max-width: 820px; margin: 0 auto 22px; }
.mmt-content .mx-prose h3 { margin: 1.7em 0 .45em; font-size: 1.15rem; font-weight: 800; color: var(--ink); scroll-margin-top: 90px; }
.mmt-content .mx-prose h3:first-child { margin-top: 0; }
.mmt-content .mx-prose p, .mmt-content .mx-prose li { line-height: 1.7; color: var(--ink-soft); overflow-wrap: anywhere; }
.mmt-content .mx-prose ul { margin: .4em 0 .8em; padding-left: 1.25em; }
.mmt-content .mx-prose li { margin: .25em 0; }
.mmt-content .mx-prose a { color: var(--blue-deep); text-decoration: underline; }
.mmt-content .mx-prose-meta { width: 100%; box-sizing: border-box; max-width: 820px; margin: 0 auto 14px; color: var(--ink-soft); font-size: .95rem; }
.mmt-content .mx-prose-toc { width: 100%; box-sizing: border-box; max-width: 820px; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.mmt-content .mx-prose-toc a { padding: 6px 12px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-deep); text-decoration: none; font-size: .92rem; font-weight: 600; }
.mmt-content .mx-prose-toc a:hover { background: #dfe6ff; }
.mmt-content .mx-faqgroup { width: 100%; box-sizing: border-box; max-width: 820px; margin: 0 auto; padding: 0; }
.mmt-content .mx-faqgroup > h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 800; color: var(--blue-deep); }
.mmt-content .mx-faqgroup details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; box-shadow: var(--mx-shadow); }
.mmt-content .mx-faqgroup summary { cursor: pointer; padding: 14px 24px 14px 0; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.mmt-content .mx-faqgroup summary::-webkit-details-marker { display: none; }
.mmt-content .mx-faqgroup summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 1.4rem; line-height: 1; color: var(--blue-deep); }
.mmt-content .mx-faqgroup details[open] summary::after { content: "\2212"; }
.mmt-content .mx-faqgroup details > div { padding: 0 0 14px; color: var(--ink-soft); line-height: 1.7; }
.mmt-content .mx-faqgroup details > div p { margin: 0 0 .6em; }
.mmt-content .mx-contactgrid { width: 100%; box-sizing: border-box; display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
@media (min-width: 760px) { .mmt-content .mx-contactgrid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.mmt-content .mx-contactside { display: grid; gap: 12px; }
.mmt-content .mx-contactside .mx-card h4 { margin: 0 0 6px; }
.mmt-content .mx-contactside p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.mmt-content .mx-hp { position: absolute; left: -5000px; height: 0; width: 0; overflow: hidden; }
