/* ============================================================
   Vertex Funded — pages.css
   Home: hero + trading card, stats, funding programs, the
   INTERACTIVE pricing table, features, how-it-works, payouts,
   FAQ, CTA. Plus generic page/blog/forms helpers.
   NO direction rules (logical properties only; LTR/RTL in locales).
   ============================================================ */

/* ---- Section primitives ------------------------------------------- */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-primary); font-weight: 700; font-size: 13px;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 16px 0 12px; font-weight: 700; }
.section-sub { color: var(--color-text-muted); font-size: 1.06rem; margin: 0; }

/* ---- Generic page / blog / forms ---------------------------------- */
.page-header { padding: 50px 0 10px; text-align: center; }

/* ---- Inner-page hero (blog posts, guides, policies) ---------------
   Use for any content page that has a sidebar. Put breadcrumbs INSIDE it. */
.page-hero {
  position: relative; overflow: hidden;
  padding: 46px 0 38px;
  background: radial-gradient(600px 300px at 20% 0%, rgba(30, 224, 127, .12), transparent), var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 10px; }
.page-hero .section-sub, .page-hero p { max-width: 640px; margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs i, .breadcrumbs .sep { font-size: 10px; opacity: .55; }

/* ---- Inner-page body: content column + persistent sidebar ---------
   .sidebar is GLOBAL theme chrome (like header/footer) — CTA text/link
   and support contact rows come from theme settings, so no individual
   page configures it. "On this page" auto-builds from this page's own
   <h2>/<h3> tags (see scripts/toc.js) — nothing to fill in per page.  */
.page-body { padding: 44px 0 60px; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  grid-template-areas: "content sidebar";
}
.page-layout > .page-content,
.page-layout > .checkout-card,
.page-layout > article.content-body { grid-area: content; min-width: 0; }
.page-layout > .sidebar { grid-area: sidebar; min-width: 0; }
.page-lead { grid-area: lead; width: 100%; min-width: 0; }
.page-layout--with-lead {
  grid-template-columns: 1fr 300px;
  grid-template-areas:
    "lead lead"
    "content sidebar";
  row-gap: 28px;
}
.page-layout--with-lead > .page-lead { margin-bottom: 0; }
.page-layout--with-lead .page-content > .content-body {
  padding-top: 0;
  max-width: none;
  margin-inline: 0;
}
@media (max-width: 900px) {
  .page-layout,
  .page-layout--with-lead { grid-template-columns: 1fr; }
  .page-layout { grid-template-areas: "sidebar" "content"; }
  .page-layout--with-lead { grid-template-areas: "lead" "sidebar" "content"; }
  .sidebar { position: static; top: auto; }
}
.content-body { max-width: 760px; margin-inline: auto; padding: 24px 0 40px; font-size: 16px; line-height: 1.75; }
.content-body :is(h2, h3, h4) { margin: 32px 0 12px; scroll-margin-top: calc(var(--header-height) + 20px); }
.content-body p { margin: 0 0 16px; }
.content-body a { color: var(--color-primary); font-weight: 600; }
.content-body ul, .content-body ol { margin: 0 0 16px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.content-body ul { list-style: disc; } .content-body ol { list-style: decimal; }
.content-body blockquote { margin: 18px 0; padding: 14px 20px; border-inline-start: 4px solid var(--color-primary); background: var(--surface-2); border-radius: var(--radius-sm); color: var(--color-text-muted); font-style: italic; }
.content-body table { width: 100%; border-collapse: collapse; margin: 18px 0 20px; font-size: 14.5px; }
.content-body th { text-align: start; color: var(--color-text-muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--color-border); }
.content-body td { padding: 12px; border-bottom: 1px solid var(--color-border); }
.content-body hr { border: none; border-top: 1px solid var(--color-border); margin: 28px 0; }
.content-body code { background: var(--surface-2); border-radius: 5px; padding: 2px 6px; font-size: .9em; }

/* ---- Sidebar (global chrome: TOC auto-built + theme-level CTA/contact) */
/* ---- Sidebar (global chrome: TOC auto-built + theme-level CTA/contact) */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 901px) {
  .sidebar { position: sticky; top: 20px; }
}
.side-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-card h4 { font-size: 15px; margin: 0 0 14px; font-weight: 700; display: flex; align-items: center; }
.side-card h4 i { color: var(--color-primary); margin-inline-end: 8px; }
.toc-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 8px; font-style: italic; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a { display: block; padding: 9px 4px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--color-primary); }
.side-list a.lvl3 { padding-inline-start: 18px; font-weight: 500; }
.side-cta { background: var(--grad); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--on-accent); }
.side-cta h4 { margin: 0 0 8px; font-size: 16px; justify-content: center; color: var(--on-accent); }
.side-cta h4 i { color: var(--on-accent); }
.side-cta p { font-size: 13px; opacity: .85; margin: 0 0 16px; }
.side-cta .btn { display: inline-flex; background: var(--color-bg); color: var(--color-primary); font-weight: 700; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; }
.side-contact { display: flex; flex-direction: column; gap: 10px; }
.side-contact a, .side-contact span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--color-text-muted); font-weight: 600; }
.side-contact a:hover { color: var(--color-primary); }
.side-contact i { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-row label { font-weight: 700; font-size: 14px; }
input, textarea, select {
  width: 100%; min-height: 44px; padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--surface-2); color: var(--color-text);
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); }
/* ---- Comment / Review system (verified against the real CMS markup) --
   Real component: <section class="comment-section"> rendered at the end
   of page/post/product templates. Ratings (.star-rating) only appear
   when the CMS's allowRatings is true for that content type. */
.comment-section { padding: 46px 0 10px; max-width: 760px; margin-inline: auto; }
.comment-section-header { margin-bottom: 26px; }
.comment-section-header h2 { font-size: 1.5rem; margin: 0 0 10px; }
.comment-summary { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--color-text); }
.comment-count-label { color: var(--color-text-muted); font-size: 13.5px; margin: 0; }

.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star-rating-star { color: var(--color-border); font-size: 16px; line-height: 1; }
.star-rating-star.is-filled { color: #f5a623; }
.comment-form-rating .star-rating { gap: 4px; }
.comment-form-rating .star-rating-star { font-size: 26px; background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s, transform .15s; }
.comment-form-rating .star-rating-star:hover { transform: scale(1.12); }

.comment-list { margin-top: 6px; }
.comment-root, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment-children { padding-inline-start: 22px; margin-top: 14px; border-inline-start: 2px solid var(--color-border); }
.comment-item { margin-bottom: 16px; }
.comment-card { padding: 16px 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.comment-meta strong { font-size: 14.5px; font-weight: 700; }
.comment-meta time { font-size: 12.5px; color: var(--color-text-muted); }
.comment-body { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 8px; }
.comment-link-btn { font-size: 13px; font-weight: 700; color: var(--color-primary); padding: 0; }
.comment-link-btn:hover { text-decoration: underline; }

.comment-load-more { display: flex; margin: 20px auto 10px; }
.comment-count { text-align: center; color: var(--color-text-muted); font-size: 13px; margin: 6px 0 0; }
.comment-empty { text-align: center; padding: 30px 10px; color: var(--color-text-muted); font-size: 14.5px; }

.comment-form { margin-top: 30px; padding: 22px; background: var(--surface-2); border: 1px solid var(--color-border); border-radius: var(--radius); }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comment-form-rating { display: block; margin-bottom: 14px; }
.comment-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .comment-form-grid { grid-template-columns: 1fr; } }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(30, 224, 127, .4); }
.post-thumb { height: 180px; background: var(--surface-2); }
.post-body { padding: 18px; }
.post-title { font-family: var(--font-display); font-size: 17px; margin: 6px 0 8px; }
.post-excerpt { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 36px 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--color-border); font-weight: 700; transition: all .2s; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--grad); color: var(--on-accent); border-color: transparent; }

/* ---- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 70px; z-index: 1; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(30, 224, 127, .24), transparent 70%); top: -200px; inset-inline-end: -140px; }
.glow-2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(11, 208, 192, .18), transparent 70%); bottom: -180px; inset-inline-start: -140px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.pill i { color: var(--color-primary); }
.hero-title { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.03; margin: 0 0 20px; font-weight: 700; }
.hero-desc { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--color-text-muted); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-mini { display: flex; gap: 30px; flex-wrap: wrap; }
.hm-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.hm-label { font-size: 13px; color: var(--color-text-muted); }

/* hero trading dashboard card */
.hero-visual { position: relative; }
.trade-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tc-label { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.tc-pill { font-size: 12px; font-weight: 700; color: var(--color-primary); background: rgba(30, 224, 127, .12); padding: 4px 10px; border-radius: 999px; }
.tc-balance { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.tc-up { color: var(--color-primary); font-weight: 700; font-size: 14px; margin-inline-start: 8px; }
.tc-chart { margin-top: 14px; width: 100%; height: 120px; display: block; }
.tc-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.tc-foot div { font-size: 12.5px; color: var(--color-text-muted); }
.tc-foot b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--color-text); margin-top: 2px; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--color-border); box-shadow: var(--shadow); font-weight: 700; font-size: 13px; animation: vf-bob 4s ease-in-out infinite; }
.fb-1 { top: -18px; inset-inline-start: -18px; }
.fb-2 { bottom: -18px; inset-inline-end: -10px; animation-delay: 1.4s; }
.fbi { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 13px; }
@keyframes vf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* hero live-payouts feed card */
.live-payouts-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.lpc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lpc-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; }
.lpc-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: vf-pulse-dot 1.8s infinite; }
@keyframes vf-pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lpc-pill { background: var(--surface-2); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--color-text-muted); }
.lpc-list { display: flex; flex-direction: column; gap: 8px; }
.lpc-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 13px; padding: 10px 13px; animation: vf-lpc-in .35s ease both; }
@keyframes vf-lpc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lpc-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; }
.lpc-body { flex: 1; min-width: 0; }
.lpc-txt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-txt b { color: var(--color-primary); }
.lpc-time { font-size: 11.5px; color: var(--color-text-muted); margin-top: 1px; }
.lpc-check { color: var(--color-primary); font-size: 13px; flex: none; }
.lpc-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; }
.lpc-foot div { text-align: center; flex: 1; }
.lpc-foot b { display: block; font-family: var(--font-display); font-size: 16px; }
.lpc-foot span { font-size: 11px; color: var(--color-text-muted); }

/* Testimonials carousel: list is rendered twice for a seamless loop. */
.testi-section { padding: 70px 0; overflow: hidden; }
.testi-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.testi-track { display: flex; gap: 20px; width: max-content; animation: vf-testi-scroll 42s linear infinite; will-change: transform; }
.testi-track:hover { animation-play-state: paused; }
@keyframes vf-testi-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi-card { width: 320px; flex: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.testi-stars { color: #f59e0b; font-size: 13px; margin-bottom: 10px; letter-spacing: 1px; }
.testi-quote { font-size: 14.5px; line-height: 1.6; color: var(--color-text); margin: 0 0 16px; min-height: 66px; }
.testi-user { display: flex; align-items: center; gap: 11px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.testi-name { font-weight: 700; font-size: 14px; }
.testi-meta { font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 768px) { .testi-card { width: 270px; } }
@media (prefers-reduced-motion: reduce) {
  .testi-track, .lpc-row, .lpc-dot { animation: none; }
}

/* ---- Stats band ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.stat-label { color: var(--color-text-muted); font-size: 13.5px; margin-top: 5px; }

/* ---- Funding programs (models) ------------------------------------ */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.model:hover { transform: translateY(-5px); border-color: rgba(30, 224, 127, .4); box-shadow: var(--shadow); }
.model-ic { width: 50px; height: 50px; border-radius: 13px; background: rgba(30, 224, 127, .12); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 16px; }
.model h3 { font-family: var(--font-display); font-size: 21px; margin: 0 0 8px; }
.model p { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 18px; min-height: 42px; }
.model ul { display: flex; flex-direction: column; gap: 10px; }
.model li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.model li i { color: var(--color-primary); font-size: 13px; }

/* ---- Interactive pricing table ------------------------------------
   The widget is styled here; the SELECTION logic (which challenge
   type / account size is active, and recomputing price + spec rows)
   is driven by a tiny app component. Add .on to the active
   .seg button and .size-tab; re-render .offer + .spec on change.    */
.pricing { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.seg-wrap { display: flex; justify-content: center; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--color-border); border-radius: 14px; padding: 5px; gap: 4px; }
.seg button { padding: 10px 22px; border-radius: 10px; color: var(--color-text-muted); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.seg button small { font-weight: 600; font-size: 11px; opacity: .7; }
.seg button.on { background: var(--grad); color: var(--on-accent); }
.size-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 26px; }
.size-tab { padding: 12px 20px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--surface-2); color: var(--color-text); font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; transition: .2s; }
.size-tab:hover { border-color: var(--color-primary); }
.size-tab.on { border-color: var(--color-primary); background: rgba(30, 224, 127, .1); color: var(--color-primary); }
.size-tab.is-disabled { opacity: .35; cursor: not-allowed; }
.size-tab.is-disabled:hover { border-color: var(--color-border); }
.price-body { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.offer { background: var(--surface-2); border: 1px solid var(--color-border); border-radius: 18px; padding: 26px; }
.o-size { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.o-type { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }
.o-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.o-price b { font-family: var(--font-display); font-size: 42px; }
.o-price .per { color: var(--color-text-muted); font-size: 14px; }
.o-fee { color: var(--color-primary); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.offer .btn { width: 100%; }
.o-perks { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 0; }
.o-perks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--color-text-muted); }
.o-perks i { color: var(--color-primary); }
.spec { border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--color-text-muted); display: flex; align-items: center; gap: 11px; }
.spec-row .k i { color: var(--color-primary); font-size: 12px; width: 15px; text-align: center; }
.spec-row .v { font-weight: 700; font-family: var(--font-display); text-align: end; }

/* ---- Feature grid -------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.feat-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(30, 224, 127, .12); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.feat h4 { font-family: var(--font-display); font-size: 16.5px; margin: 0 0 6px; }
.feat p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ---- How it works -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.step-n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--on-accent); background: var(--grad); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h4 { font-family: var(--font-display); font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ---- Payouts / testimonials --------------------------------------- */
.payouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.payout { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.payout-top { display: flex; align-items: center; gap: 12px; }
.payout-av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.payout-name { font-weight: 700; font-size: 14.5px; }
.payout-loc { font-size: 12.5px; color: var(--color-text-muted); }
.payout-amt { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--color-primary); margin: 16px 0 8px; }
.payout p { color: var(--color-text-muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---- FAQ (native accordion) --------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--color-primary); transition: transform .2s; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--color-text-muted); font-size: 15px; line-height: 1.7; }

/* ---- CTA band ------------------------------------------------------ */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 60px 40px; text-align: center; background: linear-gradient(135deg, rgba(30, 224, 127, .15), rgba(11, 208, 192, .08)); border: 1px solid var(--color-border); }
.cta h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 12px; }
.cta p { color: var(--color-text-muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: initial; }
  .price-body { grid-template-columns: 1fr; }
  .models, .features, .steps, .payouts, .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .pricing { padding: 20px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .models, .features, .steps, .payouts, .blog-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PROGRAM / CHALLENGE DETAIL PAGE
   (re-uses the .pricing / .seg / .size-tab configurator from the
   home page's pricing widget instead of a generic add-to-cart flow)
   ============================================================ */
.program-page { padding: 34px 0 20px; }
.pp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--color-primary); background: var(--surface-2); padding: 6px 13px; border-radius: 999px; margin-bottom: 12px; }
.pp-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
.pp-desc { color: var(--color-text-muted); font-size: 15.5px; line-height: 1.7; max-width: 720px; margin: 0 0 30px; }
.pp-tabs { margin-top: 50px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--color-border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 12px 18px; font-weight: 700; font-size: 14.5px; color: var(--color-text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.on { color: var(--color-primary); border-color: var(--color-primary); }
.related-head { margin: 60px 0 22px; font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); }

/* ============================================================
   AUTH + SIMPLE FORMS (login, register, forgot, guest lookup)
   ============================================================ */
.simple-form-shell {
  padding: 0 24px 70px;
  display: flex;
  justify-content: center;
}
.simple-form-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}
.simple-form-card.auth-form-card--wide { max-width: 520px; }
.auth-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.auth-card-sub {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.auth-form { display: flex; flex-direction: column; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 18px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.auth-footer a { color: var(--color-primary); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }
.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-alert--error {
  background: color-mix(in srgb, #e74c3c 12%, transparent);
  border: 1px solid color-mix(in srgb, #e74c3c 35%, transparent);
  color: #ffb4b4;
}
.auth-alert--success {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: var(--color-primary);
}
.google-signin-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 4px;
}
.google-signin-wrap > div { width: 100% !important; max-width: 100%; }
.recaptcha-wrap { margin-top: 8px; }
.auth-submit { width: 100%; margin-top: 6px; justify-content: center; }
.auth-trust-device {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.auth-trust-device input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex: none;
}
.auth-trust-device span { line-height: 1.4; }
.auth-trust-device--compact { margin-top: 10px; }
.legal-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: center;
}
.legal-note a { color: var(--color-primary); font-weight: 600; }

/* ============================================================
   CHECKOUT (single-item: challenge purchase)
   ============================================================ */
.checkout-page { padding: 34px 0 70px; }
.checkout-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--color-text-muted); padding: 8px 14px; border-radius: 999px; }
.checkout-step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.checkout-step.on { color: var(--color-primary); }
.checkout-step.on .n { background: var(--grad); color: var(--on-accent); }
.checkout-step.done .n { background: var(--color-primary); color: var(--on-accent); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.checkout-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.checkout-card h3 { font-size: 16.5px; margin: 0 0 18px; }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ============================================================
   ACCOUNT / TRADER DASHBOARD
   ============================================================ */
.account-shell { padding: 28px 0 80px; }
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.acc-main { min-width: 0; }
.acc-page-hero { padding-block: 28px 8px; }
.acc-page-hero h1 { margin-bottom: 0; }
.td-loading { color: var(--color-text-muted); padding: 40px 0; }

.acc-nav-wrap { position: sticky; top: 20px; }
.acc-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.acc-nav-toggle span { flex: 1; text-align: start; }

.acc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 55%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.acc-nav-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
.acc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--on-accent);
  background: var(--grad);
  flex-shrink: 0;
}
.acc-nav-profile-text { min-width: 0; }
.acc-user {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-email {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-nav-scroll { display: flex; flex-direction: column; gap: 3px; }
.acc-nav a,
.acc-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-text-muted);
  text-align: start;
  width: 100%;
}
.acc-nav a:hover,
.acc-logout:hover { background: var(--surface-2); color: var(--color-text); }
.acc-nav a.on {
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.acc-nav a i,
.acc-logout i { width: 18px; text-align: center; font-size: 14px; }
.acc-logout {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 12px 12px;
  padding-top: 14px;
  color: #ff8a8a;
}

/* ---- Trader dashboard home ---- */
.td-dash { display: flex; flex-direction: column; gap: 22px; }
.td-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.td-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr);
  gap: 18px;
  padding: 22px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--color-primary-dark) 16%, transparent), transparent 50%),
    linear-gradient(160deg, #10182a 0%, var(--color-surface) 55%, #0a101c 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.td-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  filter: blur(18px);
  pointer-events: none;
}
.td-hero-copy,
.td-hero-pnl { position: relative; z-index: 1; }
.td-hero-title {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  margin: 0 0 8px;
  line-height: 1.15;
}
.td-hero-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14.5px;
  max-width: 42ch;
  line-height: 1.55;
}
.td-hero-pnl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.td-hero-pnl-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.td-hero-pnl-value {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.td-hero-pnl-value.is-up,
.td-kpi-value.tone-up,
.td-account-metrics b.is-up { color: var(--color-primary); }
.td-hero-pnl-value.is-down,
.td-kpi-value.tone-down,
.td-account-metrics b.is-down { color: #ff6b6b; }
.td-hero-pnl-meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.td-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.td-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 118px;
}
.td-kpi.is-link { transition: transform .2s var(--transition), border-color .2s; }
.td-kpi.is-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}
.td-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--color-text-muted);
  font-size: 14px;
}
.td-kpi-icon.is-accent {
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
  color: var(--color-primary);
}
.td-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: .02em;
}
.td-kpi-value {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  word-break: break-word;
}
.td-kpi-value.tone-ok { color: var(--color-primary); }
.td-kpi-value.tone-warn { color: #f5a623; }
.td-kpi-value.tone-bad { color: #ff6b6b; }
.td-kpi-value.tone-muted { color: var(--color-text-muted); font-size: 1rem; }

.td-quick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.td-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s, background .2s, transform .2s;
}
.td-quick-btn:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  transform: translateY(-1px);
}
.td-quick-btn.is-primary {
  background: var(--grad);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--color-primary) 28%, transparent);
}
.td-quick-btn i { font-size: 13px; }

.td-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.td-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.td-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
}

.td-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.td-account-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.td-account-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}
.td-account-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.td-account-type {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.td-account-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.td-account-size {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.td-account-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.td-account-metrics div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.td-account-metrics span {
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.td-account-metrics b {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
}
.td-account-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-primary);
}

.td-empty {
  text-align: center;
  padding: 48px 22px;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
}
.td-empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: var(--glow);
}
.td-empty h3 { margin: 0 0 8px; font-size: 1.35rem; }
.td-empty p { color: var(--color-text-muted); margin: 0 0 20px; }

.td-skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--color-primary) 8%, var(--surface-2)), var(--surface-2));
  background-size: 200% 100%;
  animation: td-shimmer 1.2s ease-in-out infinite;
}
.td-skeleton-hero { height: 150px; border-radius: var(--radius); }
.td-skeleton-kpi { height: 110px; }
.td-skeleton-block { height: 220px; border-radius: var(--radius); }
@keyframes td-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.acc-stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; }
.acc-stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.acc-stat-label { color: var(--color-text-muted); font-size: 13px; margin-top: 4px; }
.orders-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.orders-table th { text-align: start; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); padding: 13px 16px; background: var(--surface-2); }
.orders-table td { padding: 14px 16px; border-top: 1px solid var(--color-border); font-size: 14px; }
.order-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.order-status.delivered { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 14%, transparent); }
.order-status.processing { color: #f5a623; background: rgba(245, 166, 35, .14); }
.order-status.failed { color: #ff5c5c; background: rgba(255, 92, 92, .14); }

/* ============================================================
   404 / EMPTY STATES
   ============================================================ */
.empty-state { text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto; }
.empty-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 22px; }
.empty-state h2 { font-size: 1.6rem; margin: 0 0 10px; }
.empty-state p { color: var(--color-text-muted); margin: 0 0 24px; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; line-height: 1; margin-bottom: 6px; }

@media (max-width: 1100px) {
  .td-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .checkout-grid, .account-grid { grid-template-columns: 1fr; }
  .acc-nav-wrap { position: static; }
  .acc-nav-toggle { display: flex; }
  .acc-nav { display: none; }
  .acc-nav-wrap.is-open .acc-nav { display: flex; }
  .td-hero { grid-template-columns: 1fr; }
  .td-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-shell { padding: 18px 0 96px; }
  .container { padding-inline: 16px; }
  .td-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .td-kpi { min-height: 104px; padding: 14px; }
  .td-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .td-hero { padding: 18px; }
  .td-hero-sub { font-size: 13.5px; }
  .td-account-metrics { gap: 10px; }
  .acc-stats, .pay-grid { grid-template-columns: 1fr 1fr; }
  .td-quick { margin-inline: -4px; padding-inline: 4px; }
}
@media (max-width: 380px) {
  .td-kpi-grid { grid-template-columns: 1fr; }
  .td-kpi:last-child:nth-child(odd) { grid-column: auto; }
}

/* ============================================================
   SHOP / PROGRAM GRID (challenge programs listing)
   ============================================================ */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-filter-pills button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-weight: 700; font-size: 13.5px; }
.shop-filter-pills button.on { border-color: var(--color-primary); color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; transition: transform .25s, border-color .25s; }
.program-card:hover { transform: translateY(-4px); border-color: rgba(30, 224, 127, .4); }
.program-badge { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 16%, transparent); color: var(--color-primary); }
.program-badge.instant { background: rgba(139, 92, 246, .16); color: #a78bfa; }
.program-size { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 6px; }
.program-type { color: var(--color-text-muted); font-size: 13.5px; margin-bottom: 16px; }
.program-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.program-price-row b { font-family: var(--font-display); font-size: 26px; }
.program-mini-specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.program-mini-specs div { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-text-muted); }
.program-mini-specs b { color: var(--color-text); font-weight: 700; }
.program-card .btn { width: 100%; }

/* ============================================================
   PROGRAM DETAIL PAGE
   ============================================================ */
.pd-configurator { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin: 30px 0 24px; }
.pd-tabs button { padding: 12px 4px; margin-inline-end: 24px; font-weight: 700; font-size: 14.5px; color: var(--color-text-muted); border-bottom: 2px solid transparent; }
.pd-tabs button.on { color: var(--color-primary); border-color: var(--color-primary); }
.related-programs { margin-top: 50px; }

/* ============================================================
   COMPARE PLANS (critical page — filter + sticky table + mobile cards)
   ============================================================ */
.compare-hero { text-align: center; padding: 50px 0 10px; }
.compare-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 22px 0 34px; }
.compare-filter button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-weight: 700; font-size: 13.5px; }
.compare-filter button.on { border-color: var(--color-primary); background: var(--grad); color: var(--on-accent); }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.compare-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); padding: 14px 16px; white-space: nowrap; }
.compare-table thead th i { margin-inline-start: 5px; opacity: .5; font-size: 11px; cursor: help; }
.compare-table td { padding: 14px 16px; border-top: 1px solid var(--color-border); font-size: 14px; white-space: nowrap; }
.compare-table tr.compare-popular { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.compare-popular-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--on-accent); background: var(--grad); padding: 3px 9px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle; }
.compare-table td.price { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.compare-table td .btn { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.compare-card-list { display: none; flex-direction: column; gap: 14px; }
.compare-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.compare-card.popular { border-color: var(--color-primary); }
.compare-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.compare-card-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--color-text-muted); padding: 6px 0; border-top: 1px solid var(--color-border); }
.compare-card-row b { color: var(--color-text); }
@media (max-width: 900px) { .compare-table-wrap { display: none; } .compare-card-list { display: flex; } }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.lb-table th { text-align: start; font-size: 12px; text-transform: uppercase; color: var(--color-text-muted); padding: 13px 16px; background: var(--surface-2); }
.lb-table td { padding: 14px 16px; border-top: 1px solid var(--color-border); font-size: 14px; }
.lb-rank { font-family: var(--font-display); font-weight: 700; font-size: 16px; width: 40px; }
.lb-row.gold .lb-rank { color: #ffd447; } .lb-row.gold { background: rgba(255, 212, 71, .06); }
.lb-row.silver .lb-rank { color: #d7dde6; } .lb-row.silver { background: rgba(215, 221, 230, .05); }
.lb-row.bronze .lb-rank { color: #d98a4d; } .lb-row.bronze { background: rgba(217, 138, 77, .05); }
.lb-trader { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.lb-profit { color: var(--color-primary); font-weight: 700; font-family: var(--font-display); }

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding: 34px 0 70px; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 12px; }
.cart-item-icon { width: 50px; height: 50px; border-radius: 13px; flex: none; }
.cart-item-title { font-weight: 700; font-size: 14.5px; }
.cart-item-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 3px; }
.cart-item-price { font-family: var(--font-display); font-weight: 700; margin-inline-start: auto; }
.cart-item-remove { color: var(--color-text-muted); font-size: 13px; }
.cart-item-remove:hover { color: #ff5c5c; }
.cart-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cart-summary h3 { font-size: 16.5px; margin: 0 0 18px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; color: var(--color-text-muted); }
.cart-total-row.grand { border-top: 1px dashed var(--color-border); margin-top: 6px; padding-top: 14px; font-family: var(--font-display); font-size: 18px; color: var(--color-text); }
.promo-row { display: flex; gap: 10px; margin: 16px 0; }
.promo-row input { flex: 1; }

/* ============================================================
   CHECKOUT extras: broker/platform selection, terms, signed-in
   ============================================================ */
.broker-grid, .platform-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.broker-card { flex: 1; min-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 13px; border: 1.5px solid var(--color-border); background: var(--color-surface); font-weight: 700; font-size: 13px; }
.broker-card.sel { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 8%, transparent); color: var(--color-primary); }
.platform-pill { padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--color-border); background: var(--color-surface); font-weight: 700; font-size: 13.5px; }
.platform-pill.sel { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 8%, transparent); color: var(--color-primary); }
.checkout-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--color-text-muted); margin: 18px 0; }
.checkout-terms input { margin-top: 3px; accent-color: var(--color-primary); }
.checkout-terms a { color: var(--color-primary); font-weight: 600; }
.checkout-signed-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--color-primary) 8%, transparent); font-size: 13.5px; font-weight: 600; margin-bottom: 20px; }
.checkout-signed-in a { color: var(--color-primary); margin-inline-start: auto; font-weight: 700; }

/* ============================================================
   STATUS BADGES (challenge/account lifecycle — shared everywhere)
   ============================================================ */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.status-badge.pending_provisioning { color: #f5a623; background: rgba(245, 166, 35, .14); }
.status-badge.active { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 14%, transparent); }
.status-badge.pending_review { color: #ff9142; background: rgba(255, 145, 66, .14); }
.status-badge.passed { color: #3b9dff; background: rgba(59, 157, 255, .14); }
.status-badge.funded { color: #04130c; background: var(--grad); }
.status-badge.breached { color: #ff5c5c; background: rgba(255, 92, 92, .14); }
.status-badge.scaling_review { color: #a78bfa; background: rgba(167, 139, 250, .14); }
.status-badge.suspended { color: var(--color-text-muted); background: var(--surface-2); }

/* ============================================================
   DATA TABLE (generic — payouts, KYC history, trading stats)
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--color-text-muted); padding: 13px 16px; background: var(--surface-2); }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--color-border); font-size: 13.5px; }

/* ============================================================
   PROGRESS BARS (daily loss / max loss / profit target)
   ============================================================ */
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: var(--grad); }
.progress-bar-fill.danger { background: linear-gradient(135deg, #ff5c5c, #ff8a4d); }
.progress-bar-fill.warn { background: linear-gradient(135deg, #f5a623, #ffcf5c); }
.progress-row { margin-bottom: 16px; }
.progress-row-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress-row-head span:first-child { color: var(--color-text-muted); font-weight: 600; }
.progress-row-head span:last-child { font-weight: 700; font-family: var(--font-display); }

/* ============================================================
   TRADING STATS metrics grid
   ============================================================ */
.trading-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.trading-metric { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 16px; }
.trading-metric .v { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.trading-metric .l { color: var(--color-text-muted); font-size: 12px; margin-top: 3px; }
.timeline-events { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }

/* ============================================================
   CREDENTIALS (login/server/password + copy)
   ============================================================ */
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.cred-row:last-child { border-bottom: none; }
.cred-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }
.cred-value { font-family: monospace; font-size: 14px; font-weight: 700; margin-top: 3px; }
.cred-copy { color: var(--color-primary); font-weight: 700; font-size: 12.5px; flex: none; }
.cred-warning { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: rgba(245, 166, 35, .1); color: #f5a623; font-size: 13px; margin-top: 16px; }

/* ============================================================
   KYC
   ============================================================ */
.kyc-status-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.kyc-status-banner.not_submitted { background: var(--surface-2); }
.kyc-status-banner.pending { background: rgba(245, 166, 35, .1); }
.kyc-status-banner.approved { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.kyc-status-banner.rejected { background: rgba(255, 92, 92, .1); }
.kyc-status-banner .icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.kyc-upload { border: 2px dashed var(--color-border); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--color-text-muted); margin-bottom: 16px; cursor: pointer; }
.kyc-upload:hover { border-color: var(--color-primary); color: var(--color-primary); }
.kyc-upload i { font-size: 26px; margin-bottom: 10px; display: block; }

/* ============================================================
   CERTIFICATES
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-card { background: linear-gradient(160deg, var(--color-surface), var(--surface-2)); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; text-align: center; }
.cert-card .cert-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 14px; }
.cert-card h4 { font-size: 15.5px; margin: 0 0 6px; }
.cert-card p { color: var(--color-text-muted); font-size: 12.5px; margin: 0 0 16px; }

/* ============================================================
   AFFILIATE
   ============================================================ */
.aff-code-box { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.aff-code-box code { font-family: monospace; font-size: 15px; font-weight: 700; flex: 1; }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

/* ============================================================
   TOAST / ALERT (transient notifications)
   ============================================================ */
.toast-stack { position: fixed; top: 20px; inset-inline-end: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; min-width: 260px; }
.toast.success { border-color: rgba(30, 224, 127, .4); }
.toast.success i { color: var(--color-primary); }
.toast.error { border-color: rgba(255, 92, 92, .4); }
.toast.error i { color: #ff5c5c; }
.toast.warning i { color: #f5a623; }
.toast.info i { color: var(--color-primary); }

/* ============================================================
   LOADING SKELETON (generic)
   ============================================================ */
@keyframes skeleton-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.skel { background: var(--surface-2); border-radius: 8px; animation: skeleton-pulse 1.4s ease-in-out infinite; }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-card { height: 90px; border-radius: var(--radius); margin-bottom: 12px; }

/* ============================================================
   ANNOUNCEMENT BAR (reused across header)
   ============================================================ */
.announcement-bar { background: linear-gradient(90deg, rgba(30, 224, 127, .14), rgba(11, 208, 192, .14)); border-bottom: 1px solid var(--color-border); text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 16px; }
.announcement-bar b { color: var(--color-primary); }

/* ============================================================
   ORDER TRACKING TIMELINE (challenge detail phases + guest order status)
   ============================================================ */
.order-timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: flex; gap: 16px; padding-bottom: 26px; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--color-border); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--color-border); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 1; }
.tl-step.done .tl-dot { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.tl-step.active .tl-dot { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-surface); }
.tl-title { font-weight: 700; font-size: 14.5px; }
.tl-time { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.next-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.next-steps div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--color-text-muted); }
.next-steps i { color: var(--color-primary); width: 16px; text-align: center; }

@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .trading-metrics, .aff-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .program-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .broker-grid { flex-direction: column; }
  .compare-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}

/* ============================================================
   CHECKOUT MODAL (prop challenge quick-buy)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(6, 8, 15, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.is-open { display: flex; animation: prop-modal-fade .2s ease; }
@keyframes prop-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: prop-modal-pop .26s cubic-bezier(.34, 1.3, .4, 1);
}
@keyframes prop-modal-pop { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 13px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 24px 24px 0 0;
}
.modal-head .ic { width: 46px; height: 46px; font-size: 20px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.mh-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.mh-sub { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; margin-top: 2px; }
.modal-close { margin-inline-start: auto; width: 38px; height: 38px; flex: none; border-radius: 11px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font-size: 15px; display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s; }
.modal-close:hover { color: #ef4444; border-color: #ef4444; }
.modal-body { padding: 22px; }
.modal-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--color-border); background: var(--color-surface); border-radius: 0 0 24px 24px; }
.ft-label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; }
.ft-val { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.step-label { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin: 0 0 13px; }
.step-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.summary { background: var(--surface-2); border: 1px solid var(--color-border); border-radius: 16px; padding: 16px 18px; margin-bottom: 22px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.sum-row span:first-child { color: var(--color-text-muted); font-weight: 600; }
.sum-row span:last-child { font-weight: 700; }
.sum-row.tot { border-top: 1px dashed var(--color-border); margin-top: 6px; padding-top: 13px; font-family: var(--font-display); font-size: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--color-text-muted); font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; margin-bottom: 16px; background: none; border: none; padding: 0; }
.back-link:hover { color: var(--color-primary); }
@media (max-width: 640px) {
  .modal-foot { flex-direction: column; align-items: stretch; }
  .modal-foot .btn { justify-content: center; }
}
