/* Кнопка нового чата (карандаш) */
#new-chat-button {
  display: none !important;
}

/* Кнопка загрузки файлов (скрепка) */
#upload-button {
  display: none !important;
}

/* Watermark */
#watermark {
  display: none !important;
}

/* Кнопка отправки */
#chat-submit {
  background-color: #6b7280 !important;
}
#chat-submit:hover {
  background-color: #4b5563 !important;
}

/* Stop button */
#stop-button {
  background-color: #6b7280 !important;
}
#stop-button:hover {
  background-color: #4b5563 !important;
}

/* Theme toggle */
#theme-toggle {
  display: none !important;
}

/* Readme button */
#readme-button {
  display: none !important;
}

/* User avatar */
#user-nav-button {
  display: none !important;
}

/* Focus outline */
div[role="presentation"][tabindex="0"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Анти-моргание */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.cl-ready {
  opacity: 1;
}

/* Placeholder */
textarea::placeholder {
  color: #b0b0b0 !important;
  opacity: 1 !important;
}

/* SmartCaptcha shield */
[data-testid="shield"],
.SmartCaptcha-Shield {
  display: none !important;
}

/* Аватар бота в чате */
.ai-message span:has(img[src="/public/avatar.png"]) {
  display: none !important;
}

/* ============================================
   Встроенное видео на welcome-screen
   ============================================ */

#inline-video-wrapper {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#inline-video-wrapper.video-ready {
  opacity: 1;
}

#inline-video-wrapper video {
  width: 100%;
  display: block;
}

/* Лёгкая пелена поверх видео */
#inline-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
}

/* Подпись под CORTEX */
#cortex-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: #9ca3af;
  margin-top: 2px;
  margin-bottom: 8px;
}

/* ============================================
   Video Proof Modal
   ============================================ */

/* Backdrop */
#proof-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

#proof-modal-backdrop.visible {
  opacity: 1;
}

/* Modal */
#proof-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  width: min(720px, 92vw);
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#proof-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#proof-modal video {
  width: 100%;
  display: block;
  border-radius: 1.25rem 1.25rem 0 0;
}

/* Proof buttons bar */
#proof-modal .proof-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid #f3f4f6;
}

#proof-modal .proof-bar-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: 1px;
  margin-right: 4px;
}

#proof-modal .proof-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.5px;
}

#proof-modal .proof-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

#proof-modal .proof-btn.active {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}

/* Close button */
#proof-modal .proof-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;
  z-index: 1;
}

#proof-modal .proof-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Clickable timestamps in chat */
.proof-timestamp {
  color: #2563eb;
  cursor: pointer;
  border-bottom: 1px dashed #93c5fd;
  transition: color 0.15s, border-color 0.15s;
  padding: 0 1px;
}

.proof-timestamp:hover {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
}
