/* ==========================================================================
   RATELi TFM Academy - premium layer: depth, motion and light
   --------------------------------------------------------------------------
   Presentation only, loaded after fx.css. Motion is switched off for anybody
   who asks their system to reduce it (end of file).
   ========================================================================== */

:root {
  --fx-gradient: linear-gradient(100deg, #f97316, #f59e0b);
  --fx-gradient-soft: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(245, 158, 11, 0.1));
  --fx-ring: 0 0 0 3px var(--surface), 0 0 0 5px rgba(249, 115, 22, 0.55);
}

html { scroll-behavior: smooth; }
/* backwards, not both: a transform left on <body> after the animation makes
   every position:fixed pop-up fixed to the page instead of the screen. */
body { animation: fx-page-in 0.2s var(--ease-out) backwards; }
@keyframes fx-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

:focus-visible { outline: none; box-shadow: var(--fx-ring); border-radius: 8px; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--text-dim); }

.fx-gradient-text, .hero__title em, .section-head h1 em, .section-head h2 em {
  background: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Buttons: gradient primary with a passing light
   -------------------------------------------------------------------------- */

.btn { transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, background-position 0.6s var(--ease-out); }
.btn--primary {
  background: var(--fx-gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  border: 0;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(0, 160, 140, 0.55); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost:hover { transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Cards: lift, a spotlight that follows the cursor, gradient edges
   -------------------------------------------------------------------------- */

.fx-spot { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.fx-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(249, 115, 22, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.fx-spot:hover::before { opacity: 1; }

.pillar, .fx-course, .price-card, .fx-summary, .mentorship-choice__option, .card--interactive {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.pillar:hover, .fx-course:hover, .price-card:hover, .mentorship-choice__option:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
}

.price-card.is-featured, .fx-edge {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--fx-gradient) border-box;
}

.pillar__icon, .fx-summary__icon { box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18); }

.fx-summary { position: relative; overflow: hidden; }
.fx-summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--fx-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.fx-summary:hover::after { opacity: 1; }
.fx-summary__num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero::before {
  background:
    radial-gradient(40% 50% at 12% 20%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(36% 44% at 88% 12%, rgba(245, 158, 11, 0.14), transparent 62%),
    radial-gradient(30% 36% at 70% 78%, rgba(249, 115, 22, 0.1), transparent 66%);
  filter: blur(10px);
}
.hero__title { font-weight: 800; letter-spacing: -0.04em; color: var(--text-strong); }
.hero .lede { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); max-width: 56ch; }

.hero-panel {
  padding: 1.5rem;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.55), rgba(245, 158, 11, 0.35), rgba(255, 255, 255, 0.4)) border-box;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 40px 80px -36px rgba(15, 23, 42, 0.35), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: fx-float 9s var(--ease-in-out) infinite alternate;
}
[data-theme="dark"] .hero-panel {
  background:
    linear-gradient(rgba(17, 26, 46, 0.86), rgba(17, 26, 46, 0.86)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.55), rgba(245, 158, 11, 0.35), rgba(255, 255, 255, 0.08)) border-box;
}
@keyframes fx-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.hero-panel__glow { position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 65%); filter: blur(10px); pointer-events: none; }
.hero-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.hero-panel__title { font-weight: 700; color: var(--text-strong); font-size: 1rem; }
.hero-panel__chart { width: 100%; height: 90px; display: block; margin: 0.25rem 0 1rem; }
.hero-panel__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: fx-draw 2.2s var(--ease-out) 0.3s forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
.hero-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hero-panel__list li { display: grid; grid-template-columns: 1fr auto 84px; gap: 0.75rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: var(--radius-md); transition: background 0.6s; }
.hero-panel__list li:hover { background: var(--surface-hover); }
.hero-panel__sym { font-weight: 700; color: var(--text-strong); font-size: 0.9rem; }
.hero-panel__px { font-weight: 600; color: var(--text-strong); }
.hero-panel__chg { text-align: right; font-weight: 700; font-size: 0.82rem; }
.is-up { color: var(--bull); }
.is-down { color: var(--bear); }
.flash-up { background: rgba(0, 179, 134, 0.14) !important; }
.flash-down { background: rgba(255, 75, 92, 0.12) !important; }
.hero-panel__note { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--text-dim); }
.hero-panel__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.hero-panel__stats > div { padding: 1rem; border-radius: var(--radius-md); background: var(--surface-sunken); display: flex; flex-direction: column; gap: 0.2rem; }
.hero-panel__num { font-size: 1.7rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.hero-panel__label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.live-dot { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.06em; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: fx-pulse 1.8s infinite; }
@keyframes fx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-panel { animation: none; }
}

/* --------------------------------------------------------------------------
   Live ticker strip
   -------------------------------------------------------------------------- */

.fx-ticker { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); height: 36px; display: flex; align-items: center; }
.fx-ticker::before, .fx-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none; }
.fx-ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.fx-ticker::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.fx-ticker__track { display: flex; gap: 2.25rem; white-space: nowrap; animation: fx-marquee 45s linear infinite; padding-left: 100%; }
.fx-ticker:hover .fx-ticker__track { animation-play-state: paused; }
.fx-ticker__item { display: inline-flex; gap: 0.5rem; align-items: baseline; font-size: 0.8rem; color: var(--text-muted); }
.fx-ticker__item strong { color: var(--text-strong); }
@keyframes fx-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   Sections and headings
   -------------------------------------------------------------------------- */

.section-head h1, .section-head h2 { letter-spacing: -0.035em; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--accent-soft); }
.eyebrow::before { content: none; }

/* --------------------------------------------------------------------------
   App shell finishing
   -------------------------------------------------------------------------- */

.fx-app .app-topbar { transition: box-shadow 0.25s var(--ease-out); }
.fx-app .app-topbar.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25); }
.fx-bubble--mine { background: var(--fx-gradient); }
.fx-mini-progress > span, .wizard-progress > span { background: var(--fx-gradient); }
.fx-badge-bump { animation: fx-bump 0.5s var(--ease-spring); }
@keyframes fx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fx-count-flash { animation: fx-count 1.2s var(--ease-out); }
@keyframes fx-count { 0% { color: var(--accent-text); } 100% { color: inherit; } }

.fx-skeleton { background: linear-gradient(90deg, var(--surface-hover) 25%, var(--line) 50%, var(--surface-hover) 75%); background-size: 200% 100%; animation: fx-shimmer 1.3s linear infinite; border-radius: 6px; color: transparent !important; }
@keyframes fx-shimmer { to { background-position: -200% 0; } }

.fx-live-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.fx-live-feed li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-md); font-size: 0.85rem; animation: fx-feed-in 0.4s var(--ease-out); }
.fx-live-feed li:nth-child(odd) { background: var(--surface-sunken); }
@keyframes fx-feed-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Respect reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body, .hero-panel, .hero-panel__line, .fx-ticker__track, .live-dot::before, .btn--primary::after, .fx-live-feed li { animation: none !important; }
  .hero-panel__line { stroke-dashoffset: 0; }
  .pillar:hover, .fx-course:hover, .price-card:hover, .mentorship-choice__option:hover, .btn--primary:hover { transform: none; }
}

.fx-dot-count[hidden], .sidebar-link__badge[hidden], .fx-ticker[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Shell, as RATELi FX draws it: module groups with icons, a grey pill for
   the open module, solid green active item, a user chip with presence and
   role, and a three part footer.
   -------------------------------------------------------------------------- */

.fx-app .sidebar-group__label {
  margin: 4px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  gap: 0.75rem;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.fx-app .sidebar-group__icon { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.fx-app .sidebar-group[open] > .sidebar-group__label { background: var(--surface-sunken); color: var(--text-strong); }
.fx-app .sidebar-group[open] > .sidebar-group__label .sidebar-group__icon { opacity: 1; }
.fx-app .sidebar-group > .sidebar-link { padding-left: 1.6rem; font-size: 0.9rem; }
.fx-app .sidebar-group > .sidebar-link .sidebar-link__icon { width: 17px; height: 17px; }
.fx-app .sidebar-link.is-active { background: var(--fx-gradient); color: var(--brand-accent-ink); font-weight: 650; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3); }
.fx-app .sidebar-link.is-active .sidebar-link__icon { color: var(--brand-accent-ink); }

@media (min-width: 1081px) {
  html.sidebar-collapsed .fx-app .sidebar-group__text { display: none; }
  html.sidebar-collapsed .fx-app .sidebar-group > .sidebar-link { padding-left: 0; }
}

.fx-user__avatar { position: relative; display: inline-flex; }
.fx-user__online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 2px var(--surface); }
.fx-user__meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.fx-user__role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 720px) { .fx-user__meta { display: none; } }

.fx-app .fx-app-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.fx-app-footer__copy strong { color: var(--text-strong); }
.fx-app-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.fx-app-footer__slogan { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.fx-app-footer__name { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; transition: transform 0.3s var(--ease-out); }
.fx-app-footer__name:hover { transform: translateY(-2px); }
.fx-app-footer__contacts { display: flex; justify-content: flex-end; gap: 0.9rem; }
.fx-app-footer__contacts a { color: var(--text-muted); display: inline-flex; transition: color 0.2s, transform 0.2s; }
.fx-app-footer__contacts a:hover { color: var(--accent-text); transform: translateY(-2px); }
@media (max-width: 760px) {
  .fx-app .fx-app-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.25rem 1rem; }
  .fx-app-footer__brand { order: -1; }
  .fx-app-footer__contacts { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Table tools (tables.js): show N, filter, Excel / PDF / Print, paging
   -------------------------------------------------------------------------- */

.fx-tt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--text-muted); }
.fx-tt__show { display: inline-flex; align-items: center; gap: 0.4rem; }
.fx-tt__size { padding: 0.35rem 1.6rem 0.35rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text-strong); font: inherit; }
.fx-tt__right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.fx-tt__search { min-width: 210px; padding: 0.5rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text-strong); font: inherit; }
.fx-tt__search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.fx-tt__exports { display: inline-flex; gap: 0.4rem; }
.fx-tt__btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text-strong); font: inherit; font-weight: 600; font-size: 0.82rem; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.fx-tt__btn::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.fx-tt__btn--excel::before { background: var(--accent-text); opacity: 1; }
.fx-tt__btn--pdf::before { background: var(--bear); opacity: 1; }
.fx-tt__btn:hover { background: var(--surface-hover); border-color: var(--accent); transform: translateY(-1px); }
.fx-tt__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.fx-tt__pager { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.fx-tt__page { min-width: 36px; padding: 0.4rem 0.7rem; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--text-muted); font: inherit; cursor: pointer; }
.fx-tt__page:hover:not(:disabled) { background: var(--surface-hover); color: var(--text-strong); }
.fx-tt__page.is-current { border-color: var(--line-strong); background: var(--surface); color: var(--text-strong); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.fx-tt__page:disabled { opacity: 0.45; cursor: default; }
.fx-tt__gap { padding: 0.4rem 0.2rem; color: var(--text-dim); }
.fx-tt__sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.fx-tt__sortable::after { content: "\2195"; margin-left: 0.35rem; font-size: 0.75em; opacity: 0.35; }
.fx-tt__sortable[aria-sort="ascending"]::after { content: "\2191"; opacity: 0.9; color: var(--accent-text); }
.fx-tt__sortable[aria-sort="descending"]::after { content: "\2193"; opacity: 0.9; color: var(--accent-text); }
.fx-tt__table tbody tr[hidden] { display: none; }
@media (max-width: 640px) {
  .fx-tt__right, .fx-tt__search { width: 100%; }
  .fx-tt__exports { width: 100%; justify-content: stretch; }
  .fx-tt__btn { flex: 1; justify-content: center; }
}
@media print { .fx-tt, .fx-tt__foot { display: none; } }

/* KPI cards with a coloured edge, as on the RATELi FX instalment screen */
.fx-kpi-edge { position: relative; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.18); overflow: hidden; }
.fx-kpi-edge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.fx-kpi-edge--red::before { background: var(--bear); }
.fx-kpi-edge--amber::before { background: var(--warning); }
.fx-kpi-edge--blue::before { background: #f59e0b; }
.fx-kpi-edge__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fx-kpi-edge__value { margin-top: 0.3rem; font-size: 1.35rem; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   My courses, as RATELi FX lays it out
   -------------------------------------------------------------------------- */

.chart-cover { display: block; width: 100%; height: 100%; }

.fx-stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.fx-stat-tile { --tone: #f59e0b; --tone-soft: rgba(245, 158, 11, 0.1); padding: 1.15rem 1.25rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -12px rgba(15, 23, 42, 0.14); }
.fx-stat-tile--amber { --tone: #f5b100; --tone-soft: rgba(245, 177, 0, 0.13); }
.fx-stat-tile--green { --tone: #ea580c; --tone-soft: rgba(234, 88, 12, 0.12); }
.fx-stat-tile--cyan { --tone: #ea580c; --tone-soft: rgba(234, 88, 12, 0.13); }
.fx-stat-tile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.fx-stat-tile__num { font-size: 1.75rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.fx-stat-tile__label { margin-top: 0.35rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.fx-stat-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); }
.fx-stat-tile__bar { height: 4px; margin-top: 0.9rem; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.fx-stat-tile__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tone); transition: width 1s var(--ease-out); }

.fx-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(15, 23, 42, 0.14); }
.fx-filter-bar__field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 170px; }
.fx-filter-bar__field--grow { flex: 1 1 280px; }
.fx-filter-bar__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.fx-filter-bar__input { position: relative; display: flex; align-items: center; }
.fx-filter-bar__input svg { position: absolute; left: 0.85rem; color: var(--text-dim); pointer-events: none; }
.fx-filter-bar input, .fx-filter-bar select { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text-strong); font: inherit; }
.fx-filter-bar__input input { padding-left: 2.4rem; }
.fx-filter-bar input:focus, .fx-filter-bar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.fx-filter-bar__count { margin: 0 0 0.65rem auto; font-size: 0.88rem; color: var(--text-muted); }
.fx-filter-bar__count strong { color: var(--text-strong); }

.fx-next-course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: center; padding: 1rem; margin-bottom: 1.75rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-sunken) 100%); border: 1px solid var(--line); box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.3); }
.fx-next-course__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; }
.fx-next-course__media img { width: 100%; height: 100%; object-fit: cover; }
.fx-next-course__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-right: 1rem; }
.fx-next-course__tag { background: var(--accent-text); color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.fx-next-course__title { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.fx-next-course__text { margin: 0; color: var(--text-muted); }
.fx-next-course__progress { display: flex; align-items: center; gap: 1rem; width: 100%; margin: 0.25rem 0 0.5rem; font-size: 0.9rem; }
.fx-next-course__progress strong { white-space: nowrap; color: var(--text-strong); }
.fx-next-course__bar, .fx-course-card__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.fx-next-course__bar > span, .fx-course-card__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-text); }

.fx-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.fx-course-grid > [hidden] { display: none; }
.fx-course-card { display: flex; flex-direction: column; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.2); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.fx-course-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25); }
.fx-course-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; }
.fx-course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fx-course-card__level { position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: rgba(15, 23, 42, 0.85); color: #fff; font-size: 0.72rem; font-weight: 700; }
.fx-course-card__done { position: absolute; top: 0.55rem; right: 0.55rem; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--accent-text); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2); }
.fx-course-card__body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; padding-top: 0.9rem; }
.fx-course-card__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.fx-course-card__title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.fx-course-card__title a { color: var(--text-strong); text-decoration: none; }
.fx-course-card__title a:hover { color: var(--accent-text); }
.fx-course-card__text { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.fx-course-card__by { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.84rem; color: var(--text-muted); }
.fx-course-card__progress { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; font-size: 0.85rem; color: var(--text-strong); }
.fx-course-card__bar { flex: none; }
.fx-course-card__meta { font-size: 0.75rem; color: var(--text-dim); }
.fx-course-card__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.fx-course-card .btn { margin-top: 0.6rem; }

@media (max-width: 1080px) { .fx-stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fx-next-course { grid-template-columns: 1fr; gap: 1rem; }
  .fx-next-course__body { padding: 0 0.25rem 0.5rem; }
  .fx-filter-bar__count { margin: 0; }
}
@media (max-width: 420px) { .fx-stat-tiles { grid-template-columns: 1fr 1fr; gap: 0.6rem; } .fx-stat-tile { padding: 0.9rem; } .fx-stat-tile__icon { width: 36px; height: 36px; } }

/* --------------------------------------------------------------------------
   Account settings, as RATELi FX lays it out
   -------------------------------------------------------------------------- */

.btn--dark { background: #0f172a; color: #fff; border: 1px solid #0f172a; }
.btn--dark:hover { background: #1e293b; color: #fff; }

.fx-account { position: relative; margin-bottom: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -14px rgba(15, 23, 42, 0.18); overflow: hidden; }
.fx-account__banner { height: 120px; padding: 1.4rem 1.5rem; background: var(--accent); background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0 30%, transparent 30%), radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.2), transparent 40%); }
.fx-account__heading { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-size: 1.2rem; font-weight: 600; }
.fx-account__identity { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; margin-top: -64px; padding: 0 1rem; text-align: center; }
.fx-account__avatar { position: relative; }
.fx-account__avatar .avatar--xl { width: 128px; height: 128px; font-size: 2.4rem; border: 6px solid var(--surface); box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.35); }
.fx-account__avatar .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fx-account__camera { position: absolute; right: 2px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f59e0b; color: #fff; border: 3px solid var(--surface); cursor: pointer; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35); transition: transform 0.2s var(--ease-out); }
.fx-account__camera:hover { transform: scale(1.08); }
.fx-account__avatar input:focus-visible + .fx-account__camera, .fx-account__camera:focus-visible { box-shadow: var(--fx-ring); }
.fx-account__name { margin-top: 0.6rem; font-size: 1.35rem; color: var(--text-strong); }
.fx-account__role { font-size: 0.9rem; color: var(--text-muted); }
.fx-account__hint { font-size: 0.75rem; color: var(--text-dim); }
.fx-account__body { padding: 1.75rem 1.5rem 1.5rem; }
.fx-account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fx-account__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-icon-field__label { display: block; margin-bottom: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fx-icon-field__control { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.fx-icon-field__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.fx-icon-field__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; flex: none; border-right: 1px solid var(--line); background: var(--surface-sunken); color: var(--text-dim); }
.fx-icon-field__control .input { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.fx-icon-field__control .input:focus { box-shadow: none; }
.fx-icon-field__control .input[readonly] { color: var(--text-muted); cursor: not-allowed; }
.fx-account__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.fx-account__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.25rem 0 0; font-size: 0.82rem; }
.fx-account__facts div { display: flex; gap: 0.4rem; }
.fx-account__facts dt { color: var(--text-dim); }
.fx-account__facts dd { margin: 0; color: var(--text-strong); font-weight: 600; }

.fx-security { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(15, 23, 42, 0.18); }
.fx-security > summary { list-style: none; }
.fx-security > summary::-webkit-details-marker { display: none; }
.fx-security__head { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem; cursor: pointer; }
.fx-security__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--surface); color: #ea580c; box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.25); }
.fx-security__text { display: flex; flex-direction: column; flex: 1; font-size: 0.88rem; color: var(--text-muted); }
.fx-security__text strong { font-size: 1rem; color: var(--text-strong); }
.fx-security[open] .fx-security__toggle { background: var(--surface-sunken); color: var(--text-strong); border-color: var(--line-strong); }
.fx-security__form { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 760px) {
  .fx-account__grid, .fx-account__grid--3 { grid-template-columns: 1fr; }
  .fx-account__body { padding: 1.25rem 1rem; }
  .fx-security__head { flex-wrap: wrap; padding: 1rem; }
  .fx-security__toggle { width: 100%; justify-content: center; }
  .fx-account__foot .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Assignments, as RATELi FX lays them out
   -------------------------------------------------------------------------- */

.fx-segment { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.fx-segment__btn { padding: 0.55rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--text-strong); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.fx-segment__btn:hover { background: var(--surface-hover); }
.fx-segment__btn.is-active { background: var(--fx-gradient); color: var(--brand-accent-ink); }

.fx-task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.fx-task-list > div { display: flex; flex-direction: column; gap: 1.1rem; }
.fx-task-list > div[hidden] { display: none; }
.fx-task { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(24, 24, 27, 0.18); scroll-margin-top: 90px; }
.fx-task:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.fx-task__date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; border-radius: 14px; background: var(--surface-sunken); color: var(--text-muted); }
.fx-task__date span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.fx-task__date strong { font-size: 1.6rem; font-weight: 600; color: var(--text-strong); line-height: 1.1; }
.fx-task__main { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.fx-task__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.fx-task__status { display: inline-flex; padding: 0.3rem 0.65rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.fx-task__status--pending { background: var(--accent-soft); color: var(--accent-text); }
.fx-task__status--waiting { background: rgba(245, 158, 11, 0.14); color: #a16207; }
.fx-task__status--returned { background: var(--bear-soft); color: var(--bear); }
.fx-task__status--graded { background: var(--bull-soft); color: var(--bull); }
[data-theme="dark"] .fx-task__status--waiting { color: #fbbf24; }
.fx-task__left { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; }
.fx-task__left--bear { color: var(--bear); }
.fx-task__left--muted { color: var(--text-muted); }
.fx-task__grade { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid currentColor; font-weight: 800; font-size: 0.9rem; }
.fx-task__grade.is-pass { color: var(--bull); }
.fx-task__grade.is-short { color: var(--warning); }
.fx-task__course { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.fx-task__title { margin: 0; font-size: 1.2rem; font-weight: 750; color: var(--text-strong); }
.fx-task__brief summary { list-style: none; cursor: pointer; color: var(--text-muted); font-size: 0.92rem; }
.fx-task__brief summary::-webkit-details-marker { display: none; }
.fx-task__brief summary::after { content: " Read the brief"; color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.fx-task__brief[open] summary { display: none; }
.fx-task__brief > div { color: var(--text); font-size: 0.92rem; line-height: 1.65; }
.fx-task__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.84rem; color: var(--text-muted); }
.fx-task__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.fx-task__feedback { margin-top: 0.4rem; padding: 0.9rem 1.1rem; border-radius: 10px; background: var(--surface-sunken); border-left: 4px solid var(--bull); }
.fx-task__feedback--returned { border-left-color: var(--warning); }
.fx-task__feedback strong { color: var(--text-strong); }
.fx-task__feedback p { margin: 0.3rem 0 0; color: var(--text); font-size: 0.92rem; }
.fx-task__actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.fx-task-side { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 90px; }
.fx-side-card { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(24, 24, 27, 0.18); }
.fx-side-card__title { margin: 0 0 1rem; font-size: 1.02rem; font-weight: 750; color: var(--text-strong); }
.fx-side-card__stat { display: flex; align-items: center; gap: 0.9rem; }
.fx-side-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.fx-side-card__stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.fx-side-card__stat span { font-size: 0.85rem; color: var(--text-muted); }
.fx-side-card__bar { height: 14px; margin-top: 1rem; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.fx-side-card__bar span { display: block; height: 100%; background: var(--fx-gradient); }
.fx-side-card__facts { margin: 1rem 0 0; display: grid; gap: 0.45rem; font-size: 0.85rem; }
.fx-side-card__facts div { display: flex; justify-content: space-between; gap: 1rem; }
.fx-side-card__facts dt { color: var(--text-muted); }
.fx-side-card__facts dd { margin: 0; font-weight: 700; color: var(--text-strong); }
.fx-side-card__empty { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.fx-deadlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fx-deadlines li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 0.85rem; border-left: 3px solid var(--line-strong); }
.fx-deadlines li.is-soon { border-left-color: var(--warning); }
.fx-deadlines a { font-weight: 700; color: var(--text-strong); text-decoration: none; font-size: 0.92rem; }
.fx-deadlines a:hover { color: var(--accent-text); }
.fx-deadlines span { font-size: 0.82rem; color: var(--text-muted); }

.fx-empty-card { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 3rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--line-strong); text-align: center; color: var(--text-muted); }
.fx-empty-card svg { color: var(--accent-text); margin-bottom: 0.4rem; }
.fx-empty-card strong { color: var(--text-strong); font-size: 1.05rem; }

@media (max-width: 1080px) { .fx-task-layout { grid-template-columns: 1fr; } .fx-task-side { position: static; } }
@media (max-width: 560px) {
  .fx-task { grid-template-columns: 1fr; padding: 1.1rem; gap: 0.8rem; }
  .fx-task__date { flex-direction: row; gap: 0.5rem; width: max-content; height: auto; padding: 0.35rem 0.75rem; }
  .fx-task__date strong { font-size: 1rem; }
  .fx-task__actions .btn { flex: 1; justify-content: center; }
  .fx-segment { width: 100%; } .fx-segment__btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Certificates, as RATELi FX lays them out
   -------------------------------------------------------------------------- */

.fx-achieve { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.fx-achieve__main { display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(24, 24, 27, 0.18); }
.fx-achieve__ring { --p: 0; flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-sunken) 0); }
.fx-achieve__ring span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--surface); font-size: 1.6rem; font-weight: 800; color: var(--accent-text); }
.fx-achieve__title { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.fx-achieve__text { margin: 0; color: var(--text-muted); }
.fx-achieve__next { display: flex; flex-direction: column; justify-content: center; gap: 0.55rem; padding: 1.6rem; border-radius: var(--radius-lg); color: #fff; text-align: center; background: radial-gradient(120% 140% at 85% 0%, rgba(249, 115, 22, 0.45), transparent 55%), linear-gradient(140deg, #0d0d12, #2a160c); box-shadow: 0 18px 40px -22px rgba(249, 115, 22, 0.55); }
.fx-achieve__eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; }
.fx-achieve__next strong { font-size: 1.25rem; font-weight: 800; }
.fx-achieve__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.fx-achieve__bar span { display: block; height: 100%; background: var(--fx-gradient); }
.fx-achieve__next a { color: #fed7aa; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.fx-achieve__next a:hover { color: #fff; }

.fx-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.fx-cert { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -16px rgba(24, 24, 27, 0.18); overflow: hidden; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.fx-cert:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(24, 24, 27, 0.25); }
.fx-cert__preview { position: relative; display: grid; place-items: center; padding: 1.25rem; background: var(--surface-sunken); min-height: 176px; }
.fx-cert__paper { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 100%; max-width: 250px; aspect-ratio: 1.414; padding: 0.9rem; background: #fffdf8; border: 1px solid #f1d9bf; border-radius: 4px; box-shadow: 0 8px 20px -10px rgba(24, 24, 27, 0.35), inset 0 0 0 5px #fffdf8, inset 0 0 0 6px #f4c79a; text-align: center; color: #3f3f46; }
.fx-cert__brand { font-size: 0.7rem; font-weight: 800; }
.fx-cert__kicker { margin-top: 0.15rem; font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c2410c; }
.fx-cert__name { margin-top: 0.35rem; font-family: Georgia, serif; font-style: italic; font-size: 0.95rem; color: #18181b; }
.fx-cert__prog { font-size: 0.55rem; font-weight: 700; color: #52525b; }
.fx-cert__seal { position: absolute; right: 0.6rem; bottom: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(100deg, #f97316, #f59e0b); color: #1c1004; }
.fx-cert__ribbon { position: absolute; top: 0.9rem; right: 0; padding: 0.3rem 0.8rem; border-radius: 4px 0 0 4px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.fx-cert__ribbon--ok { background: var(--bull); color: #fff; }
.fx-cert__ribbon--bad { background: var(--bear); color: #fff; }
.fx-cert__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem; flex: 1; }
.fx-cert__id { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.fx-cert__title { margin: 0; font-size: 1.15rem; font-weight: 750; color: var(--text-strong); }
.fx-cert__meta { font-size: 0.85rem; color: var(--text-muted); }
.fx-cert__body .btn--block { margin-top: auto; }
.fx-cert__share { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fx-cert__linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; justify-content: center; }
.fx-cert__linkedin:hover { background: #004182; color: #fff; }
.fx-cert__verify { align-self: center; font-size: 0.8rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.fx-cert.is-revoked .fx-cert__paper { filter: grayscale(1); opacity: 0.6; }
.fx-cert.is-locked { background: var(--surface-sunken); box-shadow: none; }
.fx-cert.is-locked:hover { transform: none; }
.fx-cert__preview--locked { color: var(--line-strong); }
.fx-cert.is-locked .fx-cert__body { text-align: center; align-items: center; }
.fx-cert.is-locked .fx-cert__title { color: var(--text-muted); }
.fx-cert__lockedbtn { margin-top: auto; background: var(--line-strong); color: var(--text-muted); border: 0; }

@media (max-width: 900px) { .fx-achieve { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fx-achieve__main { flex-direction: column; text-align: center; } }

/* --------------------------------------------------------------------------
   Downloads, as RATELi FX lays them out
   -------------------------------------------------------------------------- */

.fx-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.82rem; font-weight: 700; }
.fx-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.fx-file-grid > [hidden] { display: none; }
.fx-file { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.fx-file:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(24, 24, 27, 0.25); }
.fx-file__tile { position: relative; display: grid; place-items: center; height: 120px; margin-bottom: 0.55rem; border-radius: var(--radius-md); background: var(--surface-sunken); }
.fx-file__icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 68px; border-radius: 8px 18px 8px 8px; color: #fff; box-shadow: 0 10px 20px -10px rgba(24, 24, 27, 0.45); }
.fx-file__tile--pdf .fx-file__icon { background: #dc2626; }
.fx-file__tile--doc .fx-file__icon { background: #2563eb; }
.fx-file__tile--sheet .fx-file__icon { background: #15803d; }
.fx-file__tile--image .fx-file__icon { background: #9333ea; }
.fx-file__tile--archive .fx-file__icon { background: #52525b; }
.fx-file__tile--link .fx-file__icon, .fx-file__tile--file .fx-file__icon { background: var(--fx-gradient); color: var(--brand-accent-ink); }
.fx-file__ext { position: absolute; left: 0.6rem; bottom: 0.5rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.fx-file__title { margin: 0; font-size: 1rem; font-weight: 750; line-height: 1.35; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.fx-file__meta { font-size: 0.8rem; color: var(--text-muted); }
.fx-file__actions { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }
.fx-file__actions .btn { justify-content: center; }
.fx-file__preview { width: 46px; padding-inline: 0; }
.fx-file__actions .btn:only-child { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Community, as RATELi FX lays it out: channels, feed, hub
   -------------------------------------------------------------------------- */

.fx-community { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.fx-channels { display: flex; flex-direction: column; gap: 0.2rem; position: sticky; top: 90px; }
.fx-channels__label { padding: 0 0.9rem 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.fx-channel { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-radius: 10px; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.fx-channel:hover { background: var(--surface-hover); color: var(--text-strong); }
.fx-channel.is-active { background: var(--accent-soft); color: var(--accent-text); }
.fx-channel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fx-feed { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.fx-composer { display: flex; align-items: center; gap: 0.9rem; width: 100%; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.fx-composer .avatar { flex: none; }
.fx-composer__field { flex: 1; padding: 0.75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-sunken); color: var(--text-muted); transition: border-color 0.2s; }
.fx-composer:hover .fx-composer__field { border-color: var(--accent); }

.fx-post { padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); }
.fx-post__head { display: flex; align-items: center; gap: 0.8rem; }
.fx-post__who { display: flex; flex-direction: column; min-width: 0; }
.fx-post__name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-weight: 700; color: var(--text-strong); }
.fx-post__staff, .fx-post__pin { padding: 0.12rem 0.45rem; border-radius: 4px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.fx-post__staff { background: var(--fx-gradient); color: var(--brand-accent-ink); }
.fx-post__pin { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--line-strong); }
.fx-post__meta { font-size: 0.82rem; color: var(--text-muted); }
.fx-post__title { margin: 0.9rem 0 0.35rem; font-size: 1.1rem; font-weight: 750; }
.fx-post__title a { color: var(--text-strong); text-decoration: none; }
.fx-post__title a:hover { color: var(--accent-text); }
.fx-post__body { margin: 0; color: var(--text); line-height: 1.65; }
.fx-post__foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.fx-post__foot form { margin: 0; }
.fx-post__act { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.fx-post__act:hover { background: var(--accent-soft); color: var(--accent-text); }

.fx-hub { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 90px; }
.fx-hub__stats { margin: 0 0 1.1rem; display: grid; gap: 0.6rem; }
.fx-hub__stats div { display: flex; justify-content: space-between; align-items: baseline; }
.fx-hub__stats dt { color: var(--text-muted); font-size: 0.9rem; }
.fx-hub__stats dd { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-hub__stats dd.is-live { color: var(--bull); }
.fx-trending { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fx-trending li { display: flex; flex-direction: column; }
.fx-trending a { font-weight: 700; color: var(--text-strong); text-decoration: none; font-size: 0.92rem; }
.fx-trending a:hover { color: var(--accent-text); }
.fx-trending span { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 1180px) { .fx-community { grid-template-columns: 210px minmax(0, 1fr); } .fx-hub { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .fx-community { grid-template-columns: 1fr; }
  .fx-channels { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
  .fx-channels__label { display: none; }
  .fx-channel { flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.5rem 0.9rem; }
  .fx-hub { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Rank and achievements, as the RATELi FX badges page shows them
   -------------------------------------------------------------------------- */

.fx-rank { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: 2rem 2.25rem; margin-bottom: 1.75rem; border-radius: var(--radius-xl); color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(249, 115, 22, 0.32), transparent 55%), linear-gradient(140deg, #0d0d12 0%, #1a1219 55%, #2a160c 100%); box-shadow: 0 24px 48px -28px rgba(249, 115, 22, 0.5); }
.fx-rank__badge { position: relative; display: grid; place-items: center; width: 80px; height: 80px; filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.45)); }
.fx-rank__badge svg { position: absolute; inset: 0; }
.fx-rank__badge span { position: relative; font-weight: 900; font-size: 1rem; color: #1c1004; }
.fx-rank__title { margin: 0; color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.fx-rank__text { margin: 0.25rem 0 1rem; color: #e4e4e7; }
.fx-rank__bar { height: 8px; max-width: 560px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.fx-rank__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(100deg, #f97316, #f59e0b); }
.fx-rank__scale { display: flex; justify-content: space-between; gap: 1rem; max-width: 560px; margin-top: 0.5rem; font-size: 0.82rem; color: #d4d4d8; }
.fx-rank__cta { padding: 0.8rem 1.4rem; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.fx-rank__cta:hover { background: #fff; color: #18181b; }

.fx-achievements { margin-bottom: 1.75rem; }
.fx-achievements__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.fx-achievements__head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--text-strong); }
.fx-achievements__head h2 span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-left: 0.4rem; }
.fx-chips { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; }
.fx-chip { padding: 0.55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text-strong); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.fx-chip:hover { border-color: var(--accent); }
.fx-chip.is-active { background: var(--text-strong); color: var(--surface); border-color: var(--text-strong); }
.fx-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.fx-ach-grid > [hidden] { display: none; }
.fx-ach { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.6rem 1.2rem 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); text-align: center; transition: transform 0.35s var(--ease-out); }
.fx-ach.is-earned:hover { transform: translateY(-4px); }
.fx-ach.is-rare { border: 2px solid var(--warning); }
.fx-ach__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 0.4rem; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); color: var(--accent-text); }
.fx-ach.is-rare .fx-ach__icon { color: var(--warning); }
.fx-ach__name { margin: 0; font-size: 1rem; font-weight: 750; color: var(--text-strong); }
.fx-ach__text { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.fx-ach__state { margin-top: auto; padding-top: 0.6rem; font-size: 0.82rem; font-weight: 700; color: var(--accent-text); }
.fx-ach.is-rare .fx-ach__state { color: var(--warning); }
.fx-ach.is-locked { background: var(--surface-sunken); box-shadow: none; }
.fx-ach.is-locked .fx-ach__icon { color: var(--text-dim); background: none; filter: grayscale(1); }
.fx-ach.is-locked .fx-ach__name { color: var(--text-muted); }
.fx-ach__lock { position: absolute; top: 0.8rem; right: 0.8rem; color: var(--text-dim); }
.fx-ach__bar { width: 100%; height: 5px; margin-top: auto; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.fx-ach__bar span { display: block; height: 100%; background: var(--text-dim); }
.fx-ach__count { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.fx-xp-help { margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); }
.fx-xp-help summary { cursor: pointer; font-weight: 700; color: var(--accent-text); }
.fx-xp-help p { margin: 0.5rem 0 0; max-width: 80ch; }

@media (max-width: 860px) {
  .fx-rank { grid-template-columns: auto minmax(0, 1fr); padding: 1.5rem; gap: 1.25rem; }
  .fx-rank__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) { .fx-rank { grid-template-columns: 1fr; text-align: center; } .fx-rank__badge { justify-self: center; } .fx-rank__cta { justify-self: center; } }

/* Admin course cards */
.fx-admin-course__id { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.fx-status { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.fx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-status--published { background: var(--bull-soft); color: var(--bull); }
.fx-status--draft { background: var(--surface-sunken); color: var(--text-muted); }
.fx-status--archived { background: var(--bear-soft); color: var(--bear); }
.fx-admin-course__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.4rem; }
.fx-admin-course__stats div { display: flex; flex-direction: column; align-items: center; padding: 0.6rem 0.4rem; border: 1px solid var(--line-strong); border-radius: 10px; }
.fx-admin-course__stats span { font-size: 0.75rem; color: var(--text-muted); }
.fx-admin-course__stats strong { font-size: 1.05rem; color: var(--text-strong); }
.fx-admin-course__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.fx-admin-course__actions .btn { justify-content: center; margin: 0; }
.fx-filter-bar .fx-segment { align-self: flex-end; }
.fx-cert__paper .fx-cert__brand, .fx-cert__paper .fx-cert__brand * { color: #18181b; }
.fx-cert__paper .fx-cert__brand .wordmark__i { color: #c2410c; }

/* --------------------------------------------------------------------------
   Hero as the theme.md banner: near-black to warm brown, a restrained
   orange glow and a faint chart behind, in both light and dark mode (the
   RATELi FX site opens on a dark trading banner too).
   -------------------------------------------------------------------------- */

.hero {
  color: #f4f4f5;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(249, 115, 22, 0.28), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(245, 158, 11, 0.12), transparent 65%),
    linear-gradient(140deg, #0b0b10 0%, #15121a 50%, #241309 100%);
}
.hero::before {
  inset: 0;
  height: auto;
  filter: none;
  opacity: 0.55;
  animation: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpolyline fill='none' stroke='%23f97316' stroke-opacity='.35' stroke-width='2' points='0,150 40,140 80,152 120,120 160,128 200,96 240,104 280,80 320,92 360,60 400,72 440,44 480,58 520,30 560,40 600,18'/%3E%3Cpolyline fill='none' stroke='%23fbbf24' stroke-opacity='.18' stroke-width='1.5' points='0,170 50,160 100,166 150,140 200,150 250,120 300,128 350,104 400,112 450,84 500,96 550,70 600,76'/%3E%3C/svg%3E") right bottom / 70% 65% no-repeat;
}
.hero::after { --grid-line: rgba(255, 255, 255, 0.045); }
.hero .hero__title { color: #ffffff; }
.hero .lede { color: #d4d4d8; }
.hero .eyebrow { background: rgba(249, 115, 22, 0.16); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.35); }
.hero .btn--ghost { --btn-fg: #ffffff; --btn-border: rgba(255, 255, 255, 0.55); color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn--ghost:hover { --btn-bg: #ffffff; --btn-fg: #18181b; color: #18181b; background: #ffffff; }
.hero .hero-panel,
[data-theme="dark"] .hero .hero-panel {
  background:
    linear-gradient(rgba(16, 18, 25, 0.82), rgba(16, 18, 25, 0.82)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.6), rgba(245, 158, 11, 0.25), rgba(255, 255, 255, 0.06)) border-box;
  color: #e4e4e7;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(249, 115, 22, 0.35);
}
.hero .hero-panel__title, .hero .hero-panel__num, .hero .hero-panel__sym, .hero .hero-panel__px { color: #ffffff; }
.hero .hero-panel__label, .hero .hero-panel__note { color: #a1a1aa; }
.hero .hero-panel__stats > div { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); }
.hero .hero-panel__list li:hover { background: rgba(255, 255, 255, 0.05); }
.hero .live-dot { color: #fdba74; }

/* --------------------------------------------------------------------------
   Team, testimonials, careers, newsletter, map and TradingView strip
   -------------------------------------------------------------------------- */

.fx-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.fx-person { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); overflow: hidden; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.fx-person:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(24, 24, 27, 0.25); }
.fx-person__photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.85; background: radial-gradient(90% 90% at 80% 10%, rgba(249, 115, 22, 0.35), transparent 60%), linear-gradient(140deg, #0d0d12, #2a160c); }
.fx-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.fx-person__initials { font-size: 3.2rem; font-weight: 800; color: #fdba74; letter-spacing: -0.02em; }
.fx-person__role { position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 6px; background: var(--fx-gradient); color: var(--brand-accent-ink); font-size: 0.72rem; font-weight: 800; }
.fx-person__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.2rem 1.25rem 1.3rem; }
.fx-person__name { margin: 0; font-size: 1.15rem; font-weight: 750; color: var(--text-strong); }
.fx-person__title { font-size: 0.88rem; font-weight: 600; color: var(--accent-text); }
.fx-person__bio { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.fx-person__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.fx-person__facts span { display: inline-flex; align-items: center; gap: 0.3rem; }

.fx-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: 2rem 2.25rem; border-radius: var(--radius-xl); color: #fff; background: radial-gradient(70% 140% at 100% 0%, rgba(249, 115, 22, 0.32), transparent 55%), linear-gradient(140deg, #0d0d12, #2a160c); }
.fx-cta-band h2 { margin: 0; color: #fff; font-size: 1.6rem; }
.fx-cta-band p { margin: 0.3rem 0 0; color: #d4d4d8; }
.fx-cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); --btn-fg: #fff; }

.fx-rating-summary { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0; color: var(--text-muted); }
.fx-rating-summary strong { color: var(--text-strong); font-size: 1.1rem; }
.fx-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.fx-quote { position: relative; display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 1.6rem 1.5rem 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); }
.fx-quote.is-featured { background: radial-gradient(90% 120% at 100% 0%, rgba(249, 115, 22, 0.32), transparent 55%), linear-gradient(140deg, #0d0d12, #2a160c); border-color: transparent; color: #f4f4f5; }
.fx-quote.is-featured blockquote { color: #f4f4f5; }
.fx-quote.is-featured figcaption strong { color: #fff; }
.fx-quote__mark { position: absolute; top: 0.2rem; right: 1rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: 0.25; }
.fx-quote blockquote { margin: 0; color: var(--text); line-height: 1.7; }
.fx-quote__title { color: var(--text-strong); }
.fx-quote figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 0.6rem; }
.fx-quote figcaption > span:not(.avatar):not(.fx-quote__stars) { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-muted); }
.fx-quote figcaption strong { color: var(--text-strong); font-size: 0.95rem; }
.fx-quote figcaption img.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fx-quote__stars { color: var(--warning); letter-spacing: 0.08em; margin-left: auto; }
.fx-quote__off { color: var(--line-strong); }
.fx-quotes--reviews .fx-quote__stars { margin-left: 0; }
.fx-subhead { margin: 2.5rem 0 1rem; font-size: 1.4rem; font-weight: 800; color: var(--text-strong); }

.fx-jobs { display: flex; flex-direction: column; gap: 1rem; }
.fx-job { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); text-decoration: none; transition: border-color 0.2s, transform 0.3s var(--ease-out); }
.fx-job:hover { border-color: var(--accent); transform: translateY(-2px); }
.fx-job__title { margin: 0; font-size: 1.2rem; font-weight: 750; color: var(--text-strong); }
.fx-job__summary { margin: 0.3rem 0 0; color: var(--text-muted); }
.fx-job__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-muted); }
.fx-job__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.fx-job__go { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.fx-back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1.25rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.fx-back:hover { color: var(--accent-text); }
.fx-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.fx-job-detail h1 { margin: 0.6rem 0 0; }
.fx-job-detail .prose { margin-top: 1.5rem; }
.fx-apply { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 0.9rem; }

.fx-newsletter { margin-top: 1.4rem; max-width: 380px; }
.fx-newsletter__label { display: block; margin-bottom: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.fx-newsletter__row { display: flex; gap: 0.5rem; }
.fx-newsletter__row .input { flex: 1; min-width: 0; }

.fx-map { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-sunken); }
.fx-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.fx-tv-ticker { min-height: 46px; border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.fx-tv-ticker .tradingview-widget-container { min-height: 46px; }

@media (max-width: 900px) { .fx-job-layout { grid-template-columns: 1fr; } .fx-apply { position: static; } .fx-job { flex-direction: column; align-items: flex-start; } }
.fx-job-detail h2 { margin: 2rem 0 0.5rem; font-size: 1.3rem; font-weight: 750; }

/* Command centre panels: completion, geography, system health */
.fx-dash-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.fx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.fx-bars__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.fx-bars__row a, .fx-bars__row span { color: var(--text-strong); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
.fx-bars__row a:hover { color: var(--accent-text); }
.fx-bars__row strong { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-bars__track { height: 6px; margin-top: 0.4rem; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.fx-bars__track span { display: block; height: 100%; border-radius: inherit; background: var(--fx-gradient); }
.fx-bars__track--alt span { background: var(--warning); }
.fx-bars__note { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-dim); }
.fx-health { list-style: none; margin: 0; padding: 0; }
.fx-health li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.fx-health li:last-child { border-bottom: 0; }
.fx-health a { display: flex; flex-direction: column; min-width: 0; color: var(--text-strong); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.fx-health a span { font-weight: 400; font-size: 0.76rem; color: var(--text-muted); }
.fx-health a:hover { color: var(--accent-text); }
.fx-health__pill { flex: none; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.fx-health__pill--ok { background: var(--bull); color: #fff; }
.fx-health__pill--warn { background: var(--warning); color: #1c1004; }
.fx-health__pill--off { background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--line-strong); }
@media (max-width: 1180px) { .fx-dash-panels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .fx-dash-panels { grid-template-columns: 1fr; } }

/* Public catalogue cards, as the RATELi FX site's popular courses */
.fx-catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.fx-cat-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); overflow: hidden; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.fx-cat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(24, 24, 27, 0.25); }
.fx-cat-card__media { position: relative; display: block; aspect-ratio: 16 / 9; }
.fx-cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fx-cat-card__level { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(13, 13, 18, 0.85); color: #fdba74; font-size: 0.72rem; font-weight: 800; }
.fx-cat-card__actions { position: absolute; left: 50%; bottom: 0.9rem; display: inline-flex; transform: translateX(-50%); border-radius: 999px; overflow: hidden; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.fx-cat-card__btn { padding: 0.35rem 0.9rem; background: rgba(13, 13, 18, 0.9); color: #fff; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.fx-cat-card__btn--join { background: var(--fx-gradient); color: var(--brand-accent-ink); }
.fx-cat-card__body { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.2rem 1.25rem 1rem; text-align: center; flex: 1; }
.fx-cat-card__price { font-size: 1.35rem; font-weight: 800; color: var(--text-strong); }
.fx-cat-card__stars { color: var(--warning); font-size: 0.9rem; letter-spacing: 0.06em; }
.fx-cat-card__stars small { color: var(--text-muted); letter-spacing: 0; }
.fx-cat-card__title { margin: 0.2rem 0 0; font-size: 1.08rem; font-weight: 750; }
.fx-cat-card__title a { color: var(--text-strong); text-decoration: none; }
.fx-cat-card__title a:hover { color: var(--accent-text); }
.fx-cat-card__summary { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.fx-cat-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fx-cat-card__meta span { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.65rem 0.4rem; font-size: 0.76rem; color: var(--text-muted); text-align: center; }
.fx-cat-card__meta span + span { border-left: 1px solid var(--line); }
.fx-cat-card__meta svg { color: var(--accent-text); flex: none; }

/* Course categories, as the RATELi FX category cards */
.fx-cat-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.fx-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.8rem 1.4rem 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); text-align: center; transition: transform 0.35s var(--ease-out); }
.fx-cat-tile:hover { transform: translateY(-4px); }
.fx-cat-tile.is-hidden { opacity: 0.6; }
.fx-cat-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 0.4rem; border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); }
.fx-cat-tile__name { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--text-strong); }
.fx-cat-tile__text { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.fx-cat-tile__count { padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.75rem; font-weight: 800; }
.fx-cat-tile__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 1rem; margin-top: auto; padding-top: 0.8rem; font-size: 0.86rem; font-weight: 700; }
.fx-cat-tile__actions a, .fx-cat-tile__actions button { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent-text); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.fx-cat-tile__actions form { margin: 0; }
.fx-cat-tile__actions button { color: var(--bear); }
.fx-icon-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fx-icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.fx-icon-pick span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text-muted); cursor: pointer; }
.fx-icon-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.fx-icon-pick input:focus-visible + span { box-shadow: var(--fx-ring); }

/* --------------------------------------------------------------------------
   Footer: brand plus four balanced columns, legal links in the bottom bar
   -------------------------------------------------------------------------- */

.site-footer .footer-grid { grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer .footer-heading { margin-bottom: 1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-strong); }
.site-footer .footer-links { display: grid; gap: 0.7rem; }
.site-footer .footer-links a { position: relative; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.site-footer .footer-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--fx-gradient); transition: width 0.3s var(--ease-out); }
.site-footer .footer-links a:hover { color: var(--accent-text); }
.site-footer .footer-links a:hover::after { width: 100%; }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-legal a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--accent-text); }
.footer-motto { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--text-dim); text-align: center; }
@media (max-width: 1080px) { .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; } .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Pricing cards: badge inside, equal heights, actions aligned at the bottom,
   long feature lists folded
   -------------------------------------------------------------------------- */

.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card .price-card__flag { position: static; align-self: flex-start; margin: 0 0 1rem; }
.price-card > .btn:last-child, .price-card > form:last-child, .price-card > a:last-child { margin-top: auto; }
.price-card .price-features { margin-bottom: 1.4rem; }
.price-card .price-features li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-card__name { line-height: 1.3; }
.price-card__tagline { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }

/* --------------------------------------------------------------------------
   Learning player inside the app shell, laid out as RATELi FX does it:
   a rounded video card, the title with instructor and length, Previous and
   Mark as complete, tabs, and a Course content card on the right.
   -------------------------------------------------------------------------- */

.fx-app .player { grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; min-height: 0; background: transparent; align-items: start; }
.fx-app .player__main { gap: 1.5rem; }
.fx-app .player__stage { border-radius: 22px; border: 0; max-height: min(62vh, 620px); box-shadow: 0 30px 60px -30px rgba(13, 13, 18, 0.55); }
.fx-app .player__stage::after { display: none; }
.fx-app .player__stage > .vp { border-radius: inherit; }
.fx-app .player__stage--empty { border-radius: 22px; box-shadow: none; }
.fx-app .player__body { padding: 0; max-width: none; gap: 1.5rem; }
.fx-lesson-title { margin: 0.4rem 0 0; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.fx-lesson-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.fx-lesson-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fx-lesson-actions { gap: 0.6rem; }
.fx-lesson-actions .btn { min-height: 48px; padding-inline: 1.4rem; font-weight: 700; }

.fx-app .lesson-tabs__bar { border-bottom: 1px solid var(--line-strong); gap: 0.25rem; }
.fx-app .lesson-tab { padding: 0.85rem 1.4rem; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; }
.fx-app .lesson-tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.fx-app .lesson-tabs__panel { margin-top: 1.25rem; padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); }

.fx-app .player__aside { position: sticky; top: 86px; height: auto; max-height: calc(100dvh - 110px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 10px 25px -16px rgba(24, 24, 27, 0.2); overflow: hidden auto; }
.fx-app .player__aside-head { background: var(--surface); }
.fx-content-label { display: block; font-size: 1.1rem; font-weight: 800; color: var(--text-strong); }
.fx-app .player__aside-head > a.row { display: none; }
.fx-app .curriculum-module > summary, .fx-app .curriculum-module__head { background: var(--surface-sunken); text-transform: none; }
.fx-app .curriculum-lesson { border-left: 3px solid transparent; transition: background 0.2s, border-color 0.2s; }
.fx-app .curriculum-lesson:hover { background: var(--surface-hover); }
.fx-app .curriculum-lesson.is-current, .fx-app .curriculum-lesson[aria-current="page"] { background: var(--accent-soft); border-left-color: var(--accent); }

@media (max-width: 1180px) {
  .fx-app .player { grid-template-columns: 1fr; }
  .fx-app .player__aside { position: static; max-height: none; }
}
.fx-closed { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 3rem 2rem; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(24, 24, 27, 0.3); text-align: center; }
.fx-closed__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 0.5rem; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); }
.fx-closed__title { margin: 0.4rem 0 0; }

/* --------------------------------------------------------------------------
   Header dropdowns that stay open long enough to use

   The menu used to switch with display and sat 4px below its link, so the
   pointer lost hover crossing the gap and the menu vanished before an item
   could be clicked. Now an invisible bridge spans the gap, the menu fades
   and lifts in, and closing waits a moment so a slightly diagonal path to
   an item does not close it. nav.js adds the same by tap and keyboard.
   -------------------------------------------------------------------------- */

.nav__group > .nav__link { position: relative; }
.nav__menu {
  display: block;
  top: 100%;
  margin-top: 12px;
  min-width: 240px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  border-color: var(--line);
  box-shadow: 0 24px 50px -20px rgba(24, 24, 27, 0.35), 0 0 0 1px rgba(24, 24, 27, 0.02);
  transition: opacity 0.18s var(--ease-out) 0.18s, transform 0.22s var(--ease-out) 0.18s, visibility 0s linear 0.4s;
}
/* The bridge: hover carries straight from the link into the menu. */
.nav__menu::before { content: ""; position: absolute; left: -12px; right: -12px; top: -16px; height: 16px; }
/* A small pointer that ties the menu to its link. */
.nav__menu::after { content: ""; position: absolute; top: -6px; left: 22px; width: 12px; height: 12px; background: var(--surface-raised); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.nav__group:hover > .nav__menu,
.nav__group:focus-within > .nav__menu,
.nav__group.is-open > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.2s var(--ease-out), transform 0.26s var(--ease-spring), visibility 0s;
}
.nav__menu a { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; border-radius: 10px; font-weight: 500; transition: background 0.15s, color 0.15s, padding-left 0.2s var(--ease-out); }
.nav__menu a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.2s var(--ease-out); flex: none; }
.nav__menu a:hover, .nav__menu a:focus-visible { color: var(--accent-text); background: var(--accent-soft); padding-left: 1rem; }
.nav__menu a:hover::before, .nav__menu a:focus-visible::before { opacity: 1; transform: none; }
.nav__group:hover > .nav__menu a, .nav__group.is-open > .nav__menu a, .nav__group:focus-within > .nav__menu a { animation: fx-menu-item 0.32s var(--ease-out) both; }
.nav__menu a:nth-child(2) { animation-delay: 0.03s !important; }
.nav__menu a:nth-child(3) { animation-delay: 0.06s !important; }
.nav__menu a:nth-child(4) { animation-delay: 0.09s !important; }
.nav__menu a:nth-child(5) { animation-delay: 0.12s !important; }
.nav__menu a:nth-child(n+6) { animation-delay: 0.15s !important; }
@keyframes fx-menu-item { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav__caret { display: inline-flex; transition: transform 0.25s var(--ease-out); }
.nav__group.is-open .nav__caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .nav__menu, .nav__menu a { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Admin pop-up (modal.js): a page over the list, animated in and out
   -------------------------------------------------------------------------- */

.fx-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(980px, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); padding: 0; border: 0; border-radius: 22px; background: transparent; overflow: visible; }
.fx-modal::backdrop { background: rgba(13, 13, 18, 0.55); backdrop-filter: blur(6px); animation: fx-backdrop-in 0.2s var(--ease-out); }
.fx-modal[open] .fx-modal__card { animation: fx-modal-in 0.32s var(--ease-spring); }
.fx-modal.is-closing .fx-modal__card { animation: fx-modal-out 0.18s var(--ease-out) forwards; }
.fx-modal.is-closing::backdrop { animation: fx-backdrop-out 0.18s var(--ease-out) forwards; }
@keyframes fx-modal-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fx-modal-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes fx-backdrop-in { from { opacity: 0; } }
@keyframes fx-backdrop-out { to { opacity: 0; } }
.fx-modal__card { display: flex; flex-direction: column; max-height: calc(100dvh - 3rem); border-radius: 22px; background: var(--page); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55); overflow: hidden; }
.fx-modal__head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem 1rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.fx-modal__title { flex: 1; margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--text-strong); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.fx-modal__close:hover { background: var(--bear-soft); color: var(--bear); transform: rotate(90deg); }
.fx-modal__body { padding: 1.5rem; overflow: auto; outline: none; }
.fx-modal__body .fx-modal__pagehead .page-head__title, .fx-modal__body .fx-modal__pagehead h1 { display: none; }
.fx-modal__body .page-head { margin-bottom: 1rem; }
.fx-modal__loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 220px; color: var(--text-muted); font-weight: 600; }
.fx-modal__spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: fx-spin 0.8s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .fx-modal { width: 100vw; max-height: 100dvh; margin: auto 0 0; inset: auto 0 0 0; border-radius: 22px 22px 0 0; }
  .fx-modal__card { max-height: 92dvh; border-radius: 22px 22px 0 0; }
  @keyframes fx-modal-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .fx-modal .fx-modal__card, .fx-modal::backdrop { animation: none !important; } }

/* --------------------------------------------------------------------------
   Search: suggestions panel, website search bar and results page
   -------------------------------------------------------------------------- */

form[data-site-search] { position: relative; }
.fx-search input { min-width: 0; }
.fx-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-drawer); min-width: min(440px, 92vw); max-height: min(70vh, 520px); overflow: auto; padding: 0.4rem; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: 0 28px 60px -24px rgba(24, 24, 27, 0.4); animation: fx-suggest-in 0.18s var(--ease-out); }
@keyframes fx-suggest-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fx-suggest__group { padding: 0.65rem 0.75rem 0.3rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.fx-suggest__item { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.75rem; border-radius: 10px; text-decoration: none; color: var(--text-strong); transition: background 0.12s; }
.fx-suggest__item:hover, .fx-suggest__item.is-current { background: var(--accent-soft); }
.fx-suggest__label { font-weight: 600; font-size: 0.92rem; }
.fx-suggest__label mark { background: none; color: var(--accent-text); font-weight: 800; }
.fx-suggest__sub { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-suggest__loading, .fx-suggest__empty { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.fx-suggest__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: fx-pulse 1.2s infinite; }
.fx-suggest__all { display: block; margin-top: 0.3rem; padding: 0.65rem 0.75rem; border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.fx-suggest__all:hover { background: var(--surface-hover); }

.site-search { border-top: 1px solid var(--line); background: var(--surface); animation: fx-suggest-in 0.2s var(--ease-out); }
.site-search__form { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.9rem; color: var(--text-dim); }
.site-search__form input { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-sunken); color: var(--text-strong); font: inherit; font-size: 1rem; }
.site-search__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.site-search__form .fx-suggest { left: 2.5rem; right: auto; width: min(640px, 92vw); }

.fx-search-page { max-width: 900px; }
.fx-search-page__form { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 1.5rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.25); color: var(--text-dim); }
.fx-search-page__form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
.fx-search-page__form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--text-strong); outline: none; }
.fx-search-page__count { color: var(--text-muted); }
.fx-search-group { margin-top: 1.75rem; }
.fx-search-group h2 { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.fx-search-group h2 span { margin-left: 0.3rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--surface-sunken); color: var(--text-muted); }
.fx-search-list { display: grid; gap: 0.6rem; }
.fx-search-hit { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text-dim); transition: border-color 0.2s, transform 0.25s var(--ease-out); }
.fx-search-hit:hover { border-color: var(--accent); transform: translateX(4px); }
.fx-search-hit__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.fx-search-hit__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx-search-hit__text strong { color: var(--text-strong); }
.fx-search-hit__text span { font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Quiz, as the RATELi FX assessment screen: stepper, timer, option cards
   -------------------------------------------------------------------------- */

.fx-quiz { max-width: 1100px; margin: 0 auto; }
.fx-quiz__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.fx-quiz__title { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.fx-quiz__topic { margin: 0.3rem 0 0; color: var(--text-muted); }
.fx-quiz__timer { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fx-quiz__timer .quiz-timer__clock { font-family: var(--font-body); font-size: inherit; color: inherit; }

.fx-stepper { display: none; list-style: none; margin: 0 0 1.75rem; padding: 0; position: relative; }
.fx-quiz.is-stepped .fx-stepper { display: flex; justify-content: space-between; align-items: center; }
.fx-stepper::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 2px; background: var(--line-strong); z-index: 0; }
.fx-stepper li { position: relative; z-index: 1; }
.fx-stepper__dot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: transform 0.25s var(--ease-spring), background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.fx-stepper__dot svg { display: none; }
.fx-stepper__dot:hover { transform: scale(1.08); }
.fx-stepper__dot.is-current { border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.15); }
.fx-stepper__dot.is-done { background: var(--fx-gradient); border-color: transparent; color: var(--brand-accent-ink); }
.fx-stepper__dot.is-done span { display: none; }
.fx-stepper__dot.is-done svg { display: block; }

.fx-quiz__card { margin-bottom: 1.25rem; padding: 2rem 2.25rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px -24px rgba(24, 24, 27, 0.3); }
.fx-quiz.is-stepped .fx-quiz__card[hidden] { display: none; }
.fx-quiz__card.is-entering { animation: fx-step-in 0.32s var(--ease-out); }
@keyframes fx-step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fx-quiz__badge { display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.78rem; font-weight: 800; }
.fx-quiz__prompt { margin: 0.75rem 0 1.4rem; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); font-weight: 750; line-height: 1.3; color: var(--text-strong); }
.fx-quiz__image { max-width: 100%; margin-bottom: 1.25rem; border-radius: 12px; }
.fx-quiz__hint { margin: -0.6rem 0 0.9rem; font-size: 0.85rem; color: var(--text-muted); }
.fx-quiz__options { display: grid; gap: 0.85rem; }
.fx-option { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out); }
.fx-option:hover { border-color: var(--line-strong); transform: translateX(3px); }
.fx-option input { position: absolute; opacity: 0; pointer-events: none; }
.fx-option__letter { flex: none; font-weight: 700; color: var(--text-muted); }
.fx-option__text { flex: 1; color: var(--text-strong); font-weight: 500; }
.fx-option__tick { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent); color: var(--brand-accent-ink); opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.25s var(--ease-spring); }
.fx-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fx-option:has(input:checked) .fx-option__tick { opacity: 1; transform: none; }
.fx-option:has(input:focus-visible) { box-shadow: var(--fx-ring); }
.fx-quiz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.fx-quiz__report { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-muted); font-weight: 700; text-decoration: none; }
.fx-quiz__report:hover { color: var(--bear); }
.fx-quiz__nav { display: flex; gap: 0.6rem; }
.fx-quiz__nav .btn { min-width: 130px; justify-content: center; }
.fx-quiz:not(.is-stepped) .fx-quiz__nav [data-quiz-prev], .fx-quiz:not(.is-stepped) .fx-quiz__nav [data-quiz-next] { display: none; }
.fx-quiz__note { margin-top: 1rem; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 640px) {
  .fx-quiz__card { padding: 1.25rem; }
  .fx-quiz__head { flex-direction: column; }
  .fx-stepper__dot { width: 30px; height: 30px; font-size: 0.75rem; }
  .fx-quiz__nav { width: 100%; } .fx-quiz__nav .btn { flex: 1; min-width: 0; }
}

/* Admin people rows, as the RATELi FX students table */
.fx-person-cell { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.fx-person-cell__avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--fx-gradient); color: var(--brand-accent-ink); font-size: 0.8rem; font-weight: 800; object-fit: cover; }
.fx-person-cell span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.fx-person-cell strong { color: var(--text-strong); }
.fx-person-cell small { font-size: 0.75rem; color: var(--text-dim); }
.fx-person-cell:hover strong { color: var(--accent-text); }
.fx-course-pill { display: inline-flex; padding: 0.25rem 0.6rem; border-radius: 6px; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text-strong); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.fx-row-actions { display: inline-flex; gap: 0.4rem; }
.fx-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out); }
.fx-icon-action:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

/* In-page pop-ups (data-modal-open): sized for a form, animated in */
.modal .modal__panel { animation: fx-modal-in 0.3s var(--ease-spring); }
.modal { background: rgba(13, 13, 18, 0.5); backdrop-filter: blur(6px); }
.fx-form-modal { width: min(640px, calc(100vw - 2rem)); padding: 0; border-radius: 22px; overflow: hidden; }
.fx-form-modal > .panel { margin: 0; border: 0; box-shadow: none; }
.fx-form-modal .panel__head { display: flex; align-items: center; justify-content: space-between; }
.fx-form-modal { max-height: calc(100dvh - 3rem); display: flex; flex-direction: column; }
.fx-form-modal > .panel { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 3rem); }
.fx-form-modal .panel__body { overflow: auto; }
.fx-form-modal .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .fx-form-modal .grid--2 { grid-template-columns: 1fr; } }

/* Coupons, as the RATELi FX promotions screen */
.fx-coupon-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.fx-coupon-stat { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--bull); box-shadow: 0 10px 25px -18px rgba(24, 24, 27, 0.2); }
.fx-coupon-stat--amber { border-left-color: var(--warning); }
.fx-coupon-stat--dark { border-left-color: transparent; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(249, 115, 22, 0.35), transparent 55%), linear-gradient(140deg, #0d0d12, #2a160c); }
.fx-coupon-stat__label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.fx-coupon-stat--dark .fx-coupon-stat__label, .fx-coupon-stat--dark small { color: #d4d4d8; }
.fx-coupon-stat strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-coupon-stat--dark strong { color: #fdba74; letter-spacing: 0.04em; }
.fx-coupon-stat small { font-size: 0.8rem; color: var(--bull); font-weight: 600; }
.fx-code-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--line-strong); background: var(--surface-sunken); color: var(--text-strong); font-family: var(--font-code); font-weight: 700; letter-spacing: 1px; }
.fx-code-input { font-family: var(--font-code); text-transform: uppercase; letter-spacing: 1px; }
.fx-discount-pill { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--bull-soft); color: var(--bull); font-weight: 800; font-size: 0.82rem; }
.fx-usage { height: 8px; margin-top: 0.4rem; border-radius: 10px; background: var(--surface-sunken); overflow: hidden; }
.fx-usage span { display: block; height: 100%; border-radius: inherit; background: var(--fx-gradient); transition: width 0.6s var(--ease-out); }
.fx-switch-form, .fx-row-actions form { display: inline-flex; margin: 0; }
.fx-switch { position: relative; width: 44px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background 0.25s; align-self: center; }
.fx-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-spring); }
.fx-switch.is-on { background: var(--bull); }
.fx-switch.is-on span { transform: translateX(20px); }
.fx-switch:focus-visible { box-shadow: var(--fx-ring); }
.fx-icon-action { cursor: pointer; font: inherit; }
.fx-icon-action--danger:hover { border-color: var(--bear); color: var(--bear); }
@media (max-width: 900px) { .fx-coupon-stats { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Signature capture, as the RATELi FX screen: tabs, dashed pad, preview
   -------------------------------------------------------------------------- */

.fx-sign { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.75rem; align-items: start; }
.fx-sign__capture { min-width: 0; }
.fx-sign__tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line-strong); }
.fx-sign__tab { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.2rem; margin-bottom: -1px; border: 1px solid transparent; border-radius: 12px 12px 0 0; background: transparent; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.fx-sign__tab:hover { background: var(--surface-hover); }
.fx-sign__tab.is-active { background: var(--surface); border-color: var(--line-strong); border-bottom-color: var(--surface); color: var(--text-strong); }
.fx-flip { transform: rotate(180deg); }
.fx-sign__panel { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 16px 16px; }
.fx-sign__panel[hidden] { display: none; }
.fx-sign__pad { position: relative; height: 230px; border: 2px dashed var(--line-strong); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color 0.2s; }
.fx-sign__pad:hover { border-color: var(--accent); }
.fx-sign__pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.fx-sign__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #a1a1aa; font-size: 0.95rem; pointer-events: none; }
.fx-sign__line { position: absolute; left: 8%; right: 8%; bottom: 52px; border-bottom: 1px solid #e4e4e7; pointer-events: none; }
.fx-sign__line::before { content: "\00D7"; position: absolute; left: -4px; bottom: 2px; color: #a1a1aa; font-size: 1.1rem; }
.fx-sign__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.fx-sign__inks { display: flex; gap: 0.5rem; }
.fx-sign__inks input { position: absolute; opacity: 0; pointer-events: none; }
.fx-sign__inks span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform 0.2s var(--ease-spring); }
.fx-sign__inks input:checked + span { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.1); }
.fx-btn-danger { background: var(--bear); color: #fff; border-color: var(--bear); }
.fx-btn-danger:hover { background: #e03a4b; color: #fff; }
.fx-btn-success { background: #198754; color: #fff; border-color: #198754; }
.fx-btn-success:hover { background: #157347; color: #fff; }
.fx-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-height: 230px; padding: 1.5rem; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface-sunken); text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.fx-drop:hover, .fx-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.fx-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-drop__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); color: var(--accent-text); box-shadow: 0 6px 16px -8px rgba(24, 24, 27, 0.3); }
.fx-drop strong { color: var(--text-strong); }
.fx-drop span { font-size: 0.85rem; color: var(--text-muted); }
.fx-drop em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.fx-sign__signatory { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.fx-sign__preview { position: sticky; top: 90px; }
.fx-sign__preview-title { margin: 0 0 0.9rem; font-size: 1.3rem; font-weight: 750; color: var(--text-strong); }
.fx-sign__paper { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 1.4rem 1.25rem 1.3rem; border-radius: 14px; background: #fffdf8; border: 1px solid #f1d9bf; box-shadow: inset 0 0 0 6px #fffdf8, inset 0 0 0 7px #f4c79a, 0 14px 30px -18px rgba(24, 24, 27, 0.35); text-align: center; color: #3f3f46; }
.fx-sign__kicker { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c2410c; }
.fx-sign__image { display: grid; place-items: center; width: 100%; height: 130px; }
.fx-sign__image img { max-width: 92%; max-height: 120px; object-fit: contain; }
.fx-sign__image img.is-new { animation: fx-sign-in 0.5s var(--ease-out); }
@keyframes fx-sign-in { from { opacity: 0; transform: translateY(6px) scale(0.96); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.fx-sign__none { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: #a1a1aa; font-size: 0.85rem; }
.fx-sign__rule { width: 80%; border-bottom: 1px solid #52525b; margin-bottom: 0.4rem; }
.fx-sign__paper strong { color: #18181b; font-size: 1rem; }
.fx-sign__paper small { color: #71717a; font-size: 0.8rem; }
.fx-sign__status { margin: 0.8rem 0 1rem; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.fx-sign__remove { margin-top: 1.25rem; }
@media (max-width: 1080px) { .fx-sign { grid-template-columns: 1fr; } .fx-sign__preview { position: static; } }
@media (max-width: 560px) { .fx-sign__signatory { grid-template-columns: 1fr; } .fx-sign__pad { height: 200px; } }
.fx-sign__placeholder[hidden], .fx-sign__none[hidden], .fx-sign__image img[hidden] { display: none !important; }

/* Player curriculum, as RATELi FX numbers and marks it */
.fx-lesson-num { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.fx-content-label { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.fx-content-pill { padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.78rem; font-weight: 800; }
.curriculum-module__title { display: block; font-weight: 700; color: var(--text-strong); }
.curriculum-module__num { color: var(--text-muted); font-weight: 600; }
.curriculum-lesson__title { display: block; }
.curriculum-lesson__num { color: var(--text-dim); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 0.15rem; }
.curriculum-lesson.is-current .curriculum-lesson__num { color: var(--accent-text); }
.curriculum-lesson__now { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; font-size: 0.72rem; font-weight: 800; color: var(--accent-text); }
.curriculum-lesson__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.curriculum-lesson__eq i { display: block; width: 3px; border-radius: 1px; background: var(--accent); animation: fx-eq 0.9s ease-in-out infinite; }
.curriculum-lesson__eq i:nth-child(2) { animation-delay: 0.2s; }
.curriculum-lesson__eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes fx-eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
@media (prefers-reduced-motion: reduce) { .curriculum-lesson__eq i { animation: none; height: 7px; } }

/* --------------------------------------------------------------------------
   Motion (motion.js): rise-in, ripple, page exit. Off under reduced motion.
   -------------------------------------------------------------------------- */
.fx-motion .fx-rise { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--fx-delay, 0ms), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--fx-delay, 0ms); }
.fx-motion .fx-rise.is-in { opacity: 1; transform: none; }
.fx-has-ripple { overflow: hidden; }
.fx-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.18; transform: scale(0); pointer-events: none; animation: fx-ripple 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }
html.fx-leaving .app-content, html.fx-leaving main { opacity: 0.35; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.app-content, main { transition: opacity 0.25s ease, transform 0.25s ease; }
/* Elegant touches: softer focus rings on fields, smooth number changes */
.input, .select, .textarea { transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14); }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-hover); }
.sidebar-link .sidebar-link__icon { transition: transform 0.25s var(--ease-spring); }
.sidebar-link:hover .sidebar-link__icon { transform: translateX(2px) scale(1.06); }
.toast, .flash { animation: fx-toast-in 0.45s var(--ease-spring); }
@keyframes fx-toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Study layer on the player (player-study.js)
   -------------------------------------------------------------------------- */
.vp__btn.vp__loop, .vp__btn.vp__saver { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.vp__btn.is-on { color: #f97316; }
.vp__loopband { position: absolute; top: 0; bottom: 0; background: rgba(249, 115, 22, 0.35); border-left: 2px solid #f97316; border-right: 2px solid #f97316; pointer-events: none; }
.vp__loopband[hidden] { display: none; }
.vp__checkmarks { position: absolute; inset: 0; pointer-events: none; }
.vp__checkmark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: #fbbf24; transform: rotate(45deg); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45); }
.vp__check { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1.25rem; background: rgba(11, 14, 20, 0.88); backdrop-filter: blur(4px); animation: fx-backdrop-in 0.25s ease; }
.vp__check-card { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 1.4rem; border-radius: 16px; background: #131722; border: 1px solid #f97316; color: #f8fafc; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); animation: fx-modal-in 0.32s var(--ease-spring); }
.vp__check-tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fb923c; }
.vp__check-q { margin: 0.5rem 0 1rem; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: #fff; }
.vp__check-options { display: grid; gap: 0.5rem; }
.vp__check-option { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: #1c2230; color: #f1f5f9; font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.vp__check-option:hover:not(:disabled) { border-color: #f97316; transform: translateX(3px); }
.vp__check-option:disabled { cursor: default; opacity: 0.7; }
.vp__check-option.is-right { border-color: #10b981; background: rgba(16, 185, 129, 0.16); opacity: 1; }
.vp__check-option.is-wrong { border-color: #ff4b5c; background: rgba(255, 75, 92, 0.14); animation: fx-shake 0.35s; }
@keyframes fx-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.vp__check-letter { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-weight: 800; font-size: 0.8rem; }
.vp__check-feedback { min-height: 1.2em; margin: 0.8rem 0 0; font-size: 0.88rem; font-weight: 600; }
.vp__check-feedback.is-right { color: #34d399; }
.vp__check-feedback.is-wrong { color: #fb923c; }
.vp__check-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; }
.vp__check-actions [hidden] { display: none; }

.fx-transcript-search { max-width: 260px; margin-left: auto; }
.fx-cues { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.fx-cues[hidden], .fx-cue[hidden], [data-transcript-text][hidden] { display: none; }
.fx-cue { display: flex; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.fx-cue:hover { background: var(--surface-hover); }
.fx-cue.is-now { background: var(--accent-soft); }
.fx-cue.is-now .fx-cue__text { color: var(--text-strong); font-weight: 600; }
.fx-cue__at { flex: none; padding: 0.1rem 0.45rem; border: 0; border-radius: 6px; background: var(--surface-sunken); color: var(--accent-text); font: 700 0.75rem var(--font-code); cursor: pointer; }
.fx-cue__text { color: var(--text-muted); }
[data-transcript-text] mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 3px; }

/* --------------------------------------------------------------------------
   Lesson analytics
   -------------------------------------------------------------------------- */
.fx-la-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; }
.fx-retention { width: 100%; height: auto; overflow: visible; }
.fx-retention__grid { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.fx-retention__label { font: 600 11px var(--font-body); fill: var(--text-dim); }
.fx-retention__line { fill: none; stroke: #f97316; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: fx-draw 1.6s var(--ease-out) forwards; }
.fx-retention__dot { fill: var(--surface); stroke: #f97316; stroke-width: 2; }
.fx-retention__drop { fill: rgba(255, 75, 92, 0.12); }
.fx-retention__cp { fill: #f59e0b; }
.fx-la-sub { margin: 1.4rem 0 0.6rem; font-size: 0.85rem; font-weight: 750; color: var(--text-strong); }
.fx-heat { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; align-items: end; height: 70px; }
.fx-heat span { --h: 0%; display: block; height: max(4px, var(--h)); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #f97316, rgba(249, 115, 22, 0.35)); transform-origin: bottom; animation: fx-grow 0.7s var(--ease-out) both; }
.fx-heat span:nth-child(odd) { animation-delay: 0.05s; }
@keyframes fx-grow { from { transform: scaleY(0); } }
.fx-insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.fx-insight { display: flex; gap: 0.6rem; padding: 0.8rem 0.9rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.fx-insight svg { flex: none; margin-top: 2px; }
.fx-insight--warn { background: rgba(245, 158, 11, 0.12); color: var(--text-strong); }
.fx-insight--warn svg { color: var(--warning); }
.fx-insight--info { background: var(--surface-sunken); color: var(--text); }
.fx-insight--info svg { color: var(--accent-text); }
.fx-insight--ok { background: var(--bull-soft); color: var(--text-strong); }
.fx-insight--ok svg { color: var(--bull); }
.fx-la-delivery { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted); }
.fx-la-delivery strong { color: var(--text-strong); }
.fx-pick { display: grid; grid-template-columns: minmax(0, 1fr) 80px 22px; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.fx-pick__bar { height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.fx-pick__bar span { display: block; height: 100%; background: var(--line-strong); }
.fx-pick.is-answer { color: var(--bull); font-weight: 700; }
.fx-pick.is-answer .fx-pick__bar span { background: var(--bull); }
.fx-pick__n { text-align: right; font-variant-numeric: tabular-nums; }
.fx-cp-option { display: flex; align-items: center; gap: 0.6rem; }
.fx-cp-option input[type=radio] { accent-color: #198754; width: 18px; height: 18px; flex: none; }
.fx-cp-option__letter { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-sunken); font-weight: 800; font-size: 0.8rem; color: var(--text-muted); }
.fx-cp-option .input { flex: 1; }
@media (max-width: 1080px) { .fx-la-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
 * Learning integrity: automatic completion, locks, staff preview (2.34)
 * ------------------------------------------------------------------- */
.fx-autocomplete { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-strong); line-height: 1.2; }
.fx-autocomplete small { display: block; color: var(--text-muted); font-size: 12px; }
.fx-autocomplete strong { font-size: 13.5px; }
.fx-autocomplete__ring { --p: 0%; width: 34px; height: 34px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) var(--p), var(--surface-sunken) 0); position: relative; transition: background .6s var(--ease-out); }
.fx-autocomplete__ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.fx-autocomplete.is-done { border-color: var(--bull); }
.fx-autocomplete.is-done .fx-autocomplete__ring { background: var(--bull); }
.fx-autocomplete.is-done .fx-autocomplete__ring::after { content: "\2713"; display: grid; place-items: center; color: var(--bull); font-weight: 800; font-size: 14px; }

.curriculum-lesson.is-locked { opacity: .55; cursor: not-allowed; }
.curriculum-lesson.is-locked:hover { background: transparent; }
.lesson-state.is-locked { display: inline-grid; place-items: center; color: var(--text-muted); font-size: 11px; }
.lesson-state.is-done i { font-size: 11px; }

.fx-preview-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 16px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.fx-preview-bar .btn { margin-left: auto; }

.fx-staffgate { display: grid; place-items: center; min-height: 60vh; padding: 32px 16px; }
.fx-staffgate__card { max-width: 620px; padding: 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.fx-staffgate__icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--fx-gradient); box-shadow: 0 18px 40px -18px var(--accent); animation: fx-float 2.4s ease-in-out infinite alternate; }
.fx-staffgate__title { font-size: clamp(24px, 3vw, 32px); color: var(--text-strong); margin: 0; }
.fx-staffgate__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@media (max-width: 560px) { .fx-staffgate__card { padding: 28px 18px; } .fx-preview-bar .btn { margin-left: 0; } }

/* Market categories (2.34) */
.fx-section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.fx-section-label i { color: var(--accent); }
.fx-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.fx-market-tile { --mk: #f97316; position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s; }
.fx-market-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--mk); }
.fx-market-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mk) 45%, var(--line)); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--mk) 70%, transparent); }
.fx-market-tile.is-hidden { opacity: .6; }
.fx-market-tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--mk); background: color-mix(in srgb, var(--mk) 14%, transparent); transition: transform .5s var(--ease-spring); }
.fx-market-tile:hover .fx-market-tile__icon { transform: rotate(-8deg) scale(1.08); }
.fx-market-tile:hover .fx-market-tile__icon i { animation: fx-icon-bob 1.2s ease-in-out infinite; }
@keyframes fx-icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.fx-market-tile__name { margin: 4px 0 0; font-size: 17px; color: var(--text-strong); }
.fx-market-tile__text { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
.fx-market-tile__count { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.fx-market-tile__actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.fx-market-tile__actions form { margin: 0; }
@media (prefers-reduced-motion: reduce) { .fx-market-tile, .fx-market-tile__icon, .fx-market-tile:hover .fx-market-tile__icon i { transition: none; animation: none; } }

/* Programme price (2.34) */
.fx-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.fx-price__value { font-size: clamp(38px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text-strong); white-space: nowrap; }
.fx-price__value sup { font-size: .45em; font-weight: 700; vertical-align: top; position: relative; top: .35em; margin-right: 2px; }
.fx-price__value small { font-size: .35em; font-weight: 700; color: var(--text-muted); }
.fx-price__value--text { font-size: 26px; letter-spacing: -.01em; }
.fx-price .price-card__period { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.fx-price__outcome i { color: var(--accent); }
.price-features li > i { width: 16px; text-align: center; color: var(--text-muted); flex: none; margin-top: 3px; }

/* Assessment integrity and retakes (2.35) */
.fx-integrity-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; animation: fx-banner-in .35s var(--ease-out); }
.fx-integrity-banner i { margin-top: 3px; }
.fx-integrity-banner--warn { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--text-strong); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.fx-integrity-banner--danger { background: color-mix(in srgb, var(--bear) 12%, var(--surface)); color: var(--text-strong); border: 1px solid color-mix(in srgb, var(--bear) 40%, transparent); }
@keyframes fx-banner-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fx-quiz__card { -webkit-user-select: none; user-select: none; }
.fx-quiz__card input, .fx-quiz__card textarea { -webkit-user-select: text; user-select: text; }
.fx-retake { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.fx-retake__head { display: flex; gap: 14px; align-items: flex-start; }
.fx-retake__head > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); font-size: 18px; }
.fx-retake-free { display: flex; gap: 8px; align-items: center; margin: var(--space-6) 0 0; color: var(--bull); font-weight: 600; font-size: 14px; }
.fx-case-events { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-case-events span { padding: 3px 9px; border-radius: 999px; background: var(--surface-sunken); font-size: 12px; color: var(--text-muted); }

/* Course builder (2.36) */
.fx-builder { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; }
.fx-builder > .panel { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.fx-builder__head { align-items: flex-start; }
.fx-builder__head .panel__title { display: block; font-size: 20px; margin-top: 2px; }
.fx-builder__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fx-builder__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-sunken); font-size: 12.5px; color: var(--text-muted); }
.fx-builder__chips i { color: var(--accent); }
.fx-builder__tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.fx-builder__tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; }
.fx-builder__tabs button.is-active { color: var(--accent-text); border-bottom-color: var(--accent); }
.fx-builder__body { overflow: auto; }
.fx-drop { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-sunken); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease-out); }
.fx-drop:hover, .fx-drop.is-over { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.fx-drop__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--fx-gradient); box-shadow: 0 16px 34px -18px var(--accent); }
.fx-drop:hover .fx-drop__icon { animation: fx-icon-bob 1.2s ease-in-out infinite; }
.fx-scan { display: flex; align-items: center; gap: 14px; padding: 18px; margin-top: 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-weight: 600; }
.fx-scan__radar { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent-soft); flex: none; }
.fx-scan__radar::before, .fx-scan__radar i { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: fx-radar 1.6s ease-out infinite; }
.fx-scan__radar i { animation-delay: .8s; }
.fx-scan__radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, var(--accent)); animation: fx-spin 1.1s linear infinite; }
@keyframes fx-radar { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.fx-builder__summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.fx-builder__stat { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface-sunken); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.fx-builder__stat--bull i { color: var(--bull); } .fx-builder__stat--warning i { color: var(--warning); } .fx-builder__stat--bear i { color: var(--bear); }
.fx-builder__table { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.fx-builder__table td { vertical-align: top; }
.fx-builder__table tr.is-done td { background: color-mix(in srgb, var(--bull) 6%, transparent); }
.fx-builder__table tr.is-failed td { background: color-mix(in srgb, var(--bear) 6%, transparent); }
.fx-builder__file { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; }
.fx-builder__file > i { font-size: 20px; color: var(--accent); margin-top: 2px; }
.fx-builder__file strong { word-break: break-word; }
.fx-builder__reason { max-width: 260px; margin-top: 4px; line-height: 1.4; }
.fx-builder__rowbar { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.fx-builder__rowbar span { display: block; height: 100%; width: 0; background: var(--fx-gradient); transition: width .3s var(--ease-out); }
.fx-builder__missing { margin-top: 12px; font-size: 14px; }
.fx-builder__missing summary { cursor: pointer; font-weight: 600; color: var(--text-muted); }
.fx-builder__missing ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.fx-builder__missing li i { color: var(--text-dim); margin-right: 6px; }
.fx-builder__progress { margin-top: 16px; display: grid; gap: 8px; }
.fx-builder__bar { height: 10px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.fx-builder__bar span { display: block; height: 100%; width: 0; background: var(--fx-gradient); background-size: 200% 100%; animation: fx-bar-shine 1.6s linear infinite; transition: width .35s var(--ease-out); }
.fx-builder__progress.is-failed .fx-builder__bar span { background: var(--warning); animation: none; }
@keyframes fx-bar-shine { to { background-position: -200% 0; } }
.fx-builder__module { margin-bottom: 18px; }
.fx-builder__module h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 0 0 8px; }
.fx-builder__module ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.fx-builder__module li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.fx-builder__module li:first-child { border-top: 0; }
.fx-builder__num { font-weight: 700; color: var(--accent-text); min-width: 32px; }
.fx-builder__flags { margin-left: auto; display: flex; gap: 10px; color: var(--line-strong); }
.fx-builder__flags .is-on { color: var(--bull); }
.select--sm { min-height: 34px; padding: 4px 8px; font-size: 13px; max-width: 280px; }
@media (max-width: 640px) { .fx-builder__tabs { padding: 0 8px; overflow-x: auto; } .fx-builder__file { min-width: 160px; } }
@media (prefers-reduced-motion: reduce) { .fx-scan__radar::before, .fx-scan__radar i, .fx-scan__radar::after, .fx-builder__bar span { animation: none; } }
.fx-scan[hidden], .fx-builder__progress[hidden], [data-builder-results][hidden] { display: none !important; }

/* ---------------------------------------------------------------------
 * Homepage carousel, theme switch, market filter (2.37)
 * ------------------------------------------------------------------- */
.fx-carousel { --carousel-delay: 4000ms; position: relative; min-height: clamp(520px, 78vh, 760px); overflow: hidden; color: #fff; background: #0d0d12; isolation: isolate; }
.fx-carousel__track { position: absolute; inset: 0; }
.fx-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s linear .6s; }
.fx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; z-index: 1; }
.fx-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 4.6s linear; }
.fx-slide.is-active .fx-slide__bg { transform: scale(1); }
/* The veil: dark where the words are, lighter where the picture is. Strong
   enough that white text keeps WCAG AA contrast on any backdrop. */
.fx-slide__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 12, .86) 0%, rgba(8, 8, 12, .7) 42%, rgba(8, 8, 12, .3) 75%, rgba(8, 8, 12, .15) 100%), linear-gradient(0deg, rgba(8, 8, 12, .55) 0%, transparent 40%); }
.fx-slide__inner { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 1200px; padding-top: 72px; padding-bottom: 120px; }
.fx-slide__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.fx-slide__count { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; letter-spacing: 0; }
.fx-slide__title { margin: 0; max-width: 16ch; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.fx-slide__text { margin: 0; max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.fx-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fx-slide.is-active .fx-slide__eyebrow, .fx-slide.is-active .fx-slide__title, .fx-slide.is-active .fx-slide__text, .fx-slide.is-active .fx-slide__actions { animation: fx-slide-up .55s var(--ease-out) both; }
.fx-slide.is-active .fx-slide__title { animation-delay: .08s; } .fx-slide.is-active .fx-slide__text { animation-delay: .16s; } .fx-slide.is-active .fx-slide__actions { animation-delay: .24s; }
@keyframes fx-slide-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.fx-carousel__controls { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fx-carousel__dots { display: flex; gap: 10px; }
.fx-carousel__dots button { width: 46px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .28); cursor: pointer; overflow: hidden; }
.fx-carousel__dots button span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.fx-carousel__dots button.is-active span { animation: fx-dot-fill var(--carousel-delay) linear forwards; }
.fx-carousel.is-paused .fx-carousel__dots button.is-active span { animation-play-state: paused; }
@keyframes fx-dot-fill { to { width: 100%; } }
.fx-carousel__arrows { display: flex; gap: 8px; }
.fx-carousel__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.fx-carousel__arrows button:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }
@media (max-width: 700px) {
  .fx-carousel { min-height: 560px; }
  .fx-slide__veil { background: linear-gradient(0deg, rgba(8, 8, 12, .9) 0%, rgba(8, 8, 12, .72) 55%, rgba(8, 8, 12, .45) 100%); }
  .fx-slide__inner { padding-bottom: 110px; align-self: end; }
  .fx-carousel__controls { bottom: 24px; }
  .fx-carousel__arrows button[data-carousel-toggle] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-slide, .fx-slide__bg { transition: none; } .fx-slide.is-active * { animation: none !important; } }

.fx-theme-switch { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.fx-theme-switch__track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 62px; height: 32px; padding: 0 9px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--line-strong); font-size: 13px; transition: background .3s, border-color .3s; }
.fx-theme-switch__track .fa-sun { color: #f59e0b; }
.fx-theme-switch__track .fa-moon { color: var(--text-muted); }
.fx-theme-switch__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease-spring); }
[data-theme="dark"] .fx-theme-switch__track { background: #1e2230; border-color: #2c3142; }
[data-theme="dark"] .fx-theme-switch__track .fa-moon { color: #c4b5fd; }
[data-theme="dark"] .fx-theme-switch__knob { transform: translateX(30px); background: #e2e8f0; }
.fx-theme-switch:focus-visible .fx-theme-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.fx-market-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-5); }
.fx-market-chip { --mk: var(--accent); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-strong); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.fx-market-chip i { color: var(--mk); }
.fx-market-chip:hover { transform: translateY(-2px); border-color: var(--mk); }
.fx-market-chip.is-active { border-color: var(--mk); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk) 18%, transparent); }
.fx-market-grid--public { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
a.fx-market-tile { text-decoration: none; color: inherit; }
a.fx-market-tile .fx-market-tile__count i { transition: transform .25s; }
a.fx-market-tile:hover .fx-market-tile__count i { transform: translateX(4px); }

/* Weekly assessment detail (2.38) */
.fx-task__meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.fx-task__meta i { color: var(--accent); margin-right: 4px; }
.fx-task__h { margin: 14px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fx-task__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.fx-task__list i { color: var(--accent); width: 16px; }
.fx-prefs { display: grid; gap: 10px; }
.fx-prefs label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.fx-prefs label i { width: 18px; text-align: center; color: var(--accent); }

/* Protected reader (2.39) */
.fx-reader { display: flex; flex-direction: column; min-height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-sunken); overflow: hidden; }
.fx-reader:fullscreen { border-radius: 0; min-height: 100vh; }
.fx-reader__bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fx-reader__title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.fx-reader__title > i { color: var(--accent); }
.fx-reader__title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-reader__tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fx-reader__tools button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--text-strong); cursor: pointer; }
.fx-reader__tools button:hover, .fx-reader__tools button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.fx-reader__pages { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.fx-reader__pages input { width: 54px; height: 32px; text-align: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-strong); }
.fx-reader__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line-strong); }
.fx-reader__stage { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; overflow: auto; max-height: calc(100vh - 210px); -webkit-user-select: none; user-select: none; outline: none; }
.fx-reader:fullscreen .fx-reader__stage { max-height: none; }
.fx-reader__page { position: relative; flex: none; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.fx-reader__page:not(.is-ready)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f3f2ef 25%, #faf9f7 50%, #f3f2ef 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.fx-reader__page canvas { display: block; pointer-events: none; }
.fx-reader__num { position: absolute; right: 10px; bottom: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.fx-reader__loading { display: flex; align-items: center; gap: 12px; margin: 80px auto; font-weight: 600; color: var(--text-muted); }
.fx-reader__note { margin: 0; padding: 8px 16px; font-size: 12.5px; color: var(--text-muted); background: var(--surface); border-top: 1px solid var(--line); }
.fx-reader.is-calm .fx-reader__page canvas { filter: sepia(.35) brightness(.92) contrast(.95); }
.fx-reader.is-calm .fx-reader__stage { background: #2a2620; }
@media print { .fx-reader { display: none !important; } }
@media (max-width: 640px) { .fx-reader__stage { padding: 12px; } .fx-reader__title span { display: none; } }

/* Offline (2.39) */
.fx-offline-bar { position: fixed; left: 50%; bottom: 18px; z-index: 9999; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #18181b; color: #fff; font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); animation: fx-banner-in .35s var(--ease-out); }
.fx-offline-bar i { color: #fbbf24; }

/* Builder steps and inline curriculum editing (2.40) */
.fx-build-steps { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 var(--space-5); padding: 0; counter-reset: step; }
.fx-build-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.fx-build-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); font-size: 12.5px; }
.fx-build-steps li.is-current { border-color: var(--accent); color: var(--text-strong); }
.fx-build-steps li.is-current > span { background: var(--accent); color: #fff; }
.fx-build-steps li.is-done > span { background: var(--bull); color: #fff; }
.fx-build-steps li.is-ready { color: var(--text-strong); }
.fx-link { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-builder__add form, .fx-builder__addmodule { display: flex; gap: 8px; width: 100%; }
.fx-builder__add .input, .fx-builder__addmodule .input { flex: 1; min-height: 36px; }
.fx-builder__module li.fx-builder__add { background: var(--surface-sunken); }
.fx-builder__addmodule { margin-top: 6px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }

/* Classroom extras (2.40) */
.fx-keypoints { margin-top: var(--space-4); padding: 16px 18px; border-radius: var(--radius-md); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.fx-keypoints__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); font-size: 14px; }
.fx-keypoints ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; color: var(--text-strong); }
.fx-study-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--space-4); }
.fx-remind { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); }
html.is-eye-comfort .player__stage video, html.is-eye-comfort .player__stage iframe { filter: sepia(.25) brightness(.9) contrast(.95); }
html.is-eye-comfort .player__body, html.is-eye-comfort .lesson-tabs { filter: sepia(.12) brightness(.97); }
html.is-eye-comfort [data-eye-comfort] { background: var(--accent-soft); color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fx-check-cta { animation: fx-banner-in .4s var(--ease-out); box-shadow: 0 10px 26px -14px var(--accent); }
.fx-drop { cursor: default; }
.fx-drop__icon { color: #fff !important; font-size: 30px; }
.fx-drop__icon i { color: #fff; }
.fx-drop__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fx-drop__tip { max-width: 620px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.fx-drop__tip i { color: var(--accent); margin-right: 4px; }
.fx-drop__icon i { font-size: 28px; }
.fx-builder__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.fx-builder__details .field__label i { color: var(--accent); width: 16px; }
.fx-builder__details .field__label strong { color: var(--text-strong); }
.fx-builder__status { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-builder__status label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.fx-builder__status label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) { .fx-builder__details { grid-template-columns: 1fr; } }
.fx-builder__status { flex-direction: row !important; } .fx-builder__status legend { width: 100%; } .fx-builder__status label { width: auto; flex: 0 0 auto; }

/* Player controls on a phone (2.41): keep what a thumb needs. The A-B loop,
   picture-in-picture and the quality menu (Auto picks a size anyway) give
   way, so full screen and the data saver stay on the screen. */
@media (max-width: 560px) {
  .vp__loop, .vp__pip, .vp__quality, .vp__fwd { display: none !important; }
  .vp__row { gap: 2px; }
  .vp__btn { min-width: 30px; padding-left: 4px; padding-right: 4px; }
  .vp__saver { font-size: 11px; }
}

/* Media scan pop-up (2.42) */
.fx-scanpop .modal__panel { width: min(520px, calc(100vw - 32px)); }
.fx-scanpop__body { display: grid; justify-items: center; gap: 12px; padding: 32px 28px 24px; text-align: center; }
.fx-scanpop__radar { width: 64px; height: 64px; }
.fx-scanpop.is-done .fx-scanpop__radar::after, .fx-scanpop.is-done .fx-scanpop__radar::before, .fx-scanpop.is-done .fx-scanpop__radar i { animation: none; opacity: 0; }
.fx-scanpop.is-done .fx-scanpop__radar { border-color: var(--bull); background: color-mix(in srgb, var(--bull) 14%, transparent); }
.fx-scanpop.is-done .fx-scanpop__radar::before { content: "\2713"; opacity: 1; display: grid; place-items: center; border: 0; color: var(--bull); font-weight: 800; font-size: 26px; }
.fx-scanpop.is-failed .fx-scanpop__radar { border-color: var(--bear); }
.fx-scanpop__title { margin: 4px 0 0; font-size: 20px; color: var(--text-strong); }
.fx-scanpop__stage { margin: 0; color: var(--text-muted); font-size: 14px; min-height: 1.4em; }
.fx-scanpop .fx-builder__bar { width: 100%; }
.fx-scanpop__pct { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.fx-scanpop.is-done .fx-scanpop__pct { color: var(--bull); }
.fx-scanpop__result { width: 100%; }
.fx-scanpop__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fx-scanpop__stat { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 13.5px; color: var(--text-muted); text-align: left; }
.fx-scanpop__stat i { color: var(--accent); }
.fx-scanpop__stat strong { font-size: 17px; color: var(--text-strong); }
.fx-scanpop__error { margin: 8px 0 0; color: var(--bear); font-weight: 600; font-size: 14px; }
.fx-scanpop__skipped { margin-top: 10px; text-align: left; font-size: 13px; color: var(--text-muted); }
.fx-scanpop__skipped ul { margin: 6px 0 0; padding-left: 18px; }
.fx-scanpop__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }

/* ---------------------------------------------------------------------
 * Course content panel (2.43): ring, chips, coloured modules, icons
 * ------------------------------------------------------------------- */
.fx-cc { display: flex; align-items: center; gap: 14px; margin: 10px 0 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.fx-cc.is-done { background: linear-gradient(135deg, color-mix(in srgb, var(--bull) 16%, var(--surface)) 0%, var(--surface) 70%); border-color: color-mix(in srgb, var(--bull) 30%, var(--line)); }
.fx-cc__ring { position: relative; width: 72px; height: 72px; flex: none; }
.fx-cc__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-cc__track { fill: none; stroke: color-mix(in srgb, var(--accent) 14%, var(--surface-sunken)); stroke-width: 7; }
.fx-cc__fill { fill: none; stroke: url(#ccGrad); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 2px 4px rgba(249, 115, 22, .35)); }
.fx-cc.is-done .fx-cc__fill { stroke: var(--bull); filter: drop-shadow(0 2px 4px rgba(16, 185, 129, .35)); }
.fx-cc__pct { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-cc__pct small { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-left: 1px; }
.fx-cc__info { min-width: 0; display: grid; gap: 3px; }
.fx-cc__label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.fx-cc__title { margin: 0; font-size: 16px; line-height: 1.3; color: var(--text-strong); }
.fx-cc__status { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.fx-cc__status i { color: var(--accent); margin-right: 3px; }
.fx-cc.is-done .fx-cc__status i { color: var(--bull); }
.fx-cc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fx-cc__chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--surface-sunken); font-size: 12px; color: var(--text-muted); }
.fx-cc__chips i { color: var(--accent); }
.fx-cc__chips strong { color: var(--text-strong); }
.fx-cc__bar { height: 8px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; margin-bottom: 12px; }
.fx-cc__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f97316, #facc15); background-size: 200% 100%; animation: fx-bar-shine 2.4s linear infinite; }

/* Modules: each its own colour, a state icon, a coloured edge. */
.curriculum-module { --mod: var(--accent); position: relative; border-left: 3px solid color-mix(in srgb, var(--mod) 55%, transparent); }
.curriculum-module.is-current { border-left-color: var(--mod); background: color-mix(in srgb, var(--mod) 6%, transparent); }
.curriculum-module.is-done { border-left-color: var(--bull); }
.curriculum-module.is-locked { border-left-color: var(--line-strong); }
.curriculum-module.is-locked .curriculum-module__head { cursor: not-allowed; }
.fx-mod-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 1px; color: #fff; background: var(--mod); box-shadow: 0 6px 14px -8px var(--mod); transition: transform .3s var(--ease-spring); }
.fx-mod-icon i { font-size: 14px; }
.fx-mod-icon small { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; opacity: .9; }
.curriculum-module.is-done .fx-mod-icon { background: var(--bull); box-shadow: 0 6px 14px -8px var(--bull); }
.curriculum-module.is-locked .fx-mod-icon { background: var(--surface-sunken); color: var(--text-muted); box-shadow: none; }
.curriculum-module__head:hover .fx-mod-icon { transform: scale(1.06) rotate(-4deg); }
.curriculum-module__num { color: var(--mod); font-weight: 800; }
.curriculum-module.is-locked .curriculum-module__num { color: var(--text-muted); }
.curriculum-module__bar span { background: var(--mod) !important; }
.curriculum-module.is-done .curriculum-module__bar span { background: var(--bull) !important; }

/* Lessons */
.curriculum-module .curriculum-lesson.is-current { box-shadow: inset 3px 0 0 var(--mod); background: color-mix(in srgb, var(--mod) 10%, transparent); }
.curriculum-module .curriculum-lesson.is-current .curriculum-lesson__num { color: var(--mod); }
.lesson-state.is-done { background: var(--bull); color: #fff; border-color: var(--bull); }
.lesson-state.is-current { border-color: var(--mod, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mod, var(--accent)) 22%, transparent); }
.fx-lesson-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 11.5px; color: var(--text-muted); }
.fx-lesson-meta i { color: var(--mod, var(--accent)); opacity: .85; margin-right: 2px; }
.fx-lesson-meta .is-quiz { color: var(--accent-text); font-weight: 600; }
.curriculum-lesson.is-locked .fx-lesson-meta i { color: var(--text-muted); }

/* A locked click shakes and warns instead of loading a page. */
.btn.is-locked { opacity: .7; cursor: not-allowed; }
.fx-shake { animation: fx-shake .42s ease-in-out; }
@keyframes fx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .fx-shake { animation: none; } .fx-cc__bar span { animation: none; } }
[data-theme="dark"] .fx-cc { background: linear-gradient(135deg, rgba(249, 115, 22, .14), var(--surface) 70%); }

/* ---------------------------------------------------------------------
 * Programme tier cards, comparison table and steps (2.44)
 * ------------------------------------------------------------------- */
.fx-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
/* Six shared rows: every title, price, list and button lines up. */
.fx-tier { --tier: #f97316; position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 14px; padding: 26px 22px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); isolation: isolate; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s; }
@supports not (grid-template-rows: subgrid) { .fx-tier { display: flex; flex-direction: column; } .fx-tier__body { flex: 1; } }
.fx-tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--tier), color-mix(in srgb, var(--tier) 40%, #fff)); }
.fx-tier::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tier) 14%, transparent), transparent 60%); opacity: .9; transition: opacity .45s; }
.fx-tier:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--tier) 45%, var(--line)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--tier) 60%, transparent); }
.fx-tier.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out) calc(var(--i, 0) * 110ms), transform .7s var(--ease-out) calc(var(--i, 0) * 110ms), box-shadow .45s, border-color .45s; }
.fx-tier.reveal.is-visible { opacity: 1; transform: none; }
.fx-tier.reveal.is-visible:hover { transform: translateY(-8px); }
.fx-tier.is-featured { border-color: color-mix(in srgb, var(--tier) 55%, var(--line)); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--tier) 70%, transparent); }

.fx-tier__head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon kicker" "icon name" "flag flag"; column-gap: 12px; row-gap: 2px; align-content: start; }
.fx-tier__icon { grid-area: icon; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tier) 80%, #fff), var(--tier)); box-shadow: 0 10px 22px -12px var(--tier); transition: transform .5s var(--ease-spring); }
.fx-tier:hover .fx-tier__icon { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.fx-tier:hover .fx-tier__icon i { animation: fx-icon-bob 1.2s ease-in-out infinite; }
.fx-tier__kicker { grid-area: kicker; align-self: end; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--tier) 75%, var(--text-strong)); }
.fx-tier__name { grid-area: name; margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; color: var(--text-strong); }
.fx-tier__flag { grid-area: flag; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--tier); }
.fx-tier__tagline { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.fx-tier__price { display: flex; align-items: baseline; gap: 6px; padding: 14px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.fx-tier__amount { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--text-strong); }
.fx-tier__amount sup { font-size: .42em; top: -.95em; margin-right: 2px; color: var(--tier); }
.fx-tier__amount--text { font-size: 26px; }
.fx-tier__per { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.fx-tier__facts, .fx-tier__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.fx-tier__facts li, .fx-tier__features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--text); }
.fx-tier__facts i { color: var(--tier); margin-top: 2px; text-align: center; }
.fx-tier__facts li { font-weight: 600; color: var(--text-strong); }
.fx-tier__features i { color: color-mix(in srgb, var(--tier) 80%, var(--bull)); margin-top: 2px; text-align: center; }
.fx-tier__body { display: grid; gap: 16px; align-content: start; }
.fx-tier__actions { display: grid; gap: 10px; align-content: end; }
.fx-tier__cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--tier), color-mix(in srgb, var(--tier) 70%, #000)); border-color: transparent; box-shadow: 0 12px 24px -14px var(--tier); }
.fx-tier__cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.fx-tier:hover .fx-tier__cta::after { animation: fx-tier-sheen 1.2s ease-in-out; }
@keyframes fx-tier-sheen { to { transform: translateX(120%); } }
.fx-tier__cta i { transition: transform .3s; }
.fx-tier__cta:hover i { transform: translateX(4px); }
.fx-tier__more { --tier-c: var(--tier, var(--accent)); position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--tier-c) 40%, var(--line)); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--text-muted); text-decoration: none; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, transform .2s; -webkit-tap-highlight-color: transparent; }
.fx-tier__more span { overflow: hidden; text-overflow: ellipsis; }
.fx-tier__more::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--tier-c) 12%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out, ease-out); }
.fx-tier__more i { color: var(--tier-c); font-size: 11px; flex: none; }
.fx-tier__more-go { transition: transform .3s; }
.fx-tier__more:hover, .fx-tier__more:focus-visible { color: var(--text-strong); border-style: solid; border-color: var(--tier-c); }
.fx-tier__more:hover::before, .fx-tier__more:focus-visible::before { transform: scaleX(1); }
.fx-tier__more:hover .fx-tier__more-go { transform: translateX(4px); }
.fx-tier__more:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .fx-tier__more::before, .fx-tier__more-go { transition: none; } }

/* Master & Elite: premium, dark and gold. */
.fx-tier.is-premium { --tier: #eab308; background: radial-gradient(120% 70% at 100% 0%, rgba(234, 179, 8, .18), transparent 55%), linear-gradient(160deg, #18181b 0%, #0b0b0f 100%); border-color: rgba(234, 179, 8, .45); color: #e4e4e7; }
.fx-tier.is-premium::before { background: linear-gradient(90deg, #a855f7, #eab308, #f97316); background-size: 200% 100%; animation: fx-bar-shine 3s linear infinite; }
.fx-tier.is-premium .fx-tier__name, .fx-tier.is-premium .fx-tier__amount, .fx-tier.is-premium .fx-tier__facts li { color: #fafafa; }
.fx-tier.is-premium .fx-tier__tagline, .fx-tier.is-premium .fx-tier__per, .fx-tier.is-premium .fx-tier__more { color: #a1a1aa; }
.fx-tier.is-premium .fx-tier__features li { color: #d4d4d8; }
.fx-tier.is-premium .fx-tier__price { border-color: rgba(255, 255, 255, .14); }
.fx-tier.is-premium .fx-tier__icon { background: linear-gradient(145deg, #fde047, #ca8a04); color: #1c1917; }
.fx-tier__flag--gold { background: linear-gradient(90deg, #ca8a04, #eab308); color: #1c1917; }
.fx-tier.is-premium .fx-tier__cta { background: linear-gradient(135deg, #fde047, #eab308 50%, #ca8a04); color: #1c1917; }
.fx-tier__elite { position: relative; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(234, 179, 8, .1)); border: 1px solid rgba(168, 85, 247, .45); }
.fx-tier__elite-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #e9d5ff; font-size: 14px; }
.fx-tier__elite-head i { color: #c084fc; animation: fx-icon-bob 2s ease-in-out infinite; }
.fx-tier__elite p { margin: 6px 0 8px; font-size: 13px; line-height: 1.5; color: #d4d4d8; }
.fx-tier__elite-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fde047; text-decoration: none; }
.fx-tier__elite-link i { transition: transform .3s; }
.fx-tier__elite-link:hover i { transform: translateX(3px); }

@media (max-width: 1180px) { .fx-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-tiers { grid-template-columns: 1fr; } .fx-tier { grid-row: auto; grid-template-rows: auto; } .fx-tier__amount { font-size: 40px; } }

/* Comparison table */
.fx-compare { margin-top: 56px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; box-shadow: 0 20px 50px -40px rgba(0, 0, 0, .35); }
.fx-compare__head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.fx-compare__head h3 { margin: 0; font-size: 19px; color: var(--text-strong); }
.fx-compare__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-muted); }
.fx-compare__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--fx-gradient); font-size: 18px; flex: none; }
.fx-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-compare__table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.fx-compare__table th, .fx-compare__table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fx-compare__table thead th { position: relative; padding-top: 20px; background: var(--surface); }
.fx-compare__table thead th::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--tier, transparent); }
.fx-compare__tier { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--tier); box-shadow: 0 8px 18px -10px var(--tier); margin-bottom: 8px; }
.fx-compare__name { display: block; font-size: 13.5px; font-weight: 800; color: var(--text-strong); line-height: 1.3; }
.fx-compare__table tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600; color: var(--text-strong); background: var(--surface); white-space: nowrap; }
.fx-compare__table tbody th i { width: 18px; margin-right: 8px; color: var(--accent); text-align: center; }
.fx-compare__table tbody tr:nth-child(even) td, .fx-compare__table tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface-sunken) 60%, var(--surface)); }
.fx-compare__table tbody tr:hover td, .fx-compare__table tbody tr:hover th { background: var(--accent-soft); }
.fx-compare__table tbody tr:last-child td, .fx-compare__table tbody tr:last-child th { border-bottom: 0; }
.fx-compare__table td strong { font-size: 16px; color: var(--text-strong); }
.fx-yes { color: var(--bull); font-size: 18px; }
.fx-no { color: var(--line-strong); font-size: 14px; }

/* How enrolment works */
.fx-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx-steps li { position: relative; display: grid; gap: 8px; justify-items: start; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease-out), box-shadow .35s; }
.fx-steps li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -30px rgba(249, 115, 22, .6); }
.fx-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.fx-steps__icon { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--fx-gradient); box-shadow: 0 12px 24px -14px var(--accent); }
.fx-steps__icon b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--text-strong); color: var(--surface); border: 2px solid var(--surface); }
.fx-steps strong { font-size: 16px; color: var(--text-strong); }
.fx-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 760px) { .fx-steps { grid-template-columns: 1fr; } .fx-steps li::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-tier, .fx-tier.reveal { transition: none; opacity: 1; transform: none; } .fx-tier.is-premium::before, .fx-tier__elite-head i { animation: none; } }

/* ---------------------------------------------------------------------
 * Programme page: hero, curriculum levels, timetable (2.45)
 * ------------------------------------------------------------------- */
.fx-prog { --tier: #f97316; padding: 28px 0 72px; }
.fx-prog__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.fx-prog__back:hover { color: var(--tier); }
.fx-prog__hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: stretch; margin-top: 18px; padding: 32px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--tier) 30%, var(--line)); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--tier) 16%, transparent), transparent 60%), var(--surface); box-shadow: 0 30px 60px -45px color-mix(in srgb, var(--tier) 70%, transparent); position: relative; overflow: hidden; }
.fx-prog__hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--tier), color-mix(in srgb, var(--tier) 40%, #fff)); }
.fx-prog__intro { display: grid; gap: 10px; align-content: start; }
.fx-prog__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tier) 75%, #fff), var(--tier)); box-shadow: 0 14px 28px -14px var(--tier); animation: fx-float 2.6s ease-in-out infinite alternate; }
.fx-prog__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--tier) 75%, var(--text-strong)); }
.fx-prog__title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; color: var(--text-strong); }
.fx-prog__tagline { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.fx-prog__chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-prog__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.fx-prog__chips i { color: var(--tier); }
.fx-prog__buy { display: grid; gap: 12px; align-content: center; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .3); }
.fx-prog__price { display: flex; align-items: baseline; gap: 8px; }
.fx-prog__price strong { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--text-strong); }
.fx-prog__price strong.is-text { font-size: 30px; }
.fx-prog__price sup { font-size: .42em; top: -.95em; color: var(--tier); margin-right: 2px; }
.fx-prog__price span { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.fx-prog__cta { background: linear-gradient(135deg, var(--tier), color-mix(in srgb, var(--tier) 70%, #000)); border-color: transparent; }
.fx-prog__note { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.fx-prog__note i { color: var(--bull); margin-top: 2px; }

/* Learning curriculum */
.fx-curr { margin-top: 48px; }
.fx-curr__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.fx-curr__head h2 { margin: 6px 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; color: var(--text-strong); }
.fx-curr__head p { margin: 0; max-width: 70ch; color: var(--text-muted); line-height: 1.65; }
.fx-curr__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.fx-curr__download { flex: none; }
.fx-curr__levels { display: grid; gap: 12px; }
.fx-level { --tier: #f97316; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.fx-level[open] { border-color: color-mix(in srgb, var(--tier) 45%, var(--line)); box-shadow: 0 24px 50px -40px color-mix(in srgb, var(--tier) 80%, transparent); }
.fx-level.is-here { border-left: 4px solid var(--tier); }
.fx-level__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.fx-level__row::-webkit-details-marker { display: none; }
.fx-level__row:hover { background: color-mix(in srgb, var(--tier) 6%, transparent); }
.fx-level__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 19px; background: var(--tier); box-shadow: 0 10px 20px -12px var(--tier); transition: transform .4s var(--ease-spring); }
.fx-level__row:hover .fx-level__icon { transform: rotate(-6deg) scale(1.06); }
.fx-level__name { display: block; font-size: 17px; font-weight: 800; color: var(--text-strong); letter-spacing: -.01em; }
.fx-level__name em { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--tier); vertical-align: middle; }
.fx-level__meta { display: block; margin-top: 3px; font-size: 13px; color: var(--text-muted); }
.fx-level__chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-muted); transition: transform .35s var(--ease-out), background .3s, color .3s; }
.fx-level[open] .fx-level__chev { transform: rotate(180deg); background: var(--tier); color: #fff; }
.fx-level__body { padding: 4px 22px 22px; animation: fx-level-open .35s var(--ease-out); }
@keyframes fx-level-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fx-units { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-unit { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface-sunken) 70%, var(--surface)); }
.fx-unit__num { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, var(--surface)); }
.fx-unit__main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fx-unit__main > strong { font-size: 15.5px; color: var(--text-strong); }
.fx-unit__course { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.fx-unit__course i { color: var(--tier); margin-right: 4px; }
.fx-unit__lessons { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.fx-unit__lessons li { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--text); }
.fx-unit__lessons li > i { color: var(--tier); text-align: center; }
.fx-unit__min { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.fx-unit__check { font-size: 11.5px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.fx-level__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fx-level__foot .btn--primary { background: var(--tier); border-color: var(--tier); }

/* Timetable */
.fx-sched { margin-top: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.fx-sched__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 12%, transparent), transparent 70%); }
.fx-sched__head h2 { margin: 0; font-size: 20px; color: var(--text-strong); }
.fx-sched__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-muted); }
.fx-sched__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--tier); font-size: 19px; }
.fx-sched__rows { list-style: none; margin: 0; padding: 8px 12px 12px; display: grid; gap: 8px; }
.fx-sched__row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; transition: background .25s; }
.fx-sched__row:not(:last-child)::after { content: ""; position: absolute; left: 63px; bottom: -8px; width: 2px; height: 8px; background: color-mix(in srgb, var(--tier) 40%, var(--line)); }
.fx-sched__row:hover { background: color-mix(in srgb, var(--tier) 6%, transparent); }
.fx-sched__row.is-final { background: color-mix(in srgb, var(--tier) 12%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--tier) 50%, transparent); }
.fx-sched__week { display: grid; justify-items: center; padding: 8px 6px; border-radius: 14px; background: var(--surface-sunken); font-size: 18px; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-sched__week small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tier); }
.fx-sched__focus { display: grid; gap: 3px; min-width: 0; }
.fx-sched__focus strong { font-size: 15px; color: var(--text-strong); }
.fx-sched__focus strong i { color: var(--tier); }
.fx-sched__focus span { font-size: 12.5px; color: var(--text-muted); }
.fx-sched__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.fx-sched__tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-sunken); font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.fx-sched__tags .is-live { background: color-mix(in srgb, #ef4444 12%, var(--surface)); color: #dc2626; }
.fx-sched__tags .is-check { background: color-mix(in srgb, var(--bull) 12%, var(--surface)); color: var(--bull); }
.fx-sched__tags .is-final { background: var(--tier); color: #fff; }

/* What you get / conditions */
.fx-prog__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.fx-panel { padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.fx-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; color: var(--text-strong); }
.fx-panel h2 i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: #fff; background: var(--tier); }
.fx-panel--warn h2 i { background: #64748b; }
.fx-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-panel__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.fx-panel__list i { color: var(--tier); margin-top: 3px; text-align: center; }
.fx-panel--warn .fx-panel__list i { color: #64748b; }

@media (max-width: 900px) {
  .fx-prog__hero { grid-template-columns: 1fr; padding: 24px; }
  .fx-prog__more { grid-template-columns: 1fr; }
  .fx-sched__row { grid-template-columns: 72px minmax(0, 1fr); }
  .fx-sched__tags { grid-column: 1 / -1; justify-content: flex-start; }
  .fx-sched__head { grid-template-columns: auto 1fr; }
  .fx-sched__head .btn { grid-column: 1 / -1; justify-self: start; }
  .fx-sched__row:not(:last-child)::after { left: 51px; }
}
@media (max-width: 560px) {
  .fx-unit { grid-template-columns: 1fr; }
  .fx-unit__lessons li { grid-template-columns: 18px 1fr; }
  .fx-unit__min, .fx-unit__check { grid-column: 2; }
  .fx-level__row { padding: 14px 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .fx-prog__icon, .fx-level__body { animation: none; } }

/* ---------------------------------------------------------------------
 * Enrolment wizard: brief, KYC-style (2.46)
 * ------------------------------------------------------------------- */
.fx-enrol { --tier: #f97316; max-width: 1120px; margin: 0 auto; }
.fx-enrol__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fx-enrol__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.fx-enrol__back:hover { color: var(--tier); }
.fx-enrol__pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-sunken); color: var(--text-muted); }
.fx-enrol__pill.is-draft { background: color-mix(in srgb, var(--tier) 12%, var(--surface)); color: color-mix(in srgb, var(--tier) 80%, var(--text-strong)); }
.fx-enrol__pill.is-wait { background: color-mix(in srgb, #0ea5e9 12%, var(--surface)); color: #0284c7; }
.fx-enrol__pill.is-warn { background: color-mix(in srgb, #eab308 16%, var(--surface)); color: #a16207; }
.fx-enrol__pill.is-ok { background: color-mix(in srgb, var(--bull) 14%, var(--surface)); color: var(--bull); }
.fx-enrol__pill.is-bad { background: color-mix(in srgb, #ef4444 12%, var(--surface)); color: #dc2626; }
.fx-enrol__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }

/* Side: programme, progress, stepper */
.fx-enrol__side { position: sticky; top: 88px; display: grid; gap: 16px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.fx-enrol__prog { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fx-enrol__prog-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--tier) 70%, #fff), var(--tier)); box-shadow: 0 10px 22px -12px var(--tier); }
.fx-enrol__prog strong { display: block; font-size: 15px; line-height: 1.3; color: var(--text-strong); }
.fx-enrol__eyebrow { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.fx-enrol__price { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; color: var(--tier); }
.fx-enrol__price small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.fx-enrol__meter-text { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.fx-enrol__meter-text strong { color: var(--text-strong); }
.fx-enrol__meter-bar { height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.fx-enrol__meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tier), color-mix(in srgb, var(--tier) 60%, #fde047)); transform-origin: left; animation: fx-enrol-grow .9s var(--ease-out, ease-out) both; }
@keyframes fx-enrol-grow { from { transform: scaleX(0); } }
.fx-kstep { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.fx-kstep li { position: relative; }
.fx-kstep li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.fx-kstep li.is-done:not(:last-child)::after { background: var(--tier); }
.fx-kstep a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .2s; }
.fx-kstep a:hover { background: var(--surface-sunken); }
.fx-kstep__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--text-muted); background: var(--surface-sunken); border: 2px solid var(--line); transition: all .3s; position: relative; z-index: 1; }
.fx-kstep li.is-done .fx-kstep__dot { background: var(--tier); border-color: var(--tier); color: #fff; }
.fx-kstep li.is-current .fx-kstep__dot { background: var(--surface); border-color: var(--tier); color: var(--tier); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tier) 18%, transparent); }
.fx-kstep li.is-current a { background: color-mix(in srgb, var(--tier) 8%, transparent); }
.fx-kstep__text strong { display: block; font-size: 14px; color: var(--text-strong); }
.fx-kstep__text small { font-size: 12px; color: var(--text-muted); }
.fx-kstep li.is-done .fx-kstep__text small { color: var(--bull); font-weight: 600; }
.fx-enrol__trust { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.fx-enrol__trust i { width: 16px; color: var(--tier); text-align: center; margin-right: 6px; }
.fx-enrol__about { font-size: 13px; font-weight: 600; color: var(--tier); text-decoration: none; }

/* Main card */
.fx-enrol__main { display: grid; gap: 18px; min-width: 0; }
.fx-enrol__note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, #0ea5e9 9%, var(--surface)); border: 1px solid color-mix(in srgb, #0ea5e9 25%, var(--line)); font-size: 14px; color: var(--text); }
.fx-enrol__note i { color: #0284c7; margin-top: 3px; }
.fx-enrol__note.is-bad { background: color-mix(in srgb, #ef4444 8%, var(--surface)); border-color: color-mix(in srgb, #ef4444 25%, var(--line)); }
.fx-enrol__note.is-bad i { color: #dc2626; }
.fx-kyc { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -50px rgba(0, 0, 0, .35); position: relative; overflow: hidden; }
.fx-kyc::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--tier), color-mix(in srgb, var(--tier) 35%, transparent)); }
.fx-kyc__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; margin-bottom: 24px; }
.fx-kyc__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; color: var(--tier); background: color-mix(in srgb, var(--tier) 13%, var(--surface)); }
.fx-kyc__count { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tier); }
.fx-kyc__head h1 { margin: 2px 0 4px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.025em; color: var(--text-strong); }
.fx-kyc__head p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.fx-kyc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.fx-kyc__field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fx-kyc__field.is-wide { grid-column: 1 / -1; }
.fx-kyc__field > label, .fx-kyc__field > legend { font-size: 13.5px; font-weight: 700; color: var(--text-strong); padding: 0; margin-bottom: 8px; }
.fx-kyc__field > label { margin-bottom: 0; }
.fx-kyc__opt { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.fx-kyc__hint { font-size: 12px; color: var(--text-muted); }
.fx-kyc__control { position: relative; }
.fx-kyc__control > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-muted); pointer-events: none; transition: color .2s; }
.fx-kyc__control .input, .fx-kyc__control .select { width: 100%; min-height: 48px; padding-left: 40px; border-radius: 13px; font-size: 15px; }
.fx-kyc__control:focus-within > i { color: var(--tier); }
.fx-kyc .input:focus, .fx-kyc .select:focus, .fx-kyc .textarea:focus { border-color: var(--tier); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier) 16%, transparent); outline: none; }
.fx-kchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-kchip { position: relative; cursor: pointer; }
.fx-kchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fx-kchip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text); transition: all .2s; }
.fx-kchip span i { width: 0; opacity: 0; font-size: 11px; transition: width .2s, opacity .2s; }
.fx-kchip:hover span { border-color: color-mix(in srgb, var(--tier) 50%, var(--line)); }
.fx-kchip input:checked + span { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, var(--surface)); color: var(--text-strong); }
.fx-kchip input:checked + span i { width: 12px; opacity: 1; color: var(--tier); }
.fx-kchip input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier) 20%, transparent); }
.fx-kchip input:active + span { transform: scale(.97); }
.fx-kyc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.fx-kyc__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-kyc__next { background: linear-gradient(135deg, var(--tier), color-mix(in srgb, var(--tier) 72%, #000)); border-color: transparent; }
.fx-kyc__next i { transition: transform .25s; }
.fx-kyc__next:hover i { transform: translateX(3px); }

/* Uploads */
.fx-docs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.fx-docs li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-sunken); }
.fx-docs__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tier); background: var(--surface); font-size: 18px; }
.fx-docs__name { min-width: 0; }
.fx-docs__name strong { display: block; font-size: 14px; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-docs__name small { font-size: 12px; color: var(--bull); }
.fx-kdrop__zone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border-radius: 20px; border: 2px dashed color-mix(in srgb, var(--tier) 40%, var(--line)); background: color-mix(in srgb, var(--tier) 5%, var(--surface)); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.fx-kdrop__zone:hover { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 9%, var(--surface)); }
.fx-kdrop__zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-kdrop__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--tier); box-shadow: 0 12px 24px -12px var(--tier); }
.fx-kdrop__zone strong { font-size: 15px; color: var(--text-strong); }
.fx-kdrop__zone small { font-size: 12.5px; color: var(--text-muted); }
.fx-kdrop.is-busy .fx-kdrop__icon i { animation: fx-enrol-bob 1s ease-in-out infinite alternate; }
@keyframes fx-enrol-bob { to { transform: translateY(-4px); } }
.fx-kdrop__send { margin-top: 10px; }

/* Review */
.fx-review { display: grid; gap: 12px; }
.fx-review__card { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.fx-review__card.is-missing { border-color: color-mix(in srgb, #ef4444 40%, var(--line)); }
.fx-review__card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fx-review__card header strong { font-size: 15px; color: var(--text-strong); flex: 1; }
.fx-review__card header a { font-size: 13px; font-weight: 700; color: var(--tier); text-decoration: none; }
.fx-review__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, var(--surface)); }
.fx-review__flag { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #dc2626; background: color-mix(in srgb, #ef4444 10%, var(--surface)); }
.fx-review__text { margin: 0; font-size: 14px; color: var(--text-muted); white-space: pre-line; }
.fx-kyc-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.fx-kyc-dl div { min-width: 0; }
.fx-kyc-dl dt { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.fx-kyc-dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.fx-submit { margin-top: 18px; }
.fx-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--surface-sunken); font-size: 13.5px; line-height: 1.5; color: var(--text); cursor: pointer; }
.fx-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--tier); }

/* Pay */
.fx-pay__amount { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); }
.fx-pay__form { display: grid; gap: 18px; }
.fx-paycards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.fx-paycard { position: relative; cursor: pointer; }
.fx-paycard input { position: absolute; opacity: 0; inset: 0; }
.fx-paycard__body { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: all .2s; }
.fx-paycard__body strong { display: block; font-size: 14px; color: var(--text-strong); }
.fx-paycard__body strong em { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--text-muted); }
.fx-paycard__body small { font-size: 12px; color: var(--text-muted); }
.fx-paycard__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tier); background: color-mix(in srgb, var(--tier) 10%, var(--surface)); }
.fx-paycard__tick { color: var(--line); font-size: 18px; transition: color .2s, transform .3s; }
.fx-paycard input:checked + .fx-paycard__body { border-color: var(--tier); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier) 14%, transparent); }
.fx-paycard input:checked + .fx-paycard__body .fx-paycard__tick { color: var(--tier); transform: scale(1.1); }
.fx-paycard input:focus-visible + .fx-paycard__body { outline: 2px solid var(--tier); outline-offset: 2px; }
.fx-pay__secure { font-size: 13px; color: var(--text-muted); }
.fx-pay__secure i { color: var(--bull); margin-right: 4px; }
.fx-enrol__withdraw { text-align: right; }

@media (max-width: 900px) {
  .fx-enrol__grid { grid-template-columns: 1fr; }
  .fx-enrol__side { position: static; }
  .fx-kstep { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .fx-kstep li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); top: 27px; bottom: auto; width: auto; height: 2px; }
  .fx-kstep a { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 8px 2px; }
  .fx-kstep__text strong { font-size: 11.5px; }
  .fx-kstep__text small { display: none; }
  .fx-enrol__trust, .fx-enrol__about { display: none; }
}
@media (max-width: 600px) {
  .fx-kyc { padding: 20px 16px; border-radius: 20px; }
  .fx-kyc__head { grid-template-columns: auto 1fr; }
  .fx-pay__amount { grid-column: 1 / -1; }
  .fx-kyc__fields, .fx-kyc-dl { grid-template-columns: 1fr; }
  .fx-kyc__foot { flex-direction: column-reverse; align-items: stretch; }
  .fx-kyc__foot > span:empty { display: none; }
  .fx-kyc__actions { flex-direction: column-reverse; }
  .fx-kyc__foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fx-enrol__meter-bar span, .fx-kdrop.is-busy .fx-kdrop__icon i { animation: none; } }
.fx-kdrop__send[hidden] { display: none; }
