/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* FX5 brand ? theme tokens */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-row: #f0f4fa;
  --bg-soft: #f8fafc;
  --bg-alt: #eff6ff;
  --bg-input: #ffffff;
  --border: #cbd5e1;
  --border-soft: #e5e7eb;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-pressed: #1d4ed8;
  --accent-2: #00c389;
  --accent-dim: rgba(37, 99, 235, 0.12);
  --ok: #16a34a;
  --warn: #f6b21d;
  --danger: #dc2626;
  --on-accent: #ffffff;
  --sidebar: #ffffff;
  --sidebar-active: #2563eb;
  --sidebar-hover: #eff6ff;
  --topbar: linear-gradient(90deg, #071431 0%, #0b2b3a 55%, #1d4ed8 100%);
  --topbar-solid: #071431;
  --topbar-text: #ffffff;
  --topbar-muted: rgba(217, 238, 245, 0.88);
  --table-hover: #eff6ff;
  --table-head: #f1f5f9;
  --badge-bg: #f8fafc;
  --viewer-bg: #eef2ff;
  --icon-teal: #00c389;
  --icon-blue: #2563eb;
  --icon-indigo: #7c5cff;
  --icon-slate: #64748b;
  --icon-green: #16a34a;
  --icon-violet: #7c5cff;
  --icon-amber: #f6b21d;
  --icon-rose: #dc2626;
  --font: "Mulish", "Inter", system-ui, sans-serif;
  --font-display: "Syne", "Mulish", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(6, 12, 24, 0.04);
  --shadow-card: 0 12px 36px rgba(2, 6, 23, 0.06);
  --toast-bg: #0f172a;
  --toast-text: #f4f7fb;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-elev: #111827;
  --bg-row: #0f172a;
  --bg-soft: #0f172a;
  --bg-alt: #1e293b;
  --bg-input: #0f172a;
  --border: #374151;
  --border-soft: #1f2937;
  --text: #f3f4f6;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-pressed: #2563eb;
  --accent-2: #34d399;
  --accent-dim: rgba(59, 130, 246, 0.22);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --on-accent: #ffffff;
  --sidebar: #111827;
  --sidebar-active: #3b82f6;
  --sidebar-hover: #1e293b;
  --topbar: linear-gradient(90deg, #020617 0%, #0b1220 50%, #111827 100%);
  --topbar-solid: #020617;
  --topbar-text: #e5e7eb;
  --topbar-muted: rgba(226, 232, 240, 0.72);
  --table-hover: #1e293b;
  --table-head: #0f172a;
  --badge-bg: #1e293b;
  --viewer-bg: #0f172a;
  --icon-teal: #34d399;
  --icon-blue: #60a5fa;
  --icon-indigo: #a78bfa;
  --icon-slate: #94a3b8;
  --icon-green: #34d399;
  --icon-violet: #a78bfa;
  --icon-amber: #fbbf24;
  --icon-rose: #f87171;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --toast-bg: #f3f4f6;
  --toast-text: #0f172a;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", "Tahoma", "Arial", var(--font);
}
html[dir="rtl"] .fxm-login,
html[dir="rtl"] .fxm-rail,
html[dir="rtl"] .fxm-login-card-chrome,
html[dir="rtl"] .fxm-login-row,
html[dir="rtl"] .fxm-login-trust,
html[dir="rtl"] .fxm-login-rail {
  direction: rtl;
}
html[dir="rtl"] .lang-switch--left .lang-switch-menu {
  left: auto !important;
  right: 0 !important;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0, 120, 215, 0); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes barGrowY {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes countPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg);
}

.portal-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
}

.portal-brand-mark,
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(11, 132, 255, 0.18);
  flex-shrink: 0;
}
.portal-brand-text strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.portal-brand-text strong {
  font-size: 14px;
  color: var(--text);
  font-weight: 650;
}
.portal-brand-text span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 8px;
  flex: 1 1;
  overflow: auto;
}

.nav-group {
  margin: 10px 8px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 650;
}

.portal-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 2px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.portal-nav a:hover {
  background: var(--sidebar-hover);
  text-decoration: none;
}
.portal-nav a.active {
  background: var(--sidebar-active);
  color: var(--on-accent);
}
.portal-nav a.active .ui-icon { stroke: var(--on-accent) !important; }

.portal-side-foot {
  padding: 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elev);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  min-height: 48px;
  background: var(--topbar);
  color: var(--topbar-text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.18);
}
.portal-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--topbar-text);
}
.portal-topbar .page-sub {
  color: var(--topbar-muted);
  margin: 2px 0 0;
  font-size: 11px;
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--topbar-text);
}
.portal-user .muted { color: var(--topbar-muted); }
.portal-user .badge {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.14);
  color: var(--topbar-text);
}
.portal-topbar .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--topbar-text);
}
.portal-topbar .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}
.portal-topbar .btn.ghost .ui-icon { stroke: var(--topbar-text) !important; }

.portal-main {
  flex: 1 1;
  padding: 18px 20px 28px;
  max-width: 1480px;
  width: 100%;
  animation: fadeUp 0.35s ease both;
}

.page-sub {
  color: var(--muted);
  margin: -2px 0 16px;
  font-size: 12px;
}

/* Animated metro tiles / cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 18px;
}

.card, .metro-tile {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.45s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.metro-tile:hover, .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 60, 120, 0.12);
}
.metro-tile::before, .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tile-accent, var(--accent));
}
.metro-tile .tile-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0.9;
}
.card .label, .metro-tile .label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}
.card .value, .metro-tile .value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  animation: countPop 0.4s ease both;
}
.card .hint, .metro-tile .hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.tile-blue { --tile-accent: #0078d7; }
.tile-green { --tile-accent: #10893e; }
.tile-amber { --tile-accent: #ca5010; }
.tile-rose { --tile-accent: #e81123; }
.tile-violet { --tile-accent: #8764b8; }
.tile-gold { --tile-accent: #e6b422; }

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}
.panel-title {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viz-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 16px;
}
.viz-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease both;
  color: var(--text);
}
.viz-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Progress bars */
.progress {
  margin: 0 0 12px;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
}
.progress-track {
  height: 10px;
  background: #e1e1e1;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transform-origin: left center;
  animation: barGrow 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: linear-gradient(90deg, var(--bar-from, var(--accent)), var(--bar-to, var(--accent-hover)));
}
.progress.ok { --bar-from: #0b6b32; --bar-to: #10893e; }
.progress.warn { --bar-from: #a0420c; --bar-to: #ca5010; }
.progress.danger { --bar-from: #b50e1c; --bar-to: #e81123; }
.progress.blue { --bar-from: #005a9e; --bar-to: #0078d7; }
.progress.violet { --bar-from: #5b2c6f; --bar-to: #8764b8; }

/* Vertical bars chart */
.bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 8px;
}
.bars-chart .bar-col {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.bars-chart .bar {
  width: 100%;
  max-width: 36px;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom center;
  animation: barGrowY 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  min-height: 4px;
}
.bars-chart .bar-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.sparkline {
  width: 100%;
  height: 72px;
  display: block;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--bg-elev);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
  color: var(--text);
}
table.data th.align-right,
table.data td.align-right,
table.data td.num { text-align: right; }
table.data th.align-center,
table.data td.align-center { text-align: center; }
table.data th.align-left,
table.data td.align-left { text-align: left; }
table.data th {
  background: var(--table-head);
  color: var(--muted);
  font-weight: 650;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data.zebra tbody tr:nth-child(even) td { background: var(--bg-alt); }
table.data.zebra tbody tr:nth-child(odd) td { background: var(--bg-elev); }
table.data tr:nth-child(even) td { background: var(--bg-alt); }
table.data tr:hover td { background: var(--table-hover); }
table.data td.num { font-family: var(--mono); }
table.data tfoot td {
  background: color-mix(in srgb, var(--table-head) 85%, var(--accent-dim));
  border-top: 2px solid var(--border);
  font-weight: 650;
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
}

.th-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: inherit;
}
.th-sort {
  opacity: 0.45;
  font-size: 10px;
  font-weight: 700;
}
th.align-right .th-btn { justify-content: flex-end; }
th.align-center .th-btn { justify-content: center; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.btn {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: var(--on-accent);
  border: 1px solid transparent;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px var(--accent-dim);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pressed) 100%); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--sidebar-hover); }
.btn.sm { padding: 5px 10px; font-size: 11px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.crypto { background: var(--warn); border-color: var(--warn); color: #fff; }

.input, .select, .textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  min-width: 140px;
  color: var(--text);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.85; }
.select.sm { min-width: 90px; padding: 5px 8px; }
.textarea { min-height: 80px; resize: vertical; width: 100%; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}
.field input, .field select, .field textarea { width: 100%; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-soft);
  background: var(--badge-bg);
  color: var(--text);
}
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--border-soft)); background: color-mix(in srgb, var(--ok) 14%, var(--bg-elev)); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border-soft)); background: color-mix(in srgb, var(--warn) 14%, var(--bg-elev)); }
.badge.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border-soft)); background: color-mix(in srgb, var(--danger) 14%, var(--bg-elev)); }
.badge.neutral { color: var(--muted); }
.badge.crypto { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border-soft)); background: color-mix(in srgb, var(--warn) 14%, var(--bg-elev)); }
.badge.fiat { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-soft)); background: color-mix(in srgb, var(--accent) 14%, var(--bg-elev)); }

.pnl-pos { color: var(--ok); font-weight: 600; }
.pnl-neg { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); }
.err { color: var(--danger); margin: 8px 0; font-size: 12px; }
.ok-text { color: var(--ok); margin: 8px 0; font-size: 12px; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

.hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.hub-dot.live { background: #7CFC00; animation: pulseSoft 1.8s infinite; }
.hub-dot.off { background: #ccc; }

.cell-icon { display: inline-flex; align-items: center; gap: 6px; }
.ui-icon { flex: 0 0 auto; vertical-align: middle; }

.grid-panel { display: flex; flex-direction: column; gap: 10px; }
.grid-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.search-box, .filter-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0 8px;
}
.search-box .input, .filter-box .input {
  border: none;
  box-shadow: none;
  min-width: 160px;
  padding-left: 0;
}
.search-box .input:focus, .filter-box .input:focus { box-shadow: none; }
.grid-count { margin-left: auto; }
.grid-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.seg {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 2px;
  gap: 2px;
  margin-bottom: 14px;
}
.seg button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seg button.active {
  background: var(--accent);
  color: #fff;
}

.address-box {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 2px;
  padding: 10px 12px;
  word-break: break-all;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.qr-box {
  width: 132px;
  height: 132px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(11, 132, 255, 0.28), transparent 55%),
    radial-gradient(700px 480px at 88% 92%, rgba(0, 163, 125, 0.22), transparent 50%),
    linear-gradient(160deg, #071431 0%, #0b2b3a 42%, #f6fbff 42.2%);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(11,132,255,0.08), transparent 35%);
  pointer-events: none;
}
.login-box {
  width: min(440px, 100%);
  background: var(--bg-elev);
  border: 1px solid rgba(11, 132, 255, 0.1);
  border-radius: 16px;
  padding: 28px 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.45s var(--ease) both;
  color: var(--text);
}
.login-theme-row {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 12px;
}
.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b84ff, #00c389);
}
.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.login-box h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.login-box .sub {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.login-foot {
  margin: 14px 0 0;
  font-size: 11px;
  text-align: center;
}
.login-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin: 0 0 18px;
}
.login-tile {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 10px 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: fadeUp 0.5s ease both;
}
.login-tile strong {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 2px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}
.report-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s ease both;
  transition: transform 0.15s ease;
}
.report-card:hover { transform: translateY(-2px); }
.report-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.report-studio {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 960px) {
  .report-studio { grid-template-columns: 1fr; }
}
.report-kind-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-kind {
  text-align: left;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.report-kind:hover { border-color: var(--accent); transform: translateX(2px); }
.report-kind.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev));
  box-shadow: inset 3px 0 0 var(--accent);
}
.report-kind strong { display: block; font-size: 13px; margin-bottom: 2px; }
.report-kind span { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.report-export-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.report-viewer {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--viewer-bg);
  min-height: 520px;
  overflow: hidden;
}
.report-frame {
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: var(--viewer-bg);
  display: block;
}
.report-brand-hint {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}
.report-brand-hint strong { display: block; font-size: 12px; }
.report-brand-hint span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.report-share-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft);
}
.report-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
}
.report-share-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.report-share-result .input { flex: 1 1; min-width: 180px; }
.report-share-list { margin-top: 4px; }
.report-share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.report-share-row strong { display: block; font-size: 13px; }
.report-share-row .muted { font-size: 11px; }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-soft));
}
.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.chk input { width: auto; }

.share-report-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--share-accent, #c9a227) 18%, transparent), transparent 60%),
    var(--bg, #f4f5f7);
  padding: 24px 16px 40px;
}
.share-report-top {
  max-width: 980px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.share-brand {
  color: var(--share-accent, #c9a227);
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
}
.share-report-top h1 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}
.share-msg { max-width: 980px; margin: 12px auto; }
.share-lock {
  max-width: 420px;
  margin: 24px auto;
  padding: 20px;
}
.share-lock h2 { margin: 0 0 6px; font-size: 18px; }
.share-frame-wrap {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--border-soft, #d5dbe3);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-card);
}
.share-frame {
  width: 100%;
  height: min(80vh, 900px);
  border: 0;
  display: block;
  background: var(--bg-elev);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-gap: 16px;
  gap: 16px;
}

.method-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.method-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.method-chip strong { display: block; font-size: 13px; }
.method-chip span { color: var(--muted); font-size: 11px; }

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease both;
  color: var(--text);
}
.page-hero .hero-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero .hero-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.login-downloads {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.login-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Compact metro cards + dense institutional grids */
.cards-compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.cards-compact .metro-tile,
.cards-compact .card {
  padding: 10px 12px;
}
.cards-compact .metro-tile .value,
.cards-compact .card .value {
  font-size: 16px;
  margin-top: 2px;
}

.detail-grid {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-gap: 6px 10px;
  gap: 6px 10px;
  font-size: 12px;
}
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; }
.detail-grid .mono,
.mono {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.anim-panel { animation: fadeUp 0.4s ease both; }

.account-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.account-switch .select {
  min-width: 220px;
  max-width: 340px;
}
.account-switch.compact .select { min-width: 180px; max-width: 260px; }
.account-switch.compact > .muted { display: none; }
.account-switch-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-switch.compact {
  gap: 0;
}
.account-switch.compact .ui-icon {
  display: none;
}

.profile-menu {
  position: relative;
  z-index: 40;
}
.profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 2px 8px 2px 2px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.profile-menu-trigger.avatar-only {
  width: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}
.profile-menu-trigger.avatar-only .profile-avatar {
  width: 32px;
  height: 32px;
}
.profile-menu-trigger:hover,
.profile-menu.open .profile-menu-trigger {
  background: var(--sidebar-hover);
  border-color: var(--border);
}
.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b84ff, #00c389);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-trigger-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.profile-trigger-meta strong {
  font-size: 12px;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-trigger-meta span {
  font-size: 10px;
  opacity: 0.85;
}
.profile-chevron {
  font-size: 11px;
  opacity: 0.8;
  margin-left: 2px;
}
.profile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, 92vw);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid rgba(11, 132, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeUp 0.18s var(--ease) both;
  overflow: hidden;
}
.profile-menu-panel--pro {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 22%, var(--border-soft));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #2563eb) 8%, var(--bg-elev)) 0%, var(--bg-elev) 42%);
}
.profile-menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.profile-menu-head--pro {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--border-soft);
}
.profile-menu-avatar-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0b84ff, #00c389);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2563eb) 18%, transparent);
}
.profile-menu-head-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-menu-head-copy strong {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}
.profile-menu-head-copy span {
  font-size: 12px;
  color: var(--muted);
}
.profile-menu-head-copy em {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  color: color-mix(in srgb, var(--accent, #2563eb) 80%, var(--muted));
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.profile-menu-head strong { font-size: 13px; }
.profile-menu-head span { font-size: 11px; color: var(--muted); }
.profile-menu-head .badge { align-self: flex-start; margin-top: 4px; }
.profile-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-menu-panel a,
.profile-menu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
}
.profile-menu-panel a span,
.profile-menu-panel button span {
  flex: 1 1;
}
.profile-menu-panel a:hover,
.profile-menu-panel button:hover {
  background: var(--sidebar-hover);
  text-decoration: none;
}
.profile-menu-panel button.is-warn {
  color: #b45309;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
}
.profile-menu-panel button.danger,
.profile-menu-signout {
  color: #ef4444 !important;
  font-weight: 700;
}
.profile-menu-signout {
  margin-top: 2px;
  background: color-mix(in srgb, #ef4444 8%, transparent) !important;
  border: 1px solid color-mix(in srgb, #ef4444 22%, transparent);
}
.profile-menu-signout:hover {
  background: color-mix(in srgb, #ef4444 16%, transparent) !important;
}
.profile-menu-panel button:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-menu-sep {
  height: 1px;
  background: var(--border-soft);
  margin: 6px 4px;
}

@media (max-width: 720px) {
  .profile-trigger-meta { display: none; }
}

.grid-panel.dense .grid-toolbar { gap: 6px; }
.grid-panel.dense .search-box .input,
.grid-panel.dense .filter-box .input { padding: 4px 8px; min-width: 120px; }
table.data.dense th,
table.data.dense td {
  padding: 5px 8px;
  font-size: 12px;
}
table.data.dense th { font-size: 9px; }

.btn.ghost.danger,
.btn.danger.ghost {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border-soft));
  background: var(--bg-elev);
}
.btn.ghost.danger:hover {
  background: color-mix(in srgb, var(--danger) 12%, var(--bg-elev));
}

.portal-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 980px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: relative; min-height: auto; }
  .portal-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  .nav-group { display: none; }
  .two-col, .viz-grid { grid-template-columns: 1fr; }
  .portal-main { padding: 14px; }
  .login-page {
    background:
      radial-gradient(700px 400px at 20% 0%, rgba(11, 132, 255, 0.35), transparent 55%),
      linear-gradient(180deg, #071431 0%, #0b2b3a 26%, var(--bg) 26.2%);
  }
}

@media (max-width: 600px) {
  .portal-topbar { flex-direction: column; align-items: flex-start; padding: 10px 14px; }
  .login-tiles { grid-template-columns: 1fr; }
}

/* Toasts ? solid flat, always readable */
.toast-host {
  position: fixed;
  right: 16px;
  top: 72px;
  bottom: auto;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(400px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 2px 10px;
  gap: 2px 10px;
  padding: 12px 14px;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  border: 1px solid #d1d5db;
  border-left: 4px solid #2563eb;
  animation: fadeUp 0.2s ease both;
}
html[data-theme="dark"] .toast {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}
.toast strong { font-size: 13px; grid-column: 1; }
.toast span { font-size: 12px; opacity: 0.9; grid-column: 1; color: #4b5563; }
html[data-theme="dark"] .toast span { color: #9ca3af; }
.toast-ok { border-left-color: #059669; }
.toast-err { border-left-color: #dc2626; }
.toast-warn { border-left-color: #d97706; }
.toast-info { border-left-color: #2563eb; }
.toast-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  border-radius: 0;
  width: 28px;
  height: 28px;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
html[data-theme="dark"] .toast-close {
  background: #0f172a;
  border-color: #374151;
}
.toast-close:hover { opacity: 1; }

.ok-text { color: var(--ok); font-size: 12px; font-weight: 600; }
.err { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Split branded login ? premium client portal */
.fxm-login {
  --fxm-login-blue: #2563eb;
  --fxm-login-cyan: #38bdf8;
  --fxm-login-ink: #050d1c;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, 0.8fr);
  background: var(--fxm-login-ink);
  font-family: "Outfit", "Mulish", "Segoe UI", system-ui, sans-serif;
}
.fxm-login--boot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #050d1c, #0b2b3a 55%, #1d4ed8);
}
.fxm-login--pro .fxm-login-hero--hd { background: #040b18; }
.fxm-login-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: #dbeafe;
}
.fxm-login-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  transform: scale(1.04);
  animation: fxmLoginKen 28s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05);
}
.fxm-login-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 13, 28, 0.88) 0%, rgba(5, 13, 28, 0.48) 40%, rgba(37, 99, 235, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 13, 28, 0.28) 0%, transparent 35%, rgba(5, 13, 28, 0.55) 78%, rgba(5, 13, 28, 0.92) 100%);
  pointer-events: none;
}
.fxm-login-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}
.fxm-login-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  animation: fxmLoginOrb 12s ease-in-out infinite alternate;
}
.fxm-login-hero-orb--a {
  width: 320px; height: 320px; top: -8%; left: -6%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
}
.fxm-login-hero-orb--b {
  width: 280px; height: 280px; bottom: 8%; right: 6%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 70%);
  animation-delay: -4s;
}
.fxm-login-hero-glow,
.fxm-login-hero-map { display: none; }
@keyframes fxmLoginKen {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes fxmLoginOrb {
  from { opacity: 0.55; transform: translate3d(0, 0, 0); }
  to { opacity: 0.9; transform: translate3d(18px, 12px, 0); }
}
@keyframes fxmLoginRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fxmLoginFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fxmLoginCandle {
  from { opacity: 0; transform: translateY(8px) scaleY(0.6); transform-origin: bottom; }
  to { opacity: 1; transform: translateY(0) scaleY(1); transform-origin: bottom; }
}
@keyframes fxmLoginPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes fxmLoginShine {
  0%, 55% { left: -35%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
.fxm-login-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 48px 26px;
  animation: fxmLoginRise 0.7s ease-out both;
}
.fxm-login-hero-top { max-width: 640px; }
.fxm-login-hero-brand { display: flex; align-items: center; gap: 16px; }
.fxm-login-hero-brand .brand-logo,
.fxm-login-hero-brand img {
  width: 56px !important; height: 56px !important;
  background: #fff !important; border-radius: 16px !important; border: 0 !important;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.4) !important;
}
.fxm-login-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}
.fxm-login-brand-title {
  margin: 0;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.fxm-login-hero h2 {
  margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 750; letter-spacing: -.03em; color: #fff;
}
.fxm-login-lead {
  margin: 18px 0 0;
  max-width: 520px;
  color: rgba(219, 234, 254, 0.9);
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 500;
}
.fxm-login-stats { display: none; }
.fxm-login-stage {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.15fr);
  grid-gap: 22px;
  gap: 22px;
  align-items: end;
  padding-top: 32px;
}
.fxm-login-stage-copy h2,
.fxm-login-stage-copy h3 {
  margin: 0 0 12px;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.fxm-login-stage-copy h2 em,
.fxm-login-stage-copy h3 em {
  font-style: normal;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8 55%, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fxm-login-stage-copy > p {
  margin: 0 0 18px;
  color: rgba(191, 219, 254, 0.82);
  font-size: 14.5px;
  max-width: 36ch;
}
.fxm-login-stage-copy ul { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.fxm-login-stage-copy li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #f1f5f9; font-weight: 550;
}
.fxm-login-stage-copy li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}
.fxm-login-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fxmLoginRise 0.9s 0.12s ease-out both;
}
.fxm-login-visual-main,
.fxm-login-laptop-img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 20px;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55)) saturate(1.08);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.fxm-login-float {
  position: absolute;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 18, 40, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #eff6ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: fxmLoginFloat 5.5s ease-in-out infinite;
}
.fxm-login-float span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}
.fxm-login-float strong {
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fxm-login-float em {
  font-style: normal;
  font-size: 11.5px;
  color: rgba(191, 219, 254, 0.75);
}
.fxm-login-float--chart { left: -4%; top: 12%; min-width: 168px; }
.fxm-login-float--crm { right: -2%; top: 28%; animation-delay: -1.4s; }
.fxm-login-float--risk { right: 8%; bottom: 18%; min-width: 140px; animation-delay: -2.6s; }
.fxm-login-candles { display: block; width: 140px; height: 48px; margin-top: 4px; }
.fxm-login-candles g { animation: fxmLoginCandle 0.55s ease-out both; }
.fxm-login-gauge {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 62%, rgba(56, 189, 248, 0.2) 62%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  animation: fxmLoginPulse 2.8s ease-in-out infinite;
}
.fxm-login-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.fxm-login-rail span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(226, 232, 240, 0.88);
}
.fxm-login-rail svg { color: #93c5fd; }
.fxm-login-hero-foot {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font-size: 11.5px;
  color: rgba(191, 219, 254, 0.68);
  font-weight: 560;
}
.fxm-login-hero-foot .grow { margin-left: auto; color: #93c5fd; }
.fxm-login-hero-photo { display: block; }
.fxm-login-panel {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
.fxm-login-panel--pro {
  overflow: visible;
  background:
    radial-gradient(ellipse 90% 55% at 80% 0%, rgba(37, 99, 235, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 45% at 10% 100%, rgba(14, 165, 233, 0.1), transparent 55%),
    linear-gradient(165deg, #f4f7fb 0%, #e8eef6 48%, #dde5f0 100%);
}
html[data-theme="dark"] .fxm-login-panel,
html[data-theme="dark"] .fxm-login-panel--pro {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.18), transparent 55%),
    #070d18;
}
.fxm-login-panel-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fxm-login-panel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  animation: fxmLoginOrb 11s ease-in-out infinite alternate;
}
.fxm-login-panel-orb--1 {
  width: 280px; height: 280px; top: -8%; right: -12%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
}
.fxm-login-panel-orb--2 {
  width: 240px; height: 240px; bottom: 4%; left: -14%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  animation-delay: -3s;
}
.fxm-login-panel-spark {
  position: absolute;
  left: 6%; right: 6%; bottom: 18%;
  width: 88%; height: 120px; opacity: 0.9;
}
.fxm-login-stack {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
  animation: fxmLoginRise 0.65s 0.08s ease-out both;
}
.fxm-login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 22px;
  padding: 0;
  overflow: visible;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 56px rgba(15, 23, 42, 0.12);
}
.fxm-login-card--pro { padding: 0; overflow: visible; }
html[data-theme="dark"] .fxm-login-card,
html[data-theme="dark"] .fxm-login-card--pro {
  background: rgba(17, 24, 39, 0.96);
  border-color: #1e293b;
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.55);
}
.fxm-login-card-chrome {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}
.fxm-login-card-chrome > * { pointer-events: auto; }
.fxm-login-card-chrome .lang-switch { z-index: 90; }
.fxm-login-card-chrome .lang-switch-btn {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
  border-radius: 999px !important;
}
.fxm-login-card-chrome .fxm-login-theme {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}
.fxm-login-card-chrome .lang-switch-menu { z-index: 120 !important; }
.fxm-login-card-banner {
  position: relative;
  height: 132px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px 22px 0 0;
}
.fxm-login-card-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: fxmLoginKen 22s ease-in-out infinite alternate;
  filter: saturate(1.12) contrast(1.05) brightness(1.05);
}
.fxm-login-card-banner-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 13, 28, 0.15) 0%, rgba(5, 13, 28, 0.28) 45%, rgba(5, 13, 28, 0.72) 100%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.28), transparent 60%);
  pointer-events: none;
}
.fxm-login-card-banner-meta {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  color: #eff6ff;
}
.fxm-login-card-banner-meta strong {
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fxm-login-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}
.fxm-login-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
  animation: fxmLoginPulse 1.8s ease-in-out infinite;
}
.fxm-login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 5;
  overflow: visible;
}
html[data-theme="dark"] .fxm-login-card-top { border-bottom-color: #1f2937; }
.fxm-login-card-body {
  padding: 22px 26px 26px;
  position: relative;
  z-index: 1;
  border-radius: 0 0 22px 22px;
  overflow: visible;
}
.fxm-login-card-top .lang-switch { flex-shrink: 0; height: 36px; }
.fxm-login-card-top .lang-switch-btn {
  box-sizing: border-box;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  padding: 0 12px 0 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
html[data-theme="dark"] .fxm-login-card-top .lang-switch-btn {
  background: #0b1220;
  border-color: #374151;
  color: #e5e7eb;
}
.fxm-login-theme {
  position: static;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  flex-shrink: 0;
  height: 34px;
  min-height: 34px;
}
html[data-theme="dark"] .fxm-login-theme { background: #0f172a; border-color: #334155; }
.fxm-theme-btn,
.fxm-login-theme button {
  border: 0 !important; background: transparent !important; color: #64748b !important;
  font: inherit; font-size: 12px; font-weight: 600; padding: 0 12px !important; border-radius: 999px !important; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: none !important; height: 100%; line-height: 1; white-space: nowrap;
}
.fxm-theme-btn.on,
.fxm-login-theme button.on { background: #2563eb !important; color: #ffffff !important; }
.fxm-theme-ico { font-size: 12px; line-height: 1; display: inline-flex; align-items: center; }
.fxm-login-card-brand { text-align: left; margin-bottom: 16px; display: grid; grid-gap: 6px; gap: 6px; }
.fxm-login-card-brand-row { display: flex; align-items: center; gap: 14px; }
.fxm-login-card-brand img,
.fxm-login-card-brand .brand-logo {
  margin: 0; display: block; background: #fff !important; border-radius: 12px !important; border: 0 !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2) !important;
  flex-shrink: 0;
}
.fxm-login-card-eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563eb;
}
.fxm-login-card h1 {
  margin: 0;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 740;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
html[data-theme="dark"] .fxm-login-card h1 { color: #f9fafb; }
.fxm-login-card-brand p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
html[data-theme="dark"] .fxm-login-card-brand p { color: #9ca3af; }
.fxm-login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.fxm-login-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 650;
}
.fxm-login-trust svg { color: #2563eb; }
html[data-theme="dark"] .fxm-login-trust span {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}
.fxm-field { display: grid; grid-gap: 6px; gap: 6px; margin-bottom: 14px; }
.fxm-field > span { font-size: 12px; font-weight: 600; color: #374151; letter-spacing: .01em; }
html[data-theme="dark"] .fxm-field > span { color: #d1d5db; }
.fxm-input {
  display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 48px;
  border: 1px solid #cbd5e1; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color .14s ease, box-shadow .14s ease, background .12s ease, transform .12s ease;
}
html[data-theme="dark"] .fxm-input { background: #0b1220; border-color: #374151; }
.fxm-input:hover { border-color: #94a3b8; }
.fxm-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}
html[data-theme="dark"] .fxm-input:focus-within { background: #0b1220; }
.fxm-input input {
  flex: 1 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px;
  color: #111827; min-width: 0; padding: 10px 0; letter-spacing: .01em; caret-color: #2563eb;
}
html[data-theme="dark"] .fxm-input input { color: #f3f4f6; }
.fxm-input input::placeholder { color: #9ca3af; }
.fxm-input svg { color: #6b7280; flex-shrink: 0; width: 16px; height: 16px; }
.fxm-eye {
  border: 0 !important; background: transparent !important; color: #6b7280 !important;
  font: inherit; cursor: pointer; padding: 4px !important; box-shadow: none !important;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 4px;
}
.fxm-eye:hover { color: #111827 !important; background: #f3f4f6 !important; }
html[data-theme="dark"] .fxm-eye:hover { color: #f9fafb !important; background: #1f2937 !important; }
.fxm-login-submit {
  position: relative;
  width: 100%; min-height: 48px; border: 0 !important; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 58%, #1d4ed8 100%) !important;
  color: #ffffff !important; font: inherit; font-size: 14.5px; font-weight: 720;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34) !important; padding: 0 16px !important;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.fxm-login-submit-glow {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: fxmLoginShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.fxm-login-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.4) !important;
}
.fxm-login-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fxm-or {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; grid-gap: 12px; gap: 12px;
  margin: 14px 0; color: #9ca3af; font-size: 11px; font-weight: 700; letter-spacing: .12em;
}
.fxm-or::before, .fxm-or::after { content: ""; height: 1px; background: #e5e7eb; }
html[data-theme="dark"] .fxm-or::before, html[data-theme="dark"] .fxm-or::after { background: #374151; }
.fxm-login-sso {
  width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid #cbd5e1 !important;
  background: #fff !important; color: #111827 !important; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; box-shadow: none !important; padding: 0 14px !important;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.fxm-login-sso:hover {
  background: #f8fafc !important; border-color: #2563eb !important; color: #1d4ed8 !important;
  transform: translateY(-1px);
}
html[data-theme="dark"] .fxm-login-sso { background: #0b1220 !important; border-color: #374151 !important; color: #e5e7eb !important; }
.fxm-login-apps { display: grid; grid-gap: 8px; gap: 8px; }
.fxm-auth-note {
  margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe; color: #1e40af; position: relative; overflow: hidden;
}
html[data-theme="dark"] .fxm-auth-note {
  background: rgba(37, 99, 235, 0.12); border-color: rgba(96, 165, 250, 0.28); color: #93c5fd;
}
.fxm-auth-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #bfdbfe; color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}
html[data-theme="dark"] .fxm-auth-ico {
  background: rgba(15, 23, 42, 0.5); border-color: rgba(96, 165, 250, 0.35);
}
.fxm-auth-note strong { display: block; font-size: 12.5px; }
.fxm-auth-note > div span { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.fxm-auth-wave {
  margin-left: auto;
  width: 56px;
  height: 22px;
  color: #2563eb;
  opacity: 0.55;
  flex-shrink: 0;
}
html[data-theme="dark"] .fxm-auth-wave { color: #93c5fd; }
.fxm-login-links {
  margin-top: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 11.5px; color: #9ca3af; width: 100%;
}
.fxm-login-links em { font-style: normal; margin-left: auto; }
@media (max-width: 1100px) {
  .fxm-login { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); }
  .fxm-login-float--chart { left: 0; }
  .fxm-login-float--crm { right: 0; }
}
@media (max-width: 980px) {
  .fxm-login { grid-template-columns: 1fr; }
  .fxm-login-hero { min-height: auto; }
  .fxm-login-hero-inner { min-height: auto; padding: 28px 22px 18px; }
  .fxm-login-stage { grid-template-columns: 1fr; }
  .fxm-login-visual { min-height: 220px; margin-top: 8px; }
  .fxm-login-visual-main { width: min(100%, 360px); }
  .fxm-login-float--chart { left: 0; top: 0; }
  .fxm-login-float--crm { right: 0; top: 8%; }
  .fxm-login-float--risk { right: 4%; bottom: 8%; }
  .fxm-login-panel { padding: 20px 16px 18px; }
  .fxm-login-hero-photo { animation: none; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .fxm-login-hero-photo,
  .fxm-login-hero-orb,
  .fxm-login-float,
  .fxm-login-candles g,
  .fxm-login-gauge,
  .fxm-login-hero-inner,
  .fxm-login-visual,
  .fxm-login-stack,
  .fxm-login-panel-orb,
  .fxm-login-card-banner img,
  .fxm-login-submit-glow,
  .fxm-login-live i {
    animation: none !important;
  }
}

/* ?? Funds page ?? */
.funds-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.funds-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}
.funds-tabs { margin-bottom: 14px; }
.funds-panel { margin-bottom: 14px; }
.funds-help { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; }
.funds-pill {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.funds-pill.live {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 28%, transparent);
}
.funds-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}
.funds-balance-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.funds-balance-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.funds-balance-value {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.funds-balance-hint { margin: 0; max-width: 360px; }
.funds-balance-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.funds-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.funds-meta dt { font-size: 11px; color: var(--muted); margin: 0 0 2px; }
.funds-meta dd { margin: 0; font-size: 13px; font-weight: 650; }
.funds-acct-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.funds-acct-head strong { display: block; font-size: 15px; }
.funds-acct-head .muted { display: block; font-size: 12px; margin-top: 2px; }
.funds-acct-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
}
.funds-acct-metrics > div {
  background: var(--bg-soft, var(--bg));
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px;
}
.funds-acct-metrics span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.funds-acct-metrics strong { font-size: 14px; letter-spacing: -0.01em; }
.funds-progress { display: grid; grid-gap: 8px; gap: 8px; margin-bottom: 12px; }
.funds-acct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}
.funds-acct-card {
  text-align: left;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  font: inherit;
  color: inherit;
}
.funds-acct-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.funds-acct-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.funds-acct-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.funds-acct-card-vals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}
.funds-acct-card-vals span { display: block; font-size: 10.5px; color: var(--muted); }
.funds-acct-card-vals b { font-size: 13px; }
.funds-xfer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px dashed var(--border-soft);
  background: var(--bg-soft, var(--bg));
}
.funds-xfer-summary > div { min-width: 0; }
.funds-xfer-summary span { display: block; font-size: 11px; }
.funds-xfer-summary strong { font-size: 14px; }
.funds-activity { display: grid; grid-gap: 14px; gap: 14px; }
@media (max-width: 1100px) {
  .funds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funds-overview-grid { grid-template-columns: 1fr; }
  .funds-acct-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .funds-kpis { grid-template-columns: 1fr; }
  .funds-meta { grid-template-columns: 1fr; }
}

/* ?? Profile page ?? */
.profile-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-banner-err { margin: 0 0 12px; }
.profile-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-tabs { margin-bottom: 14px; }
.profile-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-panel { margin-bottom: 14px; }
.profile-panel-narrow { max-width: 520px; }
.profile-help { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; }
.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.profile-meta dt { font-size: 11px; color: var(--muted); margin: 0 0 2px; }
.profile-meta dd { margin: 0; font-size: 13px; font-weight: 650; word-break: break-all; }
.profile-security-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}
.profile-security-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft, var(--bg));
}
.profile-security-list li > div { flex: 1 1; min-width: 0; }
.profile-security-list strong { display: block; font-size: 13px; }
.profile-security-list .muted { display: block; font-size: 11.5px; margin-top: 2px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 1100px) {
  .profile-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile-kpis { grid-template-columns: 1fr; }
  .profile-meta { grid-template-columns: 1fr; }
}

/* ?? Downloads page ?? */
.downloads-banner-err { margin: 0 0 12px; }
.downloads-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 14px;
}
.downloads-panel { margin-bottom: 14px; }
.downloads-help { margin: 0 0 14px; font-size: 12.5px; line-height: 1.45; }
.downloads-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.downloads-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.downloads-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.downloads-card-green .downloads-card-icon {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border-color: color-mix(in srgb, var(--ok) 28%, transparent);
}
.downloads-card-violet .downloads-card-icon {
  background: color-mix(in srgb, var(--icon-violet, #7c5cff) 14%, transparent);
  border-color: color-mix(in srgb, var(--icon-violet, #7c5cff) 28%, transparent);
}
.downloads-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}
.downloads-tips li {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft, var(--bg));
}
.downloads-tips strong { font-size: 13px; }
.downloads-notes {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12.5px;
}
@media (max-width: 1100px) {
  .downloads-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .downloads-kpis { grid-template-columns: 1fr; }
}

/* ?? Support page ?? */
.support-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.support-banner-err { margin: 0 0 12px; }
.support-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 14px;
}
.support-filters { margin-bottom: 14px; }
.support-panel { margin-bottom: 14px; }
.support-panel-narrow { max-width: 640px; }
.support-help { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; }
.support-ticket-list { display: grid; grid-gap: 8px; gap: 8px; }
.support-ticket-row {
  text-align: left;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  transition: border-color .15s ease, transform .12s ease;
}
.support-ticket-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.support-ticket-row-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.support-ticket-row-main strong { font-size: 14px; }
.support-ticket-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.support-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.support-thread {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 14px;
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: 4px;
}
.support-msg {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg-soft, var(--bg));
}
.support-msg.is-desk {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.support-msg.is-client {
  border-left: 3px solid var(--ok);
}
.support-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}
.support-msg-body {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.45;
}
.support-reply {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.support-reply label { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .support-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .support-kpis { grid-template-columns: 1fr; }
  .support-ticket-row-main { flex-direction: column; }
}

/* Language switcher + branding chrome */
.lang-switch { position: relative; display: inline-flex; vertical-align: middle; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 7px 10px 7px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
  min-height: 36px;
  box-shadow: none;
}
.lang-switch-btn:hover { border-color: #9ca3af; background: #f9fafb; }
.lang-switch--panel .lang-switch-btn {
  border-color: #d1d5db;
  background: #fff;
  color: #111827;
}
html[data-theme="dark"] .lang-switch--panel .lang-switch-btn {
  border-color: #374151;
  background: #111827;
  color: #e5e7eb;
}
html[data-theme="dark"] .lang-switch--panel .lang-switch-btn:hover {
  border-color: #4b5563;
  background: #1f2937;
}
.lang-switch--topbar .lang-switch-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px 5px 7px;
  min-height: 32px;
}
.lang-switch--topbar .lang-switch-btn:hover {
  border-color: var(--border);
  background: var(--sidebar-hover);
}
.lang-flag-svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  flex-shrink: 0;
  display: block;
}
.lang-flag-fallback {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 15px;
  font-size: 9px;
  font-weight: 700;
  background: #243447;
  color: #fff;
  border-radius: 2px;
}
.lang-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  text-align: left;
}
.lang-code { letter-spacing: .06em; font-size: 11px; font-weight: 700; opacity: .95; }
.lang-name {
  font-size: 10.5px;
  font-weight: 550;
  color: #6b7280;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="dark"] .lang-switch--panel .lang-name { color: #9ca3af; }
.lang-switch--topbar .lang-name { display: none; }
.lang-switch--compact .lang-name { display: none; }
.lang-caret { font-size: 9px; opacity: .65; margin-left: 2px; }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  color: #0d1720;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 30, 50, 0.16);
}
.lang-switch--left .lang-switch-menu { left: 0; right: auto; }
html[data-theme="dark"] .lang-switch-menu {
  background: #111827;
  color: #f3f4f6;
  border-color: #374151;
}
.lang-switch-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  color: inherit;
}
.lang-menu-copy {
  display: grid;
  grid-gap: 1px;
  gap: 1px;
  min-width: 0;
}
.lang-menu-copy strong { font-size: 13px; font-weight: 650; }
.lang-menu-copy em { font-style: normal; font-size: 11px; color: #6b7280; }
html[data-theme="dark"] .lang-menu-copy em { color: #9ca3af; }
.lang-switch-menu button:hover,
.lang-switch-menu button.active {
  background: rgba(37, 99, 235, 0.1);
}
.portal-brand-header {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft, #fbfdff);
  font-size: 13px;
}
.portal-brand-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 11.5px;
}
.fxm-login-links {
  width: 100%;
  margin-top: 2px;
}
.coming-soon-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    var(--bg, #f4f5f7);
}
.coming-soon-card {
  max-width: 480px;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--text);
}
.coming-soon-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.coming-soon-card h1 { margin: 0 0 8px; font-size: 26px; }
.coming-soon-card p { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.dash-advanced .dash-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.dash-toolbar { align-items: center; }
@media (max-width: 900px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .dash-kpi-grid { grid-template-columns: 1fr !important; }
}

/* Dashboard ? match login navy / #2563eb theme */
.fxm-dash.dash-advanced {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}
.dash-advanced .fxm-welcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: stretch;
}
.dash-advanced .fxm-welcome {
  background:
    radial-gradient(720px 240px at 12% -10%, rgba(37,99,235,.28), transparent 55%),
    linear-gradient(145deg, #071431 0%, #0b1f3a 48%, #0d3a66 100%);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid rgba(147,197,253,.2);
  box-shadow: 0 14px 34px rgba(7, 20, 49, .2);
  position: relative;
  overflow: hidden;
}
.dash-advanced .fxm-welcome::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%);
  pointer-events: none;
}
.dash-advanced .fxm-welcome h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: #fff;
}
.dash-advanced .fxm-welcome p {
  margin: 0;
  color: rgba(226,232,240,.9);
  font-size: 13.5px;
  max-width: 42ch;
}
.dash-welcome-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-live-chip,
.dash-acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}
.dash-live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}
.dash-live-chip.is-live i {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
}
.dash-hero-note {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}
html[data-theme="dark"] .dash-hero-note { color: #94a3b8; }
.dash-advanced .dash-hero-panel {
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: none !important;
  gap: 12px;
  color: #111827;
  min-height: 0;
}
.dash-advanced .dash-hero-panel::after { display: none; }
html[data-theme="dark"] .dash-advanced .dash-hero-panel {
  background: #111827 !important;
  border-color: #1f2937;
  color: #e5e7eb;
}
.dash-advanced .dash-hero-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #111827;
  letter-spacing: -.01em;
}
html[data-theme="dark"] .dash-advanced .dash-hero-panel h2 { color: #f9fafb; }
.dash-advanced .fxm-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-advanced .fxm-hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(37,99,235,.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,.18);
}
html[data-theme="dark"] .dash-advanced .fxm-hero-pills span {
  background: rgba(37,99,235,.18);
  color: #93c5fd;
  border-color: rgba(37,99,235,.28);
}
.dash-advanced .dash-hero-actions .btn {
  border-radius: 6px;
  font-weight: 650;
}
.dash-advanced .dash-hero-actions .btn:not(.ghost) {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.dash-advanced .fxm-kpi {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-advanced .fxm-kpi:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37,99,235,.08);
}
html[data-theme="dark"] .dash-advanced .fxm-kpi {
  background: #111827;
  border-color: #1f2937;
}
html[data-theme="dark"] .dash-advanced .fxm-kpi:hover {
  border-color: #374151;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.dash-advanced .fxm-kpi-value {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.dash-advanced .fxm-actions.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
html[data-theme="dark"] .dash-advanced .fxm-actions.dash-toolbar {
  background: #0b1220;
  border-color: #1f2937;
}
.dash-advanced .fxm-actions.dash-toolbar .btn-primary,
.dash-advanced .fxm-actions.dash-toolbar a.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.dash-advanced .fxm-card {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
}
html[data-theme="dark"] .dash-advanced .fxm-card {
  background: #111827;
  border-color: #1f2937;
}
.dash-advanced .fxm-mid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}
@media (max-width: 1100px) {
  .dash-advanced .fxm-welcome-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dash-advanced .fxm-mid { grid-template-columns: 1fr; }
}

/* ?? Site-wide dark theme polish ?? */
html[data-theme="dark"] .shell-rail .content.page-surface,
html[data-theme="dark"] .shell-rail .main {
  background: var(--bg) !important;
  color: var(--text);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .metro-tile,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .viz-card,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .funds-panel,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .downloads-panel,
html[data-theme="dark"] .support-panel {
  background: var(--bg-elev);
  border-color: var(--border-soft);
  color: var(--text);
}
html[data-theme="dark"] table.data th {
  background: var(--table-head);
  color: var(--muted);
  border-color: var(--border-soft);
}
html[data-theme="dark"] table.data td {
  border-color: var(--border-soft);
  color: var(--text);
}
html[data-theme="dark"] table.data tr:nth-child(even) td {
  background: var(--bg-alt);
}
html[data-theme="dark"] table.data tr:hover td {
  background: var(--table-hover);
}
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .filter-box {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .btn.ghost {
  background: var(--bg-elev) !important;
  border-color: var(--border-soft) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] .btn.ghost:hover {
  background: var(--sidebar-hover) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .btn:not(.ghost):not(.danger):not(.crypto) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
html[data-theme="dark"] .funds-balance-hero,
html[data-theme="dark"] .funds-overview-grid > *,
html[data-theme="dark"] .support-ticket-row,
html[data-theme="dark"] .downloads-card {
  background: var(--bg-elev);
  border-color: var(--border-soft);
  color: var(--text);
}
html[data-theme="dark"] .hub-dot.off { background: #475569; }
html[data-theme="dark"] .side-backdrop { background: rgba(0, 0, 0, 0.55); }
html[data-theme="dark"] .fxm-login-card-brand img,
html[data-theme="dark"] .fxm-login-card-brand .brand-logo {
  background: #fff !important;
}
html[data-theme="dark"] .lang-switch-menu button:hover,
html[data-theme="dark"] .lang-switch-menu button.active {
  background: var(--sidebar-hover);
}
html[data-theme="dark"] .account-switch .select {
  background: var(--bg-input);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="dark"] .dash-advanced .fxm-actions.dash-toolbar .btn.ghost,
html[data-theme="dark"] .dash-hero-actions .btn.ghost {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* ?? Positions desk ?? */
.pos-desk { display: grid; grid-gap: 14px; gap: 14px; }
.pos-summary-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--bg-elev);
}
.pos-summary-bar > div { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.pos-summary-bar span { font-size: 11px; }
.pos-summary-bar strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.pos-kpi-grid { margin: 0; }
.pos-graphics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.pos-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: 12px 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.pos-card-h h3 { margin: 0; font-size: 14px; }
.pos-progress { display: grid; grid-gap: 8px; gap: 8px; margin-top: 4px; }
.empty-inline { margin: auto 0; text-align: center; }
.pos-grid-panel { display: grid; grid-gap: 10px; gap: 10px; }
.pos-grid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.pos-grid-head h3 { margin: 0 0 2px; font-size: 15px; }
.pos-grid-head p { margin: 0; font-size: 12px; }
.pos-pnl-toggles { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pos-pnl-toggles .btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
}
.pos-grid-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
}
.pos-symbol {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pos-side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pos-side-dot.buy { background: #059669; box-shadow: 0 0 0 3px color-mix(in srgb, #059669 22%, transparent); }
.pos-side-dot.sell { background: #e11d48; box-shadow: 0 0 0 3px color-mix(in srgb, #e11d48 22%, transparent); }
.pos-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pos-side-badge.buy {
  color: #047857;
  background: color-mix(in srgb, #059669 14%, transparent);
  border: 1px solid color-mix(in srgb, #059669 35%, transparent);
}
.pos-side-badge.sell {
  color: #be123c;
  background: color-mix(in srgb, #e11d48 12%, transparent);
  border: 1px solid color-mix(in srgb, #e11d48 35%, transparent);
}
.pos-pnl-cell {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  justify-items: end;
  min-width: 110px;
}
.pos-pnl-bar {
  height: 3px;
  border-radius: 999px;
  max-width: 120px;
}
.pos-pnl-bar.pos { background: #059669; }
.pos-pnl-bar.neg { background: #e11d48; }
.pos-grid table.data tbody tr.row-buy td {
  box-shadow: inset 3px 0 0 color-mix(in srgb, #059669 55%, transparent);
}
.pos-grid table.data tbody tr.row-sell td {
  box-shadow: inset 3px 0 0 color-mix(in srgb, #e11d48 55%, transparent);
}
.pos-grid table.data.zebra tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-alt) 92%, var(--accent-dim));
}
.pos-grid table.data tbody tr:hover td {
  background: var(--table-hover) !important;
}
.filter-box .select.sm {
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: 120px;
  padding-left: 0;
}

@media (max-width: 1100px) {
  .pos-graphics { grid-template-columns: 1fr; }
  .pos-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pos-summary-bar { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .pos-side-badge.buy { color: #6ee7b7; }
html[data-theme="dark"] .pos-side-badge.sell { color: #fda4af; }
html[data-theme="dark"] .pos-card,
html[data-theme="dark"] .pos-summary-bar {
  background: var(--bg-elev);
}

/* ?? Orders desk (shares positions desk chrome) ?? */
.ord-fill-cell {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  justify-items: end;
  min-width: 72px;
}
.ord-fill-track {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 70%, transparent);
  overflow: hidden;
}
.ord-fill-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #2563eb);
}
.ord-id { font-size: 12px; letter-spacing: 0.02em; }
.ord-when { font-size: 11px; color: var(--muted); }
.ord-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ord-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 11px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.ord-status-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.ord-grid table.data tbody tr.row-partial td {
  background: color-mix(in srgb, #7c3aed 6%, transparent) !important;
}
.ord-grid table.data tbody tr.row-pending td {
  background: color-mix(in srgb, #d97706 7%, transparent) !important;
}
.progress.violet .progress-fill {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

/* ?? History desk ?? */
.ord-fill-bar.hist {
  background: linear-gradient(90deg, #059669, #2563eb);
}
.hist-grid table.data tbody tr.row-filled td {
  background: color-mix(in srgb, #059669 6%, transparent) !important;
}
.hist-grid table.data tbody tr.row-cancelled td {
  background: color-mix(in srgb, #d97706 7%, transparent) !important;
}
.hist-grid table.data tbody tr.row-rejected td {
  background: color-mix(in srgb, #e11d48 7%, transparent) !important;
}
.fxm-rail.is-collapsed .fxm-nav-chip {
  width: 32px;
  height: 32px;
}
.fxm-rail.is-collapsed .fxm-nav-link {
  justify-content: center;
  padding: 0;
  width: auto;
  margin: 0 auto;
}

/* ?? Account desk ?? */
.acct-desk .acct-kpi-grid { margin: 0; }
.acct-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}
.acct-detail-card,
.acct-fund-card {
  min-height: 0;
}
.acct-detail-grid {
  margin: 0;
}
.acct-fund-fields {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}
.acct-mini-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px 12px;
  gap: 8px 12px;
  margin: 8px 0 0;
}
.acct-mini-facts > div { display: grid; grid-gap: 2px; gap: 2px; }
.acct-mini-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.acct-mini-facts dd { margin: 0; font-size: 13px; font-weight: 600; }
.acct-desc {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.acct-ref { font-size: 11px; }
.acct-grid table.data tbody tr.row-active-acct td {
  background: color-mix(in srgb, var(--accent, #c9a227) 10%, transparent) !important;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent, #c9a227) 70%, transparent);
}
.pos-side-dot:not(.buy):not(.sell) {
  background: #94a3b8;
  box-shadow: none;
}
@media (max-width: 980px) {
  .acct-mid { grid-template-columns: 1fr; }
}

/* ?? Funds desk ?? */
.funds-desk .funds-kpis { margin: 0; }
.funds-desk .funds-tabs { margin-top: 4px; }
.funds-grid table.data tbody tr.row-pending td {
  background: color-mix(in srgb, #d97706 7%, transparent) !important;
}

/* ?? Dashboard desk ?? */
.dash-desk .desk-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: start;
}
.dash-fund-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.dash-fund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft);
}
.dash-fund-row > div:first-child {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}
.dash-fund-row .caps {
  text-transform: capitalize;
  font-size: 13px;
}
.dash-fund-row .sm { font-size: 11px; }
.dash-fund-end {
  display: grid;
  justify-items: end;
  grid-gap: 4px;
  gap: 4px;
  flex-shrink: 0;
}
.dash-acct-bars {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}
.dash-desk table.data tbody tr.row-win td {
  background: color-mix(in srgb, #059669 6%, transparent) !important;
}
.dash-desk table.data tbody tr.row-loss td {
  background: color-mix(in srgb, #e11d48 6%, transparent) !important;
}
@media (max-width: 980px) {
  .dash-desk .desk-split { grid-template-columns: 1fr; }
}

