.topbar-container {
  margin-top: 40px;
  margin-bottom: 20px;
  visibility: hidden;
  /* Скрываем до первого выравнивания JS */
}

.topbar-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 4px 0;
}

.topbar-username {
  color: #FFF;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.topbar-reports-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #752B2B;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* License badge */
.license-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-lg, 12px);
  border: 1px solid var(--cam-line, rgba(255, 255, 255, 0.10));
  background: var(--bg-chrome, #1E1E1E);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--accent, #5B8FF9);
  box-sizing: border-box;
  flex-shrink: 0;
  text-decoration: none;
}

.license-badge:hover {
  color: var(--accent-hover, #8cbaff);
}

/* Verification badge */
.verifi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--cam-line, rgba(255, 255, 255, 0.10));
  background: var(--bg-chrome, #1E1E1E);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  padding: 0 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.verifi-badge__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background-color: var(--bg-surface);
  flex-shrink: 0;
}

.verifi-badge__text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

/* topbar badge */
.topbar-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--cam-line, rgba(255, 255, 255, 0.10));
  background: var(--bg-chrome, #1E1E1E);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  padding: 0 10px;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.topbar-badge__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.topbar-badge__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}

.topbar-badge__btn_split-right {
  border-left: 1px solid var(--cam-line, rgba(255, 255, 255, 0.10));
  height: 100%;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  margin-right: -10px;
  width: 40px;
}

.topbar-badge__text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
}


/* ── Кнопка «Связаться с поддержкой» ────────────────────────────── */
.topbar-support__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.topbar-support__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.popover.topbar-support-popover {
  --bs-popover-bg: var(--bg-surface-solid, #2B2B2B);
  --bs-popover-border-width: 0;
  --bs-popover-border-radius: var(--r-sm, 6px);
  --bs-popover-max-width: none;
  --bs-popover-body-padding-x: 12px;
  --bs-popover-body-padding-y: 8px;
  --bs-popover-body-color: var(--text-primary, #fff);
  --bs-popover-font-size: 12px;
}

.popover.topbar-support-popover .popover-body {
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.popover.topbar-support-popover .popover-arrow {
  display: none;
}

.popover.topbar-support-popover a {
  color: var(--accent, #5B8FF9);
}

.support-contacts-modal__content {
  background: var(--bg-panel);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.support-contacts-modal__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
}

.support-contacts-modal__body {
  padding: 1.25rem;
}

.support-contacts__stage:has(.support-contacts__skeleton) {
  min-height: 5.5rem;
}

.support-contacts__stage--resizing {
  overflow: hidden;
  transition: min-height 0.2s ease;
}

.support-contacts__content {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  will-change: opacity, transform;
}

.support-contacts__content--visible {
  opacity: 1;
  transform: translateY(0);
}

.support-contacts__skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.support-contacts__skeleton-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: support-contacts-shimmer 1.2s ease-in-out infinite;
}

.support-contacts__skeleton-line--mid {
  width: 72%;
}

.support-contacts__skeleton-line--short {
  width: 48%;
  height: 28px;
  margin-top: 4px;
  border-radius: 8px;
}

@keyframes support-contacts-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.support-contacts__reveal-item {
  animation: support-contacts-reveal 0.32s ease backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes support-contacts-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-contacts__error {
  font-size: 0.875rem;
  color: #f87171;
  line-height: 1.5;
  margin: 0;
}

.support-contacts__guide {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-contacts__guide-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ccc;
  margin: 0 0 0.75rem;
}

.support-contacts__guide-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #999;
}

.support-contacts__guide-steps li {
  margin-bottom: 0.5rem;
}

.support-contacts__guide-steps li:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .support-contacts__content {
    transition: none;
    transform: none;
  }

  .support-contacts__skeleton-line {
    animation: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .support-contacts__reveal-item {
    animation: none;
  }

  .support-contacts__stage--resizing {
    transition: none;
  }
}

.support-contacts-modal__dialog {
  max-width: 480px;
}

.support-contacts-modal__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.support-contacts__empty {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.support-contacts__fallback {
  font-size: 0.875rem;
  color: #bbb;
  line-height: 1.55;
  margin: 0;
}

.support-contacts__intro {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 12px;
}

.support-contacts__org-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  margin: 12px 0 8px;
}

.support-contacts__org-title--first {
  margin-top: 0;
}

.support-contacts__card {
  background: rgba(31, 42, 22, 0.88);
  border-radius: 8px;
  padding: 12px 16px;
}

.support-contacts__card:not(:last-child) {
  margin-bottom: 12px;
}

.support-contacts__contact-block {
  margin-bottom: 10px;
}

.support-contacts__contact-block:last-child {
  margin-bottom: 0;
}

.support-contacts__contact-title {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0 0 2px;
}

.support-contacts__contact-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
}

/* ── Иконка предупреждения внутри бейджа ─────────────────────────── */
.topbar-badge-warn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: default;
  margin-right: 6px;
}

.topbar-badge-warn--danger {
  background: rgba(247, 63, 63, 0.40);
}

.topbar-badge-warn--success {
  background: rgba(34, 197, 94, 0.25);
}

/* Всплывающая подсказка */
.topbar-badge-warn__tooltip {
  display: none;
  position: absolute;
  top: 50%;
  right: calc(100% + 15px);
  transform: translateY(-50%);
  width: 290px;
  min-height: 67px;
  border-radius: 12px;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  padding: 14px;
  box-sizing: border-box;
  z-index: 999;
  white-space: normal;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar-badge-warn__tooltip--danger {
  background: rgba(247, 63, 63, 0.40);
  color: #ED6C6C;
}

.topbar-badge-warn__tooltip--success {
  background: #16A34A;
  color: #bbf7d0;
}

/* SVG-стрелка справа от тултипа */
.topbar-tooltip-arrow {
  position: absolute;
  top: 50%;
  left: calc(100% - 5px);
  transform: translateY(-50%);
  width: 15px;
  height: 13px;
  display: block;
  flex-shrink: 0;
}


.topbar-badge-warn__tooltip--danger {
  display: block;
}

#topbar-reports-badge:hover .topbar-badge-warn__tooltip--success {
  display: block;
}

.topbar-badge-warn__tooltip .num {
  color: #fff;
}


#topbar-reports-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

#topbar-reports-badge.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: badge-spin 0.7s linear infinite;
}

@keyframes badge-spin {
  to {
    transform: rotate(360deg);
  }
}

#topbar-reports-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  position: relative;

  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-chrome, #1E1E1E);

  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.topbar-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  width: 26px;
  height: 26px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  background-color: var(--bg-surface);
}

.topbar-badge-icon-danger {
  background-color: #752B2B;
}

.text-big {
  font-size: 2rem;
}

.topbar-badge-warn__tooltip__col {
  text-align: left;
}

#wikiVideoModal.modal--video .modal-dialog {
  max-width: 700px;
}

#wikiVideoModal .modal-body .video-js {
  width: 100%;
  background: #000;
}
