:root.sub2api-user-prism {
  --prism-ink: #2a1835;
  --prism-muted: #6e5c76;
  --prism-paper: #fffdfa;
  --prism-paper-2: #fbf7ff;
  --prism-violet: #660874;
  --prism-lilac: #d7b6ff;
  --prism-gold: #bfa7cc;
  --prism-sage: #9f88ad;
  --prism-line: #2a1835;
  --prism-soft-line: rgba(42, 24, 53, 0.18);
  --prism-shadow: rgba(42, 24, 53, 0.16);
}

:root.dark.sub2api-user-prism {
  --prism-ink: #f8f1ff;
  --prism-muted: #cab9d4;
  --prism-paper: #171020;
  --prism-paper-2: #21172e;
  --prism-violet: #d7b6ff;
  --prism-lilac: #4d2b63;
  --prism-gold: #bfa7cc;
  --prism-sage: #9f88ad;
  --prism-line: rgba(232, 214, 245, 0.38);
  --prism-soft-line: rgba(232, 214, 245, 0.18);
  --prism-shadow: rgba(0, 0, 0, 0.34);
}

html.sub2api-user-prism body {
  background:
    linear-gradient(115deg, #fbf7ff 0 56%, #eee7f3 56% 76%, #f8f2fb 76% 100%) !important;
  color: var(--prism-ink);
}

html.dark.sub2api-user-prism body {
  background:
    linear-gradient(115deg, #100917 0 56%, #201628 56% 76%, #2a1c32 76% 100%) !important;
}

html.sub2api-user-prism body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(102, 8, 116, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.46;
}

html.sub2api-user-prism #app {
  position: relative;
  z-index: 1;
}

html.sub2api-user-prism .bg-mesh-gradient {
  background:
    linear-gradient(115deg, #fbf7ff 0 56%, #eee7f3 56% 76%, #f8f2fb 76% 100%) !important;
}

html.dark.sub2api-user-prism .bg-mesh-gradient {
  background:
    linear-gradient(115deg, #100917 0 56%, #201628 56% 76%, #2a1c32 76% 100%) !important;
}

html.sub2api-user-prism .sidebar {
  border-color: var(--prism-line) !important;
  background:
    repeating-linear-gradient(90deg, rgba(102, 8, 116, 0.1) 0 1px, transparent 1px 18px),
    var(--prism-paper-2) !important;
  box-shadow: 8px 0 0 var(--prism-shadow) !important;
}

html.sub2api-user-prism .sidebar-header,
html.sub2api-user-prism .sidebar .mt-auto {
  border-color: var(--prism-line) !important;
}

html.sub2api-user-prism .sidebar-logo {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--prism-line) !important;
  background: #c9bbd3 !important;
  box-shadow: none !important;
}

html.sub2api-user-prism .sidebar-logo::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 200%;
  background:
    linear-gradient(
      90deg,
      #c9bbd3 0%,
      #ad9aba 6%,
      #8f7d9f 12%,
      #725779 19%,
      #6d3574 26%,
      #884a91 33%,
      #a86bb4 40%,
      #c6a2d1 46%,
      #c9bbd3 50%,
      #ad9aba 56%,
      #8f7d9f 62%,
      #725779 69%,
      #6d3574 76%,
      #884a91 83%,
      #a86bb4 90%,
      #c6a2d1 96%,
      #c9bbd3 100%
    ) !important;
  content: "";
  transform: translate3d(0, 0, 0);
}

html.sub2api-user-prism .sidebar-logo > * {
  position: relative;
  z-index: 1;
}

html.sub2api-user-prism .sidebar-brand-title,
html.sub2api-user-prism .sidebar-label,
html.sub2api-user-prism .sidebar-section-title,
html.sub2api-user-prism .sidebar-section-title-text {
  color: var(--prism-ink) !important;
}

html.sub2api-user-prism .sidebar-link {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: var(--prism-muted) !important;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease !important;
}

html.sub2api-user-prism .sidebar-link:hover {
  border-color: var(--prism-line) !important;
  background: var(--prism-paper) !important;
  color: var(--prism-ink) !important;
  transform: translateX(2px);
}

html.sub2api-user-prism .sidebar-link-active {
  border-color: var(--prism-line) !important;
  background: var(--prism-ink) !important;
  color: #fff !important;
}

html.sub2api-user-prism .sidebar-link-active *,
html.sub2api-user-prism .sidebar-link-active svg,
html.sub2api-user-prism .sidebar-link-active span,
html.sub2api-user-prism .sidebar-link-active .sidebar-label,
html.sub2api-user-prism .sidebar-link-active [class*='text-'] {
  color: inherit !important;
  stroke: currentColor !important;
}

html.dark.sub2api-user-prism .sidebar-link-active {
  color: #171020 !important;
  background: var(--prism-violet) !important;
}

html.sub2api-user-prism .card,
html.sub2api-user-prism .glass,
html.sub2api-user-prism .glass-card,
html.sub2api-user-prism .card-glass,
html.sub2api-user-prism .table-container,
html.sub2api-user-prism .table-wrapper,
html.sub2api-user-prism .dropdown,
html.sub2api-user-prism .modal-content,
html.sub2api-user-prism .dialog-container {
  border-color: var(--prism-line) !important;
  border-radius: 8px !important;
  background: var(--prism-paper) !important;
  box-shadow: 6px 6px 0 var(--prism-shadow) !important;
  backdrop-filter: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease !important;
}

html.sub2api-user-prism .card-header,
html.sub2api-user-prism .card-footer {
  border-color: var(--prism-line) !important;
  background: var(--prism-paper-2) !important;
}

html.sub2api-user-prism .stat-card:nth-of-type(4n + 1),
html.sub2api-user-prism .card:nth-of-type(4n + 1) {
  background:
    linear-gradient(90deg, rgba(102, 8, 116, 0.08) 0 8px, transparent 8px),
    var(--prism-paper) !important;
}

html.sub2api-user-prism .stat-card:nth-of-type(4n + 2),
html.sub2api-user-prism .card:nth-of-type(4n + 2) {
  background:
    linear-gradient(90deg, rgba(215, 182, 255, 0.46) 0 8px, transparent 8px),
    var(--prism-paper) !important;
}

html.sub2api-user-prism .stat-card:nth-of-type(4n + 3),
html.sub2api-user-prism .card:nth-of-type(4n + 3) {
  background:
    linear-gradient(90deg, rgba(191, 167, 204, 0.5) 0 8px, transparent 8px),
    var(--prism-paper) !important;
}

html.sub2api-user-prism .stat-card:nth-of-type(4n),
html.sub2api-user-prism .card:nth-of-type(4n) {
  background:
    linear-gradient(90deg, rgba(159, 136, 173, 0.42) 0 8px, transparent 8px),
    var(--prism-paper) !important;
}

html.sub2api-user-prism .btn {
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease !important;
}

html.sub2api-user-prism .btn:hover {
  transform: translateY(-1px);
}

html.sub2api-user-prism .btn-primary,
html.sub2api-user-prism .bg-primary-600,
html.sub2api-user-prism .bg-primary-500,
html.sub2api-user-prism .progress-bar {
  border-color: var(--prism-line) !important;
  background: var(--prism-ink) !important;
  color: #fff !important;
}

html.dark.sub2api-user-prism .btn-primary,
html.dark.sub2api-user-prism .bg-primary-600,
html.dark.sub2api-user-prism .bg-primary-500,
html.dark.sub2api-user-prism .progress-bar {
  background: var(--prism-violet) !important;
  color: #171020 !important;
}

html.sub2api-user-prism .btn-primary:hover,
html.sub2api-user-prism .hover\:bg-primary-700:hover,
html.sub2api-user-prism .hover\:bg-primary-600:hover {
  background: var(--prism-violet) !important;
  color: #fff !important;
}

html.sub2api-user-prism .btn-secondary,
html.sub2api-user-prism .btn-ghost,
html.sub2api-user-prism .tabs,
html.sub2api-user-prism .tab-active {
  border-color: var(--prism-line) !important;
  background: var(--prism-paper) !important;
  color: var(--prism-ink) !important;
}

html.sub2api-user-prism .btn-secondary:hover,
html.sub2api-user-prism .btn-ghost:hover {
  background: #f5ecff !important;
}

html.dark.sub2api-user-prism .btn-secondary:hover,
html.dark.sub2api-user-prism .btn-ghost:hover {
  background: #2a1835 !important;
}

html.sub2api-user-prism .input,
html.sub2api-user-prism input:not([type='checkbox']):not([type='radio']),
html.sub2api-user-prism textarea,
html.sub2api-user-prism select {
  border-color: var(--prism-line) !important;
  border-radius: 8px !important;
  background: var(--prism-paper) !important;
  color: var(--prism-ink) !important;
  box-shadow: none !important;
}

html.sub2api-user-prism .input:focus,
html.sub2api-user-prism input:not([type='checkbox']):not([type='radio']):focus,
html.sub2api-user-prism textarea:focus,
html.sub2api-user-prism select:focus {
  border-color: var(--prism-violet) !important;
  box-shadow: 0 0 0 3px rgba(102, 8, 116, 0.14) !important;
}

html.sub2api-user-prism .input-label,
html.sub2api-user-prism .input-hint,
html.sub2api-user-prism .text-gray-500,
html.sub2api-user-prism .text-gray-600,
html.sub2api-user-prism .dark\:text-gray-400,
html.sub2api-user-prism .dark\:text-dark-400 {
  color: var(--prism-muted) !important;
}

html.sub2api-user-prism .text-primary-600,
html.sub2api-user-prism .text-primary-700,
html.sub2api-user-prism .dark\:text-primary-400 {
  color: var(--prism-violet) !important;
}

html.sub2api-user-prism .bg-primary-50,
html.sub2api-user-prism .bg-primary-100,
html.sub2api-user-prism .dark\:bg-primary-900\/20,
html.sub2api-user-prism .dark\:bg-primary-900\/30 {
  background-color: rgba(102, 8, 116, 0.1) !important;
}

html.sub2api-user-prism .border-primary-500,
html.sub2api-user-prism .focus\:border-primary-500:focus {
  border-color: var(--prism-violet) !important;
}

html.sub2api-user-prism .focus\:ring-primary-500\/30:focus,
html.sub2api-user-prism .focus\:ring-primary-500\/50:focus {
  --tw-ring-color: rgba(102, 8, 116, 0.28) !important;
}

html.sub2api-user-prism .badge-primary,
html.sub2api-user-prism .code,
html.sub2api-user-prism code {
  border-radius: 6px !important;
  background: rgba(102, 8, 116, 0.1) !important;
  color: var(--prism-violet) !important;
}

html.sub2api-user-prism table,
html.sub2api-user-prism .table {
  border-color: var(--prism-line) !important;
}

html.sub2api-user-prism .table th,
html.sub2api-user-prism table th,
html.sub2api-user-prism thead {
  border-color: var(--prism-line) !important;
  background: var(--prism-paper-2) !important;
  color: var(--prism-muted) !important;
}

html.sub2api-user-prism .table td,
html.sub2api-user-prism table td {
  border-color: var(--prism-soft-line) !important;
}

html.sub2api-user-prism .table tbody tr:hover,
html.sub2api-user-prism tbody tr:hover {
  background: rgba(102, 8, 116, 0.055) !important;
}

html.sub2api-user-prism .rounded-xl,
html.sub2api-user-prism .rounded-2xl,
html.sub2api-user-prism .rounded-3xl {
  border-radius: 8px !important;
}

html.sub2api-user-prism .shadow,
html.sub2api-user-prism .shadow-sm,
html.sub2api-user-prism .shadow-md,
html.sub2api-user-prism .shadow-lg,
html.sub2api-user-prism .shadow-xl {
  box-shadow: 6px 6px 0 var(--prism-shadow) !important;
}

html.sub2api-user-prism .sub2api-prism-home-target {
  cursor: pointer !important;
}

html.sub2api-user-prism .sub2api-prism-home-target:focus-visible {
  outline: 2px solid var(--prism-violet) !important;
  outline-offset: 3px !important;
}

html.sub2api-user-prism-auth body {
  background:
    linear-gradient(115deg, #fdfbff 0 56%, #f0e8f5 56% 76%, #f8f2fb 76% 100%) !important;
}

html.sub2api-user-prism-auth #app > .relative.min-h-screen,
html.sub2api-user-prism-auth #app > div[class*='min-h-screen'] {
  align-items: center !important;
  padding: clamp(24px, 5vw, 56px) 18px !important;
}

html.sub2api-user-prism-auth #app > .relative.min-h-screen > .absolute.inset-0,
html.sub2api-user-prism-auth #app > div[class*='min-h-screen'] > .absolute.inset-0:first-child {
  background: transparent !important;
}

html.sub2api-user-prism-auth #app > .relative.min-h-screen > .pointer-events-none.absolute.inset-0,
html.sub2api-user-prism-auth #app > div[class*='min-h-screen'] > .pointer-events-none.absolute.inset-0 {
  display: none !important;
}

html.sub2api-user-prism-auth .max-w-md {
  max-width: min(520px, calc(100vw - 32px)) !important;
}

html.sub2api-user-prism-auth .mb-8.text-center {
  margin-bottom: 18px !important;
}

html.sub2api-user-prism-auth .mb-4.inline-flex {
  display: none !important;
}

html.sub2api-user-prism-auth .text-gradient,
html.sub2api-user-prism-auth h1.text-gradient {
  color: var(--prism-violet) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

html.sub2api-user-prism-auth .mb-8.text-center p {
  color: var(--prism-muted) !important;
  font-weight: 700 !important;
}

html.sub2api-user-prism-auth .card-glass {
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(24px, 4vw, 34px) !important;
  border: 1px solid var(--prism-line) !important;
  border-radius: 8px !important;
  background: rgba(255, 253, 250, 0.94) !important;
  box-shadow: 8px 8px 0 rgba(42, 24, 53, 0.15) !important;
}

html.sub2api-user-prism-auth .card-glass::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background:
    linear-gradient(90deg, #660874, #a88ab9, #d7b6ff, #8f6eaa, #660874);
  background-size: 200% 100%;
  content: "";
}

html.sub2api-user-prism-auth form > button[type='submit'].btn-primary,
html.sub2api-user-prism-auth .btn-primary.w-full {
  min-height: 54px !important;
  border: 1px solid var(--prism-line) !important;
  border-radius: 8px !important;
  background: #2a1835 !important;
  color: #fffdfa !important;
  box-shadow: 5px 5px 0 rgba(42, 24, 53, 0.15) !important;
}

html.sub2api-user-prism-auth form > button[type='submit'].btn-primary:hover,
html.sub2api-user-prism-auth .btn-primary.w-full:hover {
  background: #660874 !important;
  transform: translateY(-1px) !important;
}

html.sub2api-user-prism-auth .mt-6.text-center a,
html.sub2api-user-prism-auth a.text-primary-600 {
  color: var(--prism-violet) !important;
  font-weight: 800 !important;
}

html.sub2api-user-prism .sub2api-prism-actions {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html.sub2api-user-prism .sub2api-prism-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 86px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid var(--prism-line) !important;
  border-radius: 8px !important;
  box-shadow: 5px 5px 0 var(--prism-shadow) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

html.sub2api-user-prism .sub2api-prism-home-link {
  color: #fffdfa !important;
  background: var(--prism-ink) !important;
}

html.sub2api-user-prism .sub2api-prism-guide-link {
  color: #fffdfa !important;
  background:
    linear-gradient(90deg, #7f4d91, #b99ac8, #8f6eaa, #6f477f, #7f4d91) !important;
  background-size: 200% 100% !important;
}

html.sub2api-user-prism .sub2api-prism-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 7px 7px 0 var(--prism-shadow) !important;
}

@media (prefers-reduced-motion: no-preference) {
  html.sub2api-user-prism body::before {
    animation: sub2api-prism-stripes 20s linear infinite;
  }

  html.sub2api-user-prism .sidebar-logo::before {
    animation: sub2api-prism-logo 8s linear infinite;
  }

  html.sub2api-user-prism .card,
  html.sub2api-user-prism .glass-card,
  html.sub2api-user-prism .table-container {
    animation: sub2api-prism-enter 0.28s ease backwards;
  }

  html.sub2api-user-prism .card:hover,
  html.sub2api-user-prism .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 0 var(--prism-shadow) !important;
  }

  html.sub2api-user-prism .sub2api-prism-guide-link {
    animation: sub2api-prism-guide-flow 9s linear infinite;
  }

  html.sub2api-user-prism-auth .card-glass::before {
    animation: sub2api-prism-guide-flow 12s linear infinite;
  }
}

@keyframes sub2api-prism-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 0;
  }
}

@keyframes sub2api-prism-logo {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes sub2api-prism-enter {
  from {
    transform: translateY(4px);
    opacity: 0.9;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sub2api-prism-guide-flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 640px) {
  html.sub2api-user-prism .sidebar {
    box-shadow: none !important;
  }

  html.sub2api-user-prism .card,
  html.sub2api-user-prism .glass,
  html.sub2api-user-prism .glass-card,
  html.sub2api-user-prism .card-glass,
  html.sub2api-user-prism .table-container,
  html.sub2api-user-prism .table-wrapper {
    box-shadow: 3px 3px 0 var(--prism-shadow) !important;
  }

  html.sub2api-user-prism .sub2api-prism-actions {
    right: 12px !important;
    bottom: 12px !important;
    gap: 6px !important;
  }

  html.sub2api-user-prism .sub2api-prism-link {
    min-width: 78px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
  }

  html.sub2api-user-prism-auth #app > .relative.min-h-screen,
  html.sub2api-user-prism-auth #app > div[class*='min-h-screen'] {
    align-items: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: 84px !important;
  }

  html.sub2api-user-prism-auth .card-glass {
    padding: 22px !important;
    box-shadow: 4px 4px 0 rgba(42, 24, 53, 0.15) !important;
  }

}
