html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100%;
  margin-bottom: 0;
}

:root {
  --app-bg-0: #070A12;
  --app-bg-1: #0B1220;
  --app-card: rgba(255, 255, 255, 0.06);
  --app-card-border: rgba(255, 255, 255, 0.10);
  --app-text: rgba(255, 255, 255, 0.92);
  --app-muted: rgba(255, 255, 255, 0.68);
  --app-accent: #7C5CFF;
  --app-accent-2: #00D4FF;
  --app-accent-3: #22C55E;
  --app-line: rgba(255, 255, 255, 0.10);
  --app-glow-1: rgba(124, 92, 255, 0.22);
  --app-glow-2: rgba(0, 212, 255, 0.16);
  --app-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.app-body {
  color: var(--app-text);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 92, 255, 0.25), transparent 65%),
    radial-gradient(1000px 500px at 100% 0%, rgba(0, 212, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 40% 120%, rgba(34, 211, 238, 0.10), transparent 55%),
    linear-gradient(180deg, var(--app-bg-0), var(--app-bg-1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.030) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 500px at 40% 20%, black 35%, transparent 78%);
  z-index: 0;
}

.app-body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(900px 460px at 18% 8%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 460px at 90% 18%, rgba(0, 212, 255, 0.12), transparent 58%),
    radial-gradient(900px 520px at 50% 110%, rgba(34, 197, 94, 0.07), transparent 55%),
    radial-gradient(1100px 720px at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
}

.app-container,
.app-navbar,
.app-footer {
  position: relative;
  z-index: 1;
}

.app-container {
  flex: 1 0 auto;
}

.app-container main {
  padding-top: 4px;
}

.app-navbar {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 26, 0.70);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1030;
}

.app-navbar .dropdown-menu {
  z-index: 1040;
}

.app-navbar::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), rgba(124, 92, 255, 0.55), transparent);
  opacity: 0.75;
}

.app-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

@supports (-webkit-background-clip: text) {
  .app-navbar .navbar-brand {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(0, 212, 255, 0.95));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.app-nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  position: relative;
}

.app-nav-link:hover,
.app-nav-link:focus {
  color: rgba(255, 255, 255, 0.95) !important;
}

.app-nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), rgba(124, 92, 255, 0.55), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  opacity: 0.75;
}

.app-nav-link:hover::after,
.app-nav-link:focus::after {
  transform: scaleX(1);
}

.card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.45), rgba(0, 212, 255, 0.30), rgba(255, 255, 255, 0.08)) border-box;
  box-shadow: var(--app-shadow);
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

@supports (backdrop-filter: blur(10px)) {
  .card {
    backdrop-filter: blur(10px);
  }

  .app-navbar {
    backdrop-filter: blur(10px);
  }

  .app-footer {
    backdrop-filter: blur(10px);
  }
}

.app-surface {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(0, 212, 255, 0.40), rgba(34, 197, 94, 0.18)) border-box;
  box-shadow:
    0 18px 70px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border-radius: 18px;
}

.app-hero {
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(1000px 480px at 10% 0%, var(--app-glow-1), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, var(--app-glow-2), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.60);
}

.app-home-hero {
  position: relative;
  overflow: hidden;
}

.app-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/demo/home-hero-bg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.58;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
  z-index: 0;
}

.app-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(124, 92, 255, 0.12), transparent 62%),
    radial-gradient(860px 420px at 100% 0%, rgba(0, 212, 255, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.10), rgba(7, 10, 18, 0.02));
  opacity: 0.35;
  z-index: 0;
}

.app-home-hero > * {
  position: relative;
  z-index: 1;
}

.app-home-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.62);
  background: rgba(255, 255, 255, 0.02);
  isolation: isolate;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.app-home-cover-inner {
  min-height: clamp(560px, calc(100vh - 86px), 980px);
  width: 100%;
  position: relative;
}

.home-cover-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.home-cover-slide {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.22);
  opacity: 0;
  animation: homeCoverSlideFade 20s linear infinite;
  will-change: opacity;
}

.home-cover-slide::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--home-cover-slide-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) saturate(1.05) contrast(1.05) brightness(0.92);
  transform: translate3d(0, 0, 0) scale(1.12);
  animation: homeCoverDrift 18s ease-in-out infinite alternate;
  opacity: 0.62;
  will-change: transform;
}

.home-cover-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--home-cover-slide-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

.home-cover-slide-1 {
  --home-cover-slide-image: url("/images/home/slides/slide-1.png?v=20260309");
  animation-delay: 0s;
}

.home-cover-slide-2 {
  --home-cover-slide-image: url("/images/home/slides/slide-2.png");
  animation-delay: -10s;
}

.app-home-cover-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 14% 15%, rgba(0, 212, 255, 0.18), transparent 62%),
    radial-gradient(960px 560px at 92% 20%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(760px 520px at 50% 115%, rgba(34, 197, 94, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.14));
  opacity: 0.78;
  animation: homeCoverGlow 6.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.home-cover-title {
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.12;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  color: rgba(255, 248, 214, 0.99);
  text-shadow:
    0 12px 34px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(255, 255, 255, 0.30),
    0 0 42px rgba(245, 158, 11, 0.20);
}

.home-cover-title-rotator {
  display: block;
  position: relative;
  min-height: 2.5em;
}

.home-cover-title-line {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(1080px, 92vw);
  transform: translate(-50%, -50%);
  overflow-wrap: anywhere;
  opacity: 0;
  animation: homeCoverSloganCycle 12s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.home-cover-title-line-1 {
  transform: translate(-50%, -50%) translateX(clamp(-10px, -2.2vw, -28px));
  animation-delay: 0s;
}

.home-cover-title-line-2 {
  transform: translateX(clamp(12px, 2.6vw, 52px));
}

.home-cover-title-line-3 {
  transform: translate(-50%, -50%) translateX(clamp(-2px, -0.6vw, -10px));
  animation-delay: -6s;
}

@supports (-webkit-background-clip: text) {
  .home-cover-title-line {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .home-cover-title-line-1 {
    background-image: linear-gradient(135deg, rgba(255, 248, 214, 0.99), rgba(253, 230, 138, 0.98));
  }

  .home-cover-title-line-2 {
    background-image: linear-gradient(135deg, rgba(34, 197, 94, 0.96), rgba(0, 212, 255, 0.98), rgba(124, 92, 255, 0.94));
  }

  .home-cover-title-line-3 {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 237, 213, 0.98));
  }
}

@media (min-width: 992px) {
  .app-home-cover-inner {
    min-height: clamp(640px, calc(100vh - 96px), 1060px);
  }
}

@keyframes homeCoverDrift {
  0% {
    transform: translate3d(-1.5%, -1.2%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.14);
  }
}

@keyframes homeCoverGlow {
  0% {
    opacity: 0.64;
  }
  100% {
    opacity: 0.86;
  }
}

@keyframes homeCoverSloganCycle {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px));
    filter: blur(10px);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%);
    filter: blur(0);
  }
  44% {
    opacity: 1;
    transform: translate(-50%, -50%);
    filter: blur(0);
  }
  58% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px));
    filter: blur(10px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px));
    filter: blur(10px);
  }
}

@keyframes homeCoverSlideFade {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  34% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-home-cover-inner::after {
    animation: none;
  }

  .home-cover-slide {
    animation: none;
    opacity: 0;
  }

  .home-cover-slide-1 {
    opacity: 1;
  }

  .home-cover-slide::before {
    animation: none;
  }

  .home-cover-title-line {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

.app-card-media {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  background: transparent;
  aspect-ratio: var(--app-media-ratio, 16 / 9);
}

.app-card-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (min-width: 992px) {
  .app-card-media-img {
    height: 100%;
  }
}

.app-card-media--left .app-card-media-img,
.app-card-media-img--left {
  object-position: left center;
}

.app-home-card {
  transform: translate3d(0, 14px, 0);
  opacity: 0;
  animation: homeCardIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--app-enter-delay, 0ms);
  will-change: transform, opacity;
}

@keyframes homeCardIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-home-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.kb-visual {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 10, 18, 0.30);
  overflow: hidden;
}

.kb-visual-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 360;
}

.kb-stroke {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: kbTrace 2.2s ease forwards;
}

.kb-stroke-soft {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: kbTraceSoft 2.6s ease forwards;
  opacity: 0.85;
}

.kb-dot {
  transform-origin: center;
  animation: kbPulse 1.8s ease-in-out infinite;
}

.kb-dot-2 {
  animation-delay: 180ms;
}

.kb-dot-3 {
  animation-delay: 320ms;
}

.kb-dot-4 {
  animation-delay: 520ms;
}

@keyframes kbTrace {
  0% {
    stroke-dashoffset: 520;
    opacity: 0.45;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes kbTraceSoft {
  0% {
    stroke-dashoffset: 280;
    opacity: 0.25;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
}

@keyframes kbPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-stroke,
  .kb-stroke-soft,
  .kb-dot {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 18, 0.35);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}

.app-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.30);
}

.app-hero-actions {
  width: 100%;
}

.app-hero-actions .btn {
  white-space: nowrap;
}

.app-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.35), rgba(124, 92, 255, 0.35), transparent);
  opacity: 0.8;
}

.card-title {
  color: rgba(255, 255, 255, 0.92);
}

.text-muted {
  color: var(--app-muted) !important;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.25);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(124, 92, 255, 0.30);
}

.btn-outline-primary {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(124, 92, 255, 0.55);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 92, 255, 0.75);
  background: rgba(124, 92, 255, 0.14);
}

.btn-outline-secondary {
  color: rgba(255, 255, 255, 0.80);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-success {
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(0, 212, 255, 0.42);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 212, 255, 0.62);
  background: rgba(0, 212, 255, 0.12);
}

.table {
  color: rgba(255, 255, 255, 0.88);
}

.table thead th {
  color: rgba(255, 255, 255, 0.70);
}

.table > :not(caption) > * > * {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, 0.04);
}

.form-control,
.form-select,
textarea.form-control {
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 0.25rem rgba(124, 92, 255, 0.18);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: rgba(255, 255, 255, 0.50);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

pre {
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

code {
  color: rgba(255, 255, 255, 0.88);
}

.alert-info {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 212, 255, 0.10);
  border-color: rgba(0, 212, 255, 0.22);
}

.alert-success {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(25, 135, 84, 0.14);
  border-color: rgba(25, 135, 84, 0.30);
}

.alert-warning {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 193, 7, 0.10);
  border-color: rgba(255, 193, 7, 0.22);
}

.alert-danger {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(220, 53, 69, 0.14);
  border-color: rgba(220, 53, 69, 0.30);
}

.dropdown-menu {
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.86);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.10);
}

.list-group-item {
  background: rgba(7, 10, 18, 0.40);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.86);
}

.app-preview-surface {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.30);
  color: rgba(15, 23, 42, 0.92);
}

.app-preview-surface a {
  color: rgba(29, 78, 216, 0.92);
}

.app-preview-surface a:hover,
.app-preview-surface a:focus {
  color: rgba(30, 64, 175, 0.95);
}

.app-preview-surface .text-muted {
  color: rgba(15, 23, 42, 0.68) !important;
}

.modal-content {
  background: rgba(10, 14, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.10);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.18);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.18);
}

.form-check-input {
  background-color: rgba(7, 10, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}

.form-check-input:checked {
  background-color: var(--app-accent);
  border-color: rgba(124, 92, 255, 0.80);
}

.pagination .page-link {
  background: rgba(7, 10, 18, 0.40);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

.pagination .page-item.active .page-link {
  border: 0;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.25);
}

.spinner-border {
  color: rgba(0, 212, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .app-nav-link::after {
    transition: none !important;
  }
}

@media (max-width: 576px) {
  .app-body::before,
  .app-body::after {
    opacity: 0;
  }

  .app-container main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-hero {
    padding: 14px;
  }

  .app-navbar,
  .app-footer,
  .card {
    backdrop-filter: none !important;
  }

  .app-navbar {
    background: rgba(10, 14, 26, 0.90);
  }
}

.app-footer {
  position: relative;
  width: 100%;
  margin-top: auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

a {
  color: rgba(173, 216, 255, 0.92);
}

a:hover,
a:focus {
  color: rgba(255, 255, 255, 0.95);
}

h1,
.h1,
.display-6 {
  letter-spacing: 0.2px;
}

@supports (-webkit-background-clip: text) {
  h1,
  .h1,
  .display-6 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(0, 212, 255, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.18);
}

.app-clickable-media {
  cursor: zoom-in;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-clickable-media:hover,
.app-clickable-media:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.app-modal-img {
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

html[data-bs-theme="light"] {
  --app-bg-0: #f8fbff;
  --app-bg-1: #eef2ff;
  --app-card: rgba(255, 255, 255, 0.86);
  --app-card-border: rgba(15, 23, 42, 0.10);
  --app-text: rgba(15, 23, 42, 0.92);
  --app-muted: rgba(15, 23, 42, 0.62);
  --app-line: rgba(15, 23, 42, 0.10);
  --app-glow-1: rgba(124, 92, 255, 0.18);
  --app-glow-2: rgba(0, 212, 255, 0.14);
  --app-shadow: 0 18px 60px rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] .app-body {
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 102% -5%, rgba(0, 212, 255, 0.18), transparent 62%),
    radial-gradient(1000px 520px at 40% 115%, rgba(34, 197, 94, 0.10), transparent 58%),
    linear-gradient(180deg, var(--app-bg-0), var(--app-bg-1));
}

html[data-bs-theme="light"] .app-body::before {
  opacity: 0.35;
  background:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.040) 1px, transparent 1px);
}

html[data-bs-theme="light"] .app-body::after {
  opacity: 1;
  background:
    radial-gradient(900px 460px at 18% 8%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(900px 460px at 90% 18%, rgba(0, 212, 255, 0.10), transparent 58%),
    radial-gradient(900px 520px at 50% 110%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(1100px 720px at 50% 50%, transparent 52%, rgba(248, 251, 255, 0.96) 100%);
}

html[data-bs-theme="light"] .app-navbar {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .app-nav-link {
  color: rgba(15, 23, 42, 0.72) !important;
}

html[data-bs-theme="light"] .app-nav-link:hover,
html[data-bs-theme="light"] .app-nav-link:focus {
  color: rgba(15, 23, 42, 0.95) !important;
}

html[data-bs-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.40), rgba(0, 212, 255, 0.28), rgba(15, 23, 42, 0.08)) border-box;
  box-shadow: var(--app-shadow);
}

html[data-bs-theme="light"] .card:hover {
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
}

html[data-bs-theme="light"] .card-title {
  color: var(--app-text);
}

html[data-bs-theme="light"] .text-muted {
  color: var(--app-muted) !important;
}

html[data-bs-theme="light"] .app-hero {
  background:
    radial-gradient(1000px 480px at 10% 0%, var(--app-glow-1), transparent 62%),
    radial-gradient(900px 460px at 100% 0%, var(--app-glow-2), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.70));
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="light"] .app-home-hero::before {
  opacity: 0.42;
}

html[data-bs-theme="light"] .app-home-hero::after {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(124, 92, 255, 0.10), transparent 64%),
    radial-gradient(860px 420px at 100% 0%, rgba(0, 212, 255, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.16), rgba(248, 251, 255, 0.02));
  opacity: 0.28;
}

html[data-bs-theme="light"] .app-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.50), rgba(0, 212, 255, 0.34), rgba(34, 197, 94, 0.16)) border-box;
  box-shadow:
    0 18px 70px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06) inset;
}

html[data-bs-theme="light"] .app-chip {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: rgba(15, 23, 42, 0.82);
}

html[data-bs-theme="light"] .btn-outline-primary {
  color: rgba(15, 23, 42, 0.86);
  border-color: rgba(124, 92, 255, 0.45);
}

html[data-bs-theme="light"] .btn-outline-primary:hover,
html[data-bs-theme="light"] .btn-outline-primary:focus {
  color: rgba(15, 23, 42, 0.95);
  border-color: rgba(124, 92, 255, 0.68);
  background: rgba(124, 92, 255, 0.10);
}

html[data-bs-theme="light"] .btn-outline-secondary {
  color: rgba(15, 23, 42, 0.86);
  border-color: rgba(15, 23, 42, 0.22);
}

html[data-bs-theme="light"] .btn-outline-secondary:hover,
html[data-bs-theme="light"] .btn-outline-secondary:focus {
  color: rgba(15, 23, 42, 0.95);
  border-color: rgba(15, 23, 42, 0.34);
  background: rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] .btn-outline-success {
  color: rgba(21, 128, 61, 0.92);
  border-color: rgba(34, 197, 94, 0.50);
}

html[data-bs-theme="light"] .btn-outline-success:hover,
html[data-bs-theme="light"] .btn-outline-success:focus {
  color: rgba(20, 83, 45, 0.95);
  border-color: rgba(34, 197, 94, 0.70);
  background: rgba(34, 197, 94, 0.10);
}

html[data-bs-theme="light"] .table {
  color: rgba(15, 23, 42, 0.88);
}

html[data-bs-theme="light"] .table thead th {
  color: rgba(15, 23, 42, 0.62);
}

html[data-bs-theme="light"] .table > :not(caption) > * > * {
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .table-hover > tbody > tr:hover > * {
  background-color: rgba(15, 23, 42, 0.03);
}

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select,
html[data-bs-theme="light"] textarea.form-control {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.92);
}

html[data-bs-theme="light"] .form-floating > .form-control-plaintext::placeholder,
html[data-bs-theme="light"] .form-floating > .form-control::placeholder {
  color: rgba(15, 23, 42, 0.42);
}

html[data-bs-theme="light"] pre {
  background: rgba(248, 251, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

html[data-bs-theme="light"] code {
  color: rgba(15, 23, 42, 0.88);
}

html[data-bs-theme="light"] .alert-info {
  color: rgba(15, 23, 42, 0.88);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.30);
}

html[data-bs-theme="light"] .alert-success {
  color: rgba(15, 23, 42, 0.88);
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.26);
}

html[data-bs-theme="light"] .alert-warning {
  color: rgba(15, 23, 42, 0.90);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.30);
}

html[data-bs-theme="light"] .alert-danger {
  color: rgba(15, 23, 42, 0.90);
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.26);
}

html[data-bs-theme="light"] .dropdown-menu {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] .dropdown-item {
  color: rgba(15, 23, 42, 0.86);
}

html[data-bs-theme="light"] .dropdown-item:hover,
html[data-bs-theme="light"] .dropdown-item:focus {
  color: rgba(15, 23, 42, 0.95);
  background: rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] .dropdown-divider {
  border-top-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .modal-content {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

html[data-bs-theme="light"] .modal-header,
html[data-bs-theme="light"] .modal-footer {
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .list-group-item {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.86);
}

html[data-bs-theme="light"] .pagination .page-link {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.82);
}

html[data-bs-theme="light"] .pagination .page-link:hover,
html[data-bs-theme="light"] .pagination .page-link:focus {
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.95);
}

html[data-bs-theme="light"] .app-footer {
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] a {
  color: rgba(37, 99, 235, 0.92);
}

html[data-bs-theme="light"] a:hover,
html[data-bs-theme="light"] a:focus {
  color: rgba(29, 78, 216, 0.95);
}

@supports (-webkit-background-clip: text) {
  html[data-bs-theme="light"] h1,
  html[data-bs-theme="light"] .h1,
  html[data-bs-theme="light"] .display-6 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(124, 92, 255, 0.92), rgba(0, 212, 255, 0.92));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (max-width: 576px) {
  html[data-bs-theme="light"] .app-navbar {
    background: rgba(255, 255, 255, 0.86);
  }
}

.app-kb-intro-accordion .accordion-item {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 10, 18, 0.32);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.app-kb-intro-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.app-kb-intro-accordion .accordion-button {
  padding: 16px 18px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.08));
}

.app-kb-intro-accordion .accordion-button:not(.collapsed) {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(0, 212, 255, 0.14));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.app-kb-intro-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.22);
}

.app-kb-intro-accordion .accordion-body {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="light"] .app-kb-intro-accordion .accordion-item {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .app-kb-intro-accordion .accordion-button {
  color: rgba(15, 23, 42, 0.88);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(0, 212, 255, 0.10));
}

html[data-bs-theme="light"] .app-kb-intro-accordion .accordion-button:not(.collapsed) {
  color: rgba(15, 23, 42, 0.95);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(0, 212, 255, 0.16));
}

html[data-bs-theme="light"] .app-kb-intro-accordion .accordion-body {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 576px) {
  .app-kb-intro-accordion .accordion-button {
    padding: 14px 14px;
    font-size: 0.98rem;
  }
}

.app-nurse-game-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-nurse-role-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.app-nurse-role-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(124, 92, 255, 0.14);
}

.app-nurse-role-meta {
  min-width: 0;
}

.app-nurse-game-root {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
}

.app-nurse-3d-stage-wrap {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
}

.app-nurse-3d-stage {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(35, 42, 66, 0.24), rgba(10, 14, 25, 0.48)),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 58px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 58px
    );
}

.app-nurse-avatar3d {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 44px;
  height: 50px;
  transition: transform 140ms linear;
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.app-nurse-avatar-head {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border-radius: 50%;
  background: #ffd9c4;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.app-nurse-avatar-body {
  width: 30px;
  height: 28px;
  margin: 2px auto 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #8fb4ff 0%, #5f86ff 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.app-nurse-target {
  position: absolute;
  min-width: 80px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(1px);
}

.app-nurse-target-bed {
  left: 10px;
  top: 10px;
}

.app-nurse-target-wash {
  left: 126px;
  top: 68px;
}

.app-nurse-target-bell {
  left: 242px;
  top: 10px;
}

.app-nurse-control-pad {
  display: grid;
  gap: 6px;
  max-width: 220px;
}

.app-nurse-game-prompt {
  font-weight: 600;
  line-height: 1.65;
}

.app-nurse-game-option {
  border-color: rgba(255, 255, 255, 0.18);
  white-space: normal;
  line-height: 1.55;
}

.app-nurse-game-option:hover,
.app-nurse-game-option:focus {
  border-color: rgba(124, 92, 255, 0.62);
  background: rgba(124, 92, 255, 0.14);
}

html[data-bs-theme="light"] .app-nurse-game-card {
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .app-nurse-role-card {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.68);
}

html[data-bs-theme="light"] .app-nurse-role-avatar {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(124, 92, 255, 0.16);
}

html[data-bs-theme="light"] .app-nurse-game-root {
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .app-nurse-3d-stage-wrap {
  border-color: rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] .app-nurse-3d-stage {
  background:
    linear-gradient(180deg, rgba(214, 224, 245, 0.72), rgba(239, 243, 251, 0.92)),
    repeating-linear-gradient(
      to right,
      rgba(15, 23, 42, 0.07),
      rgba(15, 23, 42, 0.07) 1px,
      transparent 1px,
      transparent 58px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.07),
      rgba(15, 23, 42, 0.07) 1px,
      transparent 1px,
      transparent 58px
    );
}

html[data-bs-theme="light"] .app-nurse-target {
  border-color: rgba(15, 23, 42, 0.20);
  background: rgba(255, 255, 255, 0.84);
}

html[data-bs-theme="light"] .app-nurse-game-option {
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.90);
}

html[data-bs-theme="light"] .app-nurse-game-option:hover,
html[data-bs-theme="light"] .app-nurse-game-option:focus {
  border-color: rgba(124, 92, 255, 0.58);
  background: rgba(124, 92, 255, 0.08);
}

@media (max-width: 576px) {
  .app-nurse-3d-stage {
    height: 204px;
  }

  .app-nurse-target {
    min-width: 68px;
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .app-nurse-target-bed {
    left: 8px;
    top: 8px;
  }

  .app-nurse-target-wash {
    left: 120px;
    top: 64px;
  }

  .app-nurse-target-bell {
    left: 220px;
    top: 8px;
  }

  .app-nurse-role-card {
    padding: 9px 10px;
  }

  .app-nurse-control-pad {
    max-width: 100%;
  }

  .app-nurse-game-option {
    padding: 10px 11px;
    font-size: 0.95rem;
  }
}
