/* ==========================================================================
   RATELi TFM Academy - RATELi FX interface layer
   --------------------------------------------------------------------------
   The look of the RATELi FX academy (AdminLTE 4 shell with the FX theme),
   rebuilt on the academy's own component system so every screen takes it
   without Bootstrap's grid or modal classes colliding with ours.

   Loaded after every other stylesheet on purpose: it is the final word on
   appearance. Behaviour stays in the component and layout sheets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-strong); font-family: var(--font-display); letter-spacing: -0.02em; }

a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }

::selection { background: rgba(249, 115, 22, 0.25); }

/* --------------------------------------------------------------------------
   Wordmark: the RATELi FX gradient brand
   -------------------------------------------------------------------------- */

.fx-brand { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.fx-brand .wordmark {
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, #f97316, #f59e0b);
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.28));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fx-brand .wordmark__i { -webkit-text-fill-color: transparent; }
.fx-brand .wordmark__suffix { color: var(--text-strong); font-weight: 700; font-size: 0.75em; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Application shell
   -------------------------------------------------------------------------- */

.fx-app .app { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); background: var(--page); }

.fx-app .app-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 0;
  gap: 0;
  scrollbar-width: none;
}
.fx-app .app-sidebar::-webkit-scrollbar { display: none; }

.fx-app .app-sidebar__brand {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.app-sidebar__nav { flex: 1; padding: 0.75rem 0 1rem; display: flex; flex-direction: column; gap: 2px; }
.app-sidebar__foot { padding: 0.75rem 0 1rem; border-top: 1px solid var(--line); }

.fx-app .sidebar-group { gap: 0; }
.fx-app .sidebar-group > summary { list-style: none; }
.fx-app .sidebar-group > summary::-webkit-details-marker { display: none; }

.fx-app .sidebar-group__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0.75rem 0.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.fx-app .sidebar-group__label:hover { color: var(--text-strong); background: var(--surface-hover); }
.sidebar-group__chevron { margin-left: auto; display: inline-flex; transition: transform var(--duration-base) var(--ease-out); }
.sidebar-group[open] > summary .sidebar-group__chevron { transform: rotate(90deg); }

.fx-app .sidebar-link {
  margin: 3px 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.fx-app .sidebar-link:hover { background: var(--surface-hover); color: var(--text-strong); }
.fx-app .sidebar-link.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}
.fx-app .sidebar-link.is-active::before { display: none; }
.fx-app .sidebar-link.is-active .sidebar-link__badge { background: #ffffff; color: var(--accent-hover); }
.fx-app .sidebar-link--logout { width: calc(100% - 24px); color: var(--bear); }
.fx-app .sidebar-link--logout:hover { background: var(--bear-soft); color: var(--bear); }

.fx-app .sidebar-link__badge { background: var(--bear); color: #fff; }

/* Collapsed to icons on large screens, as the RATELi FX sidebar toggle does */
@media (min-width: 1081px) {
  .sidebar-collapsed .fx-app .app,
  html.sidebar-collapsed body.fx-app .app { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
  html.sidebar-collapsed .fx-app .sidebar-link__text,
  html.sidebar-collapsed .fx-app .sidebar-group__label span:not(.sidebar-group__chevron),
  html.sidebar-collapsed .fx-app .fx-brand .wordmark__suffix { display: none; }
  html.sidebar-collapsed .fx-app .sidebar-group__label { justify-content: center; margin-inline: 0.5rem; padding-inline: 0.4rem; }
  html.sidebar-collapsed .fx-app .sidebar-link { justify-content: center; margin-inline: 10px; padding-inline: 0; }
  html.sidebar-collapsed .fx-app .sidebar-link__badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; font-size: 0.55rem; }
  html.sidebar-collapsed .fx-app .app-sidebar__brand { justify-content: center; padding-inline: 0.5rem; }
}

/* Top bar */
.fx-app .app-topbar {
  height: var(--header-height);
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  padding-inline: 1.5rem;
  gap: 0.75rem;
}

.fx-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.fx-icon-btn::-webkit-details-marker { display: none; }
.fx-icon-btn:hover { background: var(--surface-hover); }
.fx-icon-btn[aria-pressed="true"] { color: var(--accent-text); }

.fx-dot-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bear);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

/* Search */
.fx-search { position: relative; display: flex; align-items: center; }
.fx-search__icon { position: absolute; left: 14px; color: var(--text-dim); pointer-events: none; }
.fx-search input {
  width: 250px;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}
.fx-search input:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18); width: 300px; }
.fx-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: var(--z-header);
}
.fx-search__results a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius-md); color: var(--text); font-size: 0.9rem; text-decoration: none; }
.fx-search__results a:hover, .fx-search__results a.is-current { background: var(--surface-hover); color: var(--accent-text); }
.fx-search__results small { color: var(--text-dim); margin-left: auto; font-size: 0.72rem; }
.fx-search__empty { padding: 10px 12px; color: var(--text-dim); font-size: 0.85rem; }

/* Dropdowns */
.fx-dropdown { position: relative; }
.fx-dropdown > summary { list-style: none; cursor: pointer; }
.fx-dropdown > summary::-webkit-details-marker { display: none; }
.fx-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  z-index: var(--z-header);
  animation: fx-drop 0.18s var(--ease-out);
}
.fx-dropdown__menu--wide { width: 340px; }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fx-dropdown__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--text-strong); }
.fx-dropdown__empty { padding: 14px 10px; margin: 0; color: var(--text-dim); font-size: 0.88rem; text-align: center; }
.fx-dropdown__all { display: block; margin-top: 6px; padding: 10px; border-radius: var(--radius-md); text-align: center; font-size: 0.85rem; font-weight: 600; background: var(--surface-hover); text-decoration: none; }

.fx-notif { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-md); color: var(--text); text-decoration: none; }
.fx-notif:hover { background: var(--surface-hover); color: var(--text-strong); }
.fx-notif__icon { flex: none; width: 42px; height: 42px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-hover); color: var(--text-muted); }
.fx-notif__icon.is-new { background: var(--accent-soft); color: var(--accent-text); }
.fx-notif__body { display: flex; flex-direction: column; min-width: 0; }
.fx-notif__title { font-size: 0.88rem; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-notif__time { font-size: 0.75rem; color: var(--text-dim); }

.fx-user { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; transition: background var(--duration-fast); }
.fx-user:hover { background: var(--surface-hover); }
.fx-user__name { font-weight: 600; font-size: 0.9rem; color: var(--text-strong); }

.fx-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--surface-sunken) 0%, var(--surface) 100%);
  text-align: center;
  color: var(--text-strong);
}
.fx-profile-card .badge { margin-top: 6px; }

.fx-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 15px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
.fx-menu-item svg { opacity: 0.7; }
.fx-menu-item:hover { background: var(--surface-hover); color: var(--accent-text); }
.fx-menu-item--danger { color: var(--bear); }
.fx-menu-item--danger:hover { background: var(--bear-soft); color: var(--bear); }

/* Content header with breadcrumb */
.fx-content-header { display: flex; justify-content: flex-end; align-items: center; padding: 1rem 2rem 0; }
.fx-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--text-dim); }
.fx-breadcrumb li + li::before { content: "\203A"; margin-right: 0.4rem; color: var(--text-dim); }
.fx-breadcrumb a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.fx-breadcrumb [aria-current] { text-transform: capitalize; }

.fx-app .app-content { padding: 1.25rem 2rem 3rem; gap: 1.5rem; }

.fx-app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 1080px) {
  .fx-app .app { grid-template-columns: minmax(0, 1fr); }
  .fx-app .app-sidebar { width: min(290px, 86vw); }
}

@media (max-width: 720px) {
  .fx-search { display: none; }
  .fx-user__name { display: none; }
  .fx-app .app-topbar { padding-inline: 0.75rem; gap: 0.25rem; }
  .fx-content-header { padding: 0.75rem 1rem 0; justify-content: flex-start; }
  .fx-app .app-content { padding: 1rem 1rem 2.5rem; gap: 1rem; }
  .fx-dropdown__menu, .fx-dropdown__menu--wide { position: fixed; left: 12px; right: 12px; top: calc(var(--header-height) + 6px); width: auto; }
  .fx-app-footer { padding: 1rem; }
}

/* --------------------------------------------------------------------------
   Page heads
   -------------------------------------------------------------------------- */

.page-head { align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; }
.page-head__sub { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Cards and panels: white, borderless, the double soft shadow
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card--raised { box-shadow: var(--shadow-sm); }
.card--sunken { background: var(--surface-sunken); box-shadow: none; border-color: var(--line); }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card__header { padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.card__title { font-weight: 700; font-size: 1.02rem; }

.panel {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.panel__head { background: transparent; border-bottom: 1px solid var(--line); padding: 1.1rem 1.25rem; }
.panel__title { text-transform: none; letter-spacing: -0.01em; font-size: 1rem; font-weight: 700; color: var(--text-strong); }

.caps { color: var(--text-muted); font-weight: 600; letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   Buttons: Bootstrap 5 shapes in the FX colours
   -------------------------------------------------------------------------- */

.btn { border-radius: var(--radius-xs); font-weight: 600; min-height: 42px; padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn:hover { transform: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--brand-accent-ink); box-shadow: var(--shadow-accent); }
.btn--primary:hover { --btn-bg: var(--accent); box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4); color: var(--brand-accent-ink); }
.btn--ghost { --btn-bg: transparent; --btn-border: var(--accent); --btn-fg: var(--accent-text); }
.btn--ghost:hover { --btn-bg: var(--accent); --btn-fg: var(--brand-accent-ink); --btn-border: var(--accent); color: var(--brand-accent-ink); }
.btn--quiet { --btn-fg: var(--text-muted); }
.btn--quiet:hover { --btn-bg: var(--surface-hover); --btn-fg: var(--text-strong); }
.btn--soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-text); --btn-border: transparent; }
.btn--secondary { --btn-bg: var(--brand-secondary); --btn-fg: #fff; --btn-border: transparent; }
.btn--danger { --btn-bg: var(--bear); --btn-fg: #fff; }
.btn--sm { min-height: 34px; padding: 0.38rem 0.8rem; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn--lg { min-height: 50px; padding: 0.85rem 1.6rem; font-size: 1rem; border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.input, .select, .textarea {
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--text-strong);
  transition: all 0.2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.field__label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.field__hint { color: var(--text-dim); }
.field__error { color: var(--bear); font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Tables: the DataTables look
   -------------------------------------------------------------------------- */

.table { font-size: 0.9rem; }
.table thead th {
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.85rem 1rem;
}
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-sunken); }
.table-wrap { border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* --------------------------------------------------------------------------
   Badges: the FX status pills
   -------------------------------------------------------------------------- */

.badge {
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 0;
  background: var(--surface-hover);
  color: var(--text-muted);
}
.badge--accent, .badge--bull { background: rgba(249, 115, 22, 0.12); color: var(--accent-text); }
.badge--bear { background: rgba(255, 75, 92, 0.1); color: var(--bear); }
.badge--warn { background: var(--warning-soft); color: #b8741c; }
.badge--info { background: var(--info-soft); color: var(--brand-secondary); }
.badge--solid { background: var(--accent); color: var(--brand-accent-ink); }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert { border-radius: var(--radius-md); border: 0; box-shadow: none; }
.alert--info { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--line-accent); }
.alert--warning { background: var(--warning-soft); color: #7a4c10; }
.alert--success { background: var(--accent-soft); color: #046b52; }
.alert--danger { background: var(--bear-soft); color: #a3202d; }

/* --------------------------------------------------------------------------
   Tabs: the FX content tabs
   -------------------------------------------------------------------------- */

.tabs { border-bottom: 2px solid var(--line); gap: 0.25rem; background: transparent; padding: 0; border-radius: 0; }
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 1.1rem;
}
.tab:hover { color: var(--text-strong); background: transparent; }
.tab.is-active, .tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); background: transparent; box-shadow: none; }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */

.progress { height: 8px; border-radius: 999px; background: var(--line-strong); }
.progress > span, .progress::after { background: var(--accent); border-radius: 999px; }

/* --------------------------------------------------------------------------
   Modals and dialogs
   -------------------------------------------------------------------------- */

.modal { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); }
.modal__panel { border: 0; border-radius: var(--radius-xl); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.35); }

/* --------------------------------------------------------------------------
   FX dashboard pieces: summary cards, course cards, highlight card
   -------------------------------------------------------------------------- */

.fx-summary-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.fx-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.fx-summary:hover { transform: translateY(-3px); color: inherit; }
.fx-summary__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.fx-summary__label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.fx-summary__num { font-size: 1.75rem; font-weight: 800; color: var(--text-strong); line-height: 1.15; margin-top: 0.35rem; }
.fx-summary__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.fx-summary__icon--blue { background: var(--info-soft); color: var(--brand-secondary); }
.fx-summary__icon--red { background: var(--bear-soft); color: var(--bear); }
.fx-summary__icon--amber { background: var(--warning-soft); color: #b8741c; }
.fx-summary__meta { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.fx-delta { font-weight: 700; }
.fx-delta--up { color: var(--accent-text); }
.fx-delta--down { color: var(--bear); }
.fx-mini-progress { height: 4px; border-radius: 2px; background: var(--line-strong); margin-top: 10px; overflow: hidden; }
.fx-mini-progress > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

.fx-highlight {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-sunken) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
}
.fx-highlight__thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md); background: linear-gradient(135deg, #0f172a, #1e293b); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.fx-highlight__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .fx-highlight { grid-template-columns: 1fr; } }

.fx-course-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.fx-course {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.fx-course:hover { box-shadow: var(--shadow-md); border-color: var(--accent); color: inherit; }
.fx-course__thumb { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #c2410c 140%); display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.fx-course__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-course__level { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(4px); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fx-course__title { margin-top: 0.85rem; font-size: 1.05rem; font-weight: 700; color: var(--text-strong); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8rem; }
.fx-course__meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.fx-course__foot { margin-top: auto; padding-top: 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   Player: the FX learning layout (video column and curriculum sidebar)
   -------------------------------------------------------------------------- */

.fx-curriculum-head { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.fx-curriculum-head h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.fx-lesson-status { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; flex: none; }
.fx-lesson-status--complete { background: var(--accent); color: var(--brand-accent-ink); }
.fx-lesson-status--current { background: var(--info-soft); color: var(--brand-secondary); border: 2px solid var(--brand-secondary); }
.fx-lesson-status--locked { background: var(--surface-hover); color: var(--text-dim); }
.fx-lesson-status--open { background: var(--surface-hover); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Public website in the FX palette
   -------------------------------------------------------------------------- */

.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-header { background: rgba(15, 23, 42, 0.9); }
.nav__link { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.nav__link:hover { color: var(--accent-text); background: var(--surface-hover); }
.nav__link.is-active { color: var(--accent-text); }
.nav__link.is-active::after { background: var(--accent); }
.site-footer { background: var(--page-alt); border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent-text); font-weight: 700; letter-spacing: 0.08em; }
.lede { color: var(--text-muted); }
.price-card { border-radius: var(--radius-xl); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface); }
.price-card.is-featured { border: 2px solid var(--accent); box-shadow: 0 24px 50px -24px rgba(249, 115, 22, 0.45); }
.price-card__amount { color: var(--text-strong); }

/* --------------------------------------------------------------------------
   Chat
   -------------------------------------------------------------------------- */

.fx-chat { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1.25rem; min-height: 560px; }
.fx-chat__list { padding: 0.5rem; overflow-y: auto; max-height: 72vh; }
.fx-chat__item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.fx-chat__item:hover { background: var(--surface-hover); color: inherit; }
.fx-chat__item.is-active { background: var(--accent-soft); }
.fx-chat__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fx-chat__name { font-weight: 600; font-size: 0.9rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-chat__preview { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-chat__thread { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: 72vh; }
.fx-chat__head { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.fx-chat__messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface-sunken); }
.fx-chat__composer { display: flex; gap: 0.75rem; align-items: flex-end; padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); }
.fx-chat__composer .textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; }
.fx-chat__empty { margin: auto; text-align: center; color: var(--text-dim); padding: 3rem; }
.fx-bubble { max-width: min(78%, 560px); align-self: flex-start; display: flex; flex-direction: column; gap: 2px; padding: 0.6rem 0.9rem; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: var(--shadow-xs); }
.fx-bubble--mine { align-self: flex-end; background: var(--accent); color: var(--brand-accent-ink); border-radius: 16px 16px 4px 16px; }
.fx-bubble__author { font-size: 0.72rem; font-weight: 700; color: var(--accent-text); }
.fx-bubble__body { font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.fx-bubble__time { font-size: 0.68rem; opacity: 0.7; align-self: flex-end; }
@media (max-width: 860px) {
  .fx-chat { grid-template-columns: 1fr; }
  .fx-chat__list { max-height: 220px; }
}
