/* XSignal — "Flux" identity: a dark frame, a light working surface, white rounded cards,
   lime + lavender accents, and dark "glow" cards that hold the glowing balance chart.
   Tabler stays underneath: only its variables and components are re-skinned, so every
   template class (card, table, btn, badge bg-*-lt, form-*) keeps working. */
:root, [data-bs-theme=dark] {
  --x-frame: #050908; --x-frame2: #0F1714; --x-paper: #0A100E; --x-card: #111A17; --x-soft: #17221E; --x-soft2: #1E2B26;
  --x-line: rgba(var(--x-acc2-rgb),.07); --x-line2: rgba(var(--x-acc2-rgb),.15);
  --x-ink: #E8F1ED; --x-sub: #8C9C95; --x-faint: #5E6D67; --x-white: #F2F7F5;
  --x-lime: var(--x-acc); --x-lime-rgb: var(--x-acc-rgb); --x-mint2: var(--x-acc-deep); --x-lav: #DCE6E2; --x-lav2: var(--x-acc);
  --x-win: #34E39A; --x-loss: #FF5A6E; --x-be: #F2C14E;
  --x-win-soft: rgba(52,227,154,.12); --x-loss-soft: rgba(255,90,110,.12); --x-be-soft: rgba(242,193,78,.13);
  --x-font: "Poppins", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --ink: var(--x-ink); --muted: var(--x-sub); --line: var(--x-line); --brand: var(--x-lime);

  --tblr-font-sans-serif: var(--x-font); --tblr-body-font-family: var(--x-font);
  --tblr-body-bg: var(--x-paper); --tblr-body-bg-rgb: var(--x-paper-rgb); --tblr-bg-surface: var(--x-card); --tblr-bg-surface-secondary: var(--x-soft); --tblr-bg-surface-tertiary: var(--x-soft2);
  --tblr-bg-forms: var(--x-soft);
  --tblr-body-color: var(--x-ink); --tblr-body-color-rgb: var(--x-ink-rgb); --tblr-emphasis-color: var(--x-hi);
  --tblr-secondary: var(--x-sub); --tblr-secondary-color: var(--x-sub); --tblr-muted: var(--x-sub);
  --tblr-border-color: var(--x-line); --tblr-border-color-translucent: var(--x-line);
  --tblr-primary: var(--x-lime); --tblr-primary-rgb: var(--x-acc-rgb); --tblr-primary-fg: var(--x-acc-ink);
  --tblr-link-color: var(--x-lime); --tblr-link-color-rgb: var(--x-acc-rgb); --tblr-link-hover-color: var(--x-acc-hi);
  --tblr-green: var(--x-win); --tblr-green-rgb: 52,227,154; --tblr-success: var(--x-win); --tblr-success-rgb: 52,227,154;
  --tblr-red: var(--x-loss); --tblr-red-rgb: 255,90,110; --tblr-danger: var(--x-loss); --tblr-danger-rgb: 255,90,110;
  --tblr-yellow: var(--x-be); --tblr-yellow-rgb: 242,193,78; --tblr-warning: var(--x-be); --tblr-warning-rgb: 242,193,78;
  --tblr-border-radius: 14px; --tblr-card-border-radius: 28px; --tblr-box-shadow-card: none;
  color-scheme: dark;
}
html, body { background: var(--x-frame); }
body { font-family: var(--x-font); color: var(--x-ink); font-feature-settings: "tnum"; }
[dir="rtl"] body { font-family: var(--x-font); }
::selection { background: rgba(var(--x-lime-rgb),.35); color: var(--x-hi); }
.text-secondary, .text-muted { color: var(--x-sub) !important; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--x-lime) !important; outline-offset: 2px; }

/* ---------------------------------------------------------------- frame: dark sidebar + light surface */
.page { min-height: 100vh; }
.navbar-vertical.navbar-expand-lg { background: var(--x-frame) !important; border: 0 !important; box-shadow: none !important; }
@media (min-width: 992px) {
  .navbar-vertical.navbar-expand-lg { width: 16rem; }
  .navbar-vertical.navbar-expand-lg ~ .page-wrapper { margin-inline-start: 16rem; }
  .navbar-vertical > .container-fluid { height: 100vh; padding: 22px 14px 18px; display: flex; flex-direction: column; align-items: stretch; }
}
.navbar-vertical .navbar-brand { padding: 0 8px 22px; margin: 0; }
.x-logo { display: flex; align-items: center; gap: 10px; color: var(--x-hi) !important; font-weight: 500; font-size: 1.5rem; text-decoration: none; letter-spacing: -.01em; }
.x-logo svg { width: 30px; height: 30px; flex: none; }
.x-logo-img { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px rgba(var(--x-acc-rgb),.25), 0 6px 18px -6px rgba(var(--x-acc-rgb),.6); }
.navbar-vertical .navbar-collapse { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--x-line2) transparent; }
.navbar-vertical .navbar-nav { gap: 3px; }
.navbar-vertical .nav-link { border-radius: 999px; margin: 0; padding: 11px 18px !important; color: var(--x-hi) !important; font-size: .95rem; transition: color .2s, background .2s; }
.navbar-vertical .nav-link:hover { background: var(--x-frame2); color: var(--x-hi) !important; }
.navbar-vertical .nav-link.active { background: var(--x-white) !important; color: var(--x-acc-ink) !important; font-weight: 500; box-shadow: 0 8px 24px -12px rgba(var(--x-acc-rgb),.5); }
.navbar-vertical .nav-link-icon { width: 1.4rem; text-align: center; opacity: 1; color: inherit !important; }
.navbar-vertical .nav-section { font-size: .76rem; color: var(--x-sub); padding: 16px 18px 6px; }
.navbar-vertical .badge { background: var(--x-lime) !important; color: var(--x-acc-ink) !important; border-radius: 999px; min-width: 22px; }
.x-side-foot { margin-top: 12px; padding: 18px; border-radius: 26px; background: linear-gradient(160deg, var(--x-acc), var(--x-acc-deep)); color: var(--x-acc-ink); position: relative; overflow: hidden; }
.x-side-foot b { display: block; font-size: 1.1rem; font-weight: 600; }
.x-side-foot p { margin: 4px 0 10px; font-size: .82rem; line-height: 1.5; }
.x-side-foot svg.ill { display: block; width: 100%; height: 84px; margin-bottom: 10px; }
.x-side-foot .bars { animation: x-hover 3s ease-in-out infinite; }
@keyframes x-hover { 50% { transform: translateY(-5px); } }
.x-side-foot a { display: block; text-align: center; background: #050908; color: #fff !important; border-radius: 999px; padding: 11px; font-weight: 500; text-decoration: none; }
.x-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .85rem; }
.x-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.x-state.on { color: var(--x-win); } .x-state.off { color: #5A3F00; }
.x-logout { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 18px; color: var(--x-sub) !important; text-decoration: none; border-radius: 999px; }
.x-logout:hover { color: var(--x-hi) !important; background: var(--x-frame2); }
.navbar-toggler { border-color: var(--x-line2); } .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 991.98px) {
  .navbar-vertical > .container-fluid { padding: 10px 14px; }
  .x-side-foot { display: none; }
}

.page-wrapper { background: radial-gradient(900px 420px at 85% -5%, rgba(var(--x-acc-rgb),.07), transparent 65%), var(--x-paper); border: 1px solid var(--x-line); border-radius: 30px; margin: 10px; min-height: calc(100vh - 20px); padding: 22px 22px 0; }
@media (min-width: 992px) { .navbar-vertical.navbar-expand-lg ~ .page-wrapper { margin-inline-start: 16rem; } }
.container-xl { max-width: 1480px; }

/* ---------------------------------------------------------------- top bar */
.x-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 2px 14px; }
.x-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.x-av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; color: var(--x-hi);
  background: linear-gradient(135deg, var(--x-acc), #0B5D40); color: var(--x-acc-ink); }
.x-who b { display: block; font-weight: 500; }
.x-who small { color: var(--x-sub); font-size: .8rem; }
.x-mini { background: var(--x-card); border-radius: 999px; padding: 8px 18px; text-decoration: none; color: var(--x-ink) !important; display: flex; align-items: center; gap: 10px; }
.x-mini .r { color: var(--x-sub); font-size: .8rem; }
.x-mini b { font-size: .98rem; font-weight: 500; }
.x-top .sp { flex: 1; }
.x-sq { width: 50px; height: 50px; border-radius: 50%; background: var(--x-card); display: grid; place-items: center; color: var(--x-ink) !important; position: relative; text-decoration: none; }
.x-sq:hover { background: var(--x-soft); }
.x-sq.dot::after { content: ""; position: absolute; top: 11px; inset-inline-end: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--x-lime); border: 2px solid var(--x-card); box-shadow: 0 0 8px var(--x-lime); }
.x-cta { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--x-lime); color: var(--x-acc-ink) !important;
  font-weight: 500; text-decoration: none; border: 0; transition: transform .1s, background .2s; box-shadow: 0 8px 24px -10px rgba(var(--x-acc-rgb),.7); }
.x-cta:hover { background: var(--x-acc-hi); } .x-cta:active { transform: translateY(1px); }
.x-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--x-card); gap: 2px; }
.x-seg a { padding: 8px 14px; border-radius: 999px; color: var(--x-sub); text-decoration: none; font-size: .86rem; }
.x-seg a.on { background: var(--x-white); color: var(--x-acc-ink); }
.x-top .form-select { height: 50px; border-radius: 999px; background-color: var(--x-card); border-color: transparent; min-width: 170px; padding-inline: 18px 36px; }
.page-header { margin: 4px 0 18px !important; padding: 0 2px !important; }
.page-title { font-weight: 600; font-size: 2.6rem; letter-spacing: -.02em; line-height: 1.1; color: var(--x-ink); }
.x-subtitle { color: var(--x-sub); font-size: .88rem; margin-top: 6px; }
.page-body { margin-top: 0 !important; padding-bottom: 28px; }

/* ---------------------------------------------------------------- cards, tables, forms, buttons */
.card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 28px; box-shadow: none; animation: x-in .55s cubic-bezier(.2,.8,.2,1) backwards; }
.card-header { background: transparent; border-bottom: 1px solid var(--x-line); padding: 16px 22px; }
.card-title { font-weight: 500; font-size: 1.05rem; color: var(--x-ink); }
.card-body { padding: 18px 22px; }
.card-footer { background: transparent; border-top: 1px solid var(--x-line); }
.subheader { color: var(--x-sub); text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 400; }
@keyframes x-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.x-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--x-line2); display: inline-grid; place-items: center; flex: none; }

/* dark "glow" cards (the balance chart lives here so the lime glow reads) */
.card.x-dark, .an-card.x-dark { background: radial-gradient(600px 260px at 70% 0%, rgba(var(--x-acc-rgb),.10), transparent 70%), var(--x-frame) !important; color: var(--x-hi); border: 1px solid rgba(var(--x-acc-rgb),.14); }
.x-dark .card-header { border-color: #333; } .x-dark .card-title, .x-dark .an-card-title, .x-dark h3 { color: var(--x-hi); }
.x-dark .text-secondary, .x-dark .an-card-sub { color: var(--x-sub) !important; }
.x-dark .x-ic { border-color: var(--x-line2); background: var(--x-frame2); }

.table { --tblr-table-bg: transparent; --tblr-table-color: var(--x-ink); --tblr-table-border-color: var(--x-line); color: var(--x-ink); }
.table thead th { background: transparent !important; color: var(--x-sub); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; border-bottom: 1px solid var(--x-line); }
.table td { border-color: var(--x-line); }
.table tbody tr:hover td { background: rgba(255,255,255,.02); }
.card-table tr td:first-child, .card-table tr th:first-child { padding-inline-start: 22px; }

.form-control, .form-select { background-color: var(--x-soft); border: 1px solid transparent; color: var(--x-ink); border-radius: 14px; }
.form-control:focus, .form-select:focus { background-color: var(--x-soft); color: var(--x-ink); border-color: rgba(var(--x-acc-rgb),.6); box-shadow: 0 0 0 3px rgba(var(--x-acc-rgb),.14); }
.form-label { color: var(--x-ink); font-weight: 500; }
.form-hint, .form-text { color: var(--x-sub); }
.form-check-input { background-color: var(--x-soft2); border-color: var(--x-line2); }
.form-check-input:checked { background-color: var(--x-lime); border-color: var(--x-lime); }
.input-group-text { background: var(--x-soft2); border-color: transparent; color: var(--x-sub); }

.btn { border-radius: 999px; font-weight: 500; transition: background .2s, transform .1s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--x-lime); border-color: var(--x-lime); color: var(--x-acc-ink); }
.btn-primary:hover, .btn-primary:focus { background: var(--x-acc-hi); border-color: var(--x-acc-hi); color: var(--x-acc-ink); }
.btn-outline-primary { color: var(--x-lime); border-color: rgba(var(--x-acc-rgb),.35); background: transparent; }
.btn-outline-primary:hover { background: rgba(var(--x-acc-rgb),.12); color: var(--x-lime); border-color: var(--x-lime); }
.btn-secondary, .btn-outline-secondary, .btn-ghost-secondary, .btn-light, .btn-white { background: var(--x-soft); border-color: transparent; color: var(--x-ink); }
.btn-secondary:hover, .btn-outline-secondary:hover, .btn-ghost-secondary:hover, .btn-light:hover, .btn-white:hover { background: var(--x-soft2); color: var(--x-ink); }
.btn-success { background: var(--x-win); border-color: var(--x-win); color: var(--x-acc-ink); }
.btn-success:hover { background: var(--x-acc-hi); color: var(--x-acc-ink); }
.btn-danger { background: var(--x-loss); border-color: var(--x-loss); color: var(--x-hi); }
.btn-outline-success { color: var(--x-win); border-color: rgba(var(--x-acc3-rgb),.35); }
.btn-outline-danger { color: var(--x-loss); border-color: rgba(229,57,79,.35); }
.btn-outline-danger:hover { background: var(--x-loss-soft); color: var(--x-loss); }
.btn-warning { background: var(--x-be-soft); border-color: transparent; color: var(--x-be); }

/* soft badges: green win, red loss, gold break-even, lime/lavender accents */
.badge { font-weight: 500; border-radius: 999px; padding: .32em .7em; }
.bg-green-lt { background: var(--x-win-soft) !important; color: var(--x-win) !important; }
.bg-red-lt { background: var(--x-loss-soft) !important; color: var(--x-loss) !important; }
.bg-yellow-lt, .bg-orange-lt { background: var(--x-be-soft) !important; color: var(--x-be) !important; }
.bg-blue-lt, .bg-azure-lt, .bg-cyan-lt { background: rgba(140,200,255,.1) !important; color: #9CCBFF !important; }
.bg-indigo-lt, .bg-purple-lt, .bg-violet-lt { background: rgba(var(--x-acc-rgb),.1) !important; color: var(--x-lime) !important; }
.bg-secondary-lt, .bg-gray-lt { background: var(--x-soft) !important; color: var(--x-sub) !important; }
.bg-primary { background: var(--x-lime) !important; color: var(--x-acc-ink) !important; }
.alert { background: var(--x-card); border: 1px solid var(--x-line); color: var(--x-ink); border-radius: 18px; border-inline-start: 4px solid var(--x-lav2); }
.alert-success { border-inline-start-color: var(--x-win); } .alert-danger { border-inline-start-color: var(--x-loss); } .alert-warning { border-inline-start-color: var(--x-be); }
.dropdown-menu, .modal-content, .offcanvas { background: var(--x-card); border: 1px solid var(--x-line2); color: var(--x-ink); border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); }
.nav-tabs { border-color: var(--x-line); } .nav-tabs .nav-link { color: var(--x-sub); }
.nav-tabs .nav-link.active { background: transparent; color: var(--x-lime); border-color: transparent transparent var(--x-lime); }
.progress { background: var(--x-soft2); border-radius: 999px; } .progress-bar { background: var(--x-lime); border-radius: 999px; }
hr { border-color: var(--x-line); opacity: 1; }
code { color: var(--x-lime); background: rgba(var(--x-acc-rgb),.08); border-radius: 6px; padding: 1px 6px; }
.list-group-item { background: transparent; border-color: var(--x-line); }
.page-link { border-radius: 999px !important; } .page-item.active .page-link { background: var(--x-lime); border-color: var(--x-lime); color: var(--x-acc-ink); }

/* ---------------------------------------------------------------- result colours */
.pos { color: var(--x-win) !important; font-weight: 500; } .neg { color: var(--x-loss) !important; font-weight: 500; }
.x-dark .pos { color: #5BE38A !important; } .x-dark .neg { color: #FF6B7D !important; }
.text-green, .text-success { color: var(--x-win) !important; } .text-red, .text-danger { color: var(--x-loss) !important; }
.text-yellow, .text-warning { color: var(--x-be) !important; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--x-acc3-rgb),.6) } 70% { box-shadow: 0 0 0 9px rgba(var(--x-acc3-rgb),0) } 100% { box-shadow: 0 0 0 0 rgba(var(--x-acc3-rgb),0) } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--x-faint); display: inline-block; }
.is-live .live-dot { background: var(--x-win); animation: live-pulse 1.8s infinite; }

/* ---------------------------------------------------------------- overview widgets */
.x-tile { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 28px; padding: 16px 18px; height: 100%; animation: x-in .6s cubic-bezier(.2,.8,.2,1) backwards; position: relative; }
.x-tile.x-dark { background: var(--x-frame); color: var(--x-hi); }
.x-th { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.02rem; }
.x-th .sp { flex: 1; }
.x-v { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.x-v b { font-size: 2.4rem; font-weight: 500; line-height: 1; direction: ltr; unicode-bidi: isolate; }
.x-v small { color: var(--x-sub); font-size: .8rem; margin-bottom: 4px; }
.x-dark .x-v small { color: var(--x-sub); }
.x-badge { background: var(--x-lime); color: var(--x-acc-ink); font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 2px 8px; align-self: flex-start; direction: ltr; }
.x-badge.dn { background: var(--x-loss-soft); color: var(--x-loss); }
.x-aside { margin-inline-start: auto; text-align: end; font-size: .8rem; color: var(--x-sub); }
.x-aside b { display: block; color: var(--x-ink); font-size: .9rem; font-weight: 500; }
.x-bubbles { position: relative; height: 270px; margin: 10px 0 6px; direction: ltr; }
.x-bubbles span { position: absolute; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  animation: x-pop .9s cubic-bezier(.3,1.5,.5,1) backwards, x-bob 6s ease-in-out infinite; }
.x-bubbles b { font-weight: 500; line-height: 1.05; }
.x-bubbles small { font-size: .74rem; max-width: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes x-pop { from { transform: scale(0); } } @keyframes x-bob { 50% { translate: 0 -6px; } }
.x-row { padding: 8px 0; }
.x-row .rh { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.x-row .rh b { font-size: 1.8rem; font-weight: 500; direction: ltr; } .x-row .rh b small { font-size: .8rem; color: var(--x-sub); }
.x-row .rh span { font-size: .85rem; display: flex; align-items: center; gap: 6px; min-width: 0; }
.x-row .rh span i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.x-track { height: 14px; border-radius: 999px; background: var(--x-soft); overflow: hidden; margin-top: 6px; }
.x-track i { display: block; height: 100%; border-radius: 999px; animation: x-grow 1.3s .4s cubic-bezier(.3,.8,.2,1) backwards; }
@keyframes x-grow { from { width: 0 !important; } }
.x-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 14px; direction: ltr; }
.x-dots i { aspect-ratio: 1; border-radius: 50%; animation: x-pop .4s cubic-bezier(.3,1.6,.5,1) backwards; }
.x-dots i.w { background: var(--x-win); } .x-dots i.l { background: var(--x-loss); } .x-dots i.b { background: #E9B949; } .x-dots i.e { background: var(--x-soft2); }
.x-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; color: var(--x-sub); }
.x-legend span { display: flex; align-items: center; gap: 6px; } .x-legend i { width: 8px; height: 8px; border-radius: 50%; }
.x-dd { display: inline-flex; align-items: center; gap: 10px; background: var(--x-soft); color: var(--x-hi); border-radius: 999px; padding: 9px 16px; font-size: .88rem; font-weight: 500; border: 0; }
.x-kp { display: flex; gap: 40px; margin-top: 16px; flex-wrap: wrap; }
.x-kp div { display: flex; flex-direction: column; }
.x-kp b { font-size: 2.1rem; font-weight: 500; display: flex; align-items: center; gap: 10px; line-height: 1.1; direction: ltr; }
.x-kp b::before { content: ""; width: 8px; height: 28px; border-radius: 9px; background: var(--c); }
.x-kp small { color: var(--x-sub); font-size: .8rem; }
.x-bars { display: flex; justify-content: space-between; align-items: flex-end; height: 190px; margin-top: 14px; direction: ltr; gap: 6px; }
.x-mo { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.x-mo .pair { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.x-mo .pair i { width: 24px; min-height: 8px; border-radius: 999px; background: repeating-linear-gradient(-45deg, #1F2E28 0 3px, #121C18 3px 7px); transform-origin: bottom;
  animation: x-rise 1s cubic-bezier(.3,1.3,.4,1) backwards; }
.x-mo.on .pair i:first-child { background: var(--x-lime); box-shadow: 0 0 16px rgba(var(--x-acc-rgb),.5); } .x-mo.on .pair i:last-child { background: var(--x-lav); }
.x-mo.neg.on .pair i:first-child { background: #FF6B7D; }
.x-mo small { font-size: .8rem; color: var(--x-sub); white-space: nowrap; } .x-mo.on small { color: var(--x-hi); }
@keyframes x-rise { from { transform: scaleY(0); } }

/* glowing balance chart (dark card) */
.x-bal-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.x-bal-head h3 { margin: 0; font-weight: 500; font-size: 1.1rem; }
.x-bal-head .big { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.x-bal-head .big b { font-size: 2.2rem; font-weight: 500; }
.x-bal-head .sp { flex: 1; }
.x-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.x-chip.up { color: var(--x-acc-ink); background: var(--x-lime); } .x-chip.dn { color: var(--x-hi); background: var(--x-loss); }
.x-chart { position: relative; height: 320px; }
.x-chart-tip { position: absolute; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 10px 26px 10px 20px; white-space: nowrap; color: var(--x-hi);
  background: rgba(70,70,70,.78); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%); transform: translate(-108%,-50%); opacity: 0; transition: opacity .15s; z-index: 2; }
.x-chart-tip.flip { transform: translate(8%,-50%); }
.x-chart-tip svg { width: 20px; height: 20px; flex: none; }
.x-chart-tip b { display: block; font-size: 1.12rem; font-weight: 500; direction: ltr; }
.x-chart-tip small { color: #D0D0D0; font-size: .76rem; }

.stat-card { transition: transform .2s ease; } .stat-card:hover { transform: translateY(-2px); }
.stat-card-pnl, .stat-card-income { background: var(--x-card); border-top: 0; }
.month-breakdown { display: flex; flex-direction: column; gap: 10px; }
.month-row { display: grid; grid-template-columns: 90px 1fr 110px; align-items: center; gap: 10px; }
.month-row .month-label { font-size: 13px; color: var(--x-sub); }
.month-row .month-bar-track { background: var(--x-soft); border-radius: 999px; height: 12px; overflow: hidden; display: flex; }
.month-row .month-bar-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.3,.8,.2,1); }
.month-row .month-amount { text-align: end; font-size: 13px; font-weight: 500; direction: ltr; }
.month-row.is-current .month-label { color: var(--x-ink); font-weight: 600; }

/* ---------------------------------------------------------------- analytics (an-*) re-skinned */
.an-hero { position: relative; padding: 22px 24px; border-radius: 28px; overflow: hidden; background: var(--x-card); border: 1px solid var(--x-line); color: var(--x-ink); }
.an-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--x-acc-rgb),.35), transparent 70%); opacity: 1; pointer-events: none; }
.an-hero > * { position: relative; z-index: 1; }
.an-eyebrow { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--x-sub); opacity: 1; font-weight: 400; }
.an-title { font-weight: 600; letter-spacing: -.02em; color: var(--x-ink); }
.an-sub { color: var(--x-sub); opacity: 1; }
.an-updated { margin-top: 10px; font-size: .75rem; color: var(--x-faint); opacity: 1; }
.an-seg { display: inline-flex; background: var(--x-soft); padding: 4px; border-radius: 999px; gap: 2px; }
.an-seg button { border: 0; background: transparent; color: var(--x-sub); font-weight: 500; font-size: .82rem; padding: 6px 13px; border-radius: 999px; }
.an-seg button:hover { color: var(--x-ink); }
.an-seg button.active { background: var(--x-white); color: var(--x-acc-ink); box-shadow: none; }
.an-seg-sm { background: var(--x-soft); color: var(--x-sub); }
.an-seg-sm button.active { background: var(--x-soft2); color: var(--x-lime); }
.an-live-btn { border: 0; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .82rem; padding: 8px 14px; border-radius: 999px; background: var(--x-soft); color: var(--x-ink); }
.an-hero select { background: var(--x-soft); color: var(--x-ink); border: 0; border-radius: 999px; font-weight: 500; font-size: .82rem; padding: 7px 12px; }
.an-kpi { position: relative; height: 100%; padding: 18px 20px; border-radius: 28px; color: var(--x-ink); overflow: hidden; background: var(--x-card); border: 1px solid var(--x-line); box-shadow: none; transition: transform .2s;
  animation: x-in .55s cubic-bezier(.2,.8,.2,1) backwards; }
.an-kpi:hover { transform: translateY(-2px); }
.an-kpi-icon { position: absolute; inset-inline-end: 16px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--x-line2); display: grid; place-items: center; font-size: 1rem; opacity: 1; color: var(--x-ink); }
.an-kpi-label { font-size: .86rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--x-ink); opacity: 1; }
.an-kpi-value { font-size: 2rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 8px 0 4px; }
.an-kpi-value.sm { font-size: 1.5rem; }
.an-kpi-foot { font-size: .78rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--x-sub); }
.an-kpi-soft { background: var(--x-card); }
.an-delta { font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--x-lime); color: var(--x-acc-ink); }
.an-delta:empty { display: none; }
.an-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: 28px; padding: 18px 20px; box-shadow: none; animation: x-in .55s cubic-bezier(.2,.8,.2,1) backwards; }
.an-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.an-card-title { font-weight: 500; color: var(--x-ink); font-size: 1.05rem; }
.an-card-sub { font-size: .78rem; color: var(--x-sub); }
.an-chart { position: relative; }
.an-section-title { font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; color: var(--x-ink); }
.an-hl { height: 100%; border-radius: 24px; padding: 14px 16px; background: var(--x-card); border: 1px solid var(--x-line); position: relative; overflow: hidden; transition: transform .2s; }
.an-hl:hover { transform: translateY(-2px); }
.an-hl::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 4px; border-radius: 4px; background: var(--accent); }
.an-hl-tag { font-size: .76rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--x-sub); }
.an-hl-name { font-weight: 600; color: var(--x-ink); margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-hl-meta { font-size: .78rem; color: var(--x-sub); }
.an-hl-emoji { position: absolute; inset-inline-end: 12px; top: 10px; font-size: 1.3rem; }
.an-heat-wrap { overflow-x: auto; }
.an-heat { display: grid; grid-template-columns: 42px repeat(24, minmax(22px,1fr)); gap: 4px; min-width: 640px; font-size: .68rem; color: var(--x-sub); }
.an-heat .cell { aspect-ratio: 1/1; border-radius: 50%; background: var(--x-soft); transition: transform .1s; }
.an-heat .cell:hover { transform: scale(1.25); outline: 2px solid var(--x-lime); }
.an-heat .lab { display: flex; align-items: center; justify-content: center; }
.an-podium { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.an-pod { text-align: center; padding: 16px 10px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--p1) 22%, var(--x-card)), var(--x-card)); border: 1px solid var(--x-line); cursor: pointer; }
.an-pod .medal { font-size: 2rem; }
.an-pod .nm { font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-pod .amt { font-size: 1.2rem; font-weight: 500; }
.an-pod .sm { font-size: .75rem; color: var(--x-sub); }
@media (max-width: 640px) { .an-podium { grid-template-columns: 1fr; } }
.an-table thead th { position: sticky; top: 0; background: var(--x-card) !important; z-index: 1; white-space: nowrap; }
.an-sortable thead th { cursor: pointer; user-select: none; }
.an-sortable thead th.sorted::after { content: " ▾"; color: var(--x-lav2); }
.an-sortable thead th.sorted.asc::after { content: " ▴"; }
.an-table tbody tr.clickable { cursor: pointer; }
.an-share { display: flex; align-items: center; gap: 6px; min-width: 110px; }
.an-share-track { flex: 1; height: 8px; border-radius: 99px; background: var(--x-soft); overflow: hidden; }
.an-share-fill { height: 100%; background: linear-gradient(90deg, var(--x-acc-deep), var(--x-lime)); border-radius: 99px; }
.an-pill { display: inline-block; font-size: .72rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; }
.pill-green { background: var(--x-win-soft); color: var(--x-win); } .pill-red { background: var(--x-loss-soft); color: var(--x-loss); }
.pill-amber { background: var(--x-be-soft); color: var(--x-be); }
.pill-indigo { background: rgba(var(--x-acc-rgb),.1); color: var(--x-lime); } .pill-gray { background: var(--x-soft); color: var(--x-sub); }
.an-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--x-hi); font-weight: 600; font-size: .8rem; margin-inline-end: 8px; flex: none; }
.an-drawer { width: min(560px,100vw) !important; }
.an-mini { background: var(--x-soft); border-radius: 16px; padding: 10px 12px; }
.an-mini .v { font-weight: 600; font-size: 1.05rem; }
.an-mini .l { font-size: .74rem; color: var(--x-sub); text-transform: none; letter-spacing: 0; }
.an-skel { color: transparent !important; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: an-sk 1.2s infinite; border-radius: 8px; }
@keyframes an-sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* channel picker */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; cursor: pointer; min-width: 0; margin: 0; background: var(--x-soft); border: 1px solid transparent; }
.pick-item:hover { background: var(--x-soft2); }
.pick-item:has(input:checked) { border-color: rgba(var(--x-acc-rgb),.6); background: rgba(var(--x-acc-rgb),.07); }
.pick-item input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--x-lime); }
.pick-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-meta { font-size: 12px; margin-inline-start: auto; white-space: nowrap; color: var(--x-sub); }

/* login */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--x-frame); }
.login-bg .card { background: var(--x-card); }

/* subscription lock: page is visible as a blurred preview */
.lock-wrap { position: relative; min-height: 520px; }
.lock-blur { filter: blur(6px) saturate(.7); opacity: .55; pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(460px, calc(100% - 16px)); border-radius: 30px;
  background: linear-gradient(160deg, var(--x-acc), var(--x-acc-deep)); color: var(--x-acc-ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.lock-overlay .text-secondary { color: #0B3D28 !important; }

/* ---------------------------------------------------------------- tables: full text, readable */
.text-ellipsis { max-width: none; overflow: visible; white-space: normal; }
.cell-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; word-break: break-word; min-width: 150px; max-width: 340px; cursor: pointer; line-height: 1.45; }
.cell-clamp.open { -webkit-line-clamp: unset; display: block; }
.cell-more { display: none; font-size: .74rem; color: var(--x-lime); cursor: pointer; margin-top: 2px; }
.cell-clamp.clampable + .cell-more, .cell-clamp.open + .cell-more { display: inline-block; }
.table td, .table th { vertical-align: middle; }
.card-table td.wrap-cell { white-space: normal; min-width: 140px; max-width: 260px; word-break: break-word; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- phone */
@media (max-width: 767.98px) {
  .page-wrapper { margin: 6px; padding: 14px 10px 0; border-radius: 22px; }
  .x-top { gap: 8px; } .x-top .x-mini { display: none; } .x-top .sp { display: none; }
  .x-av, .x-sq, .x-cta, .x-top .form-select { height: 44px; } .x-av, .x-sq { width: 44px; }
  .page-title { font-size: 1.8rem; }
  .container-xl { padding-inline: 4px; }
  .card-header { flex-wrap: wrap; gap: 8px; }
  .card-header .form-select, .card-header .form-control { max-width: 100% !important; }
  .an-kpi-value, .x-v b { font-size: 1.7rem; }
  .x-chart { height: 240px; } .x-bubbles { height: 220px; }
  .btn-group { flex-wrap: wrap; } .modal-dialog { margin: 8px; }
  table.table-stack thead { display: none; }
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100%; }
  table.table-stack tr { border-radius: 18px; margin: 10px 0; padding: 6px 4px; background: var(--x-soft); }
  table.table-stack td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border: 0 !important; padding: 5px 10px !important; text-align: end !important; white-space: normal !important; max-width: none !important; }
  table.table-stack td::before { content: attr(data-label); flex: none; font-size: .74rem; color: var(--x-sub); text-align: start; padding-top: 2px; }
  table.table-stack td:not([data-label])::before, table.table-stack td[data-label=""]::before { display: none; }
  table.table-stack td[colspan] { justify-content: center; text-align: center !important; }
  table.table-stack td > * { min-width: 0; }
  table.table-stack .cell-clamp { min-width: 0; max-width: 100%; text-align: end; }
  table.table-stack td:has(.cell-clamp) { flex-wrap: wrap; } table.table-stack td:has(.cell-clamp) .cell-clamp { flex: 1 1 0; }
  table.table-stack td .cell-more { flex-basis: 100%; text-align: end; }
  .table-responsive { overflow-x: visible; } .table-responsive[style*="max-height"] { max-height: none !important; }
  table.table-stack tr:hover td { background: transparent; }
}

/* two-line balance chart legend */
.x-legend2 { display: flex; gap: 16px; align-items: center; font-size: .8rem; color: #A9B8B2; }
.x-legend2 span { display: inline-flex; align-items: center; gap: 7px; }
.x-legend2 i { width: 18px; height: 3px; border-radius: 3px; }

/* ================================================================ v4: calm "prop dashboard" look
   soft sheen cards, thin type, mint light used sparingly, gold for evaluation phases */
:root, [data-bs-theme=dark] {
  --x-paper: #0A0E0D; --x-card: #0F1513; --x-soft: #151D1A; --x-soft2: #1B2521;
  --x-line: rgba(255,255,255,.06); --x-line2: rgba(255,255,255,.11);
  --x-mint: var(--x-acc2); --x-mint2: var(--x-acc); --x-gold: #E9C77B;
  --x-font: "Manrope", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --tblr-body-bg: var(--x-paper);
}
body, [dir="rtl"] body { font-family: var(--x-font); font-weight: 400; }
.page-wrapper { background: var(--x-paper); border-color: var(--x-line); }
.card, .x-tile, .an-card, .an-kpi, .an-hero, .an-hl { background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 55%), var(--x-card) !important;
  border: 1px solid var(--x-line) !important; border-radius: 22px; }
.navbar-vertical .nav-link.active { background: rgba(var(--x-acc2-rgb),.09) !important; color: var(--x-mint) !important; box-shadow: inset 0 0 0 1px rgba(var(--x-acc2-rgb),.16); }
.navbar-vertical .nav-link.active .nav-link-icon { color: var(--x-mint) !important; }
.page-title { font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; }
.x-crumb { color: var(--x-faint); font-size: .8rem; margin-top: 4px; }
.x-crumb i { font-size: .6rem; margin: 0 6px; }
.x-cta { background: var(--x-acc-pale); color: var(--x-pale-ink) !important; box-shadow: none; height: 44px; font-weight: 600; }
.x-cta:hover { background: #fff; }
.x-role { display: block; color: var(--x-mint2); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }

/* top stat cards */
.x-stat { padding: 18px 20px; height: 100%; }
.x-stat .k { color: var(--x-sub); font-size: .92rem; }
.x-stat .v { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.x-stat .v b { font-size: 1.95rem; font-weight: 500; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
.x-up { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(var(--x-acc-rgb),.14); color: var(--x-mint); direction: ltr; }
.x-up.dn { background: rgba(255,90,110,.14); color: #FF8796; }
.x-prog { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.x-prog b { font-size: 1.35rem; font-weight: 500; direction: ltr; }
.x-prog span { color: var(--x-sub); font-size: .85rem; direction: ltr; }
.x-line-bar { height: 5px; border-radius: 9px; background: rgba(255,255,255,.07); margin-top: 10px; overflow: hidden; }
.x-line-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #5FD9B5, var(--x-mint)); animation: x-grow 1.3s .3s cubic-bezier(.3,.8,.2,1) backwards; }
.x-ico-sq { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--x-mint);
  background: linear-gradient(160deg, #1F3A31, #0E1A16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px -8px rgba(var(--x-acc-rgb),.5); }
.x-next { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.x-next b { display: block; font-size: 1.4rem; font-weight: 500; }
.x-next small { color: var(--x-sub); }

/* equity card */
.x-eq-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.x-eq-head small { display: block; color: var(--x-sub); font-size: .86rem; }
.x-eq-head b { font-size: 1.45rem; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.x-eq-head .sp { flex: 1; }
.x-pills { display: inline-flex; gap: 6px; direction: ltr; }
.x-pills button { border: 1px solid var(--x-line2); background: transparent; color: var(--x-sub); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: .78rem; cursor: pointer; transition: all .2s; }
.x-pills button.on { background: var(--x-acc-pale); color: var(--x-pale-ink); border-color: var(--x-acc-pale); font-weight: 600; }
.card.x-dark, .an-card.x-dark { background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 55%), var(--x-card) !important; border: 1px solid var(--x-line) !important; }

/* profile / win-rate card with a soft mint light */
.x-me { position: relative; overflow: hidden; padding: 20px; height: 100%;
  background: radial-gradient(360px 260px at 85% -10%, rgba(var(--x-acc2-rgb),.28), rgba(var(--x-acc2-rgb),.06) 45%, transparent 70%), var(--x-card) !important; }
[dir="rtl"] .x-me { background: radial-gradient(360px 260px at 15% -10%, rgba(var(--x-acc2-rgb),.28), rgba(var(--x-acc2-rgb),.06) 45%, transparent 70%), var(--x-card) !important; }
.x-me .who { display: flex; align-items: center; gap: 12px; }
.x-me .who .x-av { width: 48px; height: 48px; }
.x-me .who b { display: block; font-size: 1.15rem; font-weight: 500; }
.x-me .who small { color: var(--x-sub); font-size: .8rem; }
.x-me .wr { margin-top: 22px; color: var(--x-sub); font-size: .86rem; }
.x-me .wr b { display: block; color: var(--x-hi); font-size: 1.9rem; font-weight: 500; direction: ltr; text-align: start; }
.x-wbars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 34px; direction: ltr; }
.x-wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.x-wb i { width: 100%; border-radius: 14px; background: linear-gradient(180deg, var(--x-soft2), var(--x-soft)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: bottom; animation: x-rise .9s cubic-bezier(.3,1.3,.4,1) backwards; }
.x-wb.on i { background: repeating-linear-gradient(-45deg, rgba(var(--x-acc-rgb),.35) 0 3px, rgba(var(--x-acc-rgb),.1) 3px 7px); }
.x-wb small { color: var(--x-sub); font-size: .74rem; }
.x-wb .tag { position: absolute; top: -30px; background: var(--x-acc-pale); color: var(--x-pale-ink); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.x-wb .tag.dn { background: #FFD3D9; }

/* active accounts (prop challenges) */
.x-accs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.x-accs-head h3 { margin: 0; font-weight: 500; font-size: 1.02rem; color: var(--x-ink); }
.x-accs-head a { color: var(--x-hi); font-size: .84rem; text-decoration: none; }
.x-acc { padding: 18px 20px; border-radius: 20px; background: radial-gradient(500px 200px at 50% -20%, rgba(var(--x-acc2-rgb),.08), transparent 70%), #121A17;
  border: 1px solid var(--x-line); height: 100%; animation: x-in .6s cubic-bezier(.2,.8,.2,1) backwards; }
.x-acc.gold { background: radial-gradient(500px 200px at 50% -20%, rgba(233,199,123,.08), transparent 70%), #16150F; }
.x-acc .top { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.x-acc .top b { font-size: 1.7rem; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.x-acc .top .sp { flex: 1; }
.x-acc .idp { font-size: .74rem; color: var(--x-sub); background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px 10px; direction: ltr; }
.x-acc .ph { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: rgba(var(--x-acc-rgb),.14); color: var(--x-mint); }
.x-acc.gold .ph { background: rgba(233,199,123,.14); color: var(--x-gold); }
.x-acc .when { color: var(--x-sub); font-size: .8rem; margin-top: 4px; }
.x-acc .nums { display: flex; gap: 34px; margin-top: 16px; flex-wrap: wrap; }
.x-acc .nums small { display: block; color: var(--x-sub); font-size: .78rem; }
.x-acc .nums b { font-size: 1.1rem; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.x-acc .tgt { display: flex; justify-content: space-between; color: var(--x-sub); font-size: .8rem; margin-top: 18px; }
.x-acc .tgt b { color: var(--x-mint); font-weight: 600; }
.x-acc.gold .tgt b { color: var(--x-gold); }
.x-segbar { height: 22px; margin-top: 8px; direction: ltr;
  background: linear-gradient(90deg, var(--c) var(--p), rgba(255,255,255,.09) var(--p));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px);
  animation: x-fill 1.4s .5s cubic-bezier(.3,.8,.2,1) backwards; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes x-fill { from { --p: 0%; } }

.x-cta .ic { width: 24px; height: 24px; border-radius: 50%; background: var(--x-pale-ink); color: var(--x-acc-pale); display: grid; place-items: center; font-size: .7rem; }
.x-who .x-role { margin-top: 2px; }

@media (max-width: 1599.98px) { .x-top .x-mini { display: none; } }

/* ---------------------------------------------------------------- fixed menu: tighter items, sticky bar on phones */
.navbar-vertical .nav-link { padding: 9px 16px !important; }
.navbar-vertical .nav-section { padding: 12px 18px 4px; }
@media (min-width: 992px) and (max-height: 960px) { .x-side-foot { display: none; } }
@media (max-width: 991.98px) {
  .navbar-vertical.navbar-expand-lg { position: sticky; top: 0; z-index: 1030; }
  .navbar-vertical .navbar-collapse { max-height: calc(100vh - 70px); }
}

/* ---------------------------------------------------------------- leaderboard: gold / platinum / bronze podium */
.x-nick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 22px; border: 1px solid var(--x-line);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 55%), var(--x-card); }
.x-nick .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--x-acc2-rgb),.1); color: var(--x-mint); flex: none; }
.x-nick .txt { flex: 1 1 260px; } .x-nick .txt b { display: block; } .x-nick .txt small { color: var(--x-sub); }
.x-nick input { max-width: 240px; flex: 1 1 160px; }
.x-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.x-pod { --c1: #DCE6E2; --c2: #8E9A96; --glow: rgba(220,230,226,.25); position: relative; text-align: center; padding: 26px 18px 22px; border-radius: 26px;
  background: radial-gradient(120% 70% at 50% 0%, var(--glow), transparent 70%), linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%), var(--x-card);
  border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); box-shadow: 0 24px 60px -30px var(--glow); overflow: hidden; }
.x-pod::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 45%, transparent 60%); background-size: 250% 100%; animation: x-shine 5s ease-in-out infinite; }
@keyframes x-shine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.x-pod.gold { --c1: #F7DA8B; --c2: #B8862F; --glow: rgba(233,199,123,.38); padding-top: 40px; padding-bottom: 32px; transform: translateY(-6px); }
.x-pod.plat { --c1: #E9F1F4; --c2: #8FA4AD; --glow: rgba(200,222,232,.28); }
.x-pod.bronze { --c1: #E8A673; --c2: #8C4F25; --glow: rgba(205,127,70,.30); }
.x-pod .rank-badge { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, var(--c1), var(--c2)); color: #10130F; font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 4px rgba(255,255,255,.05), 0 10px 30px -8px var(--glow); }
.x-pod.gold .rank-badge { width: 78px; height: 78px; font-size: 1.8rem; }
.x-pod .rank-badge i { position: absolute; top: -16px; font-size: 1rem; color: var(--c1); filter: drop-shadow(0 2px 6px var(--glow)); }
.x-pod:not(.gold) .rank-badge i { display: none; }
.x-pod .tier { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); font-weight: 700; }
.x-pod .who { font-size: 1.2rem; font-weight: 700; margin: 4px 0 8px; color: var(--x-hi); overflow-wrap: anywhere; }
.x-pod .who em { font-style: normal; font-size: .7rem; color: var(--x-mint); border: 1px solid rgba(var(--x-acc2-rgb),.35); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.x-pod .big { font-size: 1.6rem; font-weight: 800; } .x-pod.gold .big { font-size: 2rem; }
.x-pod .wl { display: flex; justify-content: center; gap: 12px; margin-top: 10px; font-size: .9rem; color: var(--x-sub); }
.x-pod .wl .w { color: var(--x-mint2); } .x-pod .wl .l { color: #FF7A7A; }
.x-pod.mine { outline: 2px solid var(--x-mint); outline-offset: 3px; }
.x-place { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; background: rgba(255,255,255,.05); }
.x-place.p1 { background: linear-gradient(145deg, #F7DA8B, #B8862F); color: #10130F; }
.x-place.p2 { background: linear-gradient(145deg, #E9F1F4, #8FA4AD); color: #10130F; }
.x-place.p3 { background: linear-gradient(145deg, #E8A673, #8C4F25); color: #10130F; }
tr.x-mine td { background: rgba(var(--x-acc2-rgb),.06) !important; }
@media (max-width: 767.98px) {
  .x-podium { grid-template-columns: 1fr; } .x-pod.gold { order: -1; transform: none; }
}

/* ---------------------------------------------------------------- admin: one user */
.x-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.x-kv dt { color: var(--x-sub); font-weight: 400; } .x-kv dd { margin: 0; text-align: end; font-weight: 600; }
.x-danger-zone { border: 1px solid rgba(255,90,90,.35) !important; }


/* ---------------------------------------------------------------- site themes (admin picks one: Settings → Site theme) */
:root { --x-hi: #fff; --x-ink-rgb: 232,241,237; --x-paper-rgb: 10,14,13; }
:root { --x-acc: #2EE6A0; --x-acc-rgb: 46,230,160; --x-acc2: #8CF5D2; --x-acc2-rgb: 140,245,210; --x-acc3-rgb: 31,164,99; --x-acc-hi: #5BF0B8; --x-acc-deep: #0FA872; --x-acc-ink: #03140C; --x-acc-pale: #DDFBEF; }
html[data-x-theme="emerald"] { --x-acc: #2EE6A0; --x-acc-rgb: 46,230,160; --x-acc2: #8CF5D2; --x-acc2-rgb: 140,245,210; --x-acc3-rgb: 31,164,99; --x-acc-hi: #5BF0B8; --x-acc-deep: #0FA872; --x-acc-ink: #03140C; --x-acc-pale: #DDFBEF; }
html[data-x-theme="ocean"] { --x-acc: #38BDF8; --x-acc-rgb: 56,189,248; --x-acc2: #9BDCFF; --x-acc2-rgb: 155,220,255; --x-acc3-rgb: 2,132,199; --x-acc-hi: #7DD3FC; --x-acc-deep: #0284C7; --x-acc-ink: #021322; --x-acc-pale: #E0F2FE; }
html[data-x-theme="gold"] { --x-acc: #F2C14E; --x-acc-rgb: 242,193,78; --x-acc2: #F7DA8B; --x-acc2-rgb: 247,218,139; --x-acc3-rgb: 180,130,40; --x-acc-hi: #F9D57A; --x-acc-deep: #B8862F; --x-acc-ink: #1A1204; --x-acc-pale: #FDF3D7; }
html[data-x-theme="violet"] { --x-acc: #A78BFA; --x-acc-rgb: 167,139,250; --x-acc2: #CDBEFF; --x-acc2-rgb: 205,190,255; --x-acc3-rgb: 124,58,237; --x-acc-hi: #C4B5FD; --x-acc-deep: #7C3AED; --x-acc-ink: #120A26; --x-acc-pale: #EDE9FE; }
html[data-x-theme="rose"] { --x-acc: #FB7185; --x-acc-rgb: 251,113,133; --x-acc2: #FDB4C0; --x-acc2-rgb: 253,180,192; --x-acc3-rgb: 225,29,72; --x-acc-hi: #FDA4AF; --x-acc-deep: #E11D48; --x-acc-ink: #26060C; --x-acc-pale: #FFE4E8; }
html[data-x-theme="silver"] { --x-acc: #CBD5E1; --x-acc-rgb: 203,213,225; --x-acc2: #E2E8F0; --x-acc2-rgb: 226,232,240; --x-acc3-rgb: 100,116,139; --x-acc-hi: #E2E8F0; --x-acc-deep: #64748B; --x-acc-ink: #0B1016; --x-acc-pale: #F1F5F9; }

/* ---------------------------------------------------------------- light mode (each user: the sun / moon button) */
html[data-x-mode="light"] {
  --x-frame: #EAF0EE; --x-frame2: #DCE5E1; --x-paper: #F5F8F7; --x-card: #FFFFFF; --x-soft: #EEF3F1; --x-soft2: #E2EAE7;
  --x-line: rgba(15,40,32,.09); --x-line2: rgba(15,40,32,.17);
  --x-ink: #0F1B17; --x-ink-rgb: 15,27,23; --x-sub: #56665F; --x-faint: #8A9893; --x-hi: #0F1B17;
  --x-white: var(--x-acc); --x-lav: #33433D; --x-paper-rgb: 245,248,247;
  --tblr-link-color: var(--x-acc-deep); --tblr-link-hover-color: var(--x-acc-deep);
  color-scheme: light;
}
html[data-x-mode="light"] body { background: var(--x-frame); }
html[data-x-mode="light"] .card, html[data-x-mode="light"] .x-nick, html[data-x-mode="light"] .x-pod { box-shadow: 0 10px 30px -22px rgba(15,40,32,.35); }
html[data-x-mode="light"] .pos, html[data-x-mode="light"] .text-success { color: #0E9F6E !important; }
html[data-x-mode="light"] .neg, html[data-x-mode="light"] .text-danger { color: #D92D45 !important; }
html[data-x-mode="light"] .x-pod .who { color: var(--x-ink); }
html[data-x-mode="light"] .x-pod .tier { color: var(--c2); }
html[data-x-mode="light"] .navbar-toggler-icon { filter: none; }
html[data-x-mode="light"] .x-logo { color: var(--x-ink) !important; }
html[data-x-mode="light"] .form-control, html[data-x-mode="light"] .form-select { background-color: #fff; color: var(--x-ink); border-color: var(--x-line2); }

/* the sun / moon switch */
.x-mode-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--x-line2);
  background: var(--x-soft); color: var(--x-ink); cursor: pointer; transition: transform .25s; }
.x-mode-btn:hover { transform: rotate(-20deg); }
.x-mode-btn .fa-sun { display: none; } html[data-x-mode="light"] .x-mode-btn .fa-sun { display: inline; } html[data-x-mode="light"] .x-mode-btn .fa-moon { display: none; }

/* the admin theme picker */
.x-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.x-theme { position: relative; cursor: pointer; border-radius: 18px; padding: 14px; border: 1px solid var(--x-line2); background: var(--x-soft); transition: transform .2s, border-color .2s; }
.x-theme:hover { transform: translateY(-2px); }
.x-theme input { position: absolute; opacity: 0; pointer-events: none; }
.x-theme .sw { display: flex; gap: 6px; margin-bottom: 10px; } .x-theme .sw i { flex: 1; height: 34px; border-radius: 10px; }
.x-theme b { display: block; } .x-theme small { color: var(--x-sub); }
.x-theme:has(input:checked) { border-color: var(--x-acc); box-shadow: 0 0 0 3px rgba(var(--x-acc-rgb), .25); }
.x-theme:has(input:checked)::after { content: "\2713"; position: absolute; top: 10px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--x-acc); color: var(--x-acc-ink); }
html[data-x-mode="light"] .x-wb i { background: linear-gradient(180deg, #D6E1DD, #E8EFEC); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
html[data-x-mode="light"] .x-wb.on i { background: repeating-linear-gradient(-45deg, rgba(var(--x-acc-rgb),.55) 0 3px, rgba(var(--x-acc-rgb),.2) 3px 7px); }
html[data-x-mode="light"] .x-acc { background: radial-gradient(500px 200px at 50% -20%, rgba(var(--x-acc-rgb),.12), transparent 70%), #FFFFFF; border-color: var(--x-line2); }
html[data-x-mode="light"] .x-acc.gold { background: radial-gradient(500px 200px at 50% -20%, rgba(233,199,123,.22), transparent 70%), #FFFDF6; }
html[data-x-mode="light"] .x-acc .idp { background: var(--x-soft); }
html[data-x-mode="light"] .x-acc .ph, html[data-x-mode="light"] .x-acc .tgt b { color: var(--x-acc-deep); }
html[data-x-mode="light"] .x-acc.gold .ph, html[data-x-mode="light"] .x-acc.gold .tgt b { color: #9A6B12; }

/* ---------------------------------------------------------------- the Reset bar at the bottom of statistics pages */
.x-reset-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 22px; padding: 16px 20px; border-radius: 20px;
  border: 1px dashed rgba(255,90,110,.35); background: rgba(255,90,110,.04); }
.x-reset-bar > div { flex: 1 1 260px; } .x-reset-bar b { display: block; } .x-reset-bar small { color: var(--x-sub); }

/* ---------------------------------------------------------------- wallet */
.x-wal-big { font-size: 2rem; font-weight: 800; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.x-wal-big small { font-size: .9rem; font-weight: 500; color: var(--x-sub); }
.x-wal-note { margin-top: 12px; color: var(--x-sub); font-size: .85rem; }
.x-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.x-sec-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.x-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.x-plan { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; border: 1px solid var(--x-line2);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 55%), var(--x-card); transition: transform .2s, border-color .2s; }
.x-plan:hover { transform: translateY(-2px); border-color: rgba(var(--x-acc-rgb), .4); }
.x-plan.is-mine { border-color: var(--x-acc); box-shadow: 0 0 0 3px rgba(var(--x-acc-rgb), .15); }
.x-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .x-plan-top b { font-size: 1.1rem; }
.x-plan-acc { color: var(--x-sub); font-size: .85rem; } .x-plan-acc span { font-size: 1.6rem; font-weight: 800; color: var(--x-ink); margin-inline-end: 4px; }
.x-plan-durs { display: grid; gap: 6px; flex: 1; }
.x-plan-durs label { cursor: pointer; } .x-plan-durs input { position: absolute; opacity: 0; pointer-events: none; }
.x-plan-durs span { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--x-line2); background: var(--x-soft); font-size: .88rem; }
.x-plan-durs span em { font-style: normal; margin-inline-start: auto; font-weight: 700; direction: ltr; }
.x-plan-durs input:checked + span { border-color: var(--x-acc); background: rgba(var(--x-acc-rgb), .12); }
.x-chip-m { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: var(--x-soft); border: 1px solid var(--x-line2); font-size: .88rem; }
.x-chip-m small { font-size: .72rem; padding: 1px 7px; border-radius: 6px; }
.x-chip-m.auto small { background: rgba(var(--x-acc-rgb), .14); color: var(--x-acc); }
.x-chip-m.manual small { background: rgba(242,193,78,.14); color: #E9B949; }
.x-hist-ic { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; background: var(--x-soft); color: var(--x-sub); }
.x-hist-ic.plan { background: rgba(var(--x-acc2-rgb), .12); color: var(--x-acc2); }
.x-hist-ic.topup { background: rgba(var(--x-acc-rgb), .14); color: var(--x-acc); }
html[data-x-mode="light"] .x-hist-ic.plan, html[data-x-mode="light"] .x-chip-m.auto small { color: var(--x-acc-deep); }

.x-pod .sub { font-size: .78rem; color: var(--x-sub); margin: -4px 0 8px; direction: ltr; }
.x-worst { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; text-decoration: none !important; color: var(--x-ink) !important;
  border: 1px solid rgba(255,90,110,.3); background: linear-gradient(160deg, rgba(255,90,110,.07), rgba(255,90,110,0) 60%), var(--x-card); }
.x-worst .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,90,110,.12); color: #FF5A6E; flex: none; }
.x-worst small { display: block; color: var(--x-sub); }

.x-creds { padding: 10px 12px; border-radius: 12px; background: var(--x-soft); border: 1px solid var(--x-line); }
.x-creds dd { display: flex; align-items: center; justify-content: flex-end; gap: 4px; direction: ltr; }
.x-revealed { color: #E9B949; font-weight: 700; user-select: all; }

/* ---------------------------------------------------------------- full palettes: background + cards + accent */
html[data-x-theme="navy"]:not([data-x-mode="light"]) { --x-frame: #060B16; --x-frame2: #0E1628; --x-paper: #0A1222; --x-card: #101B30; --x-soft: #16233B; --x-soft2: #1C2B47; --x-paper-rgb: 10,18,34; --x-line: rgba(150,180,255,.08); }
html[data-x-theme="navy"] { --x-acc: #F5B942; --x-acc-rgb: 245,185,66; --x-acc2: #FFD98A; --x-acc2-rgb: 255,217,138; --x-acc3-rgb: 196,140,32; --x-acc-hi: #FFCB66; --x-acc-deep: #C48C20; --x-acc-ink: #1A1204; --x-acc-pale: #FFF3D6; }
html[data-x-theme="graphite"]:not([data-x-mode="light"]) { --x-frame: #0A0B0D; --x-frame2: #15171B; --x-paper: #0F1013; --x-card: #16181C; --x-soft: #1D2025; --x-soft2: #24282E; --x-paper-rgb: 15,16,19; --x-line: rgba(255,255,255,.07); }
html[data-x-theme="graphite"] { --x-acc: #3B82F6; --x-acc-rgb: 59,130,246; --x-acc2: #93C5FD; --x-acc2-rgb: 147,197,253; --x-acc3-rgb: 37,99,235; --x-acc-hi: #60A5FA; --x-acc-deep: #2563EB; --x-acc-ink: #FFFFFF; --x-acc-pale: #DBEAFE; }
html[data-x-theme="obsidian"]:not([data-x-mode="light"]) { --x-frame: #060607; --x-frame2: #121214; --x-paper: #0B0B0C; --x-card: #141416; --x-soft: #1B1B1E; --x-soft2: #232327; --x-paper-rgb: 11,11,12; --x-line: rgba(255,255,255,.07); }
html[data-x-theme="obsidian"] { --x-acc: #FF7A1A; --x-acc-rgb: 255,122,26; --x-acc2: #FFB37A; --x-acc2-rgb: 255,179,122; --x-acc3-rgb: 214,90,0; --x-acc-hi: #FF9A4D; --x-acc-deep: #D65A00; --x-acc-ink: #1A0A00; --x-acc-pale: #FFE8D6; }
html[data-x-theme="royal"]:not([data-x-mode="light"]) { --x-frame: #0B0814; --x-frame2: #171126; --x-paper: #120E1F; --x-card: #1A1430; --x-soft: #221A3D; --x-soft2: #2A2149; --x-paper-rgb: 18,14,31; --x-line: rgba(185,166,255,.09); }
html[data-x-theme="royal"] { --x-acc: #2EE6A0; --x-acc-rgb: 46,230,160; --x-acc2: #B9A6FF; --x-acc2-rgb: 185,166,255; --x-acc3-rgb: 31,164,99; --x-acc-hi: #5BF0B8; --x-acc-deep: #0FA872; --x-acc-ink: #03140C; --x-acc-pale: #DDFBEF; }

/* ---------------------------------------------------------------- text on pale accent backgrounds + a cleaner light mode */
:root { --x-pale-ink: var(--x-acc-ink); }
html[data-x-theme="graphite"] { --x-pale-ink: #1E3A8A; }
html[data-x-mode="light"] {   /* neutral greys (no green tint) so every theme looks right */
  --x-frame: #E8ECF1; --x-frame2: #DDE3EA; --x-paper: #F4F6F9; --x-card: #FFFFFF; --x-soft: #F0F3F7; --x-soft2: #E4E9EF;
  --x-line: rgba(15,23,42,.08); --x-line2: rgba(15,23,42,.15);
  --x-ink: #0F172A; --x-ink-rgb: 15,23,42; --x-sub: #5B6475; --x-faint: #8A93A3; --x-hi: #0F172A; --x-lav: #334155;
  --x-paper-rgb: 244,246,249; --x-mint: var(--x-acc-deep);
}
html[data-x-mode="light"] .card, html[data-x-mode="light"] .x-nick, html[data-x-mode="light"] .x-pod, html[data-x-mode="light"] .x-plan,
html[data-x-mode="light"] .x-acc { border: 1px solid var(--x-line) !important; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -24px rgba(15,23,42,.28) !important; }
html[data-x-mode="light"] .page-wrapper { background: var(--x-paper); border-color: var(--x-line2); }
html[data-x-mode="light"] .x-cta { background: var(--x-acc); color: var(--x-acc-ink) !important; }
html[data-x-mode="light"] .x-cta .ic { background: var(--x-acc-ink); color: var(--x-acc); }
html[data-x-mode="light"] .x-cta:hover { filter: brightness(1.05); }
html[data-x-mode="light"] .x-up { background: rgba(var(--x-acc-rgb), .12); color: var(--x-acc-deep); }
html[data-x-mode="light"] .x-up.dn { background: rgba(225,29,72,.1); color: #BE123C; }
html[data-x-mode="light"] .navbar-vertical .nav-link { color: #334155 !important; }
html[data-x-mode="light"] .navbar-vertical .nav-link:hover { background: var(--x-frame2); color: #0F172A !important; }
html[data-x-mode="light"] .navbar-vertical .nav-link.active { background: var(--x-card) !important; color: var(--x-acc-deep) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 20px -14px rgba(15,23,42,.35); }
html[data-x-mode="light"] .navbar-vertical .nav-section { color: #7A8496; }
html[data-x-mode="light"] .x-ico-sq { background: rgba(var(--x-acc-rgb), .12) !important; color: var(--x-acc-deep) !important; }
html[data-x-mode="light"] .x-chart-tip { background: #0F172A; color: #fff; }
html[data-x-mode="light"] .text-secondary { color: var(--x-sub) !important; }
html[data-x-mode="light"] .x-chip-m.manual small, html[data-x-mode="light"] .x-revealed { color: #A16207; }
html[data-x-mode="light"] .an-hero::after { opacity: .35; filter: none; }

/* the chart legend is also the line switch */
.x-legend2 button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--x-line2); background: var(--x-soft); color: var(--x-ink);
  border-radius: 999px; padding: 4px 12px; font-size: .8rem; cursor: pointer; transition: opacity .2s; }
.x-legend2 button.off { opacity: .4; text-decoration: line-through; }
.x-legend2 button i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }

tr.x-excluded td { opacity: .45; text-decoration: line-through; }
tr.x-excluded td:last-child { opacity: 1; text-decoration: none; }

/* the signals log filter bar */
.x-sigf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.x-sigf .form-select, .x-sigf .form-control { width: auto; min-width: 120px; flex: 0 1 auto; }
.x-sigf .x-sigf-q { min-width: 200px; flex: 1 1 200px; }
/* the selected language: readable in every theme */
.x-seg a.on, .x-seg button.on { background: var(--x-acc) !important; color: var(--x-acc-ink) !important; }
