:root {
  color-scheme: dark;
  --vx-bg: #080b16;
  --vx-surface: rgba(17, 23, 42, 0.76);
  --vx-surface-strong: rgba(18, 24, 43, 0.94);
  --vx-border: rgba(148, 163, 184, 0.16);
  --vx-border-bright: rgba(96, 165, 250, 0.35);
  --vx-text: #f8fafc;
  --vx-muted: #9da9bd;
  --vx-blue: #55c2ff;
  --vx-indigo: #7c6cff;
  --vx-purple: #9b5cff;
  --vx-green: #55e6b5;
  --vx-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html,
body,
#app {
  min-height: 100%;
}

body.vx-user-shell {
  margin: 0;
  color: var(--vx-text);
  background:
    radial-gradient(circle at 12% 14%, rgba(24, 151, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(124, 92, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 62% 86%, rgba(21, 211, 164, 0.08), transparent 32rem),
    var(--vx-bg);
  background-attachment: fixed;
}

body.vx-user-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

body.vx-user-shell #app {
  position: relative;
  z-index: 1;
}

body.vx-user-shell .n-layout,
body.vx-user-shell .n-layout-scroll-container,
body.vx-user-shell .n-layout-content {
  background: transparent !important;
}

body.vx-user-shell .n-layout-header {
  border-bottom: 1px solid var(--vx-border) !important;
  background: rgba(8, 12, 25, 0.78) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.vx-user-shell .n-layout-sider {
  border-right: 1px solid var(--vx-border) !important;
  background: rgba(9, 13, 27, 0.86) !important;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

body.vx-user-shell .n-menu-item-content,
body.vx-user-shell .n-menu-item-content-header,
body.vx-user-shell .n-submenu-children {
  border-radius: 12px;
}

body.vx-user-shell .n-menu-item-content--selected {
  background: linear-gradient(110deg, rgba(60, 179, 255, 0.18), rgba(123, 92, 255, 0.2)) !important;
  box-shadow: inset 0 0 0 1px rgba(112, 179, 255, 0.16);
}

body.vx-user-shell .n-card,
body.vx-user-shell .n-modal,
body.vx-user-shell .n-popover,
body.vx-user-shell .n-drawer-content {
  border: 1px solid var(--vx-border) !important;
  background: var(--vx-surface) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body.vx-user-shell .n-card {
  border-radius: 18px !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.vx-app-page .n-card:hover {
  border-color: rgba(96, 165, 250, 0.28) !important;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.31) !important;
  transform: translateY(-1px);
}

body.vx-user-shell .n-input,
body.vx-user-shell .n-input-wrapper,
body.vx-user-shell .n-base-selection,
body.vx-user-shell .n-input-tag {
  border-radius: 12px !important;
}

body.vx-user-shell .n-input,
body.vx-user-shell .n-base-selection {
  background: rgba(7, 11, 23, 0.66) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14) !important;
  transition: box-shadow 180ms ease, background 180ms ease;
}

body.vx-user-shell .n-input:hover,
body.vx-user-shell .n-input.n-input--focus,
body.vx-user-shell .n-base-selection:hover,
body.vx-user-shell .n-base-selection.n-base-selection--active {
  background: rgba(9, 14, 29, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(85, 194, 255, 0.52), 0 0 0 3px rgba(85, 194, 255, 0.08) !important;
}

body.vx-user-shell .n-button {
  border-radius: 11px !important;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
}

body.vx-user-shell .n-button:not(.n-button--disabled):hover {
  transform: translateY(-1px);
}

body.vx-user-shell .n-button--primary-type {
  border: 0 !important;
  background: linear-gradient(110deg, #41bfff, #7768ff 52%, #9a5cff) !important;
  box-shadow: 0 10px 28px rgba(92, 109, 255, 0.28) !important;
}

body.vx-user-shell .n-button--primary-type:hover {
  filter: brightness(1.08);
  box-shadow: 0 13px 34px rgba(92, 109, 255, 0.38) !important;
}

/* Dialog APIs inherit their positive button type from the dialog status
   (for example, info), so keep the final confirmation action visually
   aligned with the user panel's primary buttons. */
html.dark body.vx-app-page .n-dialog__action .n-button:last-child:not(.n-button--disabled) {
  --n-color: transparent !important;
  --n-color-hover: transparent !important;
  --n-color-focus: transparent !important;
  --n-color-pressed: transparent !important;
  --n-text-color: #ffffff !important;
  --n-text-color-hover: #ffffff !important;
  --n-text-color-focus: #ffffff !important;
  --n-text-color-pressed: #ffffff !important;
  --n-border: none !important;
  --n-border-hover: none !important;
  --n-border-focus: none !important;
  --n-border-pressed: none !important;
  border: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(110deg, #41bfff, #7768ff 52%, #9a5cff) !important;
  box-shadow: 0 10px 28px rgba(92, 109, 255, 0.3) !important;
}

html.dark body.vx-app-page .n-dialog__action .n-button:last-child:not(.n-button--disabled) .n-button__content {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.dark body.vx-app-page .n-dialog__action .n-button:last-child:not(.n-button--disabled):hover {
  filter: brightness(1.08);
  box-shadow: 0 13px 34px rgba(92, 109, 255, 0.4) !important;
}

html.dark body.vx-app-page .n-dialog__action .n-button:last-child .n-button__border,
html.dark body.vx-app-page .n-dialog__action .n-button:last-child .n-button__state-border {
  border: 0 !important;
  box-shadow: none !important;
}

body.vx-user-shell .n-data-table,
body.vx-user-shell .n-list,
body.vx-user-shell .n-alert {
  overflow: hidden;
  border: 1px solid var(--vx-border) !important;
  border-radius: 14px !important;
}

body.vx-user-shell .n-tag {
  border-radius: 999px !important;
}

/* Login, register and password-reset pages */
body.vx-auth-page #app > .wh-full {
  position: relative;
  min-height: 100vh;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(49, 177, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(130, 94, 255, 0.2), transparent 31rem),
    radial-gradient(circle at 54% 92%, rgba(38, 224, 173, 0.1), transparent 28rem),
    linear-gradient(145deg, #070a13, #0b1022 52%, #080b16) !important;
}

body.vx-auth-page #app > .wh-full::before,
body.vx-auth-page #app > .wh-full::after {
  position: absolute;
  width: 320px;
  height: 320px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.48;
}

body.vx-auth-page #app > .wh-full::before {
  top: -190px;
  left: -130px;
  border: 1px solid rgba(85, 194, 255, 0.28);
  box-shadow: 0 0 120px rgba(85, 194, 255, 0.12), inset 0 0 80px rgba(85, 194, 255, 0.09);
}

body.vx-auth-page #app > .wh-full::after {
  right: -150px;
  bottom: -210px;
  border: 1px solid rgba(140, 102, 255, 0.28);
  box-shadow: 0 0 120px rgba(124, 92, 255, 0.16), inset 0 0 80px rgba(124, 92, 255, 0.1);
}

body.vx-auth-page .vx-login-card {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 32px));
  max-width: none !important;
  overflow: hidden;
  border: 1px solid rgba(139, 162, 205, 0.2) !important;
  border-radius: 22px !important;
  background: rgba(13, 18, 34, 0.78) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset !important;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

body.vx-auth-page .vx-login-card::before {
  display: block;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--vx-blue), var(--vx-indigo), var(--vx-purple));
  box-shadow: 0 0 24px rgba(85, 194, 255, 0.58);
}

body.vx-auth-page .vx-login-card > .n-card__content,
body.vx-auth-page .vx-login-card > .n-card__content:first-child {
  padding-top: 0 !important;
}

.vx-brand-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 2px 0 18px;
  color: #bdc9dd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vx-brand-mark {
  width: 46px;
  height: 36px;
  flex: 0 0 46px;
  background: url("./images/logo-v2.png") center / contain no-repeat;
  filter: drop-shadow(0 7px 14px rgba(69, 116, 255, 0.3));
}

.vx-brand-mark::after {
  display: none;
}

body.vx-auth-page .vx-login-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
  color: transparent !important;
  font-size: clamp(34px, 8vw, 46px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, #ffffff 12%, #66d1ff 48%, #8d7aff 82%);
  background-clip: text;
  -webkit-background-clip: text;
}

body.vx-auth-page .vx-login-card h5 {
  max-width: 320px;
  margin-right: auto;
  margin-left: auto;
  color: var(--vx-muted) !important;
  line-height: 1.7;
}

body.vx-auth-page .vx-login-card .vx-auth-typing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.vx-register-code-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: -4px 0 14px;
  padding: 9px 11px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid rgba(92, 177, 255, 0.18);
  border-radius: 10px;
  background: rgba(55, 128, 220, 0.08);
  animation: vx-register-hint-in 0.22s ease-out both;
}

.vx-register-code-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  fill: none;
  stroke: #69c8ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

html:not(.dark) .vx-register-code-hint {
  color: #52647c;
  border-color: rgba(44, 125, 218, 0.18);
  background: rgba(44, 125, 218, 0.07);
}

@keyframes vx-register-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.vx-auth-typing__text {
  max-width: 100%;
  overflow: hidden;
  color: transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  background: linear-gradient(120deg, #6cf0ff 0%, #8b5cff 52%, #35ffb5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vx-auth-typing__cursor {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 2px;
  color: #6cf0ff;
  font-weight: 400;
  animation: vx-auth-cursor-blink 0.85s step-end infinite;
}

@keyframes vx-auth-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.vx-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
}

.vx-trust-row span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(115, 170, 255, 0.14);
  border-radius: 999px;
  color: #9fb1c9;
  background: rgba(74, 111, 182, 0.07);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vx-trust-row span::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--vx-green);
  box-shadow: 0 0 9px rgba(85, 230, 181, 0.55);
}

body.vx-auth-page .vx-login-card .n-button--primary-type {
  min-height: 42px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html.dark body.vx-auth-page .vx-login-card .n-button--primary-type {
  border: 0 !important;
  outline: 0 !important;
}

html.dark body.vx-auth-page .vx-login-card .n-button--primary-type::before,
html.dark body.vx-auth-page .vx-login-card .n-button--primary-type::after,
html.dark body.vx-auth-page .vx-login-card .n-button--primary-type .n-button__border,
html.dark body.vx-auth-page .vx-login-card .n-button--primary-type .n-button__state-border {
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.vx-auth-page .vx-login-card a {
  color: #9fb7d7;
  text-decoration: none;
  transition: color 160ms ease;
}

body.vx-auth-page .vx-login-card a:hover {
  color: #64ceff;
}

body.vx-auth-page .vx-auth-footer {
  border-top: 1px solid var(--vx-border);
  background: rgba(7, 11, 22, 0.48) !important;
}

/* Auth pages follow the same persisted light/dark mode as the user panel. */
html:not(.dark) body.vx-auth-page {
  color-scheme: light;
  --vx-bg: #f1f5fb;
  --vx-surface: rgba(255, 255, 255, 0.9);
  --vx-surface-strong: #ffffff;
  --vx-border: rgba(53, 78, 116, 0.14);
  --vx-border-bright: rgba(37, 126, 255, 0.28);
  --vx-text: #18243a;
  --vx-muted: #657289;
  --vx-shadow: 0 26px 80px rgba(48, 75, 115, 0.16);
  color: var(--vx-text);
  background:
    radial-gradient(circle at 14% 12%, rgba(47, 163, 246, 0.12), transparent 29rem),
    radial-gradient(circle at 84% 10%, rgba(116, 91, 242, 0.1), transparent 30rem),
    linear-gradient(145deg, #f7f9fd, #edf3fa 54%, #f6f8fc);
}

html:not(.dark) body.vx-auth-page::before {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(44, 72, 112, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 72, 112, 0.035) 1px, transparent 1px);
}

html:not(.dark) body.vx-auth-page #app > .wh-full {
  background:
    radial-gradient(circle at 18% 24%, rgba(49, 177, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 82% 16%, rgba(130, 94, 255, 0.11), transparent 31rem),
    radial-gradient(circle at 54% 92%, rgba(38, 200, 160, 0.08), transparent 28rem),
    linear-gradient(145deg, #f8fafd, #edf3fa 52%, #f6f8fc) !important;
}

html:not(.dark) body.vx-auth-page #app > .wh-full::before {
  border-color: rgba(55, 159, 226, 0.2);
  box-shadow: 0 0 120px rgba(55, 159, 226, 0.08), inset 0 0 80px rgba(55, 159, 226, 0.06);
}

html:not(.dark) body.vx-auth-page #app > .wh-full::after {
  border-color: rgba(120, 93, 222, 0.18);
  box-shadow: 0 0 120px rgba(120, 93, 222, 0.08), inset 0 0 80px rgba(120, 93, 222, 0.055);
}

html:not(.dark) body.vx-auth-page .vx-login-card {
  border-color: rgba(62, 91, 136, 0.14) !important;
  color: #1d2a40 !important;
  background: rgba(255, 255, 255, 0.91) !important;
  box-shadow: 0 28px 90px rgba(49, 74, 113, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.72) inset !important;
}

html:not(.dark) body.vx-auth-page .vx-brand-lockup {
  color: #66758c;
}

html:not(.dark) body.vx-auth-page .vx-login-card h1 {
  background: linear-gradient(100deg, #173052 10%, #1688cf 51%, #6656d8 86%);
  background-clip: text;
  -webkit-background-clip: text;
}

html:not(.dark) body.vx-auth-page .vx-login-card h5 {
  color: #66748a !important;
}

html:not(.dark) body.vx-auth-page .vx-auth-typing__text {
  background: linear-gradient(120deg, #087ca7 0%, #5a50c8 54%, #078967 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not(.dark) body.vx-auth-page .vx-auth-typing__cursor {
  color: #2379c8;
}

html:not(.dark) body.vx-auth-page .vx-trust-row span {
  border-color: rgba(57, 128, 210, 0.14);
  color: #586a82;
  background: rgba(235, 244, 254, 0.82);
}

html:not(.dark) body.vx-auth-page .vx-login-card .n-input,
html:not(.dark) body.vx-auth-page .vx-login-card .n-base-selection {
  color: #24324a !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(56, 82, 122, 0.17) !important;
}

html:not(.dark) body.vx-auth-page .vx-login-card .n-input:hover,
html:not(.dark) body.vx-auth-page .vx-login-card .n-input.n-input--focus,
html:not(.dark) body.vx-auth-page .vx-login-card .n-base-selection:hover,
html:not(.dark) body.vx-auth-page .vx-login-card .n-base-selection.n-base-selection--active {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(42, 137, 238, 0.5), 0 0 0 3px rgba(47, 143, 244, 0.09) !important;
}

html:not(.dark) body.vx-auth-page .vx-login-card a {
  color: #58708f;
}

html:not(.dark) body.vx-auth-page .vx-login-card a:hover {
  color: #176ec5;
}

html:not(.dark) body.vx-auth-page .vx-auth-footer {
  border-top-color: rgba(57, 82, 120, 0.12);
  color: #64738a !important;
  background: rgba(243, 247, 252, 0.96) !important;
}

html:not(.dark) body.vx-auth-page .vx-auth-footer .n-button,
html:not(.dark) body.vx-auth-page .vx-auth-footer .n-icon {
  color: #5b6c84 !important;
}

html:not(.dark) body.vx-auth-page .vx-auth-footer .n-button:hover {
  color: #176ec5 !important;
}

html:not(.dark) body.vx-auth-page .vx-auth-footer .n-divider {
  background: rgba(73, 96, 130, 0.2) !important;
}

/* Login notice */
.vx-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 13, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: vx-fade-in 180ms ease both;
}

.vx-notice {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(112, 179, 255, 0.28);
  border-radius: 22px;
  color: var(--vx-text);
  background:
    radial-gradient(circle at 86% 4%, rgba(124, 92, 255, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(21, 28, 51, 0.98), rgba(10, 15, 29, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62), 0 0 70px rgba(82, 127, 255, 0.08);
  animation: vx-pop-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.vx-notice::before {
  display: block;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--vx-blue), var(--vx-indigo), var(--vx-purple));
}

.vx-notice__body {
  padding: 30px 30px 20px;
}

.vx-notice__eyebrow {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 16px;
  color: #7dd8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.vx-notice__eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--vx-green);
  box-shadow: 0 0 14px rgba(85, 230, 181, 0.65);
}

.vx-notice h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.vx-notice p {
  margin: 0;
  color: #b4c0d3;
  font-size: 15px;
  line-height: 1.75;
}

.vx-notice__path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(112, 179, 255, 0.18);
  border-radius: 13px;
  color: #d9e6f7;
  background: rgba(71, 108, 181, 0.1);
  font-size: 13px;
}

.vx-notice__path span {
  color: #64748b;
}

.vx-notice__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 30px 30px;
}

.vx-notice__actions--single {
  grid-template-columns: 1fr;
}

.vx-notice__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #dbe7f6;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.vx-notice__button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.vx-notice__button--primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(110deg, #3fbfff, #7868ff 55%, #985cff);
  box-shadow: 0 10px 28px rgba(92, 109, 255, 0.26);
}

.vx-notice__button--primary:hover {
  background: linear-gradient(110deg, #55c8ff, #8879ff 55%, #a76dff);
  filter: brightness(1.04);
}

.vx-notice__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 50%;
  color: #aab7ca;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vx-notice__close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Follow the active light theme instead of forcing a dark login notice. */
html:not(.dark) .vx-notice-overlay {
  background: rgba(35, 51, 77, 0.32);
}

html:not(.dark) .vx-notice {
  border-color: rgba(54, 116, 198, 0.2);
  color: #17233a;
  background:
    radial-gradient(circle at 86% 4%, rgba(119, 94, 235, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 253, 0.99));
  box-shadow: 0 30px 86px rgba(43, 64, 96, 0.24), 0 0 60px rgba(82, 127, 255, 0.07);
}

html:not(.dark) .vx-notice__eyebrow {
  color: #1677c4;
}

html:not(.dark) .vx-notice p {
  color: #53647d;
}

html:not(.dark) .vx-notice__path {
  border-color: rgba(45, 112, 197, 0.16);
  color: #314866;
  background: rgba(225, 238, 253, 0.7);
}

html:not(.dark) .vx-notice__path span {
  color: #8090a6;
}

html:not(.dark) .vx-notice__close {
  border-color: rgba(71, 94, 128, 0.16);
  color: #617089;
  background: rgba(231, 237, 246, 0.82);
}

html:not(.dark) .vx-notice__close:hover {
  color: #1768d5;
  background: #e5f1ff;
}

/* Refined logged-in dashboard */
body.vx-app-page .n-layout-header {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
}

body.vx-app-page .vx-official-link {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-right: 20px;
  padding: 0 12px;
  border: 1px solid rgba(112, 181, 255, 0.22);
  border-radius: 11px;
  color: #dfeeff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(110deg, rgba(54, 160, 234, 0.12), rgba(115, 92, 238, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.vx-app-page .vx-official-link svg {
  width: 16px;
  height: 16px;
}

body.vx-app-page .vx-official-link:hover,
body.vx-app-page .vx-official-link:focus-visible {
  border-color: rgba(91, 194, 255, 0.46);
  color: #ffffff;
  background: linear-gradient(110deg, rgba(54, 180, 255, 0.2), rgba(123, 92, 255, 0.22));
  box-shadow: 0 9px 24px rgba(58, 119, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

body.vx-app-page .vx-official-link:focus-visible {
  outline: 2px solid rgba(85, 194, 255, 0.5);
  outline-offset: 2px;
}

/* Safari can occasionally leave Xboard's routed page in its transparent
   enter state after asynchronous content updates. Keep the entering page
   visible while preserving the normal leave transition. */
body.vx-app-page .fade-slide-enter-active,
body.vx-app-page .fade-slide-enter-from {
  opacity: 1 !important;
  transform: none !important;
}

body.vx-app-page .n-layout-header .n-button {
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

body.vx-app-page .n-layout-header .n-button:hover {
  border-color: rgba(85, 194, 255, 0.28) !important;
  background: rgba(85, 194, 255, 0.08) !important;
}

body.vx-app-page .n-layout-sider {
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 119, 255, 0.13), transparent 19rem),
    rgba(8, 12, 27, 0.93) !important;
}

body.vx-app-page .vx-side-brand {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: center;
  color: transparent !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, #ffffff 8%, #6cd4ff 54%, #9382ff);
  background-clip: text;
  -webkit-background-clip: text;
}

body.vx-app-page .vx-side-brand::before {
  display: none;
  content: none;
}

body.vx-app-page .vx-side-logo-shell {
  gap: 2px;
  padding: 0 14px;
}

body.vx-app-page .n-layout-sider .h-15 > img:first-child,
body.vx-app-page .vx-side-logo-image {
  display: block;
  width: 42px;
  height: 34px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(69, 116, 255, 0.3));
}

body.vx-app-page .side-menu .n-menu-item-content {
  margin: 4px 8px;
  border-radius: 12px;
}

body.vx-app-page .side-menu .n-menu-item-content::before {
  border-radius: 12px !important;
}

body.vx-app-page .side-menu .n-menu-item-content--selected {
  box-shadow: 0 10px 28px rgba(46, 111, 255, 0.13), inset 0 0 0 1px rgba(99, 166, 255, 0.12);
}

.vx-dashboard-grid {
  width: min(100%, 1540px);
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 8px 10px 64px;
}

.vx-hero-card {
  overflow: hidden;
  border-color: rgba(107, 169, 255, 0.2) !important;
  border-radius: 22px !important;
  background: rgba(8, 13, 26, 0.75) !important;
}

.vx-hero-card .carousel-img {
  position: relative;
  isolation: isolate;
  height: 218px !important;
  padding: 26px 28px !important;
  overflow: hidden;
  background-position: center !important;
  transition: transform 400ms ease, filter 400ms ease;
}

.vx-hero-card .carousel-img::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.86), rgba(5, 10, 23, 0.34) 58%, rgba(13, 18, 38, 0.62)),
    linear-gradient(0deg, rgba(4, 8, 18, 0.66), transparent 62%);
}

.vx-hero-card:hover .carousel-img {
  filter: saturate(1.07) brightness(1.04);
}

.vx-hero-card .n-tag {
  border: 1px solid rgba(255, 179, 89, 0.24) !important;
  background: linear-gradient(110deg, rgba(255, 146, 52, 0.92), rgba(245, 102, 52, 0.92)) !important;
  box-shadow: 0 8px 24px rgba(246, 112, 53, 0.2);
}

.vx-hero-card .carousel-img .vx-hero-title {
  color: #f7fbff !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.56);
}

.vx-hero-card .carousel-img .vx-hero-date {
  color: rgba(225, 236, 250, 0.82) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.vx-subscription-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(111, 168, 255, 0.22) !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(120, 95, 255, 0.14), transparent 22rem),
    linear-gradient(145deg, rgba(21, 30, 54, 0.94), rgba(13, 20, 38, 0.9)) !important;
}

.vx-subscription-card::after {
  position: absolute;
  top: -95px;
  right: -75px;
  width: 240px;
  height: 240px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(105, 197, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 85px rgba(105, 126, 255, 0.08), inset 0 0 70px rgba(109, 91, 255, 0.06);
}

.vx-subscription-card .n-card-header,
.vx-subscription-card .n-card__content {
  position: relative;
  z-index: 1;
}

.vx-subscription-card .text-block {
  color: transparent;
  font-size: clamp(24px, 3vw, 26px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff 8%, #72d4ff 54%, #a28cff);
  background-clip: text;
  -webkit-background-clip: text;
}

.vx-subscription-card .n-progress {
  --n-fill-color: #6b7cff !important;
  margin: 20px 0 10px;
}

.vx-subscription-card .n-progress-graph-line-rail {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vx-subscription-card .n-progress-graph-line-fill {
  background: linear-gradient(90deg, #48c6ff, #716dff 55%, #9b65ff) !important;
  box-shadow: 0 0 20px rgba(103, 121, 255, 0.48);
}

.vx-shortcuts-card {
  overflow: hidden;
}

.vx-shortcuts-card .n-card__content {
  padding: 0 !important;
}

.vx-shortcuts-card .n-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
}

.vx-shortcuts-card .n-list-item {
  min-width: 0;
  min-height: 92px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(142, 166, 204, 0.13) !important;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vx-shortcuts-card .n-list-item > * {
  width: 100%;
  min-height: 92px;
}

.vx-shortcuts-card .n-list-item:hover {
  border-color: rgba(99, 182, 255, 0.27) !important;
  background: linear-gradient(120deg, rgba(60, 174, 255, 0.08), rgba(126, 91, 255, 0.07));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.vx-shortcuts-card .n-list-item .text-base {
  margin-bottom: 5px;
  color: #edf6ff;
  font-weight: 700;
}

.vx-shortcuts-card .n-list-item .text-sm {
  color: #8f9db2 !important;
  line-height: 1.55;
}

.vx-shortcuts-card .n-list-item .n-icon {
  color: #71cbff !important;
  filter: drop-shadow(0 0 10px rgba(85, 194, 255, 0.24));
}

.vx-shortcut-item--2 .n-icon,
.vx-shortcut-item--3 .n-icon {
  color: #9b83ff !important;
}

.vx-shortcut-item--4 .n-icon {
  color: #5ce0b7 !important;
}

body.vx-app-page .n-card-header__main {
  color: #f4f8ff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.vx-app-page .n-data-table-th {
  background: rgba(45, 63, 103, 0.18) !important;
}

body.vx-app-page .n-data-table-td {
  background: rgba(11, 17, 31, 0.26) !important;
}

body.vx-app-page .n-data-table-tr:hover .n-data-table-td {
  background: rgba(72, 112, 185, 0.11) !important;
}

/* User-panel color modes. XBoard toggles the `dark` class on <html>. */
html.dark body.vx-app-page {
  color-scheme: dark;
  --vx-bg: #080b16;
  --vx-surface: rgba(17, 23, 42, 0.82);
  --vx-surface-strong: rgba(18, 24, 43, 0.96);
  --vx-border: rgba(148, 163, 184, 0.16);
  --vx-text: #f4f7fc;
  --vx-muted: #a5b1c4;
}

html:not(.dark) body.vx-app-page {
  color-scheme: light;
  --vx-bg: #f3f6fb;
  --vx-surface: rgba(255, 255, 255, 0.94);
  --vx-surface-strong: #ffffff;
  --vx-border: rgba(55, 79, 118, 0.13);
  --vx-border-bright: rgba(37, 126, 255, 0.28);
  --vx-text: #172033;
  --vx-muted: #657289;
  --vx-shadow: 0 18px 48px rgba(47, 73, 112, 0.11);
  color: var(--vx-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(58, 166, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(124, 92, 255, 0.09), transparent 30rem),
    linear-gradient(145deg, #f7f9fc, #eef3f9 58%, #f6f8fc);
}

body.vx-app-page article > section.flex-1,
body.vx-app-page .cus-scroll-y.wh-full.flex-col {
  background: transparent !important;
}

html:not(.dark) body.vx-app-page::before {
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(40, 69, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 69, 111, 0.035) 1px, transparent 1px);
}

/* Dark mode: quieter active state and clearer navigation text. */
html.dark body.vx-app-page .n-layout-header {
  border-color: rgba(148, 163, 184, 0.13) !important;
  color: #dfe8f7 !important;
  background: rgba(10, 13, 24, 0.9) !important;
}

html.dark body.vx-app-page .n-layout-header .n-icon,
html.dark body.vx-app-page .n-layout-header .n-button,
html.dark body.vx-app-page .n-breadcrumb,
html.dark body.vx-app-page .n-breadcrumb-item {
  color: #dbe5f4 !important;
}

html.dark body.vx-app-page .n-layout-header .vx-account-trigger,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger *,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover * {
  color: #e8f1ff !important;
  -webkit-text-fill-color: #e8f1ff !important;
}

html.dark body.vx-app-page .n-layout-header .vx-account-trigger {
  --n-text-color: #e8f1ff !important;
  --n-text-color-hover: #e8f1ff !important;
  --n-text-color-focus: #e8f1ff !important;
  --n-text-color-pressed: #e8f1ff !important;
  --n-color-hover: rgba(85, 194, 255, 0.1) !important;
  --n-color-focus: rgba(85, 194, 255, 0.1) !important;
  --n-color-pressed: rgba(85, 194, 255, 0.14) !important;
  --n-border-hover: 1px solid rgba(85, 194, 255, 0.28) !important;
  --n-border-focus: 1px solid rgba(85, 194, 255, 0.28) !important;
  color: #e8f1ff !important;
  opacity: 1 !important;
  filter: none !important;
}

html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover {
  border-color: rgba(85, 194, 255, 0.28) !important;
  background: rgba(85, 194, 255, 0.1) !important;
}

html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover .n-button__content,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:focus-visible .n-button__content,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:active .n-button__content {
  color: #e8f1ff !important;
  -webkit-text-fill-color: #e8f1ff !important;
}

html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover *,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover svg,
html.dark body.vx-app-page .n-layout-header .vx-account-trigger:hover path {
  color: #e8f1ff !important;
  opacity: 1 !important;
  filter: none !important;
}

/* The account label is filled asynchronously, so target the stable avatar
   structure as well as the enhancement class. This keeps the avatar and
   email exactly the same color in every interaction state. */
html.dark body.vx-app-page .n-layout-header button:has(svg.rounded-full),
html.dark body.vx-app-page .n-layout-header button:has(svg.rounded-full):hover,
html.dark body.vx-app-page .n-layout-header button:has(svg.rounded-full):focus-visible,
html.dark body.vx-app-page .n-layout-header button:has(svg.rounded-full):active,
html.dark body.vx-app-page .n-layout-header button:has(svg.rounded-full) * {
  --n-text-color: #e8f1ff !important;
  --n-text-color-hover: #e8f1ff !important;
  --n-text-color-focus: #e8f1ff !important;
  --n-text-color-pressed: #e8f1ff !important;
  color: #e8f1ff !important;
  -webkit-text-fill-color: #e8f1ff !important;
  opacity: 1 !important;
  filter: none !important;
}

html.dark body.vx-app-page .side-menu .n-menu-item-content {
  color: #aeb9cb !important;
}

html.dark body.vx-app-page .side-menu .n-menu-item-content-header,
html.dark body.vx-app-page .side-menu .n-menu-item-content .n-icon {
  color: inherit !important;
}

html.dark body.vx-app-page .side-menu .n-menu-item-group-title {
  color: #68758a !important;
}

body.vx-app-page .side-menu .n-menu-item-content--selected {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

body.vx-app-page .side-menu .n-menu-item-content--selected::before {
  right: 0 !important;
  left: 0 !important;
  border-left: 0 !important;
  border-radius: 11px !important;
}

body.vx-app-page .side-menu .n-menu-item-content--selected::after {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  z-index: 2;
  width: 3px;
  content: "";
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #50c8ff, #7b70ff);
  box-shadow: 0 0 12px rgba(80, 176, 255, 0.46);
}

html.dark body.vx-app-page .side-menu .n-menu-item-content--selected {
  color: #eef6ff !important;
  box-shadow: inset 0 0 0 1px rgba(102, 172, 255, 0.13), 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.dark body.vx-app-page .side-menu .n-menu-item-content--selected::before {
  background: linear-gradient(100deg, rgba(42, 150, 255, 0.2), rgba(111, 86, 255, 0.11)) !important;
}

html.dark body.vx-app-page .side-menu .n-menu-item-content:not(.n-menu-item-content--selected):hover {
  color: #e4edf9 !important;
}

html.dark body.vx-app-page .side-menu .n-menu-item-content:not(.n-menu-item-content--selected):hover::before {
  border-left: 0 !important;
  background: rgba(91, 137, 203, 0.08) !important;
}

/* Light mode: true light surfaces, readable type and restrained blue accents. */
html:not(.dark) body.vx-app-page .n-layout-header {
  border-color: rgba(51, 76, 115, 0.12) !important;
  color: #24324a !important;
  background: rgba(255, 255, 255, 0.91) !important;
  box-shadow: 0 10px 34px rgba(62, 83, 117, 0.08);
}

html:not(.dark) body.vx-app-page .n-layout-header .n-icon,
html:not(.dark) body.vx-app-page .n-layout-header .n-button,
html:not(.dark) body.vx-app-page .n-breadcrumb,
html:not(.dark) body.vx-app-page .n-breadcrumb-item {
  color: #33445f !important;
}

html:not(.dark) body.vx-app-page .n-layout-header .n-button {
  border-color: rgba(63, 88, 129, 0.12) !important;
  background: rgba(245, 248, 252, 0.92) !important;
}

html:not(.dark) body.vx-app-page .n-layout-header .n-button:hover {
  border-color: rgba(43, 133, 255, 0.25) !important;
  color: #1768d5 !important;
  background: #edf6ff !important;
}

html:not(.dark) body.vx-app-page .vx-official-link {
  border-color: rgba(43, 122, 218, 0.18);
  color: #28557f;
  background: linear-gradient(110deg, rgba(230, 243, 255, 0.96), rgba(239, 235, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html:not(.dark) body.vx-app-page .vx-official-link:hover,
html:not(.dark) body.vx-app-page .vx-official-link:focus-visible {
  border-color: rgba(43, 133, 255, 0.34);
  color: #135fae;
  background: linear-gradient(110deg, #e2f2ff, #ece9ff);
  box-shadow: 0 9px 22px rgba(49, 111, 188, 0.13);
}

html:not(.dark) body.vx-app-page .n-layout-sider {
  border-color: rgba(53, 78, 116, 0.12) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 146, 255, 0.13), transparent 19rem),
    rgba(249, 251, 255, 0.96) !important;
  box-shadow: 14px 0 40px rgba(65, 87, 123, 0.08);
}

html:not(.dark) body.vx-app-page .vx-side-brand {
  background: linear-gradient(100deg, #153a6d 8%, #168ee7 55%, #6557da);
  background-clip: text;
  -webkit-background-clip: text;
}

html:not(.dark) body.vx-app-page .vx-side-brand::before {
  display: none;
}

html:not(.dark) body.vx-app-page .n-layout-sider .h-15 > img:first-child,
html:not(.dark) body.vx-app-page .vx-side-logo-image {
  filter: drop-shadow(0 7px 13px rgba(55, 108, 201, 0.2));
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content {
  color: #526078 !important;
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content-header,
html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content .n-icon {
  color: inherit !important;
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-group-title {
  color: #929db0 !important;
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content--selected {
  color: #135eae !important;
  box-shadow: inset 0 0 0 1px rgba(55, 137, 235, 0.14), 0 8px 22px rgba(49, 111, 188, 0.08);
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content--selected::before {
  background: linear-gradient(105deg, rgba(57, 160, 255, 0.14), rgba(116, 92, 255, 0.08)) !important;
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content:not(.n-menu-item-content--selected):hover {
  color: #1d5f9f !important;
}

html:not(.dark) body.vx-app-page .side-menu .n-menu-item-content:not(.n-menu-item-content--selected):hover::before {
  border-left: 0 !important;
  background: rgba(49, 133, 220, 0.065) !important;
}

html:not(.dark) body.vx-app-page .n-card,
html:not(.dark) body.vx-app-page .n-modal,
html:not(.dark) body.vx-app-page .n-popover,
html:not(.dark) body.vx-app-page .n-drawer-content {
  color: #1a2639 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 17px 48px rgba(52, 75, 112, 0.1) !important;
}

html:not(.dark) body.vx-app-page .n-card:hover {
  border-color: rgba(57, 132, 226, 0.23) !important;
  box-shadow: 0 21px 56px rgba(49, 77, 121, 0.14) !important;
}

html:not(.dark) body.vx-app-page .n-card-header__main {
  color: #1b2a42 !important;
}

html:not(.dark) body.vx-app-page .n-input,
html:not(.dark) body.vx-app-page .n-base-selection,
html:not(.dark) body.vx-app-page .n-input-wrapper,
html:not(.dark) body.vx-app-page .n-input-tag {
  color: #22314a !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(55, 79, 116, 0.16) !important;
}

html:not(.dark) body.vx-app-page .n-input:hover,
html:not(.dark) body.vx-app-page .n-input.n-input--focus,
html:not(.dark) body.vx-app-page .n-base-selection:hover,
html:not(.dark) body.vx-app-page .n-base-selection.n-base-selection--active {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(42, 137, 238, 0.52), 0 0 0 3px rgba(47, 143, 244, 0.09) !important;
}

html:not(.dark) body.vx-app-page .n-data-table-th {
  color: #34445f !important;
  background: #eef3f9 !important;
}

html:not(.dark) body.vx-app-page .n-data-table-td {
  color: #24324a !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

html:not(.dark) body.vx-app-page .n-data-table-tr:hover .n-data-table-td {
  background: #f2f7fd !important;
}

html:not(.dark) body.vx-app-page .n-list,
html:not(.dark) body.vx-app-page .n-alert {
  background: rgba(255, 255, 255, 0.9) !important;
}

html:not(.dark) body.vx-app-page .vx-subscription-card {
  border-color: rgba(75, 133, 211, 0.18) !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(112, 91, 255, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96)) !important;
}

html:not(.dark) body.vx-app-page .vx-subscription-card::after {
  border-color: rgba(68, 137, 218, 0.12);
  box-shadow: 0 0 75px rgba(82, 122, 211, 0.08), inset 0 0 65px rgba(101, 88, 220, 0.045);
}

html:not(.dark) body.vx-app-page .vx-subscription-card .text-block {
  background: linear-gradient(100deg, #172f53 8%, #147dc8 54%, #6554d8);
  background-clip: text;
  -webkit-background-clip: text;
}

html:not(.dark) body.vx-app-page .vx-subscription-card .n-progress-graph-line-rail {
  background: #e1e8f2 !important;
  box-shadow: inset 0 1px 2px rgba(45, 68, 102, 0.12);
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list {
  background: transparent !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item {
  border-color: rgba(64, 91, 132, 0.12) !important;
  background: rgba(247, 249, 253, 0.9);
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item:hover {
  border-color: rgba(49, 139, 236, 0.22) !important;
  background: linear-gradient(120deg, rgba(49, 158, 245, 0.08), rgba(123, 91, 255, 0.055));
  box-shadow: 0 12px 30px rgba(55, 87, 132, 0.1);
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item .text-base {
  color: #1c2c45 !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item .text-sm {
  color: #66748a !important;
}

/* Dashboard shortcuts: keep all four actions equally visible in both modes. */
body.vx-app-page .vx-shortcuts-card .n-list-item {
  position: relative;
  isolation: isolate;
}

body.vx-app-page .vx-shortcuts-card .n-list-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 3px;
  content: "";
  border-radius: 15px 0 0 15px;
  background: #48bff5;
  opacity: 0.82;
  pointer-events: none;
}

body.vx-app-page .vx-shortcuts-card .vx-shortcut-item--2::before {
  background: #8575f2;
}

body.vx-app-page .vx-shortcuts-card .vx-shortcut-item--3::before {
  background: #a66de8;
}

body.vx-app-page .vx-shortcuts-card .vx-shortcut-item--4::before {
  background: #38c39f;
}

body.vx-app-page .vx-shortcuts-card .n-list-item > * {
  box-sizing: border-box;
  padding: 18px 20px !important;
  color: inherit !important;
  background: transparent !important;
}

html.dark body.vx-app-page .vx-shortcuts-card .n-list-item {
  color: #edf4ff !important;
  background: rgba(25, 34, 56, 0.78) !important;
}

html.dark body.vx-app-page .vx-shortcuts-card .n-list-item:hover {
  color: #ffffff !important;
  background: rgba(33, 47, 76, 0.92) !important;
}

html.dark body.vx-app-page .vx-shortcuts-card .n-list-item .text-base {
  color: #f1f6ff !important;
}

html.dark body.vx-app-page .vx-shortcuts-card .n-list-item .text-sm {
  color: #9eacc0 !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item {
  color: #1d2e47 !important;
  background: #f5f8fc !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item:hover {
  color: #12243d !important;
  background: #edf5fd !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item .text-base {
  color: #1b2d47 !important;
}

html:not(.dark) body.vx-app-page .vx-shortcuts-card .n-list-item .text-sm {
  color: #66758b !important;
}

/* The document-search action should feel native to the light palette. */
body.vx-app-page .vx-knowledge-search {
  min-width: 76px;
  font-weight: 700;
  box-shadow: none !important;
}

body.vx-app-page .vx-knowledge-search-group {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(103, 170, 235, 0.3);
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.vx-app-page .vx-knowledge-search-group:focus-within {
  border-color: rgba(83, 183, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(64, 166, 244, 0.1);
}

body.vx-app-page .vx-knowledge-search-group .vx-knowledge-search-input {
  border-radius: 11px 0 0 11px !important;
  box-shadow: none !important;
}

body.vx-app-page .vx-knowledge-search-input .n-input__border,
body.vx-app-page .vx-knowledge-search-input .n-input__state-border {
  border-radius: 11px 0 0 11px !important;
}

body.vx-app-page .vx-knowledge-search-group .vx-knowledge-search {
  align-self: stretch;
  border: 0 !important;
  border-left: 1px solid rgba(103, 170, 235, 0.3) !important;
  border-radius: 0 11px 11px 0 !important;
}

html:not(.dark) body.vx-app-page .vx-knowledge-search {
  color: #1767bd !important;
  background: #eaf4ff !important;
}

html:not(.dark) body.vx-app-page .vx-knowledge-search-group {
  border-color: rgba(45, 114, 190, 0.24);
  background: #ffffff;
}

html:not(.dark) body.vx-app-page .vx-knowledge-search-group:focus-within {
  border-color: rgba(35, 126, 224, 0.52);
  box-shadow: 0 0 0 3px rgba(35, 126, 224, 0.09);
}

html:not(.dark) body.vx-app-page .vx-knowledge-search-group .vx-knowledge-search {
  border-left-color: rgba(45, 114, 190, 0.24) !important;
}

html:not(.dark) body.vx-app-page .vx-knowledge-search:not(.n-button--disabled):hover {
  border-color: rgba(31, 121, 224, 0.38) !important;
  color: #0f58a5 !important;
  background: #dceeff !important;
}

/* Order actions: compact semantic pills instead of two unrelated primary buttons. */
body.vx-app-page .vx-order-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

body.vx-app-page .vx-order-actions > .n-divider,
body.vx-app-page .vx-order-actions > .n-divider-vertical {
  display: none !important;
}

body.vx-app-page .vx-order-action {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 9px !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
}

html.dark body.vx-app-page .vx-order-action--detail {
  border-color: rgba(78, 177, 255, 0.26) !important;
  color: #80d1ff !important;
  background: rgba(44, 143, 223, 0.12) !important;
}

html.dark body.vx-app-page .vx-order-action--cancel {
  border-color: rgba(245, 179, 94, 0.22) !important;
  color: #eabb78 !important;
  background: rgba(181, 119, 48, 0.1) !important;
}

html:not(.dark) body.vx-app-page .vx-order-action--detail {
  border-color: rgba(33, 126, 224, 0.2) !important;
  color: #1767b8 !important;
  background: #eaf4ff !important;
}

html:not(.dark) body.vx-app-page .vx-order-action--cancel {
  border-color: rgba(187, 120, 36, 0.2) !important;
  color: #9a5b13 !important;
  background: #fff5e7 !important;
}

body.vx-app-page .vx-order-action.n-button--disabled {
  border-color: rgba(128, 142, 163, 0.14) !important;
  color: #8b97a8 !important;
  background: rgba(130, 144, 165, 0.08) !important;
  opacity: 0.72;
}

/* Orders: keep the empty table visible and as explicit as the ticket page. */
body.vx-order-page .vx-order-table--empty {
  position: relative !important;
  min-height: 268px;
}

body.vx-order-page .vx-order-table--empty .n-data-table-empty {
  min-height: 220px;
  padding: 38px 20px !important;
  box-sizing: border-box;
  color: var(--vx-muted) !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(82, 174, 255, 0.08), transparent 13rem),
    rgba(10, 15, 29, 0.3) !important;
  opacity: 0 !important;
}

body.vx-order-page .vx-order-table--empty .n-empty {
  gap: 10px;
}

body.vx-order-page .vx-order-table--empty .n-empty__icon {
  color: #73c9ff !important;
  opacity: 0.78;
}

body.vx-order-page .vx-order-table--empty .n-empty__description {
  color: #aebace !important;
  font-size: 14px;
  font-weight: 600;
}

body.vx-order-page .vx-order-empty {
  position: absolute;
  z-index: 3;
  inset: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  color: #8d98ad;
  background:
    radial-gradient(circle at 50% 42%, rgba(82, 174, 255, 0.08), transparent 13rem),
    rgba(10, 15, 29, 0.18);
  pointer-events: none;
}

body.vx-order-page .vx-order-empty__icon {
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.8;
}

body.vx-order-page .vx-order-empty__text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html:not(.dark) body.vx-order-page .vx-order-table--empty .n-data-table-empty {
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 151, 244, 0.09), transparent 13rem),
    #ffffff !important;
}

html:not(.dark) body.vx-order-page .vx-order-empty {
  color: #75849b;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 151, 244, 0.09), transparent 13rem),
    rgba(255, 255, 255, 0.7);
}

html:not(.dark) body.vx-order-page .vx-order-table--empty .n-empty__icon {
  color: #3c94e8 !important;
}

html:not(.dark) body.vx-order-page .vx-order-table--empty .n-empty__description {
  color: #687993 !important;
}

/* Node status: prevent the long list from shrinking inside the page's
   existing scroll column and being clipped by its rounded container. */
body.vx-node-page .vx-node-list {
  flex-shrink: 0 !important;
}

body.vx-node-page .vx-node-list::before {
  display: flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin: 2px 2px 12px;
  padding: 7px 11px;
  border: 1px solid rgba(76, 173, 246, 0.2);
  border-radius: 999px;
  color: #aebbd0;
  background: rgba(49, 135, 211, 0.08);
  content: "当前套餐可用节点 " attr(data-vx-node-count) " 个";
  font-size: 13px;
  font-weight: 600;
}

html:not(.dark) body.vx-node-page .vx-node-list::before {
  border-color: rgba(42, 129, 217, 0.18);
  color: #60728e;
  background: rgba(53, 143, 230, 0.07);
}

/* Ticket-list actions share one compact shape while retaining clear intent. */
body.vx-app-page .vx-ticket-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

body.vx-app-page .vx-ticket-actions > .n-divider,
body.vx-app-page .vx-ticket-actions > .n-divider-vertical {
  display: none !important;
}

body.vx-app-page .vx-ticket-action.n-button {
  min-width: 58px;
  min-height: 30px;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
}

html.dark body.vx-app-page .vx-ticket-action--view {
  border-color: rgba(78, 177, 255, 0.26) !important;
  color: #80d1ff !important;
  background: rgba(44, 143, 223, 0.12) !important;
}

html.dark body.vx-app-page .vx-ticket-action--close {
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #b6c2d3 !important;
  background: rgba(127, 143, 166, 0.09) !important;
}

html:not(.dark) body.vx-app-page .vx-ticket-action--view {
  border-color: rgba(33, 126, 224, 0.2) !important;
  color: #1767b8 !important;
  background: #eaf4ff !important;
}

html:not(.dark) body.vx-app-page .vx-ticket-action--close {
  border-color: rgba(82, 103, 133, 0.16) !important;
  color: #586b84 !important;
  background: #f0f3f7 !important;
}

body.vx-app-page .vx-ticket-action.n-button--disabled {
  border-color: rgba(128, 142, 163, 0.12) !important;
  color: #8b97a8 !important;
  background: rgba(130, 144, 165, 0.07) !important;
  opacity: 0.62;
}

/* Subscription filters: a deliberate segmented control instead of loose radios. */
body.vx-app-page .vx-plan-filter {
  display: inline-flex !important;
  gap: 4px;
  align-items: center;
  width: min(calc(100% - 24px), 304px);
  margin: 10px 12px 0;
  padding: 4px !important;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(111, 169, 236, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(10, 16, 31, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 22px rgba(0, 0, 0, 0.1);
}

body.vx-app-page .vx-plan-filter__option {
  display: flex !important;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 10px !important;
  color: #9eabc0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.vx-app-page .vx-plan-filter-source {
  display: none !important;
}

body.vx-app-page .vx-plan-filter__option:hover {
  color: #e8f2ff !important;
  background: rgba(77, 139, 224, 0.1) !important;
}

body.vx-app-page .vx-plan-filter__option.is-active {
  color: #ffffff !important;
  background: linear-gradient(110deg, #259fe4, #6669ee 58%, #875ce2) !important;
  box-shadow: 0 7px 18px rgba(67, 105, 218, 0.25) !important;
}

html:not(.dark) body.vx-app-page .vx-plan-filter {
  border-color: rgba(50, 108, 184, 0.16) !important;
  background: rgba(238, 243, 250, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(47, 73, 112, 0.08);
}

html:not(.dark) body.vx-app-page .vx-plan-filter__option {
  color: #5a6c85 !important;
}

html:not(.dark) body.vx-app-page .vx-plan-filter__option:hover {
  color: #1767b8 !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

html:not(.dark) body.vx-app-page .vx-plan-filter__option.is-active {
  color: #ffffff !important;
  background: linear-gradient(110deg, #168fd4, #5864df 60%, #7854cf) !important;
  box-shadow: 0 7px 18px rgba(66, 91, 190, 0.22) !important;
}

/* Use one action-button system across invitation and subscription pages. */
body.vx-app-page .vx-panel-action.n-button {
  height: 38px !important;
  min-width: 104px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: linear-gradient(110deg, #28aee9, #646cf2 58%, #865ce4) !important;
  box-shadow: inset 0 0 0 1px rgba(149, 211, 255, 0.2), 0 8px 22px rgba(67, 105, 218, 0.22) !important;
  font-size: 14px;
  font-weight: 700;
}

body.vx-app-page .vx-panel-action.n-button::before,
body.vx-app-page .vx-panel-action.n-button::after,
body.vx-app-page .vx-panel-action.n-button .n-button__border,
body.vx-app-page .vx-panel-action.n-button .n-button__state-border {
  display: none !important;
}

body.vx-app-page .vx-panel-action.n-button:not(.n-button--disabled):hover {
  background: linear-gradient(110deg, #3bbaf1, #747cf5 58%, #946bea) !important;
  box-shadow: inset 0 0 0 1px rgba(174, 224, 255, 0.28), 0 11px 28px rgba(67, 105, 218, 0.3) !important;
}

/* Keep subscription cards and their call-to-action rows aligned even when copy wraps. */
body.vx-app-page .vx-plan-card {
  display: flex !important;
  height: 100%;
  flex-direction: column;
}

body.vx-app-page .vx-plan-card > .n-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.vx-app-page .vx-plan-card .vx-panel-action {
  margin-top: auto;
}

/* Keep the announcement artwork legible in both modes. */
html:not(.dark) body.vx-app-page .vx-hero-card {
  border-color: rgba(71, 124, 194, 0.2) !important;
  background: #0a1020 !important;
  box-shadow: 0 18px 46px rgba(44, 67, 104, 0.16) !important;
}

@keyframes vx-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vx-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  body.vx-app-page .vx-official-link {
    width: 34px;
    margin-right: 14px;
    padding: 0;
  }

  body.vx-app-page .vx-official-link span {
    display: none;
  }

  body.vx-auth-page #app > .wh-full {
    padding: 18px 12px;
  }

  body.vx-auth-page .vx-login-card {
    width: min(100%, 430px);
    border-radius: 18px !important;
  }

  .vx-notice__body {
    padding: 26px 20px 18px;
  }

  .vx-notice__actions {
    grid-template-columns: 1fr;
    padding: 0 20px 22px;
  }

  .vx-trust-row {
    gap: 6px;
  }

  .vx-trust-row span {
    padding: 4px 7px;
    font-size: 9px;
  }

  body.vx-app-page .vx-plan-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    width: calc(100% - 24px);
    max-width: none;
    margin: 10px 12px 0;
    padding: 4px !important;
  }

  body.vx-app-page .vx-plan-filter__option {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 8px !important;
    white-space: nowrap;
    text-align: center;
    touch-action: manipulation;
  }

  .vx-dashboard-grid {
    padding: 2px 0 36px;
  }

  .vx-hero-card .carousel-img {
    height: 190px !important;
    padding: 20px !important;
  }

  .vx-shortcuts-card .n-list {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .vx-auth-typing__cursor {
    animation: none !important;
  }
}
