
/* POPUP для мессенджеров */
.modal-messenger {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

.modal-messenger.show {
  display: block;
}

.modal-messenger-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal-messenger-box {
  position: relative;
  max-width: 500px;
  margin: 50px auto;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: slideUp 0.4s;
}
.modal-messenger-box .modal-close {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  outline: none;
  box-shadow: none !important;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-messenger-box .modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-messenger-box .modal-close:hover {
  color: #333;
}

.modal-messenger-content h3 {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
  color: #040404;
}

.modal-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
}

/* Счетчик мессенджеров */
.messenger-status {
  text-align: center;
  margin: 20px 0;
  font-size: 16px;
  color: #666;
}

.messenger-count {
  font-weight: bold;
  color: #52bd09;
  font-size: 18px;
}

/* Кнопки мессенджеров */
.messenger-buttons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.messenger-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: #52bd09;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.messenger-btn:hover {
  background: #469908;
  transform: translateY(-2px);
}

.messenger-btn.connected {
  background: #2a76ab;
}

.messenger-btn .checkmark {
  font-size: 20px;
  margin-left: 5px;
}

/* Кнопка "Обновить данные" */
.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin: 15px 0;
  background: #2a76ab;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.refresh-button:hover {
  background: #1e5a85;
}

/* Рекомендация */
.messenger-recommendation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin: 15px 0;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
}

.recommendation-icon {
  font-size: 24px;
}

.recommendation-text strong {
  display: block;
  margin-bottom: 4px;
  color: #856404;
  font-size: 14px;
}

.recommendation-text p {
  margin: 0;
  font-size: 13px;
  color: #856404;
}

/* Кнопка "Продолжить" */
.continue-button {
  width: 100%;
  padding: 16px;
  margin: 20px 0 10px;
  background: #f70000;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
}

.continue-button:hover:not(:disabled) {
  background: #d00000;
}

.continue-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Ссылка "Не использую" */
.no-messenger-link {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: #666;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.no-messenger-link:hover {
  color: #333;
}

.hidden {
  display: none !important;
}
/* Адаптивность */
@media (max-width: 520px) {
  .modal-messenger-box {
    max-width: calc(100% - 24px);
    margin: 20px auto;
    padding: 24px 18px;
    border-radius: 16px;
  }

  .modal-messenger-content h3 {
    font-size: 20px;
  }

  .modal-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .messenger-status {
    font-size: 14px;
    margin: 14px 0;
  }

  .messenger-count {
    font-size: 16px;
  }

  /* Кнопки в столбик на мобиле */
  .messenger-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .messenger-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
  }

  .continue-button {
    padding: 14px;
    font-size: 15px;
  }

  .modal-messenger-box .modal-close {
    top: 10px;
    right: 14px;
    font-size: 28px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
  .modal-messenger-box {
    padding: 20px 14px;
  }

  .modal-messenger-content h3 {
    font-size: 18px;
  }

  .messenger-btn {
    padding: 12px 14px;
  }
}
