/* 全站暗色主题、鼠标跟踪光效、容器尺寸与排版优化、以及登录滑块验证样式（最后加载） */

/* -- 1. 鼠标跟踪光效层 ---------------------------------------------------------------- */
.fx-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.24) 0%,
    rgba(99, 102, 241, 0.12) 45%,
    transparent 75%
  );
  filter: blur(6px);
  transition: opacity 0.25s ease;
  will-change: transform;
}
.fx-cursor-glow.is-active {
  opacity: 1;
}

.fx-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  border: 1.25px solid rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  transition: opacity 0.2s ease;
  will-change: transform;
}
.fx-cursor-ring.is-active {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .fx-cursor-glow,
  .fx-cursor-ring {
    display: none !important;
  }
}

/* -- 2. 全局暗色变量与底色 -------------------------------------------------------------- */
html {
  color-scheme: dark;
  background: #07090e;
}

body.console,
body.console.hx,
body.console-login {
  --ds-ink: #f1f5f9;
  --ds-side: #0a0d14;
  --ds-side-2: rgba(56, 189, 248, 0.11);
  --ds-side-text: #cbd5e1;
  --ds-gain: #34d399;
  --ds-loss: #f87171;
  --ds-gutter: 28px;
  --bg: #07090e;
  --card: rgba(15, 20, 31, 0.86);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.15);
  --line-soft: rgba(148, 163, 184, 0.08);
  --fill: rgba(30, 41, 59, 0.7);
  --fill-2: rgba(15, 23, 42, 0.9);
  --field: rgba(148, 163, 184, 0.24);
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-ink: #7dd3fc;
  --primary-soft: rgba(56, 189, 248, 0.12);
  --primary-tint: rgba(56, 189, 248, 0.18);
  --primary-ring: rgba(56, 189, 248, 0.28);
  --ok: #34d399;
  --ok-soft: rgba(16, 185, 129, 0.16);
  --ok-ink: #6ee7b7;
  --warn: #fbbf24;
  --warn-soft: rgba(245, 158, 11, 0.16);
  --warn-ink: #fcd34d;
  --bad: #f87171;
  --bad-fill: #ef4444;
  --bad-soft: rgba(239, 68, 68, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --shadow-pop: 0 18px 46px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);

  background-color: #07090e !important;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.08), transparent 42%) !important;
  background-attachment: fixed;
  color: var(--text) !important;
}

/* -- 3. 侧栏与顶部栏布局优化 ------------------------------------------------------------ */
html body.console .side,
html body.console.hx .side {
  width: 232px;
  padding: 0 12px 12px;
  background: rgba(10, 13, 20, 0.92) !important;
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line) !important;
  color: var(--ds-side-text);
  z-index: 30;
}

html body.console .shell,
html body.console.hx .shell {
  position: relative;
  z-index: 1;
  margin-left: 232px;
  background: transparent !important;
}

html body.console .side-brand,
html body.console.hx .side-brand {
  height: 58px;
  margin: 0 -4px 12px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line) !important;
  color: #f8fafc !important;
}

html body.console .brand-mark {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

html body.console.hx .nav-search {
  height: 36px;
  background: rgba(30, 41, 59, 0.65) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
}

html body.console.hx .nav-search:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring);
}

html body.console.hx #menu.hxn-menu .nav-items a.hxn-page.on,
html body.console .side-nav a.on {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.16)) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.14);
}

html body.console.hx #menu.hxn-menu .hxn-head:hover,
html body.console.hx #menu.hxn-menu .hxn-section-head:hover,
html body.console.hx #menu.hxn-menu .nav-items a.hxn-page:hover,
html body.console .side-nav a:hover,
html body.console .side-foot :is(a, .side-link):hover {
  background: rgba(56, 189, 248, 0.1) !important;
  color: #ffffff !important;
}

html body.console .topbar,
html body.console.hx .topbar {
  height: 58px;
  padding: 0 var(--ds-gutter);
  background: rgba(10, 14, 23, 0.78) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line) !important;
  color: var(--text);
}

html body.console.hx .topbar .hx-context,
html body.console .menu-toggle {
  background: rgba(20, 27, 42, 0.85) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

html body.console main#view,
html body.console.hx main#view {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px var(--ds-gutter) 56px;
}

/* -- 4. 卡片、表格、控件、弹窗统一暗色化与磁吸微光 ----------------------------------- */
body.console .card,
body.console .acct-browser,
body.console .acct-detail {
  position: relative;
  background: var(--card) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body.console .card::before,
body.console .acct-browser::before,
body.console .acct-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    340px circle at var(--card-mx, 50%) var(--card-my, 50%),
    rgba(56, 189, 248, 0.11),
    transparent 65%
  );
  transition: opacity 0.28s ease;
}

body.console .card:hover::before,
body.console .acct-browser:hover::before,
body.console .acct-detail:hover::before {
  opacity: 1;
}

body.console .card {
  padding: 20px 22px;
  margin-bottom: 16px;
}

body.console .stats {
  gap: 16px;
  margin-bottom: 16px;
}

body.console .stats .card {
  min-height: 108px;
  padding: 18px 20px;
}

body.console a.card:hover,
body.console .stats .card:hover {
  border-color: rgba(56, 189, 248, 0.42) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

body.console .cols {
  gap: 16px;
  margin-bottom: 16px;
}

/* 输入框、下拉框、按钮 */
body.console input:not([type="checkbox"]):not([type="radio"]),
body.console select,
body.console textarea {
  background: rgba(11, 16, 28, 0.9) !important;
  border: 1px solid var(--field) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm);
}

body.console input:focus,
body.console select:focus,
body.console textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

body.console .btn,
body.console button.btn,
body.console a.btn,
body.console .dt-btn {
  border-radius: var(--radius-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.console .btn:not(.ghost):not(.secondary),
body.console .dt-btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

body.console .btn:not(.ghost):not(.secondary):hover,
body.console .dt-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.36);
}

body.console .btn.ghost,
body.console .btn.secondary,
body.console .dt-btn:not(.primary) {
  background: rgba(30, 41, 59, 0.65) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

body.console .btn.ghost:hover,
body.console .btn.secondary:hover,
body.console .dt-btn:not(.primary):hover {
  background: rgba(51, 65, 85, 0.78) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

/* 通用表格暗色化 */
body.console table {
  color: var(--text);
}

body.console th {
  background: rgba(23, 31, 48, 0.92) !important;
  color: #cbd5e1 !important;
  border-color: var(--line) !important;
}

body.console td {
  border-color: var(--line-soft) !important;
}

body.console tbody tr:hover {
  background: rgba(56, 189, 248, 0.05) !important;
}

/* 弹窗、抽屉、TomSelect、Notyf */
body.console dialog,
body.console .hx-drawer,
body.console .drawer,
body.console .ts-dropdown,
body.console .ts-control {
  background: #0f1523 !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

body.console dialog::backdrop {
  background: rgba(3, 6, 12, 0.72) !important;
  backdrop-filter: blur(4px);
}

body.console .ts-control input {
  background: transparent !important;
  border: 0 !important;
  color: var(--text) !important;
}

body.console .ts-dropdown .option:hover,
body.console .ts-dropdown .active {
  background: var(--primary-soft) !important;
  color: #ffffff !important;
}

body.console .notice {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
  color: #e2e8f0 !important;
}

body.console .notice.warn {
  background: var(--warn-soft) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}

/* -- 5. #/accounts 页面容器大小、位置与排版专项优化 -------------------------------------- */
body.console .acct-directory,
body.console .acct-form,
body.console .acct-receipt,
body.console .staff-directory {
  --acct-muted: #94a3b8;
  --acct-line: rgba(148, 163, 184, 0.15);
  --acct-tint: rgba(56, 189, 248, 0.14);
  --acct-blue: #38bdf8;
  color: var(--text);
}

body.console .acct-top {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--acct-line);
}

body.console .acct-role {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 5px 12px;
  border-radius: 999px;
}

body.console .acct-layout {
  display: grid;
  grid-template-columns: clamp(260px, 26%, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.console .acct-browser {
  padding: 20px 18px;
  border-right: 1px solid var(--line) !important;
}

body.console .acct-detail {
  padding: 22px 24px;
}

body.console .acct-company-head b {
  color: #e2e8f0;
}

body.console .acct-directory label.acct-search,
body.console .staff-directory label.acct-search {
  background: rgba(11, 16, 28, 0.9) !important;
  border-color: var(--field) !important;
  border-radius: 8px;
  padding-inline: 11px;
}

body.console .acct-directory .acct-search input,
body.console .staff-directory .acct-search input {
  background: transparent !important;
  border: 0 !important;
  color: var(--text) !important;
}

body.console .acct-directory .acct-company-option {
  padding: 10px 12px;
  border-radius: 9px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.console .acct-directory .acct-company-option:hover {
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(2px);
}

body.console .acct-directory .acct-company-option[aria-current="true"] {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.14));
  border-color: rgba(56, 189, 248, 0.42);
}

body.console .acct-scopes button {
  color: #cbd5e1;
}

body.console .acct-scopes button:hover {
  background: rgba(56, 189, 248, 0.08);
}

body.console .acct-scopes button[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

body.console .acct-members th {
  background: rgba(23, 31, 48, 0.9) !important;
  color: #cbd5e1;
  padding: 11px 10px;
}

body.console .acct-members td {
  padding: 12px 10px;
}

body.console .acct-status.ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
}

body.console .acct-status.pending {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
}

body.console .acct-status.off {
  color: #94a3b8;
  background: rgba(100, 116, 139, 0.2);
}

body.console .acct-directory .acct-link.danger {
  color: #fca5a5;
}

body.console .acct-archived-note {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

body.console .acct-form,
body.console .acct-receipt {
  max-width: 44rem;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

body.console .acct-form .acct-form-target {
  background: rgba(56, 189, 248, 0.1);
  border-left-color: var(--primary);
}

@media (max-width: 840px) {
  html body.console .shell,
  html body.console.hx .shell {
    margin-left: 0;
  }
  html body.console main#view,
  html body.console.hx main#view {
    padding: 16px 14px 44px;
  }
  body.console .acct-layout {
    display: block;
  }
  body.console .acct-browser {
    margin-bottom: 14px;
    padding: 14px;
  }
  body.console .acct-detail {
    padding: 16px;
  }
}

/* -- 6. 登录页暗色改版与滑块验证组件 ----------------------------------------------------- */
body.business-login {
  color: #f1f5f9;
  background: #07090e;
}

body.business-login .auth-bar {
  position: relative;
  z-index: 2;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.business-login .auth-bar a {
  color: #94a3b8;
}

body.business-login .auth-bar a:hover {
  color: #38bdf8;
}

body.business-login .font-size-open,
body.business-login [data-font-size-open],
body.console .font-size-open,
body.console [data-font-size-open] {
  background: rgba(20, 27, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: #e2e8f0 !important;
}

body.business-login .font-size-open:hover,
body.business-login [data-font-size-open]:hover,
body.console .font-size-open:hover,
body.console [data-font-size-open]:hover {
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

body.business-login .auth-mark {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

body.business-login .auth-shell {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 440px);
  place-content: center;
  gap: 0;
  padding: clamp(32px, 6vh, 72px) 20px;
}

body.business-login .auth-main {
  width: 100%;
  max-width: 440px;
  padding: 40px 38px 34px;
  border-radius: 22px;
  background: rgba(11, 16, 28, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow:
    0 32px 84px rgba(0, 0, 0, 0.72),
    0 0 56px rgba(56, 189, 248, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  position: relative;
  animation: authCardIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.business-login .auth-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.85), transparent);
  pointer-events: none;
}

body.business-login .auth-main h1 {
  font-size: clamp(26px, 2.6vw, 32px);
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.business-login .auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--card-mx, 50%) var(--card-my, 50%),
    rgba(56, 189, 248, 0.1),
    transparent 65%
  );
}

body.business-login .auth-tabs {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

body.business-login .auth-tabs button {
  color: #94a3b8;
}

body.business-login .auth-tabs button[aria-selected="true"] {
  color: #38bdf8;
  border-color: #38bdf8;
}

body.business-login form input {
  background: rgba(8, 12, 21, 0.92);
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

body.business-login form input:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

body.business-login form input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

body.business-login form input:-webkit-autofill,
body.business-login form input:-webkit-autofill:hover,
body.business-login form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #080c15 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc;
  transition: background-color 5000s ease-in-out 0s;
}

body.business-login .auth-secret button {
  color: #94a3b8;
}

body.business-login .auth-code button {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #7dd3fc;
}

body.business-login .auth-primary {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  border: 0;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.3);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

body.business-login .auth-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.42);
}

body.business-login .auth-error {
  color: #fca5a5;
}

body.business-login .auth-help {
  color: #94a3b8;
}

body.business-login .auth-help a {
  color: #7dd3fc;
}

body.business-login .auth-visual {
  display: none !important;
}

body.business-login .auth-visual::before {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
}

body.business-login .sheet-back {
  background: rgba(79, 70, 229, 0.55);
}

body.business-login .sheet-middle {
  background: rgba(30, 58, 138, 0.72);
  border-color: rgba(56, 189, 248, 0.35);
}

body.business-login .sheet-front {
  background: #0f172a;
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

body.business-login .sheet-top b {
  background: rgba(148, 163, 184, 0.3);
}

body.business-login .sheet-body {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.18);
}

body.business-login .sheet-body i {
  background: #111a2e;
}

body.business-login .sheet-body i::before {
  background: rgba(148, 163, 184, 0.25);
}

body.business-login .sheet-body i:nth-child(3n)::before {
  background: rgba(56, 189, 248, 0.32);
}

body.business-login .sheet-body i:nth-child(6)::before {
  background: rgba(52, 211, 153, 0.35);
}

body.business-login .sheet-body i:nth-child(5) {
  background: rgba(56, 189, 248, 0.14);
  outline-color: #38bdf8;
}

/* 滑块拼图对齐验证组件（鼠标悬停或拖动时弹出拼图） */
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 450;
  color: #cbd5e1;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: #38bdf8;
  cursor: pointer;
}

body.business-login .auth-primary {
  margin-top: 16px;
}
.slider-guard {
  position: relative;
  margin-top: 18px;
}

.slider-puzzle-pop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  padding: 10px;
  border-radius: 14px;
  background: rgba(11, 16, 28, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(148, 163, 184, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom center;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.22s ease;
}

.slider-guard.is-open .slider-puzzle-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.slider-puzzle-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 148;
  border-radius: 9px;
  overflow: hidden;
  background: #070b14;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.slider-bg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.slider-piece-canvas {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

.slider-refresh {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  background: rgba(10, 15, 27, 0.78);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.25s ease;
}

.slider-refresh:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #38bdf8;
  transform: rotate(90deg);
}

.slider-puzzle-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(52, 211, 153, 0.32) 50%, transparent 70%);
}

.slider-guard.is-done .slider-puzzle-flash {
  animation: sliderFlash 0.55s ease forwards;
}

.slider-guard.is-failed .slider-puzzle-stage {
  animation: sliderShake 0.36s ease-in-out;
  border-color: rgba(239, 68, 68, 0.7);
}

.slider-puzzle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px 1px;
  font-size: 12px;
  color: #94a3b8;
}

.slider-guard.is-done .slider-puzzle-foot {
  color: #6ee7b7;
  font-weight: 500;
}

.slider-guard.is-failed .slider-puzzle-foot {
  color: #fca5a5;
}

@keyframes sliderFlash {
  0% { opacity: 1; transform: translateX(-100%); }
  100% { opacity: 0; transform: translateX(100%); }
}

.slider-track {
  position: relative;
  height: 46px;
  border-radius: 9px;
  background: rgba(9, 13, 23, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-track.is-dragging {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.slider-track.is-done {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.slider-track.is-failed {
  border-color: #ef4444;
  animation: sliderShake 0.36s ease-in-out;
}

.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.36));
  pointer-events: none;
  transition: background 0.2s ease;
}

.slider-track.is-done .slider-fill {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(52, 211, 153, 0.36));
}

.slider-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.slider-track[data-tone="error"] .slider-label {
  color: #fca5a5;
}

.slider-track[data-tone="success"] .slider-label {
  color: #6ee7b7;
  font-weight: 600;
}

.slider-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: 2;
  width: 42px;
  height: 40px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 7px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #7dd3fc;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slider-thumb:hover:not(:disabled) {
  border-color: #38bdf8;
  color: #ffffff;
}

.slider-thumb:active:not(:disabled) {
  cursor: grabbing;
}

.slider-track.is-done .slider-thumb {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #ffffff;
  cursor: default;
}

@keyframes sliderShake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track.is-failed { animation: none; }
  .fx-cursor-glow, .fx-cursor-ring { display: none; }
}
