:root {
  --nl-ui-accent: var(--primary-color, #3478f6);
  --nl-ui-accent-hover: var(--primary-color-hover, #286be8);
  --nl-ui-accent-strong: var(--primary-color-pressed, #1f63dd);
  --nl-ui-accent-suppl: var(--primary-color-suppl, var(--nl-ui-accent-hover));
  --nl-ui-accent-soft: rgba(52, 120, 246, 0.11);
  --nl-ui-accent-soft: color-mix(in srgb, var(--nl-ui-accent) 11%, transparent);
  --nl-ui-wordmark: url("/nl-wordmark.svg?v=nl-20260719-wordmark2");
  --nl-ui-ink: #172033;
  --nl-ui-muted: #647086;
  --nl-ui-line: rgba(126, 145, 170, 0.22);
  --nl-ui-surface: rgba(255, 255, 255, 0.84);
  --nl-ui-surface-strong: rgba(255, 255, 255, 0.94);
  --nl-ui-shadow: 0 1rem 3rem rgba(48, 72, 104, 0.1);
  --nl-ui-shadow-hover: 0 1.35rem 3.4rem rgba(48, 72, 104, 0.15);
  --nl-auth-accent: #315d7a;
  --nl-auth-accent-hover: #274f6c;
  --nl-auth-ink: #172a3a;
  --nl-auth-muted: #647484;
  --nl-ui-radius: 0.9rem;
  --nl-ui-radius-small: 0.58rem;
}

html {
  min-height: 100%;
  background: #eef3f8;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  color: var(--nl-ui-ink);
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  background-color: #e9eff3;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(68, 105, 130, 0.1), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(72, 97, 116, 0.08), transparent 32%),
    linear-gradient(145deg, #f5f8fa 0%, #ebf1f5 52%, #e4ebf0 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(45, 73, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 73, 94, 0.04) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem;
  mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.42) 56%, transparent 88%);
  opacity: 0.52;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.42) 56%, transparent 88%);
}

body::after {
  background-image:
    radial-gradient(circle at 84% 18%, transparent 0 12rem, rgba(46, 77, 99, 0.13) 12.08rem 12.15rem, transparent 12.23rem),
    radial-gradient(circle at 8% 82%, transparent 0 17rem, rgba(46, 77, 99, 0.1) 17.08rem 17.15rem, transparent 17.23rem),
    radial-gradient(circle at 1px 1px, rgba(44, 66, 86, 0.12) 1px, transparent 0);
  background-size: auto, auto, 1.55rem 1.55rem;
  opacity: 0.24;
}

#app,
#app > .n-config-provider {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  background: transparent !important;
}

body .n-config-provider,
body .n-layout,
body .n-layout-scroll-container,
body .n-layout-content,
body main,
body article,
body article > section {
  background-color: transparent !important;
}

/* Shell and navigation */
body .n-layout-sider {
  border-right: 1px solid rgba(126, 145, 170, 0.18) !important;
  background: rgba(250, 252, 255, 0.9) !important;
  box-shadow: 0.8rem 0 2.5rem rgba(55, 78, 108, 0.055);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

body .n-layout-sider-scroll-container {
  background: transparent !important;
}

body .n-layout-header {
  border-bottom: 1px solid rgba(126, 145, 170, 0.16) !important;
  background: rgba(250, 252, 255, 0.78) !important;
  box-shadow: 0 0.45rem 1.6rem rgba(55, 78, 108, 0.045);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

body .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"]) {
  position: relative;
  display: grid !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  place-items: center;
}

body .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"]) > img {
  width: 3.1rem !important;
  height: 1.55rem !important;
  opacity: 0 !important;
  object-fit: contain;
  box-shadow: none !important;
}

body .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"])::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.1rem;
  height: 1.55rem;
  background-color: var(--nl-ui-accent);
  content: "";
  mask-image: var(--nl-ui-wordmark);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask-image: var(--nl-ui-wordmark);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.dark body .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"])::after,
body.dark .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"])::after {
  background-color: #fff;
}

/* The vector wordmark already carries the NL brand. Hide the compiled title
   beside/below it so the header keeps one clean mark and otherwise stays open. */
body .n-layout-sider :has(> img[src*="/theme/NL/NLapi.png"]) > .title-text {
  display: none !important;
}

body .n-menu {
  padding-inline: 0.45rem;
}

body .n-menu-item-content {
  margin-block: 0.12rem;
  border-radius: 0.7rem !important;
  transition: color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

body .n-menu-item-content::before {
  border-radius: 0.7rem !important;
}

body .n-menu-item-content:hover {
  transform: translateX(0.12rem);
}

body .n-menu-item-content:hover::before {
  background: rgba(52, 120, 246, 0.075) !important;
  background: color-mix(in srgb, var(--nl-ui-accent) 7.5%, transparent) !important;
}

body .n-menu-item-content.n-menu-item-content--selected::before,
body .n-menu-item-content--selected::before {
  background: linear-gradient(90deg, rgba(52, 120, 246, 0.15), rgba(52, 120, 246, 0.065)) !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--nl-ui-accent) 15%, transparent), color-mix(in srgb, var(--nl-ui-accent) 6.5%, transparent)) !important;
}

body .n-menu-item-content.n-menu-item-content--selected,
body .n-menu-item-content--selected {
  color: var(--nl-ui-accent-strong) !important;
  font-weight: 650;
}

/* Typography and page rhythm */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: var(--nl-ui-ink);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

body h1,
body .text-3xl,
body .text-4xl {
  letter-spacing: -0.04em;
}

body p {
  text-wrap: pretty;
}

body .text-gray-400,
body .text-gray-500,
body .text-gray-600 {
  color: var(--nl-ui-muted) !important;
}

/* Core surfaces */
body .n-card {
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: var(--nl-ui-radius) !important;
  background: var(--nl-ui-surface) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    var(--nl-ui-shadow) !important;
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

body .n-card-header {
  border-bottom-color: rgba(126, 145, 170, 0.18) !important;
}

body .n-card-header__main,
body .n-card-header__extra {
  color: var(--nl-ui-ink);
}

body .n-alert,
body .n-message,
body .n-dialog,
body .n-modal,
body .n-drawer,
body .n-popover,
body .n-dropdown-menu {
  border-color: rgba(255, 255, 255, 0.7) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 1rem 3rem rgba(48, 72, 104, 0.16) !important;
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

/* Show modal dialogs immediately and avoid expensive entrance compositing. */
body .n-modal,
body .n-dialog,
body .n-modal-mask,
body .n-modal-container,
body .n-modal-body-wrapper,
body .n-modal-container.fade-in-transition-enter-active,
body .n-modal-container.fade-in-transition-leave-active,
body .n-modal-container .fade-in-transition-enter-active,
body .n-modal-container .fade-in-transition-leave-active,
body .n-modal-container .fade-in-scale-up-transition-enter-active,
body .n-modal-container .fade-in-scale-up-transition-leave-active {
  transition: none !important;
  animation: none !important;
}

body .n-modal,
body .n-dialog {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body .n-table,
body .n-data-table,
body .n-data-table-wrapper,
body .n-data-table-base-table,
body .n-list {
  background-color: rgba(255, 255, 255, 0.77) !important;
}

body .n-data-table-th,
body .n-table th {
  background-color: rgba(239, 244, 251, 0.86) !important;
}

body .n-data-table-td,
body .n-table td,
body .n-list-item {
  border-color: rgba(126, 145, 170, 0.16) !important;
}

/* Controls */
body .n-input,
body .n-input-wrapper,
body .n-base-selection,
body .n-input-number,
body .n-date-picker,
body .n-auto-complete {
  border-radius: var(--nl-ui-radius-small) !important;
  background-color: rgba(255, 255, 255, 0.82) !important;
}

body .n-input:hover,
body .n-base-selection:hover {
  box-shadow: 0 0 0 1px rgba(52, 120, 246, 0.2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nl-ui-accent) 20%, transparent);
}

body .n-input.n-input--focus,
body .n-base-selection.n-base-selection--active {
  box-shadow: 0 0 0 3px rgba(52, 120, 246, 0.13) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nl-ui-accent) 13%, transparent) !important;
}

body .n-button {
  border-radius: 0.58rem !important;
  font-weight: 620;
  transition: transform 160ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body .n-button:hover:not(.n-button--disabled) {
  transform: translateY(-0.08rem);
}

body .n-button:active:not(.n-button--disabled) {
  transform: translateY(1px) scale(0.992);
}

body .n-button.n-button--primary-type {
  border-color: transparent !important;
  background: linear-gradient(135deg, #4383f5, #286be8) !important;
  background: linear-gradient(135deg, var(--nl-ui-accent), var(--nl-ui-accent-strong)) !important;
  color: #fff !important;
  box-shadow: 0 0.5rem 1.25rem rgba(45, 108, 226, 0.24) !important;
  box-shadow: 0 0.5rem 1.25rem color-mix(in srgb, var(--nl-ui-accent) 24%, transparent) !important;
}

body .n-button.n-button--primary-type .n-button__content,
body .n-button.n-button--primary-type .n-button__icon {
  color: inherit !important;
}

body .n-button.n-button--primary-type:hover:not(.n-button--disabled) {
  background: linear-gradient(135deg, #3277ef, #1f5fd2) !important;
  background: linear-gradient(135deg, var(--nl-ui-accent-hover), var(--nl-ui-accent-strong)) !important;
  box-shadow: 0 0.7rem 1.5rem rgba(45, 108, 226, 0.3) !important;
  box-shadow: 0 0.7rem 1.5rem color-mix(in srgb, var(--nl-ui-accent) 30%, transparent) !important;
}

body :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(52, 120, 246, 0.28) !important;
  outline: 3px solid color-mix(in srgb, var(--nl-ui-accent) 28%, transparent) !important;
  outline-offset: 2px;
}

body .n-input__input-el:focus-visible,
body .n-input__textarea-el:focus-visible {
  outline: none !important;
}

body .n-tag {
  border-radius: 0.42rem !important;
}

/* Authentication */
body .wh-full.flex.items-center.justify-center {
  position: relative;
  min-height: 100dvh !important;
  padding: clamp(1rem, 4vw, 3rem);
  background: transparent !important;
  isolation: isolate;
}

body .wh-full.flex.items-center.justify-center::before {
  position: fixed;
  z-index: 0;
  inset: -4%;
  background:
    radial-gradient(ellipse 48% 58% at 0% 8%, rgba(103, 224, 169, 0.58) 0%, rgba(103, 224, 169, 0.19) 46%, transparent 75%),
    radial-gradient(ellipse 46% 54% at 0% 94%, rgba(91, 208, 219, 0.48) 0%, rgba(91, 208, 219, 0.16) 48%, transparent 75%),
    radial-gradient(ellipse 49% 52% at 100% 6%, rgba(244, 185, 211, 0.44) 0%, rgba(244, 185, 211, 0.14) 48%, transparent 76%),
    radial-gradient(ellipse 50% 56% at 100% 94%, rgba(140, 162, 248, 0.46) 0%, rgba(140, 162, 248, 0.15) 48%, transparent 76%),
    radial-gradient(ellipse 58% 32% at 52% 104%, rgba(133, 192, 246, 0.28) 0%, transparent 72%);
  content: "";
  filter: blur(32px) saturate(106%);
  mask-image: radial-gradient(ellipse 64% 58% at center, transparent 0 25%, rgba(0, 0, 0, 0.22) 56%, #000 100%);
  opacity: 0.8;
  pointer-events: none;
  transform: translate3d(-1.2%, -0.8%, 0) scale(1.03);
  transform-origin: center;
  will-change: transform, opacity;
  animation: nl-auth-edge-drift 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  -webkit-mask-image: radial-gradient(ellipse 64% 58% at center, transparent 0 25%, rgba(0, 0, 0, 0.22) 56%, #000 100%);
}

@keyframes nl-auth-edge-drift {
  0% {
    opacity: 0.72;
    transform: translate3d(-1.2%, -0.8%, 0) scale(1.03);
  }

  50% {
    opacity: 0.86;
    transform: translate3d(0.8%, 1.1%, 0) scale(1.06);
  }

  100% {
    opacity: 0.78;
    transform: translate3d(1.4%, -0.4%, 0) scale(1.035);
  }
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  overflow: hidden;
  border: 1px solid rgba(67, 91, 111, 0.17) !important;
  border-radius: 1rem !important;
  background: rgba(249, 251, 252, 0.955) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1.75rem 4.5rem rgba(31, 49, 64, 0.14) !important;
  backdrop-filter: blur(20px) saturate(108%);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 2.25rem;
  left: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49, 93, 122, 0.66) 25%, rgba(111, 143, 162, 0.48) 75%, transparent);
  content: "";
  pointer-events: none;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .p-6 {
  padding: clamp(1.5rem, 3vw, 2.15rem) clamp(1.35rem, 3vw, 2rem) !important;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md h5 {
  color: var(--nl-auth-muted);
  font-size: 0.86rem;
  font-weight: 520;
  letter-spacing: 0.012em;
  line-height: 1.6;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .text-center:has(> img[src*="/theme/NL/NLapi.png"]) {
  position: relative;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .text-center:has(> img[src*="/theme/NL/NLapi.png"]) > img {
  display: block;
  width: clamp(8.5rem, 15vw, 10.75rem) !important;
  height: clamp(3.1875rem, 5.625vw, 4.03125rem) !important;
  max-width: 50vw;
  margin-inline: auto;
  visibility: hidden;
  object-fit: contain;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .text-center:has(> img[src*="/theme/NL/NLapi.png"])::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(8.5rem, 15vw, 10.75rem);
  height: clamp(3.1875rem, 5.625vw, 4.03125rem);
  background-color: var(--nl-auth-accent);
  content: "";
  mask-image: var(--nl-ui-wordmark);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: var(--nl-ui-wordmark);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-input {
  --n-border-focus: 1px solid #56788e !important;
  --n-border-hover: 1px solid #6d899b !important;
  --n-box-shadow-focus: 0 0 0 2px rgba(49, 93, 122, 0.13) !important;
  --n-caret-color: var(--nl-auth-accent) !important;
  min-height: 2.65rem;
  border-radius: 0.55rem !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-input:hover {
  box-shadow: 0 0 0 1px rgba(49, 93, 122, 0.2);
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-input.n-input--focus {
  box-shadow: 0 0 0 3px rgba(49, 93, 122, 0.12) !important;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button.n-button--primary-type {
  min-height: 2.65rem;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--nl-auth-accent), #274f6d) !important;
  box-shadow: 0 0.45rem 1.1rem rgba(39, 79, 109, 0.18) !important;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button.n-button--primary-type:hover:not(.n-button--disabled) {
  background: linear-gradient(135deg, var(--nl-auth-accent-hover), #20445f) !important;
  box-shadow: 0 0.6rem 1.25rem rgba(39, 79, 109, 0.22) !important;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-card__action {
  border-top: 1px solid rgba(67, 91, 111, 0.1);
  background: rgba(237, 242, 246, 0.72);
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md a,
body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button--text-type {
  color: #506273;
  transition: color 180ms ease;
}

body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md a:hover,
body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button--text-type:hover {
  color: var(--nl-auth-accent);
}

/* Plan catalogue */
html body .card-container {
  gap: clamp(1rem, 2vw, 1.55rem) !important;
  max-width: 90rem;
}

html body .card-container > .card-item > .n-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 0.9rem !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 0.8rem 2.5rem rgba(48, 72, 104, 0.095) !important;
}

html body .card-container > .card-item > .n-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 0.18rem;
  border-radius: 0.9rem 0.9rem 0 0;
  background: linear-gradient(90deg, #5d92f3, #2f73ed 62%, #7fa8f4);
  background: linear-gradient(90deg, var(--nl-ui-accent-hover), var(--nl-ui-accent) 62%, var(--nl-ui-accent-suppl));
  content: "";
  opacity: 0.88;
  pointer-events: none;
}

html body .card-container > .card-item > .n-card:hover {
  border-color: rgba(52, 120, 246, 0.3) !important;
  border-color: color-mix(in srgb, var(--nl-ui-accent) 30%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--nl-ui-shadow-hover) !important;
  transform: translateY(-0.22rem);
}

html body .card-container .n-card-header,
html body .card-container .n-card-header__extra {
  border-color: rgba(126, 145, 170, 0.16) !important;
}

html body .card-container .n-card-header__main {
  color: #1b2638;
  font-weight: 680 !important;
}

html body .card-container .n-card-header__extra .text-3xl {
  color: #111c2e;
  font-weight: 720 !important;
}

html body .card-container .n-card__action .n-button {
  border: 1px solid rgba(52, 120, 246, 0.72) !important;
  border-color: color-mix(in srgb, var(--nl-ui-accent) 72%, transparent) !important;
  background: rgba(255, 255, 255, 0.56) !important;
  color: var(--nl-ui-accent-strong) !important;
  box-shadow: none !important;
}

html body .card-container .n-card__action .n-button .n-button__content,
html body .card-container .n-card__action .n-button .n-button__icon {
  color: inherit !important;
}

html body .card-container .n-card__action .n-button:hover {
  border-color: var(--nl-ui-accent) !important;
  background: var(--nl-ui-accent) !important;
  color: #fff !important;
  box-shadow: 0 0.55rem 1.3rem rgba(52, 120, 246, 0.24) !important;
  box-shadow: 0 0.55rem 1.3rem color-mix(in srgb, var(--nl-ui-accent) 24%, transparent) !important;
}

html body .card-container .markdown-body p {
  color: #5d697e !important;
}

/* Gift card extension */
body #nl-gift-card-root {
  background: transparent !important;
}

body .nl-gift-card {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--nl-ui-shadow);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

body .nl-gift-back,
body .nl-gift-input,
body .nl-gift-button-secondary {
  background: rgba(255, 255, 255, 0.78);
}

/* Checkout panels: keep light appearance readable while preserving the current dark mode. */
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white:has(> .flex.items-center.gap-3),
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white:has(> h3.text-lg.font-semibold) {
  border: 1px solid rgba(126, 145, 170, 0.2) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--nl-ui-ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0.8rem 2.2rem rgba(30, 64, 112, 0.08) !important;
  backdrop-filter: blur(18px) saturate(116%);
  -webkit-backdrop-filter: blur(18px) saturate(116%);
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white input.flex-1.bg-transparent {
  color: #182236 !important;
  caret-color: var(--nl-ui-accent) !important;
  -webkit-text-fill-color: #182236 !important;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white input.flex-1.bg-transparent::placeholder {
  color: #7b889a !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #7b889a !important;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white h3,
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .text-gray-300,
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .text-gray-400 {
  color: #354258 !important;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .border-gray-600 {
  border-color: rgba(126, 145, 170, 0.24) !important;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .text-green-400 {
  color: #14815a !important;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .text-3xl,
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .font-semibold {
  font-variant-numeric: tabular-nums;
}

html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .n-button--primary-type,
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .n-button--primary-type .n-button__content,
html:not(.dark) body:not(.dark) .space-y-5 > .bg-gray-800.rounded-lg.p-5.text-white .n-button--primary-type .n-button__icon {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Dark appearance follows the existing XBoard mode. */
.dark body,
body.dark {
  --nl-ui-accent: color-mix(in srgb, var(--primary-color, #3478f6) 74%, white);
  --nl-ui-accent-hover: color-mix(in srgb, var(--primary-color-hover, #286be8) 70%, white);
  --nl-ui-accent-strong: color-mix(in srgb, var(--primary-color-pressed, #1f63dd) 82%, white);
  --nl-ui-accent-suppl: color-mix(in srgb, var(--primary-color-suppl, #286be8) 74%, white);
  --nl-ui-ink: #edf3fb;
  --nl-ui-muted: #a9b6c8;
  --nl-ui-line: rgba(192, 208, 230, 0.17);
  --nl-ui-surface: rgba(18, 27, 41, 0.82);
  --nl-ui-surface-strong: rgba(18, 27, 41, 0.93);
  --nl-auth-accent: #9db9c9;
  --nl-auth-accent-hover: #b4cbd7;
  --nl-auth-ink: #edf3f6;
  --nl-auth-muted: #a9b8c3;
  color-scheme: dark;
  background-color: #111925;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(88, 126, 151, 0.11), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(84, 109, 126, 0.09), transparent 32%),
    linear-gradient(145deg, #15202b 0%, #111a24 54%, #0d151e 100%);
}

.dark body::before,
body.dark::before {
  background-image:
    linear-gradient(rgba(184, 205, 218, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 205, 218, 0.055) 1px, transparent 1px);
}

.dark body::after,
body.dark::after {
  background-image:
    radial-gradient(circle at 84% 18%, transparent 0 12rem, rgba(174, 201, 218, 0.15) 12.08rem 12.15rem, transparent 12.23rem),
    radial-gradient(circle at 8% 82%, transparent 0 17rem, rgba(174, 201, 218, 0.1) 17.08rem 17.15rem, transparent 17.23rem),
    radial-gradient(circle at 1px 1px, rgba(214, 226, 242, 0.14) 1px, transparent 0);
}

.dark body .n-layout-sider,
body.dark .n-layout-sider,
.dark body .n-layout-header,
body.dark .n-layout-header {
  border-color: rgba(192, 208, 230, 0.13) !important;
  background: rgba(16, 25, 39, 0.88) !important;
  box-shadow: 0 0.75rem 2.6rem rgba(0, 0, 0, 0.2);
}

.dark body .n-card,
body.dark .n-card,
.dark body .n-alert,
body.dark .n-alert,
.dark body .n-dialog,
body.dark .n-dialog,
.dark body .n-modal,
body.dark .n-modal,
.dark body .n-drawer,
body.dark .n-drawer,
.dark body .n-popover,
body.dark .n-popover,
.dark body .n-dropdown-menu,
body.dark .n-dropdown-menu {
  border-color: rgba(192, 208, 230, 0.14) !important;
  background: rgba(18, 27, 41, 0.84) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1.2rem 3.2rem rgba(0, 0, 0, 0.28) !important;
}

.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md {
  border-color: rgba(174, 201, 218, 0.16) !important;
  background: rgba(18, 29, 39, 0.95) !important;
}

.dark body .wh-full.flex.items-center.justify-center::before,
body.dark .wh-full.flex.items-center.justify-center::before {
  background:
    radial-gradient(ellipse 42% 45% at 3% 10%, rgba(70, 166, 126, 0.32) 0%, rgba(70, 166, 126, 0.1) 46%, transparent 74%),
    radial-gradient(ellipse 40% 42% at 2% 91%, rgba(68, 153, 166, 0.28) 0%, rgba(68, 153, 166, 0.09) 48%, transparent 74%),
    radial-gradient(ellipse 42% 38% at 96% 8%, rgba(174, 112, 145, 0.24) 0%, rgba(174, 112, 145, 0.08) 48%, transparent 76%),
    radial-gradient(ellipse 44% 44% at 98% 92%, rgba(93, 108, 184, 0.27) 0%, rgba(93, 108, 184, 0.09) 48%, transparent 76%),
    radial-gradient(ellipse 52% 28% at 52% 102%, rgba(75, 126, 171, 0.17) 0%, transparent 72%);
  opacity: 0.5;
}

.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-card__action,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-card__action {
  border-top-color: rgba(174, 201, 218, 0.1);
  background: rgba(11, 22, 31, 0.62);
}

.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md h5,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md h5 {
  color: var(--nl-auth-muted);
}

.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-input,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-input {
  background-color: rgba(8, 18, 27, 0.76) !important;
}

.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md a,
.dark body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button--text-type,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md a,
body.dark .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md .n-button--text-type {
  color: #b5c2cc;
}

.dark body .n-card-header__main,
.dark body .n-card-header__extra,
body.dark .n-card-header__main,
body.dark .n-card-header__extra,
.dark body h1,
.dark body h2,
.dark body h3,
.dark body h4,
.dark body h5,
.dark body h6,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
  color: var(--nl-ui-ink);
}

.dark body .n-input,
.dark body .n-input-wrapper,
.dark body .n-base-selection,
body.dark .n-input,
body.dark .n-input-wrapper,
body.dark .n-base-selection {
  background-color: rgba(12, 20, 32, 0.78) !important;
}

.dark body .card-container > .card-item > .n-card,
body.dark .card-container > .card-item > .n-card,
.dark body .nl-gift-card,
body.dark .nl-gift-card {
  border-color: rgba(192, 208, 230, 0.14) !important;
  background: rgba(18, 27, 41, 0.84) !important;
}

.dark body .card-container .n-card-header__main,
.dark body .card-container .n-card-header__extra .text-3xl,
body.dark .card-container .n-card-header__main,
body.dark .card-container .n-card-header__extra .text-3xl {
  color: #edf3fb !important;
}

.dark body .card-container .markdown-body p,
body.dark .card-container .markdown-body p {
  color: #aebbd0 !important;
}

@supports not ((backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem))) {
  body .n-layout-sider,
  body .n-layout-header,
  body .n-card,
  body .n-alert,
  body .n-dialog,
  body .n-modal,
  body .n-drawer,
  body .n-popover,
  body .n-dropdown-menu,
  body .nl-gift-card {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .dark body .n-layout-sider,
  body.dark .n-layout-sider,
  .dark body .n-layout-header,
  body.dark .n-layout-header,
  .dark body .n-card,
  body.dark .n-card,
  .dark body .nl-gift-card,
  body.dark .nl-gift-card {
    background: rgba(18, 27, 41, 0.96) !important;
  }
}

@media (max-width: 48rem) {
  body {
    background-attachment: scroll;
  }

  body .n-layout-sider {
    background: rgba(250, 252, 255, 0.96) !important;
  }

  body .n-layout-header {
    background: rgba(250, 252, 255, 0.9) !important;
  }

  body .n-card,
  html body .card-container > .card-item > .n-card,
  body .nl-gift-card {
    border-radius: 0.78rem !important;
    backdrop-filter: blur(14px) saturate(112%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
  }

  body .wh-full.flex.items-center.justify-center {
    padding: 0.85rem;
  }

  body .wh-full.flex.items-center.justify-center::before {
    inset: -8%;
    filter: blur(24px) saturate(104%);
    mask-image: radial-gradient(ellipse 70% 62% at center, transparent 0 22%, rgba(0, 0, 0, 0.24) 57%, #000 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at center, transparent 0 22%, rgba(0, 0, 0, 0.24) 57%, #000 100%);
  }

  body .wh-full.flex.items-center.justify-center > .n-card.mx-auto.max-w-md {
    border-radius: 0.88rem !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1.2rem 3rem rgba(31, 49, 64, 0.12) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
