/* iOS-style Onboarding - плавные переходы контента */
#onb-container {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: white;
  backdrop-filter: blur(2px);
}

.onb-div {
  background: #1a1a1a;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  width: 85%;
  max-width: 20rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

#onb-div-header {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin: 0;
  line-height: 1.3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.onb-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0.5rem 0;
  white-space: pre-wrap;
  /* min-height: 3.75rem; */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.85);
  background-color: var(--foreground-color);
  padding: 1rem;
  border-radius: 1rem;
  border: 0.1rem solid var(--border-color);
}

.typing-cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  font-weight: bold;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes blink {
  0%, 49%, 100% { opacity: 1; }
  50%, 99% { opacity: 0; }
}

.onb-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  /* margin: 0.75rem 0; */
  width: calc(100% - 3.5rem);
  position: absolute;
  bottom: 0.7rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.dot.active {
  background: #fff;
  transform: scale(1.25);
}

.onb-nav, 
.onb-controls {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.onb-controls {
  flex-direction: column;
  gap: 0.5rem;
}

.onb-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 6.25rem;
}

.onb-btn-primary {
  background: #fff;
  color: #0b0b0b;
}

.onb-btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}
/* Добавьте это в ваш CSS файл */
.onboarding-slide {
    transition: height 0.4s ease;
    will-change: height; /* Подсказка браузеру для оптимизации */
}
.onb-btn-primary:active {
  transform: translateY(0);
}

.onb-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.onb-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.onb-btn-secondary:active {
  transform: translateY(0);
}

/* Radio checkbox для "Больше не показывать" */
.onb-checkbox-wrapper {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.onb-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.onb-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.onb-checkbox-label input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.onb-checkbox-label input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
}

.onb-checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0b;
  font-weight: 700;
  font-size: 0.75rem;
}

