.share-link-container {
  margin-top: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  box-sizing: border-box;
}

.share-link-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 14px;
}

.share-link-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.share-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.share-link-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.share-link-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.share-link-copy-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.share-link-copy-btn.copied {
  background: rgba(52, 168, 83, 0.9);
  color: #fff;
}

.share-link-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.4;
}
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #000;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Фоновое пятно по центру: анимация размера и цвета (индиго ↔ фиолетовый) */
.home-bg-spot {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 255vmin;
  max-width: 1050px;
  height: 105vmin;
  max-height: 1220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: homeSpotPulse 10s ease-in-out infinite;
}

@keyframes homeSpotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(
      circle,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(99, 102, 241, 0.06) 40%,
      transparent 70%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.16) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%
    );
  }
}

@keyframes homeFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: transparent;
  max-width: 800px;
  width: 100%;
}

.home-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 100px;
  animation: homeFadeInUp 0.6s ease-out 0.1s both;
}

.home-logo img {
  height: 48px;
  width: 180px;
  object-fit: contain;
  display: block;
}

.home-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-logo-beta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 8px;
  align-self: flex-start;
  margin-top: 10px;
  flex-shrink: 0;
}

.home-title-block {
  text-align: center;
  margin-bottom: 70px;
  animation: homeFadeInUp 0.6s ease-out 0.25s both;
}

.home-title-block .home-heading-line {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.home-title-block h1.home-heading-line {
  font-size: 60px;
  line-height: 75px;
  font-weight: 600;
  margin-bottom: 25px;
}

.home-title-block p.home-heading-line {
  font-size: 30px;
  line-height: normal;
  font-weight: 300;
}

.home-title-block .home-heading-line:last-child {
  margin-bottom: 0;
}

.call-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 24px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  animation: homeFadeInUp 0.6s ease-out 0.4s both;
}

.call-type-selector.loading-selector {
  animation: none; /* Убираем анимацию для индикатора загрузки, чтобы он был виден сразу */
}

.loading-indicator {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.call-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: none;
  border-radius: 20px;
  background: rgb(16 16 21);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.call-type-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgb(26 26 35);
}

.call-type-btn.active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.call-type-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.call-type-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.call-type-btn .icon svg path,
.call-type-btn .icon svg line,
.call-type-btn .icon svg polyline,
.call-type-btn .icon svg circle,
.call-type-btn .icon svg rect {
  stroke: url(#iconGradient);
}

.call-type-btn .label {
  color: rgba(255, 255, 255, 0.9);
}

/* Блок подключения по номеру встречи — в едином стиле (карточка как кнопки) */
.room-code-join {
  width: 100%;
  margin-top: 10px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgb(16 16 21);
  animation: homeFadeInUp 0.6s ease-out 0.45s both;
}

.home-modal .room-code-join {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  animation: none;
}

.home-modal .room-code-label {
  text-align: left;
  font-size: 16px;
  margin-bottom: 10px;
}

.home-modal .room-code-input-row {
  flex-direction: column;
  gap: 12px;
}

.home-modal .room-code-input {
  padding: 14px 16px;
  font-size: 18px;
  border-radius: 16px;
}

.home-modal .room-code-join-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 16px;
}

.room-code-label {
  display: block;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.01em;
}

.room-code-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.room-code-input {
  flex: 1;
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.room-code-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.room-code-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.room-code-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.room-code-join-btn {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: #0071e3;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.02s;
  white-space: nowrap;
}

.room-code-join-btn:hover:not(:disabled) {
  background: #0077ed;
}

.room-code-join-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.room-code-join-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.start-call-btn {
  width: 100%;
  padding: 14px 24px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.start-call-btn:hover:not(:disabled) {
  background: #0077ed;
}

.start-call-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(52, 168, 83, 0.15);
  color: #34a853;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.success-message .success-icon {
  flex-shrink: 0;
}

.session-created {
  margin-top: 8px;
  width: 100%;
  animation: homeFadeInUp 0.5s ease-out 0.15s both;
}

.info-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  font-size: 13px;
}

.duration-selector {
  margin: 0 0 24px 0;
  padding: 20px 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.duration-label {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.duration-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.duration-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-width: 72px;
}

.duration-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #000000;
}

.duration-btn.active {
  background: #ffffff;
  color: #000000;
}

.duration-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.duration-custom {
  margin-top: 14px;
}

.duration-custom-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.duration-custom-input {
  width: 100%;
  max-width: 120px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-sizing: border-box;
}

.duration-custom-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.duration-custom-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Модальное окно (Видео/Аудио) — тёмная тема, скругление 20px */
.home-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.home-modal {
  background: #141414;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.home-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border: 0;
}

.home-modal-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.home-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.home-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.home-modal-body {
  padding: 24px;
}

.home-modal-placeholder {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.phone-call-description {
  margin: 0 0 24px 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  text-align: center;
}

.phone-input-group {
  margin-bottom: 20px;
}

.phone-input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.phone-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.phone-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.phone-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.home-modal .duration-selector {
  border-top: none;
  padding: 0 0 20px 0;
  margin: 0 0 10px 0;
}

.home-modal .duration-label {
  margin-bottom: 15px;
}

.home-modal .duration-btn {
  border-radius: 20px;
  padding: 10px 16px;
  min-width: 80px;
}

.home-modal .start-call-btn {
  border-radius: 20px;
  width: 100%;
}

.home-modal .error-message {
  margin-bottom: 16px;
  border-radius: 12px;
}

/* Футер — без отдельного блока и фона */
.home-footer {
  flex-shrink: 0;
  padding: 24px 16px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5;
}

.home-footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
}

.home-footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.home-footer .home-footer-sep {
  margin: 0 0.35em;
  color: rgba(255, 255, 255, 0.35);
}

/* Модальное окно юридических документов */
.home-legal-modal .home-modal {
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.home-legal-modal .home-modal-body {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 8px;
  /* Тёмная полоса прокрутки: фон как у модалки, бегунок чуть светлее */
  scrollbar-color: rgba(255, 255, 255, 0.22) #141414;
  scrollbar-width: thin;
}

.home-legal-modal .home-modal-body::-webkit-scrollbar {
  width: 8px;
}

.home-legal-modal .home-modal-body::-webkit-scrollbar-track {
  background: #141414;
}

.home-legal-modal .home-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.home-legal-modal .home-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.home-legal-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.home-legal-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.95);
}

.home-legal-body p {
  margin: 0 0 12px 0;
}

.home-legal-body p:last-child {
  margin-bottom: 0;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  .home-logo {
    gap: 4px;
    margin-bottom: 30px;
  }

  .home-logo img {
    height: 72px;
    width: 130px;
  }

  .home-logo-connect {
    font-size: 26px;
    margin-bottom: -2.5px;
  }

  .home-logo-beta {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 4px;
    margin-top: 15px;
  }

  .home-title-block {
    margin-bottom: 50px;
  }

  .home-title-block h1.home-heading-line {
    font-size: 30px;
    line-height: normal;
    margin-bottom: 10px;
  }

  .home-title-block p.home-heading-line {
    font-size: 20px;
  }

  .call-type-selector {
    width: 100%;
  }

  .call-type-btn {
    font-size: 16px;
  }

  .room-code-join {
    padding: 16px;
    border-radius: 18px;
  }

  .room-code-input-row {
    flex-direction: column;
  }

  .room-code-join-btn {
    width: 100%;
  }
}
.join-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.join-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.join-content h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  text-align: center;
  color: #333;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.join-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.role-info {
  margin-bottom: 20px;
  text-align: center;
}

.role-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f4ff;
  color: #667eea;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.join-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.join-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.join-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* Стили для страницы ошибки в стиле Waiting */
@keyframes joinErrorFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes joinErrorSpotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(
      circle,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(99, 102, 241, 0.06) 40%,
      transparent 70%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.16) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%
    );
  }
}

.join-error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.join-error-bg-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85vmin;
  max-width: 520px;
  height: 85vmin;
  max-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: joinErrorSpotPulse 10s ease-in-out infinite;
}

.join-error-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  animation: joinErrorFadeInUp 0.6s ease-out 0.1s both;
}

.join-error-logo img {
  height: 43px;
  width: 162px;
  object-fit: contain;
  display: block;
}

.join-error-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.join-error-logo-beta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.join-error-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: joinErrorFadeInUp 0.6s ease-out;
}

.join-error-title {
  margin: 0 0 32px 0;
  font-size: 32px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.join-error-message {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

.join-error-btn {
  width: 100%;
  padding: 18px 24px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.join-error-btn:hover:not(:disabled) {
  background: #0077ed;
}

.join-error-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  .join-error-content {
    padding: 25px 20px;
  }

  .join-error-title {
    font-size: 26px;
  }

  /* Логотип как на главной странице */
  .join-error-logo {
    gap: 4px;
    margin-bottom: 30px;
  }

  .join-error-logo img {
    height: 72px;
    width: 130px;
  }

  .join-error-logo-connect {
    font-size: 26px;
    margin-bottom: -2.5px;
  }

  .join-error-logo-beta {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 4px;
    margin-top: 15px;
  }
}
/* Анимация появления */
@keyframes endedFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация фонового пятна */
@keyframes endedSpotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(
      circle,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(99, 102, 241, 0.06) 40%,
      transparent 70%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.16) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%
    );
  }
}

.ended-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Фоновое пятно по центру */
.ended-bg-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85vmin;
  max-width: 520px;
  height: 85vmin;
  max-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: endedSpotPulse 10s ease-in-out infinite;
}

.ended-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  animation: endedFadeInUp 0.6s ease-out 0.1s both;
}

.ended-logo img {
  height: 43px;
  width: 162px;
  object-fit: contain;
  display: block;
}

.ended-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ended-logo-beta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.ended-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: endedFadeInUp 0.6s ease-out;
  text-align: center;
}

.ended-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.ended-duration {
  margin: 0 0 32px 0;
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ended-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.ended-loading-container span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.status-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.ended-recording {
  margin-bottom: 32px;
}

.ended-label {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}


.ended-message {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

.ended-message--inline {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14px;
}

.ended-btn {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ended-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.ended-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  .ended-content {
    padding: 25px 20px;
  }

  .ended-title {
    font-size: 26px;
  }

  /* Логотип как на главной странице */
  .ended-logo {
    gap: 4px;
    margin-bottom: 30px;
  }

  .ended-logo img {
    height: 72px;
    width: 130px;
  }

  .ended-logo-connect {
    font-size: 26px;
    margin-bottom: -2.5px;
  }

  .ended-logo-beta {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 4px;
    margin-top: 15px;
  }
}
.tooltip {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltip-fade-in 0.15s ease-out;
  max-width: 250px;
  word-wrap: break-word;
  white-space: pre-line; /* Поддерживаем переносы строк через \n */
  line-height: 1.4;
  display: block;
  opacity: 1;
  visibility: visible;
}

.tooltip::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.tooltip-top::before {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.tooltip-bottom::before {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

.tooltip-left::before {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}

.tooltip-right::before {
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-color: transparent rgba(0, 0, 0, 0.85) transparent transparent;
}

@keyframes tooltip-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Анимация появления */
@keyframes waitingFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация фонового пятна */
@keyframes waitingSpotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(
      circle,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(99, 102, 241, 0.06) 40%,
      transparent 70%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.16) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%
    );
  }
}

.waiting-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Фоновое пятно по центру */
.waiting-bg-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85vmin;
  max-width: 520px;
  height: 85vmin;
  max-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: waitingSpotPulse 10s ease-in-out infinite;
}

.waiting-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: waitingFadeInUp 0.6s ease-out;
}

.waiting-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  animation: waitingFadeInUp 0.6s ease-out 0.1s both;
}

.waiting-logo img {
  height: 43px;
  width: 162px;
  object-fit: contain;
  display: block;
}

.waiting-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.waiting-logo-beta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.waiting-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.waiting-description {
  margin: 0 0 32px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

.waiting-info {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.waiting-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waiting-info-item label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.waiting-public-id {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.waiting-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 0;
}

.waiting-btn {
  flex: 1;
  padding: 18px 24px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.waiting-btn--primary {
  background: #0071e3;
  color: #fff;
}

.waiting-btn--primary:hover:not(:disabled) {
  background: #0077ed;
}

.waiting-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waiting-btn--secondary {
  background: rgba(234, 67, 53, 0.9);
  color: #fff;
}

.waiting-btn--secondary:hover:not(:disabled) {
  background: rgba(234, 67, 53, 1);
}

.waiting-btn--secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waiting-link-section {
  margin-top: 32px;
  margin-bottom: 0;
}

.waiting-link-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.waiting-link-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.waiting-link-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.waiting-link-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.waiting-link-copy-btn {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.waiting-link-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.waiting-link-hint {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  text-align: center;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  .waiting-content {
    padding: 25px 20px;
  }

  .waiting-title {
    font-size: 26px;
  }

  /* .waiting-actions уже колонкой по умолчанию */

  /* Логотип как на главной странице */
  .waiting-logo {
    gap: 4px;
    margin-bottom: 30px;
  }

  .waiting-logo img {
    height: 72px;
    width: 130px;
  }

  .waiting-logo-connect {
    font-size: 26px;
    margin-bottom: -2.5px;
  }

  .waiting-logo-beta {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 4px;
    margin-top: 15px;
  }
}
/* Анимация появления */
@keyframes phoneCallSuccessFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация фонового пятна */
@keyframes phoneCallSuccessSpotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(
      circle,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(99, 102, 241, 0.06) 40%,
      transparent 70%
    );
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.16) 0%,
      rgba(139, 92, 246, 0.06) 40%,
      transparent 70%
    );
  }
}

.phone-call-success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Фоновое пятно по центру */
.phone-call-success-bg-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85vmin;
  max-width: 520px;
  height: 85vmin;
  max-height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: phoneCallSuccessSpotPulse 10s ease-in-out infinite;
}

.phone-call-success-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  animation: phoneCallSuccessFadeIn 0.6s ease-out 0.1s both;
}

.phone-call-success-logo img {
  height: 43px;
  width: 162px;
  object-fit: contain;
  display: block;
}

.phone-call-success-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phone-call-success-logo-beta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.phone-call-success-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: phoneCallSuccessFadeIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-call-success-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-shrink: 0;
  position: relative;
}

.phone-call-success-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  animation: phoneCallSuccessPhonePulse 2s ease-in-out infinite;
}

.phone-call-success-phone svg {
  stroke: url(#iconGradient);
}

.phone-call-success-phone-left {
  animation-delay: 0s;
}

.phone-call-success-phone-right {
  animation-delay: 1s;
}

@keyframes phoneCallSuccessPhonePulse {
  0%, 100% {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.04);
  }
  50% {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
  }
}

.phone-call-success-connection {
  position: relative;
  width: 80px;
  height: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-call-success-connection-line {
  display: none;
}

.phone-call-success-connection-pulse {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #3b82f6 50%,
    transparent 100%
  );
  border-radius: 2px;
  filter: blur(3px);
  opacity: 0.8;
  animation: phoneCallSuccessConnectionPulse 1.5s ease-in-out infinite;
}

@keyframes phoneCallSuccessConnectionPulse {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.phone-call-success-title {
  margin: 0 0 20px 0;
  font-size: 32px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  text-align: center;
}

.phone-call-success-message {
  margin: 0 0 40px 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-align: center;
}

.phone-call-success-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.phone-call-success-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.phone-call-success-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.call-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Убрали стили для disabled, так как теперь используются зачеркнутые иконки */

.control-btn.end-call {
  background: rgba(220, 53, 69, 0.9);
}

.control-btn.end-call:hover {
  background: rgba(220, 53, 69, 1);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

/* Кнопка микрофона с индикатором уровня звука */
.mic-btn {
  position: relative;
  overflow: hidden;
}

.mic-level-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* Градиентная заливка уровня микрофона */
  height: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 40%, #a855f7 100%);
  opacity: 0.95;
  z-index: 0; /* Заливка под иконкой */
  pointer-events: none;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.6) inset,
    0 -4px 8px rgba(15, 23, 42, 0.8) inset;
  transition: height 0.15s ease-out;
}

.mic-icon-wrapper {
  position: relative;
  z-index: 2; /* Иконка гарантированно сверху волн */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn.mic-off .mic-level-fill {
  height: 0 !important;
}

.call-controls-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* Обёртка для кнопки камеры с подсказкой */
.camera-hint-wrapper {
  position: relative;
  display: inline-block;
}

.camera-hint-bubble {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 220px;
  padding: 8px 12px;
  /* Тёмный нейтральный фон, чуть светлее фона комнаты, без синего оттенка */
  background: rgba(24, 24, 27, 0.96);
  color: #f9fafb;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  z-index: 20;
}

.camera-hint-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(24, 24, 27, 0.96) transparent transparent transparent;
}
.timer-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.timer-display {
  font-size: 26px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timer-display.limit-reached {
  color: #ff6b6b;
}

/* Прошедшее время красное, когда превышает лимит */
.timer-elapsed.over-limit {
  color: #ff6b6b !important;
}

/* Анимация при увеличении лимита (продление) */
.timer-limit {
  display: inline-block;
  transform-origin: center;
}

.timer-limit.limit-increased {
  animation: timerLimitIncrease 0.45s ease-out;
}

@keyframes timerLimitIncrease {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.15); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

.timer-display.paused .timer-elapsed {
  animation: timerPausedPulse 1.8s ease-in-out infinite;
}

@keyframes timerPausedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.timer-elapsed {
  color: white;
}

.timer-separator {
  color: rgba(255, 255, 255, 0.5);
}

.timer-limit {
  color: rgba(255, 255, 255, 0.7);
}

.timer-status {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.8;
}

.timer-status.limit-reached {
  color: #ff6b6b;
}

.timer-loading,
.timer-error {
  font-size: 14px;
  opacity: 0.8;
}

.timer-error {
  color: #ff6b6b;
}

.timer-clickable {
  cursor: pointer;
  transition: background 0.2s;
}

.timer-clickable:hover {
  background: rgba(0, 0, 0, 0.8);
}

.timer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.timer-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timer-modal-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.timer-modal-text {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.timer-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.timer-modal-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.timer-modal-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.timer-modal-button-cancel {
  background: #f0f0f0;
  color: #333;
}

.timer-modal-button-cancel:hover:not(:disabled) {
  background: #e0e0e0;
}

.timer-modal-button-confirm {
  background: #4caf50;
  color: white;
}

.timer-modal-button-confirm:hover:not(:disabled) {
  background: #45a049;
}

.timer-threshold-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  animation: timerThresholdSlide 0.3s ease-out;
}

@keyframes timerThresholdSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.timer-threshold-content {
  background: #141414;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 340px;
  max-width: 540px;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.timer-threshold-text {
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

.timer-threshold-ok {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.timer-threshold-ok:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Окно «Время вышло» (только для юриста) */
.timer-limit-reached-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  animation: timerThresholdSlide 0.3s ease-out;
}

.timer-limit-reached-content {
  background: #141414;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 340px;
  max-width: 540px;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.timer-limit-reached-text {
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

/* Кнопки времени — как на главной (длительность консультации) */
.timer-limit-reached-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.timer-limit-reached-duration-btn {
  padding: 10px 16px;
  min-width: 80px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.timer-limit-reached-duration-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #000000;
}

.timer-limit-reached-duration-btn.active {
  background: #ffffff;
  color: #000000;
}

/* Кнопка «Продлить» — как «Начать звонок» на главной */
.timer-limit-reached-extend {
  align-self: flex-start;
  padding: 14px 24px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, opacity 0.2s;
}

.timer-limit-reached-extend:hover:not(:disabled) {
  background: #0077ed;
}

.timer-limit-reached-extend:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.timer-limit-reached-extend-error {
  font-size: 13px;
  color: #ff6b6b;
  align-self: flex-start;
}

.timer-limit-reached-extend-error:empty {
  display: none;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  .timer-display {
    font-size: 22px;
  }
}
.connection-quality-indicator {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.quality-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.quality-bar {
  width: 3px;
  border-radius: 1px;
  transition: background-color 0.3s ease, height 0.3s ease;
}

.quality-bar:nth-child(1) {
  height: 5px;
}

.quality-bar:nth-child(2) {
  height: 8px;
}

.quality-bar:nth-child(3) {
  height: 11px;
}

.quality-bar.active {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.toast-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(40, 40, 45, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 280px;
  max-width: 400px;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Убраны цветные обводки для разных типов Toast */

.toast-content {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.toast-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast-close:hover {
  color: white;
}
.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 100vw;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  animation: helpPanelSlide 0.25s ease;
}

@keyframes helpPanelSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.help-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: helpPanelOverlayFade 0.25s ease;
}

@keyframes helpPanelOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.help-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 0;
}

.help-panel-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
}

.help-panel-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.help-panel-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.help-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) #121212;
}

.help-panel-content::-webkit-scrollbar {
  width: 8px;
}

.help-panel-content::-webkit-scrollbar-track {
  background: #121212;
}

.help-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.help-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.help-panel-content p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffffe3;
  font-family: 'Nunito Sans', sans-serif;
}

.help-panel-content section {
  margin-bottom: 50px;
}

.help-panel-beta {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: rgba(176, 166, 199, 0.12);
  border-radius: 10px;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.help-panel-beta strong {
  font-weight: 600;
}

.help-panel-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: #fffffff2;
  font-family: 'Nunito Sans', sans-serif;
}

.help-panel-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  background: #171717;
  border: 0;
}

.help-panel-support-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #0071e3;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}

.help-panel-support-btn:hover {
  background: #0077ed;
}

.help-panel-support-btn:active {
  background: #006edb;
}
.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.support-modal {
  background: #1a1a1a;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
}

.support-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.support-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.support-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.support-form-group {
  margin-bottom: 16px;
}

.support-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Nunito Sans', sans-serif;
}

.support-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
  font-family: inherit;
}

.support-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.support-form-group textarea:focus {
  outline: none;
  border-color: #0071e3;
  background: rgba(255, 255, 255, 0.08);
}

.support-form-group textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.support-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.support-status.success {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
}

.support-status.error {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
}

.support-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}

.support-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.support-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.support-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.support-btn-primary {
  background: #0071e3;
  color: #fff;
}

.support-btn-primary:hover:not(:disabled) {
  background: #0077ed;
}
/* В стиле модалок главной страницы: тёмная тема, border-radius 20px */
.end-call-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.end-call-confirm-modal {
  background: #141414;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.end-call-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border: 0;
}

.end-call-confirm-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Nunito Sans', sans-serif;
}

.end-call-confirm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.end-call-confirm-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.end-call-confirm-body {
  padding: 8px 24px 24px;
}

.end-call-confirm-warning {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-family: 'Nunito Sans', sans-serif;
}

.end-call-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.end-call-confirm-actions--vertical {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.end-call-confirm-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito Sans', sans-serif;
  width: 100%;
  justify-content: flex-start;
}

.end-call-confirm-action svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.end-call-confirm-action span {
  flex: 1;
  text-align: left;
}

.end-call-confirm-action--leave {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.end-call-confirm-action--leave:hover {
  background: rgba(255, 255, 255, 0.15);
}

.end-call-confirm-action--end {
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
}

.end-call-confirm-action--end:hover {
  background: rgba(220, 53, 69, 1);
}

.end-call-confirm-cancel {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}

.end-call-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.end-call-confirm-confirm {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Nunito Sans', sans-serif;
}

.end-call-confirm-confirm:hover {
  background: rgba(220, 53, 69, 1);
}
.end-call-actions {
  position: relative;
  display: inline-block;
}

.end-call-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #ef4444;
  color: white;
  padding: 0;
}

.end-call-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.end-call-btn:active {
  transform: scale(0.95);
}

.end-call-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.end-call-menu {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #141414;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 280px;
  padding: 8px;
  z-index: 1000;
  animation: slideUp 0.2s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.end-call-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 44px;
  box-sizing: border-box;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Nunito Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.end-call-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.end-call-menu-item--leave {
  color: rgba(255, 255, 255, 0.7);
}

.end-call-menu-item--leave:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.end-call-menu-item--end {
  color: #ef4444;
}

.end-call-menu-item--end:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.end-call-menu-item svg {
  flex-shrink: 0;
}

.end-call-menu-item span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}
.call-room {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Компактный вид / миниатюра в embed — временно отключён (всегда полный UI в iframe)
.call-room-compact .call-room-compact-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
}
.call-room-compact .call-room-compact-body .meeting-participant-tile {
  width: 100%;
  height: 100%;
  border-radius: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.call-room-compact .call-room-compact-body .meeting-participant-tile .meeting-participant-video {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.call-room-compact .call-room-compact-body .meeting-participant-tile .meeting-participant-placeholder {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-room-compact .call-room-compact-body .meeting-participant-info {
  flex-shrink: 0;
}

@media (max-width: 399px), (max-height: 399px) {
  body.yustihab-meet-embed .call-room-header,
  body.yustihab-meet-embed .call-room-timer-mobile,
  body.yustihab-meet-embed .call-room-footer,
  body.yustihab-meet-embed .video-container .video-wrapper.remote {
    display: none !important;
  }
  body.yustihab-meet-embed .video-container {
    display: flex !important;
    align-items: stretch;
    justify-content: stretch;
  }
  body.yustihab-meet-embed .video-container .video-wrapper.local {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
  }
  body.yustihab-meet-embed .meeting-grid-layout .meeting-video-row .meeting-participant-tile:not(:first-child),
  body.yustihab-meet-embed .meeting-grid-layout .meeting-video-row:not(:first-child) {
    display: none !important;
  }
  body.yustihab-meet-embed .meeting-grid-layout .meeting-video-row:first-child .meeting-participant-tile:first-child {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
  }
  body.yustihab-meet-embed .meeting-speaker-sidebar {
    display: none !important;
  }
  body.yustihab-meet-embed .meeting-speaker-main {
    position: absolute !important;
    inset: 0;
  }
}
*/

/* Шапка: логотип слева, таймер по центру, стеклянный эффект */
.call-room-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.call-room-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-room-header-logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.call-room-header-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: -2px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.call-room-header-beta {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c76e;
  border-radius: 6px;
  padding: 2px 4px;
  align-self: flex-start;
  margin-top: 0;
  flex-shrink: 0;
}

/* Таймер строго по центру экрана (шапки) */
.call-room-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.call-room-header-center > * {
  pointer-events: auto;
}

/* Кнопка «Помощь» справа в шапке */
.call-room-header-right {
  flex-shrink: 0;
}

.help-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.help-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Футер с кнопками управления (как шапка) */
.call-room-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
  position: relative;
}

.call-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Убрано сдвигание контента - панель помощи теперь поверх контента */

/* Таймер внутри шапки — без fixed и фона */
.call-room-header .timer-container {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  background: transparent;
  padding: 4px 16px;
}

.call-room-video .video-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

/* Режим: Разделенный экран (split) */
.video-container.layout-split {
  flex-direction: row;
}

.video-container.layout-split .video-wrapper {
  flex: 1;
  position: relative;
  width: 50%;
  height: 100%;
}

/* Режим: Картинка-в-картинке (pip) */
.video-container.layout-pip {
  position: relative;
}

.video-container.layout-pip .video-wrapper.remote {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-container.layout-pip .video-wrapper.local {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Размеры будут установлены динамически на основе ориентации видео */
  width: 200px;
  height: 150px;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.video-container.layout-pip .video-wrapper.local.dragging {
  opacity: 0.8;
  z-index: 100;
}

/* Адаптация PiP окна под горизонтальное видео */
.video-container.layout-pip .video-wrapper.local.landscape {
  width: 200px;
  height: 150px;
}

/* Адаптация PiP окна под вертикальное видео */
.video-container.layout-pip .video-wrapper.local.portrait {
  width: 135px;
  height: 240px;
}

/* В миниатюре PiP — cover, чтобы убрать чёрные поля при несовпадении пропорций видео и контейнера */
.video-container.layout-pip .video-wrapper.local video {
  object-fit: cover;
}

.video-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Индикатор качества связи внутри плитки (видео или участник аудио) */
.connection-quality-in-tile {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

/* У второго участника (справа) в режиме split — индикатор справа */
.video-container.layout-split .video-wrapper.remote .connection-quality-in-tile {
  left: auto;
  right: 10px;
}

.video-wrapper.remote {
  z-index: 1;
}

.video-wrapper.local {
  z-index: 2;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Показываем видео полностью без обрезки */
  background: #000;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
}

.video-placeholder.video-placeholder--connecting {
  gap: 16px;
  color: #fff;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.placeholder-text {
  font-size: 16px;
}

/* «Ожидаем второго участника...» — крупнее */
.waiting-participant-text {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* Строка с номером консультации + копирование */
.consultation-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.consultation-number-text {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.consultation-number-value {
  display: inline;
  margin-left: 0px;
  font: inherit; /* тот же шрифт/размер/вес, что и "Консультация" */
  color: inherit;
}

.consultation-copy-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consultation-copy-btn:hover {
  opacity: 0.75;
}

.consultation-copy-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #34c759;
}

/* Ожидаем второго участника: кнопка «Копировать ссылку» / «Скопировано» с галочкой */
.video-placeholder .copy-link-btn {
  margin-top: 25px;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #0071e3;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-placeholder .copy-link-btn:hover {
  background: #0077ed;
}

.video-placeholder .copy-link-btn:active {
  background: #006edb;
}

.video-placeholder .copy-link-btn .copy-icon {
  flex-shrink: 0;
}

/* Кнопка «Копировать ссылку» в режиме собрания (пустой блок участника) - те же стили, что и в режиме 1:1 */
.meeting-participant-empty .meeting-participant-placeholder .copy-link-btn {
  margin-top: 20px;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff !important;
  background: #0071e3 !important;
  border: none !important;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meeting-participant-empty .meeting-participant-placeholder .copy-link-btn:hover {
  background: #0077ed !important;
}

.meeting-participant-empty .meeting-participant-placeholder .copy-link-btn:active {
  background: #006edb !important;
}

.meeting-participant-empty .meeting-participant-placeholder .copy-link-btn .copy-icon {
  flex-shrink: 0;
  color: #fff !important;
  stroke: #fff !important;
}

/* «Скопировано» — та же «коробка», что и кнопка, чтобы надписи не смещались */
.video-placeholder .copy-link-done,
.meeting-participant-placeholder .copy-link-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #34c759;
  border-radius: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
}

.copy-link-done .check-icon {
  flex-shrink: 0;
}

.call-room-audio .audio-container {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Два участника при подключённом собеседнике */
.audio-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.audio-participant {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.audio-participant .avatar-icon {
  width: 80px;
  height: 80px;
  font-size: 40px;
}

.audio-participant .avatar-name {
  font-size: 16px;
}

.avatar-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.avatar-name {
  font-size: 24px;
  color: white;
  font-weight: 500;
}

/* Блок «Ожидаем второго участника» по центру (аудио) */
.waiting-second-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.waiting-second-participant .copy-link-btn {
  margin-top: 25px;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #0071e3;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.waiting-second-participant .copy-link-btn:hover {
  background: #0077ed;
}

.waiting-second-participant .copy-link-btn:active {
  background: #006edb;
}

.waiting-second-participant .copy-link-btn .copy-icon {
  flex-shrink: 0;
}

.waiting-second-participant .copy-link-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 20px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #34c759;
  border-radius: 20px;
  box-sizing: border-box;
}

.waiting-second-participant .copy-link-done .check-icon {
  flex-shrink: 0;
}

/* Компактный индикатор качества в углу (аудио) */
.audio-me-corner {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.connection-status {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: white;
  z-index: 100;
}

.status-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.call-room-error {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.call-room-error-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.call-room-error-logo img {
  height: 43px;
  width: 162px;
  object-fit: contain;
  display: block;
}

.call-room-error-logo-connect {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: -5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.call-room-error-logo-beta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0a6c7;
  border: 1px solid #b0a6c7;
  border-radius: 6px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.call-room-error-content {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.call-room-error .error-message {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
  text-align: center;
  margin-bottom: 32px;
}

.call-room-error-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.call-room-error button {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.call-room-error button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.call-room-error-btn-primary {
  background: #0071e3 !important;
  color: #fff !important;
}

.call-room-error-btn-primary:hover {
  background: #0077ed !important;
}

/* Кнопка переключения режимов в CallControls */
.control-btn.layout-toggle {
  background: rgba(255, 255, 255, 0.15);
}

.control-btn.layout-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Режим собрания: Плитка (Grid) */
.meeting-grid-layout {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: visible; /* Позволяем рамке быть видимой */
  min-height: 0;
  min-width: 0;
  /* Убеждаемся, что контент не выходит за пределы */
  position: relative;
  z-index: 1;
}

.meeting-video-rows-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: visible; /* Позволяем рамке быть видимой */
  /* Убеждаемся, что контент не выходит за пределы */
  box-sizing: border-box;
  padding: 4px; /* Небольшой padding для видимости рамки */
}

.meeting-video-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
  padding: 4px; /* Небольшой padding для видимости рамки */
  box-sizing: border-box;
  overflow: visible; /* Позволяем рамке быть видимой */
}

.meeting-participant-empty {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Заполняем всю grid-ячейку */
  width: 100%;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  /* Всегда формат 16:9, но адаптируемся под доступное пространство */
  aspect-ratio: 16 / 9;
  max-width: 100%;
  max-height: 100%;
}

.meeting-participant-empty .meeting-participant-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.meeting-participant-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Размеры задаются через inline стили из расчета раскладки */
  /* Если размеры не заданы (режим спикера), используем 100% */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Голубая обводка для говорящего участника через box-shadow */
/* box-shadow не влияет на размеры элемента, только на визуальное отображение */
.meeting-participant-tile.speaking {
  /* Голубой цвет как начальный цвет градиента логотипа "Коннект" (#3b82f6) */
  box-shadow: 
    0 0 0 2px #3b82f6,
    0 0 0 3px rgba(59, 130, 246, 0.6),
    0 0 0 4px rgba(59, 130, 246, 0.4);
  animation: speaking-border-glow 2s ease-in-out infinite;
}

/* Внутренний контент должен быть поверх рамки */
.meeting-participant-tile > * {
  position: relative;
  z-index: 1;
}

@keyframes speaking-border-glow {
  0%, 100% {
    box-shadow: 
      0 0 0 2px #3b82f6,
      0 0 0 3px rgba(59, 130, 246, 0.6),
      0 0 0 4px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 
      0 0 0 2px #3b82f6,
      0 0 0 3px rgba(59, 130, 246, 0.8),
      0 0 0 4px rgba(59, 130, 246, 0.6),
      0 0 8px rgba(59, 130, 246, 0.3);
  }
}

.meeting-participant-video {
  width: 100%;
  height: 100%;
  /* Для горизонтального видео: без полей, заполняем весь блок 16:9 */
  object-fit: cover;
  object-position: center;
  /* Фон для полей (заметнее) */
  background: rgb(52 52 52 / 36%);
}

.meeting-participant-video.vertical-video {
  /* Для вертикального видео: показываем квадрат (центрированную часть) с полями */
  object-fit: contain;
  background: rgb(52 52 52 / 36%);
  /* Центрируем квадрат в блоке 16:9 */
  object-position: center;
  /* Ограничиваем размер, чтобы показать квадрат */
  max-width: 100%;
  max-height: 100%;
}

.meeting-participant-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.meeting-participant-placeholder--camera-off {
  background: rgb(52 52 52 / 36%);
  color: rgba(255, 255, 255, 0.7);
}

.meeting-participant-mic-off {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  padding: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.meeting-participant-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 9px 5px 9px;
  border-radius: 10px;
  /* Название по размеру контента, не на всю ширину */
  width: auto;
  max-width: calc(100% - 16px);
}

.meeting-participant-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.meeting-participant-speaking-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #34a853;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Режим собрания: Спикер (Speaker) */
.meeting-speaker-layout {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.meeting-speaker-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.meeting-speaker-main .meeting-participant-tile {
  width: 100%;
  height: 100%;
}

.meeting-speaker-sidebar {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 5px;
}

.meeting-speaker-sidebar::-webkit-scrollbar {
  width: 6px;
}

.meeting-speaker-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.meeting-speaker-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.meeting-speaker-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.meeting-speaker-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  padding: 4px; /* Добавляем padding для видимости рамки */
  box-sizing: border-box;
}

.meeting-speaker-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.meeting-speaker-thumbnail.pinned {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.meeting-speaker-thumbnail .meeting-participant-tile {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.meeting-speaker-thumbnail .meeting-participant-info {
  bottom: 4px;
  left: 4px;
  right: auto;
  width: auto;
  max-width: calc(100% - 8px);
  padding: 4px 6px;
  font-size: 11px;
}

.meeting-speaker-thumbnail .meeting-participant-name {
  font-size: 11px;
}

/* Таймер для мобильной версии (скрыт по умолчанию) */
.call-room-timer-mobile {
  display: none;
}

/* Мобильная версия для устройств шириной до 430px */
@media (max-width: 430px) {
  /* Скрываем таймер в шапке на мобильных */
  .call-room-header-center {
    display: none;
  }

  /* Показываем таймер под шапкой */
  .call-room-timer-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 9;
  }

  .call-room-timer-mobile .timer-container {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    background: transparent;
    padding: 4px 16px;
  }

  .call-room-header {
    padding: 10px 20px;
  }

  .waiting-participant-text {
    font-size: 21px;
  }

  .meeting-participant-empty .meeting-participant-placeholder .copy-link-btn {
    margin-top: 5px;
    padding: 15px 25px;
  }

  .call-room-timer-mobile {
    padding: 5px 20px;
    border-bottom: none;
  }

  /* Скрываем кнопку переключения режимов (плитка/спикер) на мобильных */
  /* Скрываем и саму кнопку, и обертку Tooltip, чтобы не было лишнего пространства */
  .control-btn.layout-toggle {
    display: none;
  }
  
  /* Скрываем обертку Tooltip, которая создает div вокруг кнопки */
  /* Используем :has() селектор для современных браузеров */
  .call-controls > div:has(.control-btn.layout-toggle) {
    display: none !important;
  }

  .meeting-participant-info {
    bottom: 5px;
    left: 5px;
  }

  /* Стили для страницы ошибки на мобильных */
  .call-room-error-content {
    padding: 25px 20px;
  }

  .call-room-error .error-message {
    font-size: 16px;
    padding: 16px;
  }

  /* Логотип как на главной странице */
  .call-room-error-logo {
    gap: 4px;
    margin-bottom: 30px;
  }

  .call-room-error-logo img {
    height: 72px;
    width: 130px;
  }

  .call-room-error-logo-connect {
    font-size: 26px;
    margin-bottom: -2.5px;
  }

  .call-room-error-logo-beta {
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 4px;
    margin-top: 15px;
  }
}

.voice-wave-container {
  width: 100%;
  max-width: 800px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.voice-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100%;
  height: 100%;
}

button {
  font-family: inherit;
}

input {
  font-family: inherit;
}
