/* /public/style.css */

/* Dark-mode basics used by static pages */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #eee;
  }
  input,
  button {
    background: #222;
    color: #fff;
    border-color: #444;
  }
}

/* Reset-password layout */
.reset-card {
  max-width: 400px;
  margin: 60px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
}
.reset-card img.logo {
  width: 120px;
  margin-bottom: 20px;
}

/* Password visibility eye */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

/* 🌿 Sign Up Button */
#signupBtn {
  background-color: #4caf50;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#signupBtn:hover {
  background-color: #388e3c;
}

/* 🔐 Hide auth-dependent sections until login state is confirmed */
#mainApp,
#authButtons,
#logoutSection,
#userAvatar {
  display: none;
}

/* 🪟 Hide modals by default */
#signupModal,
#loginModal,
#resetModal,
#editProfileModal {
  display: none;
}

/* 🟠 Modal basic style */
.modal {
  display: flex;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* 💬 Private Message Reactions */

/* 💬 Message Box Style */
.message-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* ✅ Optional Sender/Receiver Styling */
.user-sent {
  background: #e1f5e9;
}

.user-received {
  background: #f9f9f9;
}

/* ✅ Final Role-based Message Styling */
.investor-message {
  background-color: #e6f7ff;
  border-left: 4px solid #4caf50;
  padding-left: 8px;
}

.user-message {
  background-color: #fef9e7;
  border-left: 4px solid #2196f3;
  padding-left: 8px;
}

/* ✅ Large avatars for profile, settings */
#userAvatar,
#previewPic {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* ✅ Optional reusable avatar class (used in title row) */
.avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* ✅ Pitch overlay avatar (TikTok-style) */
.pitch-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

/* ✅ Avatar overlay container */
.avatar-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 2px;
  z-index: 10;
}
.avatar-overlay-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
}

/* Card wrapper (yours is already correct) */
.pitch-card {
  position: relative; /* required for overlay positioning */
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  background-color: #fff;
}

/* Overlay container appended by pitch.js */
.pitch__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 12;

  /* UX: overlay never blocks taps on the card/video */
  pointer-events: none;

  /* optional: subtle entrance; enable with .pitch-card.in */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pitch-card.in .pitch__badges {
  opacity: 1;
  transform: none;
}

/* Badge chip (clickable) */
.pitch__badge {
  appearance: none; /* reset button look (Safari/iOS) */
  -webkit-appearance: none;
  border: 0;
  display: inline-block;
  padding: 6px 12px; /* finger-friendly ~44px target with text */
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(45deg, #ff9800, #f44336);

  /* Let badges receive taps even though container ignores them */
  pointer-events: auto;
}

/* Clickable polish + a11y */
.pitch__badge.is-clickable {
  cursor: pointer;
}
.pitch__badge.is-clickable:hover {
  filter: brightness(1.08);
}
.pitch__badge.is-clickable:active {
  transform: translateY(1px);
}
.pitch__badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 20px;
}

/* Color variants by type (use with pitch__badge--trending | --donor | --verified | --sponsored) */
.pitch__badge--trending {
  background: linear-gradient(45deg, #ff9800, #ff3d00);
}
.pitch__badge--donor {
  background: linear-gradient(45deg, #ff6ec7, #b86adf);
}
.pitch__badge--verified {
  background: linear-gradient(45deg, #5aa3ff, #2e6bff);
}
.pitch__badge--sponsored {
  background: linear-gradient(45deg, #22c55e, #16a34a);
}

/* Optional one-off absolute version if you ever hand-place a badge */
.pitch__badge--overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
}

.form-section {
  margin-bottom: 20px;
}
/* ✅ Tabs for pitch views */
.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 16px;
  font-weight: 500;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.tab:hover {
  background: #e0e0e0;
}

.tab--active {
  background: #222;
  color: #fff;
}

/* ✅ Donor badge under pitch card */
.pitch__donor-badge {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  background: #ffe58a; /* gold-style badge */
  color: #333;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pitch__donor-badge:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.musicLabel,
.filterLabel {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.pitch-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 6px 0;
}

select {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  width: 100%;
  max-width: 300px;
}

.translate-btn {
  margin-left: 10px;
  background: #f0f0f0;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}
.translate-btn {
  margin-top: 6px;
  font-size: 13px;
  padding: 4px 10px;
  background-color: #eee;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}
#toggleMuteBtn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.reaction-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px auto;
}
.reaction-buttons button {
  margin-right: 8px;
  padding: 4px 10px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #f0f0f0;
  cursor: pointer;
  transition: background 0.3s;
}
.reaction-buttons button:hover {
  background: #d0f0d0;
}
.message-emojis {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.message-emojis button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.message-emojis button.active {
  background-color: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-weight: bold;
}

.message-emojis button[data-emoji="🚫"].active {
  background-color: red;
}

.message-emojis button[data-emoji="❤️"].active {
  background-color: hotpink;
}
.user-message-emojis button[data-emoji="❤️"].active {
  background-color: crimson;
}

.investor-message-emojis button[data-emoji="💡"].active {
  background-color: gold;
}

.user-message-emojis button[data-emoji="🚫"].active,
.investor-message-emojis button[data-emoji="🚫"].active {
  background-color: black;
  color: white;
}

:root {
  --primary-color: #4caf50;
  --accent-color: #ff9800;
  --background-color: #f9f9f9;
  --header-color: #3f51b5;
  --action-color: #9c27b0;
  --text-color: #333333;
  --text-secondary: #777777;
}

body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--header-color);
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 22px;
}

button {
  padding: 10px 18px;
  font-size: 15px;
  margin: 10px 5px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.close-btn {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}
textarea:focus {
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.3);
}

.close {
  float: right;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}
.close:hover {
  color: #000;
  transform: scale(1.2);
}

.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 5;
  font-size: 14px;
}
.fullscreen-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.video-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background-color: #000;
  border-radius: 0;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  border-radius: 0;
} /*  properly closed */

/*  Pitch container alignment */
#pitchContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
} /*  properly closed this block */

footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  font-size: 14px;
  color: var(--text-secondary);
}

footer a {
  color: var(--header-color);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

button.star {
  background-color: #ffd700;
  color: black;
}

button.support {
  background-color: #4caf50;
  color: white;
}

button.save {
  background-color: #ff9800;
  color: white;
}
button.interested {
  /* ✅ new style for 👥 */
  background-color: #4caf50;
  color: white;
}

.investor-deal-btn {
  /* ✅ enable style for investors */
  background-color: #4caf50 !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* ✅ Fix: Add comma before button.deal:hover */
button.star:hover,
button.intrigued:hover,
button.support:hover,
button.save:hover,
button.deal:hover {
  opacity: 0.85;
}

/* ✅ Music Toggle Button (Sleek Design) */
.music-toggle {
  background-color: #fff;
  color: #111;
  border: 1px solid #ddd;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.music-toggle:hover,
.music-toggle:focus {
  background-color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ Dark theme support */
body.dark .music-toggle {
  background-color: #222;
  color: #eee;
  border: 1px solid #444;
}

body.dark .music-toggle:hover,
body.dark .music-toggle:focus {
  background-color: #333;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* ✅ Add this block RIGHT before closing </style> */
#mainLogo {
  width: clamp(160px, 20vw, 300px); /* Mobile ↔ Desktop responsive */
  max-width: 90%;
  height: auto;
}
.message-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.message-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}
.message-text {
  flex: 1;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
}
.filterLabel {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pitchTitle {
  color: #333;
  font-weight: 600;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ✅ Music Toggle Button Styling */
.music-toggle {
  position: absolute;
  top: 10px; /* Or change to bottom: 60px if preferred */
  right: 10px;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ✅ Hover and Active Effects */
.music-toggle:hover {
  background-color: #e0e0e0;
  transform: scale(1.03);
}

.music-toggle:active {
  background-color: #d6d6d6;
  transform: scale(0.98);
}

/* ✅ Bounce Animation (used for emoji and music toggle) */
.emoji-bounce {
  animation: bounce 0.8s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ✅ Animation class for music toggle */
@keyframes buttonBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.music-toggle.animate {
  animation: buttonBounce 0.4s ease;
}

/* ✅ Toast Notification */
.toast {
  visibility: hidden;
  min-width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  font-size: 14px;
  transition: all 0.4s ease;
  opacity: 0;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 80px;
}

.toast.success {
  background-color: #4caf50;
}

.toast.error {
  background-color: #e53935;
}

.toast.info {
  background-color: #2196f3;
}

.toast.show {
  visibility: visible;
  bottom: 80px;
  opacity: 1;
}
:root {
  --border: #ddd;
  --border-hover: #aaa;
  --bg-drop: rgba(0, 0, 0, 0.03);
  --accent: #ff2d55;
  --text: #333;
  --hint: #666;
}

.upload {
  max-width: 480px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: system-ui, sans-serif;
  color: var(--text);
}

.upload__title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.upload__icon {
  font-size: 1.8rem;
  margin-right: 0.5rem;
}
.upload__hint {
  font-size: 0.9rem;
  color: var(--hint);
  margin-bottom: 1.5rem;
}

.upload__dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload__dropzone:hover,
.upload__dropzone.dragover {
  border-color: var(--border-hover);
  background: var(--bg-drop);
}

.upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* Content inside the zone should not block clicks to the hidden <input> */
.upload__placeholder {
  pointer-events: none;
  user-select: none;
  animation: float 3s ease-in-out infinite;
}
.upload__emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.upload__text {
  font-size: 1rem;
  color: var(--hint);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.upload__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
  visibility: hidden;
}
.upload__progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}

/* 🔹 Preview Container */
.preview {
  margin-top: 2rem;
}

/* 🔹 Card and Layout */
.preview_card,
.preview__card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 🔹 Video Preview */
.preview_video,
.preview__video {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* 🔹 Preview Info Section */
.preview_info,
.preview__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-top: 8px;
}

/* 🔹 File Name */
.preview__filename {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 🔹 Remove Button */
.preview__remove {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--hint);
  cursor: pointer;
  transition: color 0.2s;
}

.preview__remove:hover {
  color: var(--accent);
}

/* 🔹 Upload Progress */
#progressBox {
  visibility: hidden;
  width: 100%;
  background-color: #eee;
  height: 8px;
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
}

#progressBar,
.upload__progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  border-radius: 20px;
  transition: width 0.3s ease-in-out;
}

/* 🔹 Upload Control Button */
.upload-control-button {
  padding: 8px 12px;
  border: none;
  background-color: #eee;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.comment.reply {
  margin-left: 20px; /* Picked your desired spacing */
  padding-left: 10px; /* Keep the spacing from first block */
  border-left: 2px solid #ddd; /* Use the more neutral color */
}

.comment-reaction-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; /* ✅ Allows items to break into new line if too wide */
  max-width: 100%; /* ✅ Prevents overflow */
}

.like-count {
  color: #888;
  font-size: 14px;
}
.replying-to {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 2px;
  display: block;
}
.comments-disabled {
  color: #999;
  font-style: italic;
  padding: 10px;
  text-align: center;
}
.comment-input {
  width: 100%;
  padding: 6px 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.comment.reply {
  margin-left: 20px;
  background: #f0f0f0;
}
.comment-count {
  font-size: 12px;
  color: #999;
  margin-left: 6px;
}
.notification-list {
  max-height: 150px;
  overflow-y: auto;
  padding: 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.notification {
  padding: 8px;
  border-bottom: 1px solid #eee;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.comment.reply {
  margin-left: 24px;
  background: #e8f0fe;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.comment-user {
  font-weight: bold;
}

.comment-text {
  margin: 4px 0;
}

.comment-time {
  font-size: 0.75rem;
  color: #888;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.comment__username {
  font-weight: bold;
}

.comment__replying-to {
  display: block;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 6px;
}

.comment__text {
  font-size: 0.95rem;
  color: #111;
  margin: 6px 0;
  line-height: 1.4;
  white-space: pre-wrap;
}

.comment {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
  font-size: 15px;
}

.comment--compact {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  margin-bottom: 0;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment__user {
  font-weight: bold;
  color: #333;
}

.comment__reply-to {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.comment__controls {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.comment__reply-input {
  width: 100%;
  height: 60px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 4px;
}

.nested-reply {
  margin-left: 32px;
  border-left: 2px solid #ccc;
  padding-left: 12px;
}
.notification {
  background: #fff;
  border-left: 4px solid #4caf50;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 14px;
  border-radius: 6px;
}

.pitch__comment-count {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-in;
}

.comment--reply {
  margin-left: 20px;
  background: #f9f9f9;
  border-left: 2px solid #ccc;
  padding-left: 8px;
  border-radius: 4px;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

.comment__user {
  font-weight: bold;
  font-size: 0.95rem;
}
.comment__timestamp {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

.comment__controls {
  margin-top: 6px;
}

.comment__controls button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  margin-right: 6px;
}

.comment__reply-post {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
}

.replying-to {
  font-style: italic;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 4px;
  display: block;
}
.reply-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}

.comment-timestamp {
  font-size: 0.8rem;
  color: #999;
  margin-left: 8px;
}
/* 🎨 Clean, modern comment actions */

.comment__reaction {
  cursor: pointer;
  font-size: 16px;
  color: #aaa;
  transition: transform 0.2s ease;
  background: none;
  border: none;
  margin-right: 8px;
}

.comment__reaction.hearted {
  color: #9b59b6; /* 💜 PitchQo purple */
  font-weight: bold;
}

.comment__reaction:hover {
  transform: scale(1.2);
}

.comment__reply,
.comment__translate {
  cursor: pointer;
  font-size: 14px;
  color: #666;
  background: none;
  border: none;
  margin-right: 8px;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.comment__reply:hover,
.comment__translate:hover {
  color: #9b59b6; /* 💜 On hover */
}
.comment__copy {
  cursor: pointer;
  font-size: 14px;
  color: #666;
  background: none;
  border: none;
  margin-right: 8px;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.comment__copy:hover {
  color: #27ae60; /* 💚 or match your theme */
}

.comment-input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  transition: border 0.2s ease;
}

.comment-input:focus {
  border-color: var(--accent-color);
  background-color: #f9f9f9;
  outline: none;
}

.post-comment-btn {
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #ccc;
  color: #fff;
  transition: background-color 0.2s, transform 0.2s;
  opacity: 0.6;
  pointer-events: none;
}

.post-comment-btn.active {
  background-color: var(--accent-color);
  transform: scale(1.05);
  opacity: 1;
  pointer-events: auto;
}

.post-comment-btn.disabled {
  background-color: #ccc;
  opacity: 0.6;
  pointer-events: none;
}
.comment-char-count {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 6px;
  text-align: right;
  transition: color 0.2s ease;
}

.comment-char-count.over-limit {
  color: #e63946;
  animation: shake 0.25s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}
.post-comment-btn {
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.post-comment-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.post-comment-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.emoji-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.emoji-btn {
  font-size: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.emoji-btn:hover {
  transform: scale(1.2);
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.comment-error-banner {
  color: #b00020;
  font-size: 13px;
  margin: 4px 0 6px;
  padding: 6px 10px;
  background-color: #fdd;
  border-radius: 6px;
  border: 1px solid #faa;
  transition: opacity 0.3s ease;
}

.comment-error-banner.visible {
  opacity: 1;
}

.comment-error-banner:not(.visible) {
  opacity: 0;
}
.mention-reply-btn,
.thread-reply-btn {
  margin: 4px 8px 0 0;
  font-size: 0.85rem;
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
}

.thread-reply-btn:hover,
.mention-reply-btn:hover {
  text-decoration: underline;
  color: #8b5cf6; /* violet-500 */
}
/* ✅ Comment reply box */
.comment__reply-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0;
  margin-top: 8px;
  border-left: 2px solid #ddd;
  padding-left: 10px;
}

.comment__reply-box.open {
  max-height: 400px; /* adjust if needed */
  opacity: 1;
  padding: 8px 0 0 10px;
}

.comment__reply-input {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  outline: none;
  transition: border 0.2s ease;
}

.comment__reply-input:focus {
  border-color: #888;
}

.comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* Unified action button style (Reply / Translate / Thread / Cancel) */
.comment__action {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.comment__action:hover {
  background: #f7f7f7;
}

/* Optional spacing for the left-most action */
.comment__action--reply {
  margin-right: 0.35rem;
}

/* If you prefer pushing a group to the right inside the actions row */
.comment__actions .push-right {
  margin-left: auto;
}

.comment__reply-buttons {
  margin-left: auto;
}
/* ✅ Base style for like button */
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  position: relative; /* Needed for tooltip */
  transition: color 0.2s ease;
}

/* ✅ Liked state with bounce */
.like-btn.liked {
  animation: emojiBounce 300ms ease-in-out;
}

/* ✅ Optional fade animation on unlike */
.like-btn.unliked {
  animation: fadeOutLike 300ms ease-in-out;
}

/* ✅ Hover tooltip (desktop only) */
.like-btn:hover::after {
  content: attr(title);
  position: absolute;
  background-color: #444;
  color: white;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.95;
}

@media (hover: none) {
  .like-btn:hover::after {
    display: none;
  }
}

/* ✅ Shared hover for like/reply */
.reply-btn:hover,
.like-btn:hover {
  background-color: #eee;
  border-radius: 4px;
}

/* ✅ Bounce animation */
@keyframes emojiBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ✅ Fade-out animation */
@keyframes fadeOutLike {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(0.85);
  }
}
.comment__reply-post {
  margin-top: 8px;
  background-color: #4caf50; /* ✅ Green for positive action */
  color: white;
  font-size: 14px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
/* ✅ Reply bounce-in animation */
@keyframes bounceIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.comment.bounce-in {
  animation: bounceIn 0.4s ease;
}

.comment__reply-post:hover {
  background-color: #43a047; /* Darker green */
  transform: scale(1.03);
}

.comment__reply-post:active {
  transform: scale(0.96);
}

/* ✅ Smooth slide-in for replies */
@keyframes replySlideIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.comment--parent.slide-in {
  animation: slideFadeIn 400ms ease, highlightFade 2.5s ease-out;
  background-color: #f0fff4;
  border-left: 3px solid #4caf50;
}

/* ✅ Highlight newly posted comment */
.comment--reply.slide-in {
  animation: replySlideIn 300ms ease-out, highlightFade 2.5s ease-out;
  background-color: #f0fff4;
  border-left: 3px solid #4caf50;
}

/* ✅ Fade the background highlight */
@keyframes highlightFade {
  0% {
    background-color: #f0fff4;
    border-left: 3px solid #4caf50;
  }
  100% {
    background-color: transparent;
    border-left: 3px solid transparent;
  }
}

.comment-post-btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.comment-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #c00;
  margin-left: 8px;
}

.comment-delete-btn:hover {
  text-decoration: underline;
}
.comment__controls {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.comment__controls button {
  background: transparent;
  border: none;
  color: #444;
  cursor: pointer;
  font-size: 14px;
}

.comment__controls button:hover {
  text-decoration: underline;
  color: #d32f2f; /* accent on delete */
}

.comment__reply-input {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  outline: none;
  transition: border 0.2s ease;
}

.comment__reply-count {
  font-size: 13px;
  color: #555;
  margin: 4px 0 0 8px;
  padding-left: 4px;
}
.comment__reply-count {
  font-size: 13px;
  color: #555;
  margin: 4px 0 0 8px;
  padding-left: 4px;
  cursor: pointer; /* ✅ Add this */
  transition: color 0.2s ease; /* ✅ Smooth hover */
}

.comment__reply-count:hover {
  color: #000; /* ✅ Darker on hover */
}
.comment__reply-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0;
  margin-top: 8px;
  border-left: 2px solid #ddd;
  padding-left: 10px;
}

.comment__reply-box.open {
  max-height: 400px;
  opacity: 1;
  padding: 8px 0 0 10px;
}
.comment-input-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.comment-textarea {
  resize: none;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  background-color: #fff;
}

.comment-post-btn {
  align-self: flex-end;
  padding: 6px 14px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  background-color: #4ac4f3;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-post-btn:hover {
  background-color: #009fdc;
}
#emailVerificationMessage {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#emailVerificationMessage {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#emailVerificationMessage.show {
  opacity: 1;
}
.spinner {
  border: 6px solid #eee;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
.investor-upload-block {
  background: #fff3f3;
  color: #b10000;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  margin: 20px auto;
  border: 1px solid #e0c0c0;
  border-radius: 8px;
  max-width: 500px;
}
.comment__verified-badge {
  margin-left: 4px;
  color: #007bff;
  font-size: 0.9em;
  vertical-align: middle;
}

.pitch__copy-btn {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.pitch__copy-btn:hover {
  background-color: #d6d6d6;
}
.comment-history-item {
  margin-bottom: 6px;
  padding: 4px 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
  font-size: 0.85rem;
}
.has-tooltip {
  position: relative;
  cursor: pointer;
}

.has-tooltip .tooltip-text {
  visibility: hidden;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  z-index: 999;
}

.has-tooltip:hover .tooltip-text,
.has-tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.pitch__copy-btn.copied {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.pitch__badge {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(45deg, #ff9800, #f44336);
  vertical-align: middle;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* the bar */

.pitch__donate-btn {
  margin-top: 10px;
  background-color: #4caf50;
  color: white;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  border: none;
}
.pitch__donate-btn:hover {
  background-color: #45a049;
}
.emoji-btn[data-emoji="🎁"] {
  color: #e91e63;
  font-weight: bold;
}
.profile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.profile-panel.hidden {
  transform: translateX(100%);
}

.profile-panel__content {
  padding: 16px;
  overflow-y: auto;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
}
.profile-box {
  text-align: center;
  padding-top: 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ccc;
  margin-bottom: 12px;
}

.profile-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.profile-bio {
  font-style: italic;
  margin-bottom: 12px;
  color: #444;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background-color: #eee;
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.follow-btn {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.follow-btn:hover {
  background-color: #005fcc;
}
.shop-link {
  display: inline-block;
  margin-top: 8px;
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}

/* ============================= */
/* 🔗 General Links and Utilities */
/* ============================= */

.shop-link:hover {
  text-decoration: underline;
  color: #27ae60; /* 💚 or brand color */
}

.empty-state {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-top: 40px;
  animation: fadeIn 0.4s ease-in-out;
}

/* ============================= */
/* 🧍 Profile + Creator Section */
/* ============================= */

.pitch__creator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px; /* ✅ updated from margin-bottom */
}

.pitch__avatar-wrapper {
  display: inline-block;
}

.pitch__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee; /* optional — adds polish */
}

.pitch__user {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff; /* adjust to #333 for light themes */
  text-decoration: none;
}

.pitch__label--anon {
  font-size: 0.8rem;
  color: #bbb;
  margin-left: 5px;
}

.profile-followers {
  font-size: 14px;
  color: #555;
  margin-top: -6px;
  margin-bottom: 8px;
}

/* ============================= */
/* 🔄 Floating Avatar Overlay (e.g. TikTok style) */
/* ============================= */

.avatar-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
}

.avatar-overlay-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid white;
  border-radius: 50%;
}

/* ============================= */
/* 💬 Highlighted Comments */
/* ============================= */

/* Highlighted top comment */
.highlighted-comment {
  background: #fff9e6;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 12px;
}
.highlighted-text {
  margin: 0 0 4px;
  font-weight: 600;
}
.highlighted-meta {
  font-size: 12px;
  color: #666;
}

/* ============================= */
/* 🔢 Emoji Summary Bar */
/* ============================= */

/* title line */
/* wrapper */
.pitch__reaction-group {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pitch__reaction-group.animated {
  opacity: 1;
  transform: none;
}

/* title line */
.pitch__reaction-summary {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
}

/* the bar */
.pitch__emoji-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  line-height: 1;
}

/* each emoji bubble */
.emoji-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

/* highlight when the user reacted */
.selected-summary-emoji {
  background: #fff3c4;
  color: #8a6d00;
  border: 1px solid #ffe58f;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem; /* room for "⭐ You reacted" chip */
}

/* empty state */
.pitch__emoji-summary--empty {
  font-size: 0.9rem;
  color: var(--text-muted, #777);
  padding: 0.25rem 0;
}

/* ============================= */
/* 💾 Save Button Styles */
/* ============================= */

.pitch__save-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.2s;
}

.pitch__save-btn.saved {
  color: gold;
  font-weight: bold;
  transform: scale(1.1); /* keep only this one */
}

/* ============================= */
/* 📊 Insights Panel */
/* ============================= */

.pitch__insights {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  margin-top: 12px;
  border-radius: 8px;
  color: #ccc;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================= */
/* 🧾 Viewed Pitch Card Style */
/* ============================= */

.viewed-pitch {
  margin-bottom: 15px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.verified-badge {
  margin-left: 4px;
  color: #2e86de;
  font-size: 0.9em;
}
.pitch__trending-badge {
  background: #ff5722;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: inline-block;
}
.pitch__title-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.emoji-btn.selected-emoji {
  font-weight: bold;
  transform: scale(1.1);
  border: 2px solid gold;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* 🎯 Tooltip Bubble for Emoji Buttons */
.emoji-btn-wrapper {
  position: relative;
  display: inline-block;
}

.emoji-tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  font-size: 12px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
}

.emoji-btn-wrapper:hover .emoji-tooltip {
  visibility: visible;
  opacity: 1;
}
.pitch-emojis {
  animation: fadeInEmojiBar 0.6s ease-in-out;
}

@keyframes fadeInEmojiBar {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pitch__insights {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.9;
  padding: 6px 0;
}

.pitch__insight-block {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8f8f8;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* Tooltip Base */
.emoji-btn[data-tooltip] {
  position: relative;
  cursor: pointer;
}

/* Tooltip Animation: Fade-in + Float up */
.emoji-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #222;
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
  z-index: 1000;
  visibility: hidden;
}

/* Hover → Show tooltip with delay + float up */
.emoji-btn[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
  visibility: visible;
}
.comment__copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: transform 0.2s ease;
}

.comment__copy-btn:hover {
  transform: scale(1.1);
}
.pitch__insights-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.pitch__insight-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.pitch__insight-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.pitch__insight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
/* =========================
   📊 Insights Skeleton Loader
   ========================= */
.insights-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.insights-skel-row {
  height: 14px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: insightsShimmer 1.2s infinite;
  border-radius: 4px;
}

.insights-skel-row.short {
  width: 60%;
}

@keyframes insightsShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.insights-error {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 102, 0, 0.08);
  color: #b35400;
  font-size: 0.95rem;
}

/* Optional subtle entrance animation */
.pitch__emoji-summary.animated {
  animation: pitchEmojiSummaryIn 260ms ease-out both;
}
@keyframes pitchEmojiSummaryIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* END PATCH */
.pitch-emojis .donate-qr {
  top: -176px; /* position above the button */
  left: 0;
}
/* Mobile auto-hide */
.autohide-target {
  opacity: 1;
  transition: opacity 180ms ease;
}
.autohide-hidden {
  opacity: 0;
}
.no-autohide {
  opacity: 1 !important;
} /* opt-out if needed */

/* Settings-only layout tweaks */
.settings-page #settingsPage {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 16px;
}

.settings-page .modal {
  backdrop-filter: blur(2px);
}
/* settings.html standalone doc */
.settings-doc {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 40px;
  color: #333;
  max-width: 800px;
  margin: auto;
}
.settings-doc h1 {
  font-size: 24px;
  margin-bottom: 20px;
}
.settings-doc h2 {
  font-size: 18px;
  margin-top: 30px;
}
.settings-doc ul {
  line-height: 1.6;
}

/* =============== Doc pages: base =============== */
body.doc {
  margin: 0;
  padding: 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}
.doc h1 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  line-height: 1.25;
}
.doc h2 {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul,
.doc ol {
  margin: 0 0 12px 0;
  padding-left: 1.25rem;
}

/* Links in footers on doc pages */
.doc footer {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}
.doc footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.doc footer a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.3);
}
.doc footer a + a::before {
  content: " | ";
  color: #bbb;
}

/* Page-specific tweaks */
.doc.doc-contact .contact__thanks {
  font-size: 14px;
  color: #666;
}
.doc.doc-instructions {
  padding: 28px;
}
.doc.doc-settings {
  padding: 24px;
}
.doc.doc-security {
  padding: 24px;
}
/* keep these two so Privacy/Terms preserve their original look */
.doc.doc-privacy h2 {
  color: #4caf50;
} /* privacy: green sub-heads */
.doc.doc-terms {
  line-height: 1.7;
} /* terms: roomier line-height */

/* Dev-only: hide backdrops when html[data-nodimmer] is present */
html[data-nodimmer] .modal-backdrop,
html[data-nodimmer] .backdrop,
html[data-nodimmer] .overlay,
html[data-nodimmer] #overlay,
html[data-nodimmer] #modalOverlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html[data-nodimmer] body {
  filter: none !important;
  opacity: 1 !important;
}
html[data-nodimmer] body.modal-open {
  overflow: auto !important;
}
/* Upload dropzone refinements (append at end of style.css) */
.upload__dropzone {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  min-height: 140px; /* touch-friendly */
}

.upload__dropzone:focus-visible {
  outline: 3px solid var(--focus, #2563eb);
  outline-offset: 3px;
}

.upload__dropzone:active {
  transform: translateY(1px);
}

/* Your JS toggles `dragover` (not is-dragover) — keep this name */
.upload__dropzone.is-dragover {
  transform: scale(0.995);
}
.emoji-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 999px;
}
#pitchList.is-loading::before {
  content: "Loading…";
  display: block;
  padding: 12px;
  color: var(--muted, #666);
}
#pitchList .empty {
  color: var(--muted, #666);
  padding: 12px;
}
/* Static pages footer (used by footer-toast.js) */
.site-footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  font-size: 14px;
  color: #777;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 6px;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer-copy {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-top: 6px;
}
@media (prefers-color-scheme: dark) {
  .site-footer {
    color: #aaa;
  }
  .site-footer-copy {
    color: #888;
  }
}
#pitchList.is-loading::before {
  content: "Loading…";
  display: block;
  padding: 12px;
  color: var(--muted, #666);
}
#pitchList .empty {
  color: var(--muted, #666);
  padding: 12px;
}

.comment--failed {
  background: #fff3f3;
  border: 1px solid #f5c2c2;
}

.comment-error-banner {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fee;
  color: #b00020;
}
.comment--sending {
  opacity: 0.7;
}
.comment__retry {
  margin-left: 8px;
  font-size: 12px;
}
/* Reset page container (support legacy .reset-card too) */
.reset-page,
.reset-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Input rows */
.input-row {
  position: relative;
  margin-bottom: 10px;
}
.input-row input {
  padding: 8px;
  width: 100%;
}

/* Status line */
#statusBox {
  margin-top: 12px;
}

/* Password toggle buttons (keyboard-only outline) */
.pw-toggle {
  margin-left: 8px;
  font-size: 0.95rem;
  padding: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.pw-toggle:focus {
  outline: none;
}
.pw-toggle:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

/* Optional: tiny spinner you already use on submit */
.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -1px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
