/* ==========================================================================
   FINENDAR FX — futuristic design system
   Brand: #531899 (logo purple) · #800080 · #9900CC
   Structure:
     1. Tokens            6. Buttons            11. Tables
     2. Base (fx mode)    7. Forms              12. Feedback (alerts/toasts/badges)
     3. Layout helpers    8. Cards & surfaces   13. Overlays (modal/dropdown)
     4. Public nav        9. Sections/hero      14. Dashboard shell
     5. Footer           10. Stats & data       15. Auth layout / misc / utilities
   Element-level styles only apply to <body class="fx">, so legacy pages that
   still ship their own CSS are not affected while they wait for redesign.
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  --brand: #531899;
  --brand-2: #800080;
  --brand-3: #9900cc;
  --glow: #a855f7;
  --neon: #c77dff;
  --cyan: #38e1ff;

  --bg: #07040f;
  --bg-2: #0d0819;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #120b22;
  --surface-solid-2: #1a1030;
  --line: rgba(199, 125, 255, 0.14);
  --line-2: rgba(199, 125, 255, 0.26);

  --text: #efeaf9;
  --text-2: #b9aed3;
  --muted: #8a7fa6;

  --ok: #22d3a6;
  --warn: #fbbf24;
  --bad: #fb5a7a;
  --info: #38bdf8;

  --grad: linear-gradient(135deg, #531899 0%, #800080 55%, #9900cc 100%);
  --grad-bright: linear-gradient(135deg, #7c3aed 0%, #a21caf 50%, #c026d3 100%);
  --grad-text: linear-gradient(90deg, #e9d5ff 0%, #c77dff 45%, #f0abfc 100%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 12px 40px -10px rgba(153, 0, 204, 0.45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 72px;
  --side-w: 272px;
  --side-w-min: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2. BASE ================================================================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.fx, body.fx-shell {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.fx *, body.fx *::before, body.fx *::after { box-sizing: border-box; }
body.fx { padding-top: var(--nav-h); min-height: 100vh; }
body.fx.fx-appmode { padding-top: 0; }
body.fx.fx-bare { padding-top: 0; }
body.fx-legacy { padding-top: calc(var(--nav-h) + 8px) !important; }

:where(body.fx) h1, :where(body.fx) h2, :where(body.fx) h3, :where(body.fx) h4, :where(body.fx) h5, :where(body.fx) h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
:where(body.fx) h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
:where(body.fx) h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
:where(body.fx) h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
:where(body.fx) h4 { font-size: 1.15rem; }
:where(body.fx) h5 { font-size: 1rem; }
:where(body.fx) p { margin: 0 0 1em; color: var(--text-2); }
:where(body.fx) a { color: var(--neon); text-decoration: none; transition: color .2s; }
:where(body.fx) a:hover { color: #fff; }
:where(body.fx) img { max-width: 100%; height: auto; display: block; }
:where(body.fx) hr { border: 0; height: 1px; background: var(--line); margin: 1.5rem 0; }
:where(body.fx) code, :where(body.fx) pre { font-family: var(--font-mono); }
:where(body.fx) code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; color: var(--neon); }
:where(body.fx) ::selection { background: rgba(153, 0, 204, .45); color: #fff; }
:where(body.fx) ul, :where(body.fx) ol { padding-left: 1.2rem; color: var(--text-2); }
:where(body.fx) small { color: var(--muted); }
:where(body.fx) strong, :where(body.fx) b { color: var(--text); }

/* Ambient background (grid + aurora) */
.fx-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(83, 24, 153, .55), transparent 60%),
    radial-gradient(700px 420px at 100% 10%, rgba(153, 0, 204, .28), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(83, 24, 153, .35), transparent 60%),
    var(--bg);
}
.fx-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(199, 125, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 125, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
body.fx-legacy .fx-bg { display: none; }

/* 3. LAYOUT HELPERS ======================================================== */
.fx-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.fx-container-sm { max-width: 860px; }
.fx-container-xs { max-width: 560px; }
.fx-grid { display: grid; gap: 20px; }
.fx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.fx-grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.fx-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fx-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fx-split--wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.fx-split--toc { grid-template-columns: 260px minmax(0, 1fr); }
.fx-split--mid { align-items: center; }
.fx-row { display: flex; align-items: center; gap: 12px; }
.fx-row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-stack > * + * { margin-top: 16px; }
.fx-stack-sm > * + * { margin-top: 8px; }
.fx-center { text-align: center; }
.fx-grow { flex: 1 1 auto; min-width: 0; }
@media (max-width: 1024px) {
  .fx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-split, .fx-split--even, .fx-split--wide-r, .fx-split--toc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fx-grid-2, .fx-grid-3, .fx-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .fx-container { padding: 0 16px; }
}

/* 4. PUBLIC NAV ============================================================ */
.fx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  font-family: var(--font);
  background: rgba(7, 4, 15, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.fx-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 125, 255, .7), transparent);
  opacity: .6;
}
.fx-nav *, .fx-nav *::before, .fx-nav *::after { box-sizing: border-box; }
.fx-nav__in { height: 100%; display: flex; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.fx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.fx-brand__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 22px rgba(153, 0, 204, .55), inset 0 0 0 1px rgba(255,255,255,.15);
}
.fx-brand__mark img { width: 24px; height: 24px; display: block; }
.fx-brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em;
  color: #fff !important; line-height: 1;
}
.fx-brand__name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.fx-menu > li { position: relative; list-style: none; }
.fx-menu__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--text-2) !important; text-decoration: none !important;
  background: none; border: 0; cursor: pointer; font-family: inherit; transition: color .2s, background .2s;
}
.fx-menu__link:hover, .fx-menu > li:hover > .fx-menu__link, .fx-menu__link.is-active { color: #fff !important; background: var(--surface-2); }
.fx-menu__link .fa-chevron-down { font-size: .65rem; opacity: .7; transition: transform .25s; }
.fx-menu > li:hover .fa-chevron-down { transform: rotate(180deg); }
.fx-drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 300px; padding: 10px; border-radius: 18px;
  background: rgba(18, 11, 34, .96); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 40px -10px rgba(153, 0, 204, .35);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.fx-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.fx-menu > li:hover > .fx-drop, .fx-menu > li:focus-within > .fx-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fx-drop--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.fx-drop__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none !important; transition: background .2s;
}
.fx-drop__item:hover { background: var(--surface-2); }
.fx-drop__icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: rgba(153, 0, 204, .14); color: var(--neon); border: 1px solid var(--line); font-size: .9rem;
}
.fx-drop__t { display: block; font-size: .9rem; font-weight: 600; color: #fff !important; line-height: 1.3; }
.fx-drop__d { display: block; font-size: .78rem; color: var(--muted) !important; line-height: 1.4; margin-top: 2px; }
.fx-nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fx-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  color: var(--text-2) !important; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: all .2s; text-decoration: none !important; font-size: .95rem; padding: 0;
}
.fx-icon-btn:hover { color: #fff !important; border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 0 18px rgba(153, 0, 204, .3); }
.fx-dot-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--grad-bright); color: #fff; font-size: .66rem; font-weight: 700; display: none; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(192, 38, 211, .7);
}
.fx-burger { display: none; }
.fx-kbd { font-family: var(--font-mono); font-size: .7rem; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.fx-search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.fx-search-trigger:hover { border-color: var(--line-2); color: var(--text); }

/* Mobile drawer (public) */
.fx-drawer {
  position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none;
}
.fx-drawer.is-open { visibility: visible; pointer-events: auto; }
.fx-drawer__scrim { position: absolute; inset: 0; background: rgba(4, 2, 10, .7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.fx-drawer.is-open .fx-drawer__scrim { opacity: 1; }
.fx-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: linear-gradient(180deg, #120a22, #0a0614); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; font-family: var(--font);
}
.fx-drawer.is-open .fx-drawer__panel { transform: none; }
.fx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fx-drawer__body { flex: 1; overflow-y: auto; padding: 12px; }
.fx-drawer__foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.fx-acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 12px; border-radius: 12px; background: none; border: 0; color: var(--text) !important;
  font-size: .98rem; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none !important;
}
.fx-acc__btn:hover { background: var(--surface); }
.fx-acc__btn .fa-chevron-down { font-size: .7rem; transition: transform .25s; color: var(--muted); }
.fx-acc.is-open .fx-acc__btn .fa-chevron-down { transform: rotate(180deg); }
.fx-acc__panel { display: none; padding: 2px 0 8px 12px; }
.fx-acc.is-open .fx-acc__panel { display: block; }
.fx-acc__panel a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2) !important; font-size: .9rem; text-decoration: none !important;
}
.fx-acc__panel a:hover { background: var(--surface); color: #fff !important; }
.fx-acc__panel a i { width: 18px; color: var(--neon); font-size: .85rem; }

@media (max-width: 1100px) {
  .fx-menu, .fx-search-trigger .fx-hide-lg { display: none; }
  .fx-burger { display: inline-grid; }
  .fx-nav__in { justify-content: space-between; }
}
@media (max-width: 520px) {
  .fx-nav__actions .fx-hide-xs { display: none !important; }
  .fx-brand__name { font-size: 1.12rem; }
}

/* 5. FOOTER ================================================================ */
.fx-footer {
  position: relative; margin-top: 80px; padding: 64px 0 24px; font-family: var(--font);
  background: linear-gradient(180deg, transparent, rgba(83, 24, 153, .12)), var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.fx-footer *, .fx-footer *::before { box-sizing: border-box; }
.fx-footer::before {
  content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
}
.fx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.fx-footer h6 { font-family: var(--font-display); color: #fff !important; font-size: .95rem; margin: 0 0 14px; letter-spacing: .02em; }
.fx-footer ul { list-style: none; margin: 0; padding: 0; }
.fx-footer li { margin: 0 0 9px; }
.fx-footer a { color: var(--text-2) !important; font-size: .9rem; text-decoration: none !important; transition: color .2s; }
.fx-footer a:hover { color: #fff !important; }
.fx-footer p { color: var(--muted) !important; font-size: .9rem; max-width: 340px; margin: 14px 0 18px; }
.fx-footer__social { display: flex; gap: 8px; }
.fx-footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted);
}
@media (max-width: 900px) { .fx-footer__grid { grid-template-columns: 1fr 1fr; } .fx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .fx-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* 6. BUTTONS =============================================================== */
.fx-btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg) !important; font-family: var(--font); font-size: .92rem; font-weight: 600;
  line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none !important; overflow: hidden;
  transition: transform .15s var(--ease), box-shadow .25s, background .25s, border-color .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.fx-btn:hover { transform: translateY(-1px); border-color: var(--neon); }
.fx-btn:active { transform: translateY(0) scale(.98); }
.fx-btn:disabled, .fx-btn.is-disabled { opacity: .5; pointer-events: none; }
.fx-btn--primary { --b-bg: var(--grad); --b-fg: #fff; --b-bd: rgba(255,255,255,.14); box-shadow: 0 8px 26px -8px rgba(153, 0, 204, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.fx-btn--primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .6s var(--ease);
}
.fx-btn--primary:hover { box-shadow: 0 12px 34px -8px rgba(192, 38, 211, .85), inset 0 1px 0 rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.fx-btn--primary:hover::after { left: 140%; }
.fx-btn--ghost { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--text-2); }
.fx-btn--ghost:hover { --b-bg: var(--surface-2); --b-fg: #fff; border-color: transparent; }
.fx-btn--outline { --b-bg: transparent; --b-bd: var(--line-2); }
.fx-btn--light { --b-bg: #fff; --b-fg: #2a0f4f; --b-bd: #fff; }
.fx-btn--danger { --b-bg: rgba(251, 90, 122, .12); --b-fg: #ff8aa3; --b-bd: rgba(251, 90, 122, .35); }
.fx-btn--danger:hover { --b-bg: rgba(251, 90, 122, .22); border-color: var(--bad); }
.fx-btn--success { --b-bg: rgba(34, 211, 166, .12); --b-fg: #5eead4; --b-bd: rgba(34, 211, 166, .35); }
.fx-btn--sm { height: 34px; padding: 0 13px; font-size: .82rem; border-radius: 10px; }
.fx-btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.fx-btn--block { width: 100%; }
.fx-btn--icon { width: 40px; padding: 0; }
.fx-btn.fx-btn--sm.fx-btn--icon { width: 34px; }
.fx-link { color: var(--neon) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fx-link:hover { color: #fff !important; }
.fx-link i { transition: transform .2s; }
.fx-link:hover i { transform: translateX(3px); }

/* 7. FORMS ================================================================= */
body.fx label, .fx-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin: 0 0 7px; }
body.fx input[type=text], body.fx input[type=email], body.fx input[type=password], body.fx input[type=number],
body.fx input[type=tel], body.fx input[type=url], body.fx input[type=search], body.fx input[type=date],
body.fx input[type=datetime-local], body.fx input[type=time], body.fx input[type=month], body.fx input:not([type]),
body.fx select, body.fx textarea, .fx-input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--font); font-size: .95rem; line-height: 1.4; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
body.fx textarea { min-height: 120px; resize: vertical; }
body.fx select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
body.fx select[multiple] { background-image: none; padding-right: 14px; min-height: 120px; }
body.fx select option { background: var(--surface-solid); color: var(--text); }
body.fx input::placeholder, body.fx textarea::placeholder { color: var(--muted); opacity: .8; }
body.fx input:focus, body.fx select:focus, body.fx textarea:focus, .fx-input:focus {
  border-color: var(--glow); background: rgba(153, 0, 204, .07);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .16), 0 0 24px -6px rgba(168, 85, 247, .6);
}
body.fx input[type=date]::-webkit-calendar-picker-indicator,
body.fx input[type=datetime-local]::-webkit-calendar-picker-indicator,
body.fx input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
body.fx input[type=checkbox], body.fx input[type=radio] {
  width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #9900cc; cursor: pointer; vertical-align: middle;
}
body.fx input[type=file] {
  width: 100%; padding: 10px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface);
  color: var(--text-2); font-size: .88rem; cursor: pointer;
}
body.fx input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 9px; border: 0; background: var(--grad); color: #fff; font-weight: 600; cursor: pointer;
}
body.fx input[type=range] { width: 100%; accent-color: #9900cc; }
.fx-field { margin-bottom: 18px; }
.fx-field--inline { display: flex; align-items: center; gap: 10px; }
.fx-field--inline label { margin: 0; font-weight: 500; color: var(--text-2); }
.fx-help, body.fx .helptext { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.fx-error, body.fx .errorlist { color: #ff8aa3; font-size: .82rem; margin: 6px 0 0; padding: 0; list-style: none; }
body.fx .errorlist li { margin: 0; }
.fx-field.has-error input, .fx-field.has-error select, .fx-field.has-error textarea { border-color: rgba(251, 90, 122, .6); }
.fx-input-group { position: relative; }
.fx-input-group > i:first-child { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .9rem; }
.fx-input-group > i:first-child ~ input, .fx-input-group > i:first-child ~ select { padding-left: 42px; }
.fx-input-group .fx-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.fx-input-group .fx-eye:hover { color: #fff; background: var(--surface-2); }
.fx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fx-form-grid .fx-span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .fx-form-grid { grid-template-columns: 1fr; } }
/* Auto-style django {{ form.as_p }} output inside .fx-form */
.fx-form p { margin: 0 0 18px; color: var(--text); }
.fx-form p label { margin-bottom: 7px; }
.fx-form p input[type=checkbox] + label, .fx-form p label + input[type=checkbox] { display: inline; margin-left: 8px; }
.fx-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: all .2s; }
.fx-choice:hover { border-color: var(--line-2); }
.fx-choice:has(input:checked) { border-color: var(--glow); background: rgba(153, 0, 204, .1); box-shadow: 0 0 0 3px rgba(168, 85, 247, .12); }

/* Segmented role picker */
.fx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fx-seg label {
  margin: 0; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); transition: all .2s; font-weight: 500;
}
.fx-seg label i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--neon); }
.fx-seg label b { display: block; font-size: .92rem; }
.fx-seg label small { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.fx-seg input:checked + label { border-color: var(--glow); background: rgba(153, 0, 204, .12); box-shadow: 0 0 0 3px rgba(168, 85, 247, .15), 0 0 30px -10px rgba(192, 38, 211, .7); }
.fx-seg input:checked + label i { background: var(--grad); color: #fff; }
@media (max-width: 420px) { .fx-seg { grid-template-columns: 1fr; } }

/* 8. CARDS & SURFACES ====================================================== */
.fx-card {
  position: relative; border-radius: var(--r-lg); padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fx-card--pad-sm { padding: 16px; }
.fx-card--flush { padding: 0; overflow: hidden; }
.fx-card--hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.fx-card--hover:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-glow); }
.fx-card--glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(199,125,255,.8), transparent 40%, transparent 60%, rgba(153,0,204,.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.fx-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fx-card__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.fx-card__title i { color: var(--neon); }
.fx-card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fx-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-solid-2); overflow: hidden; }
.fx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fx-card--hover:hover .fx-media img { transform: scale(1.05); }
.fx-media__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--neon); font-size: 2rem; background: radial-gradient(circle at 30% 20%, rgba(153,0,204,.35), transparent 60%), var(--surface-solid-2); }
.fx-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(83,24,153,.5), rgba(153,0,204,.25)); border: 1px solid var(--line-2);
  color: #e9d5ff; font-size: 1.1rem; box-shadow: inset 0 0 20px rgba(199,125,255,.15);
}
.fx-icon--sm { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.fx-icon--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 1.4rem; }
.fx-icon--ok { background: rgba(34,211,166,.12); color: #5eead4; border-color: rgba(34,211,166,.3); }
.fx-icon--warn { background: rgba(251,191,36,.12); color: #fcd34d; border-color: rgba(251,191,36,.3); }
.fx-icon--bad { background: rgba(251,90,122,.12); color: #ff8aa3; border-color: rgba(251,90,122,.3); }
.fx-icon--info { background: rgba(56,189,248,.12); color: #7dd3fc; border-color: rgba(56,189,248,.3); }
.fx-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--grad); display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; border: 2px solid rgba(199,125,255,.35); overflow: hidden; }
.fx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fx-avatar--sm { width: 30px; height: 30px; font-size: .72rem; }
.fx-avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.fx-avatar--xl { width: 104px; height: 104px; font-size: 2rem; border-width: 3px; }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-list > li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fx-list > li:last-child { border-bottom: 0; }
.fx-divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* 9. SECTIONS / HERO ======================================================= */
.fx-section { padding: 90px 0; position: relative; }
.fx-section--sm { padding: 56px 0; }
.fx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(153, 0, 204, .12); border: 1px solid var(--line-2); color: #e9d5ff;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.fx-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: fxPulse 2s infinite; }
.fx-grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.fx-lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 640px; }
.fx-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.fx-head .fx-lead { margin: 0 auto; }
.fx-head--left { margin-left: 0; text-align: left; }
.fx-hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.fx-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fx-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; margin-bottom: 22px; }
.fx-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fx-hero__trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.fx-hero__trust b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.fx-hero__trust span { font-size: .82rem; color: var(--muted); }
.fx-page-hero { padding: 72px 0 40px; text-align: center; position: relative; }
.fx-page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.fx-page-hero .fx-lead { margin: 0 auto; }
.fx-crumbs { display: flex; justify-content: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.fx-crumbs a { color: var(--text-2) !important; }
.fx-orbit { position: relative; aspect-ratio: 1; max-width: 480px; margin-left: auto; width: 100%; }
.fx-orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.fx-orbit__ring:nth-child(2) { inset: 12%; border-style: dashed; animation: fxSpin 40s linear infinite; }
.fx-orbit__ring:nth-child(3) { inset: 26%; border-color: rgba(199,125,255,.35); animation: fxSpin 26s linear infinite reverse; }
.fx-orbit__core {
  position: absolute; inset: 34%; border-radius: 32%; display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 0 80px rgba(153, 0, 204, .7), inset 0 0 30px rgba(255,255,255,.2);
  animation: fxFloat 6s ease-in-out infinite;
}
.fx-orbit__core img { width: 58%; }
.fx-orbit__chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(18, 11, 34, .85); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: var(--shadow);
  animation: fxFloat 7s ease-in-out infinite;
}
.fx-orbit__chip i { color: var(--neon); }
.fx-orbit__chip:nth-child(5) { top: 6%; left: 2%; }
.fx-orbit__chip:nth-child(6) { top: 22%; right: -2%; animation-delay: -2s; }
.fx-orbit__chip:nth-child(7) { bottom: 18%; left: -4%; animation-delay: -4s; }
.fx-orbit__chip:nth-child(8) { bottom: 4%; right: 8%; animation-delay: -1s; }
@media (max-width: 960px) {
  .fx-hero__grid { grid-template-columns: 1fr; }
  .fx-orbit { max-width: 360px; margin: 10px auto 0; }
  .fx-hero { padding: 48px 0 30px; }
  .fx-section { padding: 64px 0; }
}
@media (max-width: 480px) { .fx-orbit__chip { font-size: .72rem; padding: 7px 10px; } }
.fx-feature { height: 100%; }
.fx-feature h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.fx-feature p { font-size: .92rem; margin: 0; }
.fx-feature ul { margin: 14px 0 0; padding: 0; list-style: none; }
.fx-feature li { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; margin-bottom: 6px; color: var(--text-2); }
.fx-feature li::before { content: "▹"; color: var(--neon); }
.fx-cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px 40px; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(199,125,255,.35), transparent 70%), var(--grad);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(153, 0, 204, .7);
}
.fx-cta h2 { color: #fff; }
.fx-cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 26px; }
.fx-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 100%); -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 100%);
}
.fx-cta > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .fx-cta { padding: 40px 20px; } }
.fx-prose { color: var(--text-2); font-size: 1rem; line-height: 1.8; }
.fx-prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.fx-prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.fx-prose h2:first-child, .fx-prose h3:first-child { margin-top: 0; }
.fx-prose li { margin-bottom: .4em; }
.fx-marquee { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .84rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2) !important; text-decoration: none !important; transition: all .2s;
}
a.fx-chip:hover { border-color: var(--neon); color: #fff !important; }
.fx-chip i { color: var(--neon); }
.fx-steps { counter-reset: step; }
.fx-step { position: relative; padding-left: 64px; }
.fx-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 0 24px rgba(153,0,204,.5);
}
.fx-step h4 { margin: 4px 0 6px; }
.fx-faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; transition: border-color .2s; }
.fx-faq details[open] { border-color: var(--line-2); background: rgba(153,0,204,.06); }
.fx-faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: #fff; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--neon); transition: transform .25s; line-height: 1; }
.fx-faq details[open] summary::after { transform: rotate(45deg); }
.fx-faq details > div { padding: 0 20px 18px; color: var(--text-2); }

/* 10. STATS & DATA ========================================================= */
.fx-stat {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.fx-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fx-stat::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(153,0,204,.35), transparent 70%); pointer-events: none;
}
.fx-stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fx-stat__label { font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fx-stat__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.fx-stat__value small { font-size: .95rem; color: var(--text-2); margin-left: 2px; }
.fx-stat__meta { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.fx-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.fx-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-bright); box-shadow: 0 0 12px rgba(192,38,211,.7); }
.fx-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.fx-empty .fx-icon { margin: 0 auto 16px; }
.fx-empty h4 { color: #fff; margin-bottom: 6px; }
.fx-empty p { max-width: 380px; margin: 0 auto 18px; font-size: .9rem; }
.fx-kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: .9rem; }
.fx-kv dt { color: var(--muted); }
.fx-kv dd { margin: 0; color: var(--text); text-align: right; word-break: break-word; }
.fx-timeline { position: relative; padding-left: 24px; }
.fx-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--glow), transparent); }
.fx-timeline > * { position: relative; margin-bottom: 18px; }
.fx-timeline > *::before { content: ""; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--neon); box-shadow: 0 0 10px var(--neon); }

/* 11. TABLES =============================================================== */
.fx-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); }
.fx-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.fx-table th {
  text-align: left; padding: 13px 16px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.fx-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table tbody tr { transition: background .2s; }
.fx-table tbody tr:hover { background: rgba(153, 0, 204, .06); }
.fx-table .fx-num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .fx-table--cards { min-width: 0; }
  .fx-table--cards thead { display: none; }
  .fx-table--cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .fx-table--cards td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .fx-table--cards td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
}

/* 12. FEEDBACK ============================================================= */
.fx-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.3;
}
.fx-badge--brand { background: rgba(153,0,204,.16); color: #e9d5ff; border-color: rgba(199,125,255,.35); }
.fx-badge--ok { background: rgba(34,211,166,.12); color: #5eead4; border-color: rgba(34,211,166,.3); }
.fx-badge--warn { background: rgba(251,191,36,.12); color: #fcd34d; border-color: rgba(251,191,36,.3); }
.fx-badge--bad { background: rgba(251,90,122,.12); color: #ff8aa3; border-color: rgba(251,90,122,.3); }
.fx-badge--info { background: rgba(56,189,248,.12); color: #7dd3fc; border-color: rgba(56,189,248,.3); }
.fx-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fx-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: .9rem; color: var(--text); margin-bottom: 16px; }
.fx-alert > i { margin-top: 3px; }
.fx-alert--ok { border-color: rgba(34,211,166,.35); background: rgba(34,211,166,.08); } .fx-alert--ok > i { color: var(--ok); }
.fx-alert--warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); } .fx-alert--warn > i { color: var(--warn); }
.fx-alert--bad { border-color: rgba(251,90,122,.35); background: rgba(251,90,122,.08); } .fx-alert--bad > i { color: var(--bad); }
.fx-alert--info { border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.08); } .fx-alert--info > i { color: var(--info); }
.fx-toasts {
  position: fixed; z-index: 3000; top: calc(var(--nav-h) + 12px); right: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px));
  font-family: var(--font);
}
.fx-toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: 14px;
  background: rgba(18, 11, 34, .95); border: 1px solid var(--line-2); color: var(--text); font-size: .9rem; line-height: 1.45;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); backdrop-filter: blur(14px);
  animation: fxToastIn .45s var(--ease) both; position: relative; overflow: hidden;
}
.fx-toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .5; transform-origin: left; animation: fxToastBar 6s linear forwards; }
.fx-toast > i { margin-top: 2px; }
.fx-toast--success { color: #5eead4; } .fx-toast--error { color: #ff8aa3; } .fx-toast--warning { color: #fcd34d; } .fx-toast--info, .fx-toast--debug { color: #d8b4fe; }
.fx-toast__msg { flex: 1; color: var(--text); }
.fx-toast__x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 1rem; line-height: 1; }
.fx-toast__x:hover { color: #fff; }
.fx-toast.is-out { animation: fxToastOut .35s var(--ease) forwards; }
body.fx-appmode .fx-toasts { top: 76px; }

/* Tabs */
.fx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tab {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 10px; border: 0; background: none; color: var(--text-2) !important;
  font: 600 .86rem var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: all .2s;
}
.fx-tab:hover { color: #fff !important; }
.fx-tab.is-active { background: var(--grad); color: #fff !important; box-shadow: 0 6px 18px -6px rgba(153,0,204,.8); }
.fx-tabpanel { display: none; }
.fx-tabpanel.is-active { display: block; animation: fxFade .3s ease; }

/* Pagination */
.fx-pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.fx-pager a, .fx-pager span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; display: inline-grid; place-items: center; font-size: .88rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2) !important; text-decoration: none !important;
}
.fx-pager a:hover { border-color: var(--neon); color: #fff !important; }
.fx-pager .is-current { background: var(--grad); color: #fff !important; border-color: transparent; }

/* 13. OVERLAYS ============================================================= */
.fx-modal { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; padding: 16px; font-family: var(--font); }
.fx-modal.is-open { display: flex; }
.fx-modal__scrim { position: absolute; inset: 0; background: rgba(4, 2, 10, .75); backdrop-filter: blur(6px); animation: fxFade .25s ease; }
.fx-modal__box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  border-radius: var(--r-lg); padding: 26px; background: linear-gradient(180deg, #170d2b, #0e0819);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(153,0,204,.6);
  animation: fxPop .3s var(--ease);
}
.fx-modal__box--lg { max-width: 760px; }
.fx-modal__close { position: absolute; top: 14px; right: 14px; }
.fx-menu-pop { position: relative; display: inline-block; }
.fx-menu-pop__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 14px; z-index: 1200;
  background: rgba(18, 11, 34, .98); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(0,0,0,.85);
  display: none; font-family: var(--font);
}
.fx-menu-pop.is-open .fx-menu-pop__list { display: block; animation: fxPop .2s var(--ease); }
.fx-menu-pop__list a, .fx-menu-pop__list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--text-2) !important; font: 500 .88rem var(--font); text-decoration: none !important; cursor: pointer; text-align: left;
}
.fx-menu-pop__list a:hover, .fx-menu-pop__list button:hover { background: var(--surface-2); color: #fff !important; }
.fx-menu-pop__list i { width: 16px; color: var(--neon); }
.fx-menu-pop__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.fx-menu-pop__head b { display: block; color: #fff; font-size: .92rem; }
.fx-menu-pop__head span { font-size: .78rem; color: var(--muted); word-break: break-all; }

/* Command palette */
.fx-cmd .fx-modal__box { padding: 0; max-width: 620px; align-self: flex-start; margin-top: 10vh; }
.fx-cmd__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fx-cmd__input i { color: var(--neon); }
.fx-cmd__input input { flex: 1; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; font-size: 1.02rem !important; color: #fff; outline: none; font-family: var(--font); }
.fx-cmd__results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.fx-cmd__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text) !important; text-decoration: none !important; }
.fx-cmd__item:hover, .fx-cmd__item.is-sel { background: rgba(153,0,204,.14); }
.fx-cmd__item b { display: block; font-size: .92rem; color: #fff; font-weight: 600; }
.fx-cmd__item small { display: block; font-size: .78rem; color: var(--muted); }
.fx-cmd__cat { margin-left: auto; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.fx-cmd__empty { padding: 28px; text-align: center; color: var(--muted); font-size: .9rem; }

/* 14. DASHBOARD SHELL ====================================================== */
.fx-app { display: flex; min-height: 100vh; }
.fx-side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050; width: var(--side-w);
  display: flex; flex-direction: column; font-family: var(--font);
  background: linear-gradient(180deg, rgba(20, 11, 38, .96), rgba(10, 6, 20, .98));
  border-right: 1px solid var(--line);
  transition: width .3s var(--ease), transform .35s var(--ease);
}
.fx-side::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(199,125,255,.55), transparent);
}
.fx-side *, .fx-side *::before { box-sizing: border-box; }
.fx-side__head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.fx-side__user {
  margin: 14px 14px 6px; padding: 12px; border-radius: 14px; display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, rgba(83,24,153,.35), rgba(153,0,204,.12)); border: 1px solid var(--line-2);
}
.fx-side__user > div > b { display: block; color: #fff; font-size: .9rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side__user > div > span { display: block; font-size: .74rem; color: var(--neon); text-transform: capitalize; }
.fx-side__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(199,125,255,.25) transparent; }
.fx-side__nav::-webkit-scrollbar { width: 5px; }
.fx-side__nav::-webkit-scrollbar-thumb { background: rgba(199,125,255,.25); border-radius: 4px; }
.fx-side__label { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; padding: 16px 10px 8px; white-space: nowrap; }
.fx-side__link, .fx-side__grp > button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 11px; margin-bottom: 2px;
  color: var(--text-2) !important; font: 500 .89rem var(--font); text-decoration: none !important; background: none; border: 0; cursor: pointer; text-align: left;
  transition: background .2s, color .2s; white-space: nowrap;
}
.fx-side__link i, .fx-side__grp > button > i:first-child { width: 20px; text-align: center; font-size: .92rem; color: var(--muted); transition: color .2s; flex-shrink: 0; }
.fx-side__link:hover, .fx-side__grp > button:hover { background: var(--surface-2); color: #fff !important; }
.fx-side__link:hover i, .fx-side__grp > button:hover > i:first-child { color: var(--neon); }
.fx-side__link.is-active { color: #fff !important; background: linear-gradient(90deg, rgba(153,0,204,.35), rgba(83,24,153,.12)); box-shadow: inset 0 0 0 1px rgba(199,125,255,.25); }
.fx-side__link.is-active i { color: #fff; }
.fx-side__link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.fx-side__grp > button .fx-caret { margin-left: auto; font-size: .62rem; color: var(--muted); transition: transform .25s; }
.fx-side__grp.is-open > button .fx-caret { transform: rotate(90deg); }
.fx-side__grp.is-open > button { color: #fff !important; }
.fx-side__sub { display: none; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.fx-side__grp.is-open .fx-side__sub { display: block; }
.fx-side__sub .fx-side__link { padding: 8px 10px; font-size: .85rem; }
.fx-side__sub .fx-side__link.is-active::before { left: -13px; }
.fx-side__tag { margin-left: auto; font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--grad-bright); color: #fff; letter-spacing: .05em; }
.fx-side__foot { padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.fx-main { flex: 1; min-width: 0; margin-left: var(--side-w); transition: margin-left .3s var(--ease); display: flex; flex-direction: column; min-height: 100vh; }
.fx-top {
  position: sticky; top: 0; z-index: 900; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(7, 4, 15, .78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line); font-family: var(--font);
}
.fx-top__title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fx-top .fx-search-trigger { min-width: 240px; }
.fx-content { flex: 1; padding: 28px 24px 48px; width: 100%; max-width: 1400px; margin: 0 auto; }
.fx-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fx-pagehead h1 { font-size: clamp(1.5rem, 3vw, 2rem) !important; margin: 0 0 4px !important; }
.fx-pagehead p { margin: 0; color: var(--muted); font-size: .92rem; }
.fx-welcome {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; margin-bottom: 24px;
  background: radial-gradient(500px 240px at 100% 0%, rgba(199,125,255,.35), transparent 70%), linear-gradient(135deg, rgba(83,24,153,.7), rgba(128,0,128,.45) 60%, rgba(153,0,204,.35));
  border: 1px solid rgba(199,125,255,.3); box-shadow: 0 30px 60px -30px rgba(153,0,204,.8);
}
.fx-welcome::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.fx-welcome > * { position: relative; z-index: 1; }
.fx-welcome h1, .fx-welcome h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.fx-welcome p { color: rgba(255,255,255,.8); margin: 0; }
.fx-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fx-quick a {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text) !important; text-decoration: none !important; font-weight: 600; font-size: .88rem; transition: all .25s var(--ease);
}
.fx-quick a:hover { border-color: var(--line-2); background: rgba(153,0,204,.08); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.fx-quick a small { font-weight: 400; color: var(--muted); font-size: .76rem; margin-top: -8px; }
.fx-scrim { position: fixed; inset: 0; z-index: 1040; background: rgba(4, 2, 10, .7); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.fx-app-toggle { display: none; }

/* Collapsed (desktop) */
@media (min-width: 1025px) {
  html.fx-side-min .fx-side { width: var(--side-w-min); }
  html.fx-side-min .fx-main { margin-left: var(--side-w-min); }
  html.fx-side-min .fx-side .fx-brand__name,
  html.fx-side-min .fx-side__label,
  html.fx-side-min .fx-side__user > div,
  html.fx-side-min .fx-side__link span,
  html.fx-side-min .fx-side__grp > button span,
  html.fx-side-min .fx-side__grp > button .fx-caret,
  html.fx-side-min .fx-side__tag,
  html.fx-side-min .fx-side__sub { display: none !important; }
  html.fx-side-min .fx-side__head { justify-content: center; padding: 0; }
  html.fx-side-min .fx-side__head .fx-side-close-d { display: none; }
  html.fx-side-min .fx-side__user { justify-content: center; padding: 10px 0; margin: 14px 12px 6px; }
  html.fx-side-min .fx-side__link, html.fx-side-min .fx-side__grp > button { justify-content: center; padding: 12px 0; }
  html.fx-side-min .fx-side__label { display: block !important; height: 1px; padding: 0; margin: 12px 8px; background: var(--line); font-size: 0; }
  .fx-side-close-m { display: none !important; }
}
/* Mobile drawer */
@media (max-width: 1024px) {
  .fx-side { transform: translateX(-102%); width: min(300px, 86vw); box-shadow: 30px 0 60px -20px rgba(0,0,0,.8); }
  .fx-main { margin-left: 0; }
  html.fx-side-open .fx-side { transform: none; }
  html.fx-side-open .fx-scrim { opacity: 1; visibility: visible; }
  html.fx-side-open body { overflow: hidden; }
  .fx-side-close-d { display: none !important; }
  .fx-top { padding: 0 14px; }
  .fx-top .fx-search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .fx-top .fx-search-trigger .fx-hide-lg { display: none; }
  .fx-content { padding: 20px 16px 40px; }
}
@media (max-width: 480px) {
  .fx-welcome { padding: 22px 18px; border-radius: 22px; }
  .fx-top__actions .fx-hide-xs { display: none !important; }
}

/* 15. AUTH LAYOUT ========================================================== */
.fx-auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.fx-auth__art {
  position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(600px 400px at 20% 10%, rgba(199,125,255,.35), transparent 60%), linear-gradient(160deg, #2a0c52 0%, #531899 45%, #800080 80%, #9900cc 100%);
  border-right: 1px solid rgba(199,125,255,.3);
}
.fx-auth__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.fx-auth__art > * { position: relative; z-index: 1; }
.fx-auth__art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.fx-auth__art p { color: rgba(255,255,255,.8); max-width: 440px; }
.fx-auth__mark { width: 140px; opacity: .95; filter: drop-shadow(0 0 30px rgba(255,255,255,.35)); animation: fxFloat 7s ease-in-out infinite; }
.fx-auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.fx-auth__points li { display: flex; align-items: center; gap: 12px; color: #fff; font-size: .92rem; }
.fx-auth__points i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; }
.fx-auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.fx-auth__box { width: 100%; max-width: 440px; }
.fx-auth__box--wide { max-width: 560px; }
.fx-auth__box h1 { font-size: clamp(1.7rem, 3vw, 2.2rem) !important; margin-bottom: 8px; }
.fx-auth__sub { color: var(--muted); margin-bottom: 28px; }
.fx-auth__alt { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.fx-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 20px 0; text-transform: uppercase; letter-spacing: .1em; }
.fx-or::before, .fx-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 960px) {
  .fx-auth { grid-template-columns: 1fr; }
  .fx-auth__art { display: none; }
  .fx-auth__form { padding: 36px 16px 56px; align-items: flex-start; }
}
.fx-status { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 48px 16px; }
.fx-status__box { max-width: 520px; width: 100%; text-align: center; }
.fx-status__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(192,38,211,.5)); }

/* UTILITIES ================================================================ */
.fx-muted { color: var(--muted) !important; }
.fx-text-2 { color: var(--text-2) !important; }
.fx-white { color: #fff !important; }
.fx-ok { color: var(--ok) !important; } .fx-bad { color: var(--bad) !important; } .fx-warn { color: var(--warn) !important; }
.fx-neon { color: var(--neon) !important; }
.fx-mono { font-family: var(--font-mono); }
.fx-small { font-size: .84rem; }
.fx-xs { font-size: .76rem; }
.fx-bold { font-weight: 700; }
.fx-nowrap { white-space: nowrap; }
.fx-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-m0 { margin: 0 !important; }
.fx-mt-1 { margin-top: 8px !important; } .fx-mt-2 { margin-top: 16px !important; } .fx-mt-3 { margin-top: 24px !important; } .fx-mt-4 { margin-top: 36px !important; }
.fx-mb-1 { margin-bottom: 8px !important; } .fx-mb-2 { margin-bottom: 16px !important; } .fx-mb-3 { margin-bottom: 24px !important; } .fx-mb-4 { margin-bottom: 36px !important; }
.fx-w-100 { width: 100%; }
.fx-hidden { display: none !important; }
@media (max-width: 640px) { .fx-hide-sm { display: none !important; } }
@media (min-width: 641px) { .fx-show-sm { display: none !important; } }
.fx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-js .fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fx-js .fx-reveal.is-in { opacity: 1; transform: none; }

/* KEYFRAMES ================================================================ */
@keyframes fxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fxToastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes fxToastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes fxToastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fx-reveal { opacity: 1; transform: none; }
}

/* LEGACY BRIDGE: keep old pages readable under the new shell until redesigned */
body.fx-legacy { background: #f7f5fb !important; }
body.fx-legacy .fx-footer { margin-top: 60px; }
body.fx-legacy .fx-nav { background: #0b0616; }

/* FOCUS (exam-taking) LAYOUT =============================================== */
.fx-focus-top { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 20px; background: rgba(7,4,15,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.fx-focus-top__title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-focus-top__right { display: flex; align-items: center; gap: 10px; }
.fx-focus { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
.fx-timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: #fff; background: rgba(153,0,204,.16); border: 1px solid var(--line-2); box-shadow: 0 0 20px -6px rgba(192,38,211,.7); }
.fx-timer.is-low { color: #ff8aa3; border-color: rgba(251,90,122,.5); background: rgba(251,90,122,.12); animation: fxPulse 1s infinite; }
.fx-q-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.fx-q-text { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.7rem); color: #fff; line-height: 1.35; margin: 0 0 24px; }
.fx-options { display: grid; gap: 12px; }
.fx-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; cursor: pointer; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); transition: all .2s var(--ease); color: var(--text); font-size: 1rem; margin: 0 !important; font-weight: 500 !important; }
.fx-option:hover { border-color: var(--neon); background: rgba(153,0,204,.08); }
.fx-option input { position: absolute; opacity: 0; pointer-events: none; }
.fx-option__key { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; background: var(--surface-2); color: var(--neon); border: 1px solid var(--line-2); transition: all .2s; }
.fx-option:has(input:checked) { border-color: var(--glow); background: rgba(153,0,204,.16); box-shadow: 0 0 0 3px rgba(168,85,247,.16), 0 0 30px -10px rgba(192,38,211,.8); }
.fx-option:has(input:checked) .fx-option__key { background: var(--grad); color: #fff; border-color: transparent; }
.fx-option img { max-height: 160px; border-radius: 10px; }

.fx-scroll-x { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-scroll-x > table { min-width: 100%; }

/* 30. WORKSPACES / SAAS ==================================================== */
.fx-ws > button { padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); }
.fx-ws__logo { --ws: #9900cc; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--ws), #531899); color: #fff; font: 700 .85rem var(--font-display); }
.fx-ws__logo img { width: 100%; height: 100%; object-fit: cover; }
.fx-ws__name { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.fx-ws__name b { color: #fff; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.fx-ws__name small { color: var(--neon); font-size: .7rem; }
.fx-ws .fx-side__sub form { margin: 0; }
.fx-ws .fx-side__sub button.fx-side__link { justify-content: space-between; }
.fx-org-card { display: flex; gap: 14px; align-items: center; }
.fx-org-card .fx-ws__logo { width: 46px; height: 46px; border-radius: 13px; font-size: 1.1rem; }
.fx-org-card__body { min-width: 0; flex: 1; }
.fx-org-card__body b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-org-card__body span { font-size: .8rem; color: var(--muted); }
.fx-plan { position: relative; display: flex; flex-direction: column; gap: 14px; }
.fx-plan--pop { border-color: var(--glow) !important; box-shadow: 0 0 0 1px rgba(168,85,247,.35), 0 30px 80px -40px rgba(192,38,211,.8); }
.fx-plan__price { font: 700 2.4rem/1 var(--font-display); color: #fff; }
.fx-plan__price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.fx-plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.fx-plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-2); }
.fx-plan li i { color: var(--neon); margin-top: 3px; }
.fx-plan__cta { margin-top: auto; }
.fx-plan__ribbon { position: absolute; top: 14px; right: 14px; }
[data-interval="year"] .fx-price-m, [data-interval="month"] .fx-price-y { display: none; }
.fx-portal-hero { text-align: center; }
.fx-portal-hero .fx-ws__logo { width: 76px; height: 76px; border-radius: 22px; font-size: 2rem; margin: 0 auto 18px; }
.fx-inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fx-inline-form select, .fx-inline-form input { width: auto; min-width: 0; }
.fx-card__head { flex-wrap: wrap; }
.fx-inline-form input[type=search] { max-width: 200px; padding-top: 8px; padding-bottom: 8px; }
.fx-inline-form select { padding-top: 7px; padding-bottom: 7px; }
