:root {
  --sammi-bg: #0b1724;
  --sammi-panel: rgba(28, 48, 76, 0.84);
  --sammi-panel-solid: #1c304c;
  --sammi-panel-soft: rgba(43, 67, 101, 0.78);
  --sammi-text: #f8fafc;
  --sammi-muted: #cbd5e1;
  --sammi-muted-2: #94a3b8;
  --sammi-blue: #38bdf8;
  --sammi-violet: #8b5cf6;
  --sammi-green: #22c55e;
  --sammi-border: rgba(191, 219, 254, 0.14);
  --sammi-border-strong: rgba(191, 219, 254, 0.25);
  --sammi-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --sammi-shell: min(1640px, calc(100% - clamp(1rem, 4vw, 4rem)));
}

html {
  background: var(--sammi-bg);
  scroll-padding-top: 7rem;
}

body,
body[data-theme],
[data-theme="light"],
[data-theme="dark"] {
  min-height: 100vh;
  color: var(--sammi-text);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.12), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(180deg, #07111d 0%, #0b1724 44%, #10283f 100%),
    var(--sammi-bg) !important;
  background-attachment: fixed;
  font-family: Inter, "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #93c5fd;
}

a:hover {
  color: #bfdbfe;
}

code {
  color: white !important;
  background: rgba(8, 17, 29, 0.52);
  border: 1px solid rgba(191, 219, 254, 0.08);
  border-radius: 6px;
  padding: 0.08rem 0.32rem;
}

#darkSwitchDiv {
  display: none !important;
}

.lb-navbar {
  position: sticky;
  top: 14px;
  z-index: 1040;
  width: calc(100% - 28px);
  max-width: none;
  margin: 14px auto 0;
  padding: 10px 0;
  background: rgba(15, 32, 51, 0.78) !important;
  border: 1px solid var(--sammi-border);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.lb-navbar > .container-xxl {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 1.5vw, 1.5rem);
}

.lb-navbar .navbar-brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.26));
}

.lb-navbar .navbar-nav .nav-link,
.lb-navbar .navbar-nav .nav-link:focus {
  padding: 0.55rem 0.75rem !important;
  color: white !important;
  font-size: 0.93rem;
  font-weight: 800;
  border-radius: 999px;
}

.lb-navbar .navbar-nav .nav-link:hover,
.lb-navbar .navbar-nav .nav-link.active,
.lb-navbar .navbar-nav .nav-link.active:focus,
.lb-navbar .navbar-nav li:hover > .nav-link {
  color: white !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.btn-lb-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: white !important;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sammi-border-strong);
  border-radius: 999px;
  box-shadow: none;
}

.btn-lb-download:last-of-type {
  background: linear-gradient(135deg, #1d75ad, #6c4bd6);
  border-color: rgba(147, 197, 253, 0.24);
  box-shadow: 0 14px 34px rgba(29, 117, 173, 0.2);
}

.btn-lb-download:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(191, 219, 254, 0.34);
}

.lb-subnavbar {
  display: none !important;
}

.lb-subnavbar .container-xxl {
  width: 100%;
  max-width: none;
  padding: 0;
}

.lb-sidebar-toggle {
  color: white !important;
}

body > header.pt-5 {
  padding-top: clamp(2.2rem, 5vw, 4.5rem) !important;
  border: 0 !important;
}

body > header.pt-5 > .container,
body > header.pt-5 > .container-xxl {
  width: var(--sammi-shell);
  max-width: none;
  padding: clamp(1.35rem, 3vw, 2.4rem) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(28, 48, 76, 0.76);
  border: 1px solid var(--sammi-border) !important;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.lb-title,
body > header h1,
.lb-intro h2 {
  color: white;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.lb-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.lb-lead {
  max-width: 780px;
  color: var(--sammi-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.alert {
  color: var(--sammi-muted) !important;
  background: rgba(28, 48, 76, 0.76) !important;
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
}

.alert-info {
  color: #dbeafe !important;
  background: rgba(56, 189, 248, 0.13) !important;
}

.lb-layout.container-xxl,
.container-xxl.lb-layout {
  width: var(--sammi-shell);
  max-width: none;
  margin-top: 1.5rem !important;
  background: transparent !important;
}

@media (min-width: 768px) {
  .lb-layout {
    display: grid;
    grid-template-areas: "sidebar main";
    grid-template-columns: clamp(230px, 17vw, 310px) minmax(0, 1fr);
    gap: clamp(1rem, 1.6vw, 2rem);
    align-items: start;
  }

  .lb-extbar.collapse {
    display: block !important;
  }
}

.lb-extbar.collapse {
  display: block !important;
}

.lb-sidebar {
  grid-area: sidebar;
  max-width: none;
  min-width: 0;
  align-self: start;
}

.lb-extbar {
  position: static !important;
  top: auto !important;
  width: 100% !important;
  max-height: none;
  overflow: visible !important;
  color: var(--sammi-muted) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(28, 48, 76, 0.76) !important;
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  scrollbar-color: rgba(147, 197, 253, 0.28) transparent;
}

@media (min-width: 768px) {
  .lb-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(147, 197, 253, 0.28) transparent;
  }
}

.lb-extbar .lb-search,
.lb-extbar .algolia-autocomplete,
.lb-extbar .form-control,
.lb-extbar .ds-input {
  width: 100% !important;
}

.lb-search .form-control,
.ds-input {
  min-height: 42px;
  color: white !important;
  background: rgba(8, 17, 29, 0.58) !important;
  border: 1px solid var(--sammi-border) !important;
  border-radius: 999px !important;
}

.lb-search .form-control::placeholder,
.ds-input::placeholder {
  color: var(--sammi-muted-2);
}

.lb-extbar hr {
  color: var(--sammi-border);
  opacity: 1;
}

.lb-extmenu,
.lb-extmenu li {
  overflow-x: hidden;
}

.lb-extmenu .nav-link,
.lb-extbutton .nav-link,
.lb-extbar a {
  width: auto;
  max-width: 100%;
  color: var(--sammi-muted) !important;
  font-weight: 700;
  border-radius: 8px;
}

.lb-extmenu .nav-link:hover,
.lb-extmenu .nav-link:focus,
.lb-extmenu.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.lb-extbutton .nav-link:hover,
.lb-extbutton .nav-link:focus {
  color: white !important;
  background: rgba(56, 189, 248, 0.14) !important;
}

.lb-main-ext {
  grid-area: main;
  min-width: 0;
}

.lb-main-ext .lb-intro,
.lb-main-ext .lb-content > div {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(28, 48, 76, 0.76);
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.lb-main-ext .lb-intro {
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 2.4vw, 2rem) !important;
}

.lb-main-ext .lb-intro hr {
  display: none;
}

.lb-main-ext .lb-content {
  margin: 0 !important;
  padding-left: 0 !important;
  color: var(--sammi-muted);
}

.lb-main-ext .lb-content > div {
  box-sizing: border-box;
  padding: clamp(1rem, 2.2vw, 1.75rem);
}

.lb-content h1,
.lb-content h2,
.lb-content h3,
.lb-content h4,
.lb-content h5 {
  color: white;
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

.lb-content p,
.lb-content li {
  color: var(--sammi-muted);
}

.lb-content .row.row-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin: 0;
}

.extension-col {
  width: 100%;
  max-width: none;
  padding: 0;
}

.extension-col > .row,
.extension-col .row.footer {
  margin: 0;
}

.extension a {
  display: block;
}

.extension .card {
  position: relative;
  overflow: hidden;
  background: rgba(20, 38, 61, 0.72) !important;
  border: 1px solid var(--sammi-border) !important;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.extension .card:hover {
  border-color: rgba(56, 189, 248, 0.38) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.extension .card .front,
.extension .card .back {
  inset: 0;
  transition: opacity 180ms ease;
}

.extension .card .front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extension .card .back {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: white;
  background: linear-gradient(180deg, rgba(8, 17, 29, 0.78), rgba(8, 17, 29, 0.92));
}

.extension .card .back p {
  color: white;
}

.extension-col .footer {
  width: 100%;
  padding-top: 0.65rem;
  text-align: center;
  white-space: normal;
}

.extension-col .footer a {
  color: white;
  font-weight: 800;
}

.inner > div {
  background: rgba(20, 38, 61, 0.92);
}

.cta-section {
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  width: var(--sammi-shell);
  padding: clamp(2rem, 5vw, 4rem) !important;
  color: white;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18)),
    rgba(28, 48, 76, 0.76) !important;
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.cta-section h2 {
  color: white;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
}

.cta-section p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--sammi-muted);
}

.cta-section .btn-primary,
.lb-content .btn-primary {
  color: white !important;
  font-weight: 800;
  background: linear-gradient(135deg, #1d75ad, #6c4bd6) !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(29, 117, 173, 0.2);
}

main.lb-content {
  color: var(--sammi-muted);
}

main.lb-content > .container {
  width: var(--sammi-shell);
  max-width: none;
}

.feature.col {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(28, 48, 76, 0.76);
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.feature-icon {
  color: white;
  background: linear-gradient(135deg, #1d75ad, #6c4bd6) !important;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(29, 117, 173, 0.18);
}

.feature h2 {
  color: white;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
}

.feature p {
  color: var(--sammi-muted);
}

main.lb-content .row.g-4 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-inline: 0;
}

main.lb-content .row.g-4 > .feature.col {
  width: auto;
}

.testimonials.section-bg {
  width: var(--sammi-shell);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3.5rem) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(28, 48, 76, 0.76) !important;
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.section-title h2,
.section-title p {
  color: white;
}

.testimonials .testimonial-item p {
  color: var(--sammi-muted);
  background: rgba(8, 17, 29, 0.52);
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
}

.testimonials .testimonial-item .testimonial-img {
  border-color: rgba(191, 219, 254, 0.28);
}

.footer-basic {
  color: var(--sammi-muted);
  background: transparent !important;
  border-top: 1px solid var(--sammi-border);
}

.footer-basic a {
  color: #bfdbfe;
}

.footer-basic .social > a {
  color: white;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 999px;
}

.algolia-autocomplete .ds-dropdown-menu {
  color: var(--sammi-text);
  background: rgba(15, 32, 51, 0.98);
  border: 1px solid var(--sammi-border);
  border-radius: 8px;
  box-shadow: var(--sammi-shadow);
}

.algolia-docsearch-suggestion--title,
.algolia-docsearch-suggestion--text {
  color: var(--sammi-text);
}

.algolia-docsearch-suggestion--subcategory-inline,
.algolia-docsearch-footer {
  color: var(--sammi-muted-2);
}

.ds-cursor .algolia-docsearch-suggestion--content {
  background: rgba(56, 189, 248, 0.12);
}

@media (max-width: 991.98px) {
  .lb-navbar,
  .lb-subnavbar,
  .lb-layout.container-xxl,
  body > header.pt-5 > .container,
  .cta-section,
  main.lb-content > .container,
  .testimonials.section-bg {
    width: calc(100% - 16px);
  }

  .lb-navbar {
    top: 8px;
    border-radius: 22px;
  }

  .lb-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    background: rgba(15, 32, 51, 0.96);
    border: 1px solid var(--sammi-border);
    border-radius: 18px;
  }

  .lb-navbar .navbar-nav {
    flex-direction: column !important;
  }

  .lb-navbar .nav-item {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .lb-layout {
    display: block;
  }

  .lb-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .lb-extbar {
    position: static !important;
    max-height: 70vh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin-bottom: 1rem;
  }

  .lb-title {
    font-size: 3rem;
  }

  .lb-content .row.row-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  main.lb-content .row.g-4 {
    grid-template-columns: 1fr;
  }
}
