:root {
  --wc-bg: #f6f8fc;
  --wc-surface: #ffffff;
  --wc-surface-soft: #f8fafc;
  --wc-text: #0f172a;
  --wc-text-muted: #475569;
  --wc-border: #e2e8f0;
  --wc-brand: #2563eb;
  --wc-brand-strong: #1d4ed8;
  --wc-brand-soft: rgba(37, 99, 235, 0.12);
  --wc-success-soft: #dcfce7;
  --wc-warning-soft: #fef3c7;
  --wc-radius-sm: 10px;
  --wc-radius-md: 14px;
  --wc-radius-lg: 20px;
  --wc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --wc-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html,
body {
  background: var(--wc-bg);
  color: var(--wc-text);
}

.wc-shell {
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.14), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.1), transparent 42%),
    var(--wc-bg);
}

.wc-panel {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius-lg);
  box-shadow: var(--wc-shadow-sm);
}

.wc-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius-md);
  box-shadow: var(--wc-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.wc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wc-shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

.wc-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wc-brand);
  font-size: 11px;
  font-weight: 600;
}

.wc-section-title {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
}

.wc-subtext {
  color: var(--wc-text-muted);
}

.wc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--wc-border);
  border-radius: 999px;
  background: var(--wc-surface-soft);
  color: #334155;
  padding: 0.25rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.wc-input,
.wc-select,
.wc-textarea {
  border-radius: var(--wc-radius-sm);
  border: 1px solid #cbd5e1;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.wc-input:focus,
.wc-select:focus,
.wc-textarea:focus {
  outline: none;
  border-color: var(--wc-brand);
  box-shadow: 0 0 0 3px var(--wc-brand-soft);
}

.wc-fade-up {
  animation: wcFadeUp 340ms ease both;
}

@keyframes wcFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-link {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar-link:hover {
  transform: translateX(4px);
  background-color: rgba(59, 130, 246, 0.05);
}

.sidebar-link.active {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: #2563eb;
  border-radius: 0 4px 4px 0;
}

.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dropdown-animation {
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.playground-bg {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14) 0, rgba(59, 130, 246, 0) 55%),
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.12) 0, rgba(16, 185, 129, 0) 45%),
    #f8fafc;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.endpoint-body[aria-hidden="true"] {
  display: none;
}

.endpoint-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* API playground: code-style request fields */
.api-form .api-input,
.api-form .proxy-input {
  border-width: 2px;
  border-color: rgb(30 41 59);
  background-color: rgb(2 6 23);
  color: rgb(241 245 249);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
}

.api-form .api-input::placeholder,
.api-form .proxy-input::placeholder {
  color: rgb(100 116 139);
}

.api-form select.api-input {
  background-color: rgb(2 6 23);
}

.api-form .api-input:focus,
.api-form .proxy-input:focus {
  border-color: rgb(16 185 129);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgb(0 0 0 / 0.25),
    0 0 0 2px rgb(16 185 129 / 0.35);
}

.playground-table-card .table-query-input,
.playground-table-card .table-page-input {
  border-width: 2px;
  border-color: rgb(30 41 59);
  background-color: rgb(2 6 23);
  color: rgb(241 245 249);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
}

.playground-table-card .table-query-input::placeholder {
  color: rgb(100 116 139);
}

.playground-table-card .table-query-input:focus,
.playground-table-card .table-page-input:focus {
  border-color: rgb(16 185 129);
  outline: none;
  box-shadow:
    inset 0 1px 2px rgb(0 0 0 / 0.25),
    0 0 0 2px rgb(16 185 129 / 0.35);
}

/* Prism panels: consistent frame on the playground */
.playground-code-panel pre {
  margin: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(51 65 85);
}

.method-badge {
  min-width: 62px;
  justify-content: center;
}

.api-page footer {
  display: none !important;
}

/* Retained utilities from previous style.css usage */
#toast-notification {
  z-index: 99999999;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar::-webkit-scrollbar:hover {
  display: block;
}

.scrollbar {
  -ms-overflow-style: block;
  scrollbar-width: block;
}

.bi-chevron-right::before {
  font-weight: 700 !important;
  font-size: 14px !important;
  vertical-align: middle;
  margin-left: 10px;
}

i.bi.bi-bookmark::before,
i.bi.bi-search::before {
  font-weight: 600 !important;
}

.qs_pagination {
  top: auto !important;
  bottom: -50px !important;
}

.qs_swiper .swiper-pagination-progressbar {
  background: #606060;
  border-radius: 10px;
  overflow: hidden;
  height: 3px;
  width: 30%;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: white;
  border-radius: 10px;
}

.qs_swiper_inner {
  padding-left: 20px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: inherit;
  width: 100%;
  background: transparent;
  pointer-events: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: all;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #1d4ed8;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 2px 8px 8px #ccc;
}

input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #1d4ed8;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 2px 8px 8px #ccc;
}

.qs_testimonial_swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: white;
}

.qs_testimonial_swiper .swiper-pagination {
  bottom: -30px;
}

.qs_brand_swiper {
  position: relative;
  background-color: transparent;
}

.iti {
  width: 100%;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

@media (max-width: 640px) {
  .dashboard-touch input,
  .dashboard-touch select,
  .dashboard-touch textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .dashboard-touch button,
  .dashboard-touch a.inline-flex {
    min-height: 44px;
  }
}

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

:root {
    --ln-primary: #0D1117;
    --ln-secondary: #161B22;
    --ln-tertiary: #00F0FF;
    --ln-neutral: #0D1117;
    --ln-bg: #f7fbff;
    --ln-surface: #ffffff;
    --ln-surface-soft: #f5f9ff;
    --ln-border: rgba(13, 17, 23, 0.12);
    --ln-border-soft: rgba(13, 17, 23, 0.08);
    --ln-muted: rgba(13, 17, 23, 0.7);
    --ln-glow-soft: rgba(0, 240, 255, 0.18);
}

body.ln-theme {
    font-family: "Manrope", "Inter", sans-serif;
    color: var(--ln-neutral);
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 240, 255, 0.12), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(0, 240, 255, 0.09), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f5f9ff 55%, #f7fbff 100%);
}

body.ln-theme h1,
body.ln-theme h2,
body.ln-theme h3,
body.ln-theme h4,
body.ln-theme h5,
body.ln-theme h6 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: var(--ln-primary);
}

body.ln-theme p,
body.ln-theme span,
body.ln-theme label,
body.ln-theme li,
body.ln-theme td,
body.ln-theme th,
body.ln-theme small {
    color: inherit;
}

body.ln-theme a:not(.text-white) {
    color: var(--ln-secondary);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

body.ln-theme a:hover {
    color: var(--ln-primary);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.28);
}

/* Preserve explicit button-link text colors against global anchor styling */
body.ln-theme a.ds-button-primary,
body.ln-theme a.ds-button-primary:hover,
body.ln-theme a.wc-btn-primary,
body.ln-theme a.wc-btn-primary:hover,
body.ln-theme a.btn-brand,
body.ln-theme a.btn-brand:hover,
body.ln-theme a.bg-primary,
body.ln-theme a.bg-primary:hover {
    color: #ffffff !important;
    text-shadow: none !important;
}

body.ln-theme a.ds-button-secondary,
body.ln-theme a.ds-button-secondary:hover,
body.ln-theme a.wc-btn-secondary,
body.ln-theme a.wc-btn-secondary:hover {
    color: var(--ln-primary) !important;
    text-shadow: none !important;
}

body.ln-theme input,
body.ln-theme textarea,
body.ln-theme select {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--ln-border) !important;
    color: var(--ln-primary) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(13, 17, 23, 0.04);
}

body.ln-theme input:focus,
body.ln-theme textarea:focus,
body.ln-theme select:focus {
    border-color: rgba(0, 240, 255, 0.6) !important;
    box-shadow: 0 0 0 3px var(--ln-glow-soft) !important;
    outline: none !important;
}

/* Restore native checked visuals for radios/checkboxes */
body.ln-theme input[type="radio"],
body.ln-theme input[type="checkbox"] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    accent-color: var(--ln-primary);
    box-shadow: none !important;
    border-radius: 999px !important;
    background: #fff !important;
}

body.ln-theme input[type="checkbox"] {
    border-radius: 0.25rem !important;
}

body.ln-theme input[type="radio"]:focus,
body.ln-theme input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--ln-glow-soft) !important;
}

body.ln-theme button,
body.ln-theme .btn,
body.ln-theme [role="button"] {
    border-radius: 10px;
}

body.ln-theme .bg-white,
body.ln-theme .bg-gray-50,
body.ln-theme .bg-slate-50 {
    background-color: var(--ln-surface) !important;
}

body.ln-theme .bg-blue-50,
body.ln-theme .bg-indigo-50 {
    background: linear-gradient(145deg, #ffffff, #eefbff) !important;
}

body.ln-theme .border,
body.ln-theme .border-gray-100,
body.ln-theme .border-gray-200,
body.ln-theme .border-gray-300,
body.ln-theme .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--ln-border-soft) !important;
}

body.ln-theme .shadow,
body.ln-theme .shadow-md,
body.ln-theme .shadow-lg,
body.ln-theme .shadow-xl,
body.ln-theme .shadow-2xl {
    box-shadow: 0 14px 30px rgba(13, 17, 23, 0.08) !important;
}

body.ln-theme .hover\:shadow-lg:hover,
body.ln-theme .hover\:shadow-xl:hover,
body.ln-theme .hover\:shadow-2xl:hover {
    box-shadow: 0 18px 34px rgba(13, 17, 23, 0.1), 0 0 20px rgba(0, 240, 255, 0.16) !important;
}

body.ln-theme .text-gray-900,
body.ln-theme .text-gray-800,
body.ln-theme .text-slate-900,
body.ln-theme .text-black {
    color: var(--ln-primary) !important;
}

body.ln-theme .text-gray-700,
body.ln-theme .text-gray-600,
body.ln-theme .text-gray-500,
body.ln-theme .text-slate-700,
body.ln-theme .text-slate-600,
body.ln-theme .text-slate-500 {
    color: var(--ln-muted) !important;
}

body.ln-theme .text-primary,
body.ln-theme .hover\:text-primary:hover,
body.ln-theme .group:hover .group-hover\:text-blue-600,
body.ln-theme .group:hover .group-hover\:text-blue-500 {
    color: var(--ln-secondary) !important;
}

body.ln-theme .bg-primary {
    background-color: var(--ln-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.18), 0 0 18px rgba(0, 240, 255, 0.16);
}

body.ln-theme .hover\:bg-primary\/90:hover,
body.ln-theme .hover\:bg-primary-dark:hover,
body.ln-theme .bg-primary:hover {
    background-color: #111a27 !important;
}

body.ln-theme .bg-gradient-to-r,
body.ln-theme .bg-gradient-to-br,
body.ln-theme .bg-gradient-to-b {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 252, 255, 0.84)) !important;
}

body.ln-theme .from-blue-600,
body.ln-theme .via-blue-700,
body.ln-theme .to-blue-800,
body.ln-theme .to-blue-600,
body.ln-theme .from-purple-600,
body.ln-theme .to-purple-600,
body.ln-theme .from-indigo-600,
body.ln-theme .to-indigo-600 {
    --tw-gradient-from: rgba(255, 255, 255, 0.98) var(--tw-gradient-from-position) !important;
    --tw-gradient-via: rgba(244, 252, 255, 0.92) var(--tw-gradient-via-position) !important;
    --tw-gradient-to: rgba(228, 250, 255, 0.8) var(--tw-gradient-to-position) !important;
}

body.ln-theme .bg-clip-text.text-transparent {
    background-image: linear-gradient(90deg, var(--ln-primary), var(--ln-secondary)) !important;
}

body.ln-theme .rounded-2xl,
body.ln-theme .rounded-xl,
body.ln-theme .rounded-lg {
    border-radius: 10px !important;
}

body.ln-theme header,
body.ln-theme nav,
body.ln-theme footer,
body.ln-theme aside {
    /* background-color: rgba(255, 255, 255, 0.9) !important; */
    backdrop-filter: blur(8px);
}

body.ln-theme .sidebar-link.active,
body.ln-theme .sidebar-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(232, 250, 255, 0.86)) !important;
    box-shadow: 0 10px 22px rgba(13, 17, 23, 0.06), 0 0 14px rgba(0, 240, 255, 0.14);
}

body.ln-theme .wc-focus-ring:focus-visible {
    box-shadow: 0 0 0 3px var(--ln-glow-soft) !important;
    outline: none !important;
}

/* Global landing design system styles migrated from index.html */
:root {
    --ds-primary: #0D1117;
    --ds-secondary: #161B22;
    --ds-tertiary: #00F0FF;
    --ds-neutral: #0D1117;
    --ds-bg: #f8fbff;
    --ds-surface: #ffffff;
    --ds-border: rgba(13, 17, 23, 0.12);
    --ds-soft-border: rgba(13, 17, 23, 0.08);
    --ds-muted: rgba(13, 17, 23, 0.68);
    --ds-radius: 10px;
}

.ds-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.14), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(0, 240, 255, 0.1), transparent 28%),
        linear-gradient(180deg, #f9fdff 0%, #f6f9ff 50%, #f8fbff 100%);
    color: var(--ds-neutral);
    font-family: "Manrope", sans-serif;
}

.ds-container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.ds-kicker,
.ds-label,
.ds-button,
.ds-stat-label {
    font-family: "Inter", sans-serif;
}

.ds-title,
.ds-section-title {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.02em;
}

.ds-hero-wrap {
    position: relative;
    overflow: hidden;
    padding: 86px 0 30px;
}

.ds-hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 252, 255, 0.75));
    border: 1px solid var(--ds-soft-border);
    border-radius: var(--ds-radius);
    pointer-events: none;
}

.ds-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.65;
}

.ds-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.03), rgba(0, 240, 255, 0.2), rgba(13, 17, 23, 0.03));
}

.ds-line-glow {
    position: absolute;
    top: -120px;
    left: -1px;
    width: 3px;
    height: 120px;
    border-radius: 4px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.22), rgba(0, 240, 255, 0.45), transparent);
    animation: dsFlow 4s ease-in-out infinite;
}

@keyframes dsFlow {
    0% { top: -120px; opacity: 0; }
    12% { opacity: 0.95; }
    84% { opacity: 0.75; }
    100% { top: 100%; opacity: 0; }
}

.ds-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.ds-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-secondary);
    border: 1px solid var(--ds-border);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ds-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ds-tertiary);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.ds-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.07;
    margin-bottom: 18px;
}

.ds-title-accent {
    color: var(--ds-primary);
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
    position: relative;
}

.ds-subtitle {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ds-muted);
}

.ds-search {
    max-width: 760px;
    margin: 0 auto 36px;
    position: relative;
}

.ds-search input {
    width: 100%;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 16px 140px 16px 22px;
    outline: none;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(13, 17, 23, 0.06);
}

.ds-search input:focus {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.18);
}

.ds-button {
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.ds-button-primary {
    background: var(--ds-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.18), 0 0 24px rgba(0, 240, 255, 0.16);
}

.ds-button-primary:hover {
    transform: translateY(-1px);
    background: #101824;
}

.ds-button-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ds-primary);
    border-color: var(--ds-border);
    box-shadow: 0 8px 20px rgba(13, 17, 23, 0.08);
}

.ds-button-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.09), 0 0 22px rgba(0, 240, 255, 0.18);
}

/* Make existing app buttons match index design language */
.wc-btn-primary,
.btn-brand {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: var(--ds-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.18), 0 0 24px rgba(0, 240, 255, 0.16) !important;
    transition: all .2s ease !important;
}

.wc-btn-primary:hover,
.btn-brand:hover {
    transform: translateY(-1px);
    background: #101824 !important;
}

.wc-btn-secondary {
    border-radius: 999px !important;
    border: 1px solid var(--ds-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ds-primary) !important;
    box-shadow: 0 8px 20px rgba(13, 17, 23, 0.08) !important;
    transition: all .2s ease !important;
}

.wc-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.09), 0 0 22px rgba(0, 240, 255, 0.18) !important;
}

.wc-btn-primary:focus-visible,
.wc-btn-secondary:focus-visible,
.btn-brand:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.2), 0 10px 24px rgba(13, 17, 23, 0.16) !important;
}

/* Upgrade legacy Tailwind button classes used across templates */
body.ln-theme a.bg-blue-600,
body.ln-theme button.bg-blue-600,
body.ln-theme a.bg-slate-900,
body.ln-theme button.bg-slate-900 {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: var(--ds-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.18), 0 0 24px rgba(0, 240, 255, 0.16) !important;
    transition: all .2s ease !important;
}

body.ln-theme a.bg-blue-600:hover,
body.ln-theme button.bg-blue-600:hover,
body.ln-theme a.bg-slate-900:hover,
body.ln-theme button.bg-slate-900:hover {
    transform: translateY(-1px);
    background: #101824 !important;
}

/* Secondary button parity for utility-class buttons (e.g. api.html) */
body.ln-theme a.bg-white.border-slate-300,
body.ln-theme button.bg-white.border-slate-300,
body.ln-theme a.bg-slate-50.border-slate-300,
body.ln-theme button.bg-slate-50.border-slate-300,
body.ln-theme a.bg-blue-50.border-blue-200,
body.ln-theme button.bg-blue-50.border-blue-200 {
    border-radius: 999px !important;
    border: 1px solid var(--ds-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ds-primary) !important;
    box-shadow: 0 8px 20px rgba(13, 17, 23, 0.08) !important;
    transition: all .2s ease !important;
}

body.ln-theme a.bg-white.border-slate-300:hover,
body.ln-theme button.bg-white.border-slate-300:hover,
body.ln-theme a.bg-slate-50.border-slate-300:hover,
body.ln-theme button.bg-slate-50.border-slate-300:hover,
body.ln-theme a.bg-blue-50.border-blue-200:hover,
body.ln-theme button.bg-blue-50.border-blue-200:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 10px 24px rgba(13, 17, 23, 0.09), 0 0 22px rgba(0, 240, 255, 0.18) !important;
}

.ds-search .ds-button-primary {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 18px;
}

.ds-search .ds-button-primary:hover {
    transform: translateY(-50%) translateY(-1px);
}

.ds-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 26px;
}

.ds-stat {
    padding: 14px 10px;
    border: 1px solid var(--ds-soft-border);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--ds-radius);
}

.ds-stat-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.ds-stat-label {
    color: var(--ds-muted);
    font-size: 12px;
    font-weight: 600;
}

.ds-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.ds-grid {
    display: grid;
    gap: 16px;
}

.ds-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ds-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ds-soft-border);
    border-radius: var(--ds-radius);
    box-shadow: 0 14px 30px rgba(13, 17, 23, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ds-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 18px 34px rgba(13, 17, 23, 0.1), 0 0 20px rgba(0, 240, 255, 0.16);
}

.ds-featured .ds-card { padding: 22px; }

.ds-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.15), rgba(255, 255, 255, 0.86));
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ds-icon {
    color: var(--ds-secondary);
    font-size: 1.4rem;
}

.ds-pill {
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.14);
    color: var(--ds-secondary);
    border: 1px solid rgba(0, 240, 255, 0.32);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
}

.ds-section {
    padding: 80px 0;
}

.ds-section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    margin-bottom: 10px;
}

.ds-section-subtitle {
    color: var(--ds-muted);
}

.ds-features .ds-card {
    padding: 26px;
}

.ds-cta {
    padding: 34px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(231, 250, 255, 0.78));
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    box-shadow: 0 18px 34px rgba(13, 17, 23, 0.08);
    text-align: center;
}

.ds-trust {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--ds-muted);
}

.ds-faq-wrap {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    padding: 24px;
    box-shadow: 0 16px 30px rgba(13, 17, 23, 0.07);
}

.ds-faq-item {
    border-bottom: 1px solid var(--ds-soft-border);
    padding: 16px 0;
}

.ds-faq-item:last-child {
    border-bottom: none;
}

.ds-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    color: var(--ds-secondary);
    font-family: "Inter", sans-serif;
}

.ds-faq-btn:hover {
    color: var(--ds-primary);
}

.ds-faq-content {
    margin-top: 10px;
    color: var(--ds-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .ds-grid-3 { grid-template-columns: 1fr; }
    .ds-featured { margin-top: 20px; }
}

@media (max-width: 640px) {
    .ds-search input {
        padding-right: 122px;
    }

    .ds-stats {
        grid-template-columns: 1fr;
    }
}

/* ─── Enterprise Dashboard Extensions ──────────────────────────────────────── */

/* Skeleton shimmer */
@keyframes skelShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skel {
    background: linear-gradient(90deg, #f1f5f9 25%, #e8eef4 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: skelShimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
    display: block;
}

.skel-text  { height: 0.9rem; }
.skel-text-sm { height: 0.7rem; }
.skel-card  { height: 5.5rem; border-radius: 14px; }
.skel-chart { height: 240px; border-radius: 14px; }
.skel-circle { border-radius: 999px !important; }

.skel-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(241,245,249,0.55) 25%, rgba(226,232,240,0.7) 50%, rgba(241,245,249,0.55) 75%);
    background-size: 800px 100%;
    animation: skelShimmer 1.4s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* Toast notifications */
#dash-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 360px;
    width: 100%;
}

.dash-toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 8px 24px rgba(15,23,42,0.14);
    font-size: 0.8125rem;
    font-weight: 500;
    background: #fff;
    pointer-events: all;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 240ms ease, transform 240ms ease;
    font-family: 'Manrope', 'Inter', sans-serif;
}

.dash-toast--show {
    opacity: 1;
    transform: translateX(0);
}

.dash-toast--hide {
    opacity: 0;
    transform: translateX(24px);
}

.dash-toast--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.dash-toast--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dash-toast--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dash-toast--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.dash-toast__icon { font-size: 1rem; flex-shrink: 0; }
.dash-toast__msg  { flex: 1; line-height: 1.4; }
.dash-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    padding: 0 0 0 0.25rem;
    color: inherit;
    flex-shrink: 0;
}
.dash-toast__close:hover { opacity: 1; }

/* Delta / trend badges */
.delta-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
}
.delta-up   { background: #dcfce7; color: #166534; }
.delta-down { background: #fee2e2; color: #991b1b; }
.delta-flat { background: #f1f5f9; color: #64748b; }

/* KPI sparkline canvas */
.sparkline-wrap { height: 44px; margin-top: 8px; }
.sparkline-wrap canvas { width: 100% !important; height: 44px !important; }

/* Sidebar group labels */
.sidebar-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.625rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
}

/* Sidebar mini / collapsed mode */
.sidebar-mini { width: 64px !important; }
.sidebar-mini .sidebar-label { display: none !important; }
.sidebar-mini .sidebar-group-label { display: none !important; }
.sidebar-mini .sidebar-link { justify-content: center; padding: 0.75rem; }
.sidebar-mini .sidebar-link i { margin: 0 !important; }

/* Notification bell badge */
.notif-badge-wrap { position: relative; display: inline-flex; }
#notif-badge {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
}

/* Dark mode overrides */
[data-theme="dark"] {
    --wc-bg: #0f172a;
    --wc-surface: #1e293b;
    --wc-surface-soft: #1e293b;
    --wc-text: #f1f5f9;
    --wc-text-muted: #94a3b8;
    --wc-border: rgba(255,255,255,0.1);
    --wc-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --wc-shadow-md: 0 12px 30px rgba(0,0,0,0.3);
    --ln-bg: #0f172a;
    --ln-surface: #1e293b;
    --ln-surface-soft: #1e293b;
    --ln-border: rgba(255,255,255,0.1);
    --ln-muted: #94a3b8;
}

[data-theme="dark"] body.ln-theme {
    background: linear-gradient(180deg, #0d1521 0%, #0f172a 60%, #0d1521 100%) !important;
}

[data-theme="dark"] body.ln-theme nav,
[data-theme="dark"] body.ln-theme aside,
[data-theme="dark"] body.ln-theme header {
    background-color: rgba(15,23,42,0.95) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .wc-card,
[data-theme="dark"] .wc-panel {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] body.ln-theme .bg-white,
[data-theme="dark"] body.ln-theme .bg-gray-50,
[data-theme="dark"] body.ln-theme .bg-slate-50 {
    background-color: #1e293b !important;
}

[data-theme="dark"] body.ln-theme .text-slate-900,
[data-theme="dark"] body.ln-theme .text-gray-900,
[data-theme="dark"] body.ln-theme .text-slate-800 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] body.ln-theme .text-slate-500,
[data-theme="dark"] body.ln-theme .text-slate-600,
[data-theme="dark"] body.ln-theme .text-gray-500 {
    color: #94a3b8 !important;
}

[data-theme="dark"] .skel {
    background: linear-gradient(90deg, #1e293b 25%, #263347 50%, #1e293b 75%);
    background-size: 800px 100%;
}

[data-theme="dark"] body.ln-theme input,
[data-theme="dark"] body.ln-theme textarea,
[data-theme="dark"] body.ln-theme select {
    background: rgba(30,41,59,0.95) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255,255,255,0.12) !important;
}

/* Command palette */
.palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 180ms ease;
}

.palette-overlay--show { opacity: 1; }
.palette-overlay.hidden { display: none; }

.palette-box {
    width: min(560px, 92vw);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.22), 0 0 0 1px rgba(0,240,255,0.06);
    overflow: hidden;
    transform: translateY(-12px);
    transition: transform 200ms ease;
}

.palette-overlay--show .palette-box { transform: translateY(0); }

.palette-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.palette-search-icon { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; }

.palette-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.9375rem;
    color: #0f172a;
    box-shadow: none !important;
    padding: 0 !important;
}

.palette-esc-hint {
    font-size: 0.7rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.palette-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.375rem 0;
    margin: 0;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    transition: background 120ms;
}

.palette-item:hover,
.palette-item--active {
    background: #f0f7ff;
    color: #1d4ed8;
}

.palette-item-icon { font-size: 1rem; color: #94a3b8; flex-shrink: 0; }
.palette-item--active .palette-item-icon { color: #2563eb; }

.palette-empty { padding: 1.5rem 1rem; text-align: center; color: #94a3b8; font-size: 0.875rem; }

.palette-footer {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.72rem;
    color: #94a3b8;
}

.palette-footer kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.7rem;
    margin-right: 3px;
}

[data-theme="dark"] .palette-box { background: #1e293b; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .palette-input { color: #f1f5f9; }
[data-theme="dark"] .palette-item { color: #cbd5e1; }
[data-theme="dark"] .palette-item:hover,
[data-theme="dark"] .palette-item--active { background: rgba(37,99,235,0.15); color: #93c5fd; }
[data-theme="dark"] .palette-search-wrap,
[data-theme="dark"] .palette-footer { border-color: rgba(255,255,255,0.07); }

/* Wizard step indicator */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.wizard-step-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.wizard-step-item:last-child { flex: 0; }

.wizard-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 200ms ease;
    z-index: 1;
    position: relative;
}

.wizard-step-item.active   .wizard-step-circle { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }
.wizard-step-item.complete .wizard-step-circle { border-color: #10b981; background: #10b981; color: #fff; }

.wizard-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 4px;
    white-space: nowrap;
}

.wizard-step-item.active   .wizard-step-label { color: #2563eb; }
.wizard-step-item.complete .wizard-step-label { color: #10b981; }

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    margin-bottom: 16px;
    transition: background 200ms ease;
}

.wizard-step-item.complete + .wizard-step-line,
.wizard-step-item.complete .wizard-step-line { background: #10b981; }

/* Confirmation modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.confirm-modal-overlay.show { opacity: 1; }
.confirm-modal-overlay.hidden { display: none; }

.confirm-modal-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    width: min(440px, 100%);
    box-shadow: 0 20px 50px rgba(15,23,42,0.2);
    transform: scale(0.96);
    transition: transform 180ms ease;
}

.confirm-modal-overlay.show .confirm-modal-box { transform: scale(1); }

[data-theme="dark"] .confirm-modal-box { background: #1e293b; border-color: rgba(255,255,255,0.1); }

/* API health status dot */
.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
}

.health-dot--green  { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.health-dot--amber  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.health-dot--red    { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.health-dot--pulse  { animation: healthPulse 2s ease-in-out infinite; }

@keyframes healthPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.65; transform: scale(1.3); }
}

/* Breadcrumb bar */
.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.dash-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 120ms; }
.dash-breadcrumb a:hover { color: #2563eb; }
.dash-breadcrumb .sep { color: #cbd5e1; }
.dash-breadcrumb .current { color: #475569; font-weight: 600; }

/* Role badge in nav */
.role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Horizontal scrollable chart wrapper for mobile */
.chart-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chart-scroll-x canvas { min-width: 340px; }

/* Table sort headers */
.th-sortable {
    cursor: pointer;
    user-select: none;
    transition: color 120ms;
}

.th-sortable:hover { color: #2563eb; }
.th-sortable .sort-icon { margin-left: 4px; opacity: 0.4; font-size: 0.7rem; }
.th-sortable.asc  .sort-icon { opacity: 1; }
.th-sortable.desc .sort-icon { opacity: 1; transform: rotate(180deg); }

/* Preset amount buttons */
.preset-amount-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 140ms ease;
}

.preset-amount-btn:hover,
.preset-amount-btn.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* Auto-save indicator */
.autosave-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #94a3b8;
    transition: color 200ms;
}

.autosave-indicator.saving { color: #f59e0b; }
.autosave-indicator.saved  { color: #10b981; }

/* Live preview card */
.preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
    transition: all 200ms ease;
}

/* Field validation badge */
.field-valid-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 150ms;
    pointer-events: none;
}

.field-valid-icon.show { opacity: 1; }

/* Endpoint preview pill */
.endpoint-preview {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.78rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #334155;
    word-break: break-all;
    transition: background 150ms;
}

[data-theme="dark"] .endpoint-preview { background: #1e293b; color: #94a3b8; border-color: rgba(255,255,255,0.1); }

/* Sidebar collapse toggle button */
#sidebar-mini-toggle {
    display: none;
}

@media (min-width: 640px) {
    #sidebar-mini-toggle { display: flex; }
}

/* Responsive chart heights */
@media (max-width: 640px) {
    .h-80 { height: 220px !important; }
    .h-72 { height: 200px !important; }
}

