/* ONKA Onboarding Styles v3 */

/* Базовые стили */
.onb-overlay {
  position: fixed;
  inset: 0;
  background: #F5F7FA;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.onb-overlay.show { opacity: 1; }

.onb-container {
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px env(safe-area-inset-bottom, 20px);
  box-sizing: border-box;
}

/* Шапка */
.onb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 4px;
  flex-shrink: 0;
}

.onb-dots {
  display: flex;
  gap: 6px;
}

.onb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5E7EB;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.onb-dot:hover { background: #D1D5DB; }
.onb-dot.active { width: 24px; border-radius: 4px; background: #0EA5E9; }
.onb-dot.completed { background: #0EA5E9; opacity: 0.4; }

.onb-skip {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  margin: -8px -12px;
  transition: color 0.2s;
}

.onb-skip:hover { color: #6B7280; }

/* Контент */
.onb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}

.onb-content.slide-out { opacity: 0; transform: translateX(-20px); }

/* Визуал */
.onb-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 0;
  overflow: visible;
}

/* Текст */
.onb-text {
  padding: 16px 0;
  text-align: center;
  flex-shrink: 0;
}

.onb-title {
  font-size: 26px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 8px;
  line-height: 1.2;
}

.onb-subtitle {
  font-size: 15px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.onb-subtitle-welcome {
  min-height: 70px;
}

.onb-subtitle-rotate {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.onb-subtitle-rotate.fade-out {
  opacity: 0;
}

/* Навигация */
.onb-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.onb-btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: #0EA5E9;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.onb-btn-primary:hover { background: #0284C7; transform: translateY(-1px); }
.onb-btn-primary:active { transform: translateY(0); }

.onb-btn-primary.green { background: #22C55E; }
.onb-btn-primary.green:hover { background: #16A34A; }

.onb-btn-secondary {
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  color: #6B7280;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.onb-btn-secondary:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* ===================== */
/* ВИЗУАЛЫ ДЛЯ ШАГОВ     */
/* ===================== */

/* Шаг 1: Приветствие - Карта района с активностью */
.onb-v-welcome {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 220px;
  background: #F5F7FA;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}

.onb-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Живые пины-капли */
.onb-live-pin {
  position: absolute;
  width: 24px;
  height: 32px;
  opacity: 0;
  transform: scale(0) translateY(10px);
  animation: onb-pin-life 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

.onb-live-pin svg {
  width: 100%;
  height: 100%;
}

/* Пульсация под пином */
.onb-live-pin::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: onb-pin-pulse 4s ease-in-out infinite;
}

.onb-live-pin.p1 { left: 12%; top: 18%; color: #EF4444; animation-delay: 0s; }
.onb-live-pin.p2 { left: 72%; top: 12%; color: #F59E0B; animation-delay: 0.7s; }
.onb-live-pin.p3 { left: 48%; top: 52%; color: #22C55E; animation-delay: 1.4s; }
.onb-live-pin.p4 { left: 18%; top: 62%; color: #0EA5E9; animation-delay: 2.1s; }
.onb-live-pin.p5 { left: 78%; top: 55%; color: #6366F1; animation-delay: 2.8s; }
.onb-live-pin.p6 { left: 38%; top: 28%; color: #EC4899; animation-delay: 3.5s; }

@keyframes onb-pin-life {
  0% { opacity: 0; transform: scale(0) translateY(10px); }
  10% { opacity: 1; transform: scale(1) translateY(0); }
  80% { opacity: 1; transform: scale(1) translateY(0); }
  90% { opacity: 0; transform: scale(0.8) translateY(-5px); }
  100% { opacity: 0; transform: scale(0) translateY(10px); }
}

@keyframes onb-pin-pulse {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  10% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  80% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  90% { opacity: 0; transform: translateX(-50%) scale(1.5); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.5); }
}

/* Шаг 2: Категории */
.onb-v-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 340px;
}

.onb-cat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: onb-pop 0.4s ease backwards;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.onb-cat-chip.pulse {
  animation: onb-pop 0.4s ease backwards, onb-cat-pulse 2s ease-in-out infinite 1s;
}

@keyframes onb-pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes onb-cat-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
  50% { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
}

/* Шаг 3: Лента - точная копия интерфейса приложения */
.onb-v-feed {
  width: 100%;
  max-width: 320px;
}

.onb-feed-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, opacity 0.3s;
}

.onb-feed-card.onb-card-exit {
  opacity: 0;
  transform: translateX(-20px);
}

.onb-feed-card.onb-card-enter {
  animation: onb-card-in 0.3s ease;
}

@keyframes onb-card-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Верхняя строка: адрес + иконки */
.onb-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.onb-feed-address {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.onb-feed-top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onb-top-icon {
  cursor: pointer;
  transition: opacity 0.2s;
}

.onb-top-icon:hover {
  opacity: 0.6;
}

/* Мета-блок: плитка + автор */
.onb-feed-meta {
  display: block;
  position: relative;
  margin-bottom: 8px;
}

/* Плитка подкатегории */
.onb-tag-tile {
  float: left;
  margin: 0 10px 4px 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.onb-tag-tile__box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.onb-tag-tile__ico {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.onb-tag-tile__ico svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Аватар-бейдж в правом нижнем углу плитки */
.onb-avatar-badge {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  object-fit: cover;
}

/* Аноним — жёлтый фон, белая буква */
.onb-avatar-badge.anon {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
}

/* Пользователь — серый фон или фото */
.onb-avatar-badge.user {
  background: #E5E7EB;
  color: #111827;
}

img.onb-avatar-badge.user {
  padding: 0;
}

.onb-tag-tile__label {
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
  max-width: 70px;
  word-break: break-word;
}

/* Блок автора */
.onb-author-block {
  padding-top: 4px;
}

.onb-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.onb-author-name.fit-text {
  font-size: 11px;
}

.onb-author-time {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

/* Текст поста - обтекает плитку */
.onb-feed-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Картинка */
.onb-feed-img {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 12px;
  margin-bottom: 10px;
  margin-top: 8px;
  clear: both;
  overflow: hidden;
}

.onb-feed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onb-views-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.onb-views-badge svg {
  flex-shrink: 0;
}

/* Кнопки действий */
.onb-feed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Кнопка подписки */
.onb-notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 16px;
  border: none;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.onb-notify-btn.pulsing {
  animation: onb-btn-pulse 0.6s ease infinite;
}

.onb-notify-btn.clicking {
  transform: scale(0.96);
}

.onb-notify-btn.active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

@keyframes onb-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
}

.onb-notify-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.onb-notify-text span {
  display: block;
  white-space: nowrap;
}

.onb-notify-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.onb-notify-icon svg {
  width: 100%;
  height: 100%;
}

/* Кнопка чата */
.onb-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 16px;
  background: #fff;
  border: none;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  height: 36px;
  min-width: 50px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.onb-chat-btn.has-messages {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.onb-chat-btn svg {
  flex-shrink: 0;
}

/* Кнопка эмодзи с каруселью */
.onb-emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f472b6 0%, #fb923c 50%, #facc15 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.onb-emoji-carousel {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onb-emoji-slide {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.onb-emoji-slide.out {
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
}

.onb-emoji-slide.in {
  animation: onb-emoji-in 0.2s ease;
}

@keyframes onb-emoji-in {
  from { opacity: 0; transform: scale(0.5) rotate(10deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Кнопка гео */
.onb-geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 16px;
  background: #fff;
  border: none;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-left: auto;
}

.onb-geo-btn svg {
  flex-shrink: 0;
}

/* Разделитель */
.onb-feed-divider {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, transparent);
}

/* Ряд реакций */
.onb-reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Пилюля реакции */
.onb-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(6, 182, 212, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.onb-reaction-pill .emoji {
  font-size: 20px;
  line-height: 1;
}

.onb-reaction-pill .count {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.onb-reaction-pill.active {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.onb-reaction-pill.active .count {
  color: #fff;
}

/* Анимация барабана для счётчиков */
.views-num.tick,
.onb-reaction-pill .count.tick {
  animation: onb-tick 0.15s ease;
}

@keyframes onb-tick {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Шаг 4: Транспорт */
.onb-v-transport {
  width: 100%;
  max-width: 320px;
}

.onb-transport-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.onb-transport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.onb-transport-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

.onb-transport-close {
  cursor: pointer;
  opacity: 0.5;
}

.onb-transport-status {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.onb-status-label {
  color: #22C55E;
  font-weight: 500;
}

.onb-status-counter {
  display: inline-flex;
  color: #22C55E;
  font-weight: 700;
  font-size: 16px;
}

.onb-counter-digit {
  display: inline-block;
  transition: transform 0.15s ease-out, opacity 0.15s;
}

.onb-counter-digit.rolling {
  transform: translateY(-4px);
  opacity: 0.3;
}

.onb-status-text {
  color: #374151;
}

.onb-transport-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}

.onb-transport-tab {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.onb-transport-tab.active {
  background: #fff;
  color: #1F2937;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.onb-transport-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.onb-toggle-label {
  font-size: 14px;
  color: #374151;
}

.onb-toggle {
  width: 44px;
  height: 26px;
  background: #d1d5db;
  border-radius: 13px;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
}

.onb-toggle.active {
  background: #22C55E;
}

.onb-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.onb-toggle.active .onb-toggle-knob {
  transform: translateX(18px);
}

.onb-transport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  transition: opacity 0.25s, transform 0.25s;
}

.onb-transport-grid.onb-tiles-exit {
  opacity: 0;
  transform: translateX(-10px);
}

.onb-transport-grid.onb-tiles-enter {
  animation: onb-tiles-in 0.3s ease-out;
}

@keyframes onb-tiles-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onb-route-tile {
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  color: #fff;
}

.onb-route-tile.bus {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.onb-route-tile.shuttle {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.onb-route-tile.tram {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.onb-route-tile.intercity {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.onb-route-tile .num {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.onb-route-tile .type {
  font-size: 8px;
  opacity: 0.9;
  margin-bottom: 1px;
}

.onb-route-tile .units {
  font-size: 8px;
  opacity: 0.8;
}

/* Шаг 5: Погода */
.onb-v-weather {
  width: 100%;
  max-width: 300px;
}

.onb-weather-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.onb-weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.onb-weather-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.onb-weather-temp {
  font-size: 48px;
  font-weight: 700;
  color: #1F2937;
}

.onb-weather-desc {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
}

.onb-weather-forecast {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

.onb-forecast-item {
  text-align: center;
  min-width: 50px;
}

.onb-forecast-item .hour {
  font-size: 11px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.onb-forecast-item .icon {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.onb-forecast-item .icon svg {
  width: 28px;
  height: 28px;
}

.onb-forecast-item .temp {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Шаг 6: Новости */
.onb-v-news {
  width: 100%;
  max-width: 300px;
}

.onb-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.onb-news-card.onb-news-empty {
  padding: 32px 24px;
  text-align: center;
}

.onb-news-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.onb-news-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.onb-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onb-news-content {
  padding: 14px 16px 16px;
}

.onb-news-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.onb-news-text {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.onb-news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9CA3AF;
}

.onb-news-audio {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8B5CF6;
  font-weight: 500;
}

/* Шаг 7: Профиль */
.onb-v-profile {
  width: 100%;
  max-width: 320px;
}

.onb-profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.onb-profile-avatar-wrap {
  position: relative;
  width: 80px;
  height: 90px;
  margin: 0 auto 8px;
}

.onb-profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.onb-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onb-profile-level {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  white-space: nowrap;
}

.onb-level-star {
  font-size: 11px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.onb-level-num {
  font-size: 12px;
}

.onb-profile-name {
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
}

.onb-profile-name.size-normal { font-size: 18px; }
.onb-profile-name.size-medium { font-size: 15px; }
.onb-profile-name.size-small { font-size: 13px; }

.onb-profile-xp {
  margin-bottom: 20px;
}

.onb-xp-numbers {
  font-size: 14px;
  margin-bottom: 8px;
}

.onb-xp-current {
  color: #22C55E;
  font-weight: 700;
}

.onb-xp-total {
  color: #6B7280;
  font-weight: 500;
}

.onb-xp-bar {
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}

.onb-xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  border-radius: 4px;
  animation: onb-xp 1s ease forwards 0.3s;
}

@keyframes onb-xp { to { width: 93%; } }

.onb-profile-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  gap: 8px;
}

.onb-stat {
  text-align: center;
  min-width: 60px;
  padding: 0 4px;
}

.onb-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
}

.onb-stat-icon {
  font-size: 12px;
  margin: 2px 0;
}

.onb-stat-label {
  font-size: 7px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0;
  word-break: break-all;
  line-height: 1.2;
}

/* Шаг 8: Готово - Слайдшоу */
.onb-v-ready {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.onb-slideshow {
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  min-width: 320px;
}

.onb-slideshow.visible {
  opacity: 1;
}

/* Внутри слайдшоу карточки должны иметь полную ширину */
.onb-slideshow > * {
  width: 100%;
  max-width: 320px;
}

.onb-ready-name {
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0;
}

.onb-ready-name.size-normal { font-size: 28px; }
.onb-ready-name.size-medium { font-size: 22px; }
.onb-ready-name.size-small { font-size: 18px; }
