/* Sidebar nav scroll — dark thumb, scrollbar on the right (RTL) */
.sidebar-nav-scroll {
  direction: ltr;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-nav-scroll > nav {
  direction: rtl;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.sidebar-nav-scroll::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* Demo conversion CTA — explicit colors (no Tailwind dependency) */

.demo-cta-block {
  margin: 1rem 0 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.demo-cta--whatsapp {
  background-color: rgba(22, 163, 74, 0.3);
  border: 2px solid #4ade80;
  color: #ffffff;
}

.demo-cta--whatsapp:hover {
  background-color: rgba(34, 197, 94, 0.4);
  color: #ffffff;
}

.demo-cta--whatsapp:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.demo-cta__badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bbf7d0;
  line-height: 1.3;
}

.demo-cta__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  direction: rtl;
  unicode-bidi: isolate;
}

.demo-cta__qmark {
  display: inline-block;
}

.demo-cta__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dcfce7;
  line-height: 1.3;
  direction: rtl;
}

.demo-cta__wa-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.demo-cta-form-link {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a3a3a3;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.demo-cta-form-link:hover {
  color: #e5e5e5;
}

/* Mobile fixed conversion bar */
.demo-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  background: rgba(23, 23, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.demo-mobile-bar__whatsapp {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(22, 163, 74, 0.3);
  border: 1px solid #4ade80;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.demo-mobile-bar__whatsapp:hover {
  background-color: rgba(34, 197, 94, 0.4);
  color: #ffffff;
}

.demo-mobile-bar__form {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-mobile-bar__form:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .demo-mobile-bar {
    display: none !important;
  }
}

/* Reserve space for mobile bar so content is not hidden */
@media (max-width: 767px) {
  #main {
    padding-bottom: 4.5rem;
  }
}

/* Demo lead slideover — inline full-width submit */
.demo-lead-last-field {
  margin-bottom: 0;
}

.demo-lead-actions {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.demo-lead-submit {
  display: flex;
  width: 100%;
  justify-content: center;
  transform: none !important;
}

.demo-lead-submit:hover,
.demo-lead-submit:focus,
.demo-lead-submit:active {
  transform: none !important;
}

.demo-lead-trust {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #737373;
}

.dark .demo-lead-trust {
  color: #a3a3a3;
}
