/* Valerie Big UI Patch */
.msg-img-thumb,
.gallery-item img {
  cursor: zoom-in;
}

.v3-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  background: rgba(22, 18, 12, .96);
  color: #fff1b8;
  border: 1px solid rgba(226, 184, 65, .45);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
  font-family: inherit;
}
.v3-toast.show { opacity: 1; transform: translateY(0); }

.v3-big-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.v3-big-modal {
  width: min(1120px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: #14110c;
  color: #f5e8b8;
  border: 1px solid rgba(211, 166, 53, .42);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  position: relative;
  padding: 28px;
}
.v3-big-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(211, 166, 53, .35);
  background: rgba(255,255,255,.04);
  color: #f5e8b8;
  font-size: 24px;
  cursor: pointer;
}
.v3-big-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  margin: 0 0 20px;
}
.v3-muted { color: rgba(245, 232, 184, .66); line-height: 1.55; }
.v3-gold-btn {
  border: 1px solid rgba(226, 184, 65, .6);
  background: rgba(226, 184, 65, .16);
  color: #ffe69b;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
}
.v3-gold-btn:hover { background: rgba(226, 184, 65, .25); }
.v3-gold-btn.ghost { background: transparent; }
.v3-gold-btn.danger { border-color: rgba(255, 100, 80, .55); color: #ffb2a4; background: rgba(255, 80, 55, .12); }

.v3-image-modal .v3-big-modal {
  width: min(1280px, 96vw);
  background: #080705;
}
.v3-image-preview-wrap { display: grid; gap: 16px; justify-items: center; }
.v3-image-preview-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(226, 184, 65, .28);
}
.v3-image-preview-caption { color: rgba(245, 232, 184, .75); text-align: center; }
.v3-image-preview-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.v3-report-form { display: grid; gap: 12px; }
.v3-report-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.v3-report-form textarea,
.v3-settings-select {
  width: 100%;
  background: #050403;
  color: #f5e8b8;
  border: 1px solid rgba(226, 184, 65, .35);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.v3-settings-modal .v3-big-modal { width: min(1040px, 94vw); padding: 0; }
.v3-settings-modal .v3-big-modal-title { display: none; }
.v3-settings-shell {
  min-height: 560px;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.v3-settings-tabs {
  background: rgba(255,255,255,.035);
  border-right: 1px solid rgba(226, 184, 65, .16);
  padding: 64px 14px 18px;
}
.v3-settings-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: rgba(245, 232, 184, .8);
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 16px;
}
.v3-settings-tab:hover,
.v3-settings-tab.active { background: rgba(226, 184, 65, .14); color: #fff1b8; }
.v3-settings-content { padding: 64px 42px 42px; }
.v3-settings-content h3 {
  font-size: 28px;
  margin: 0 0 22px;
  color: #fff1b8;
}
.v3-settings-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(226, 184, 65, .14);
  color: #f5e8b8;
}
.v3-settings-row:last-child { border-bottom: 1px solid rgba(226, 184, 65, .14); }
.v3-settings-row.danger span { color: #ffb2a4; }

.v3-sphere-voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(226,184,65,.42);
  background: rgba(226,184,65,.12);
  color: #ffe69b;
  cursor: pointer;
  margin-right: 8px;
}
.v3-sphere-voice-btn:hover { background: rgba(226,184,65,.22); }
body.v3-sphere-active > *:not(#v3SphereOverlay) {
  filter: blur(10px) brightness(.45);
  pointer-events: none;
  user-select: none;
}
#v3SphereOverlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(226,184,65,.09), rgba(0,0,0,.72));
}
.v3-sphere-stage { display: grid; place-items: center; gap: 24px; color: #fff1b8; }
.v3-lottie-sphere { width: min(520px, 64vw); height: min(520px, 64vw); display: grid; place-items: center; }
.v3-sphere-label { letter-spacing: .18em; text-transform: uppercase; opacity: .76; }
.v3-fallback-orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 186, 58, .7);
  background: radial-gradient(circle, rgba(255,186,58,.25), rgba(255,80,0,.03) 55%, transparent 70%);
  box-shadow: 0 0 80px rgba(255, 186, 58, .35), inset 0 0 60px rgba(255, 186, 58, .15);
  animation: v3-breathe 3.2s ease-in-out infinite;
}
@keyframes v3-breathe { 0%,100% { transform: scale(.86); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }

@media (max-width: 820px) {
  .v3-settings-shell { grid-template-columns: 1fr; }
  .v3-settings-tabs { display: flex; overflow-x: auto; padding: 56px 12px 12px; border-right: 0; border-bottom: 1px solid rgba(226, 184, 65, .16); }
  .v3-settings-tab { min-width: 150px; }
  .v3-settings-content { padding: 24px; }
}


/* UI hotfix 2: keep voice sphere button beside Send */
.input-bottom {
  display: flex;
  align-items: center;
}
.v3-send-cluster {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v3-send-cluster .send-btn {
  flex: 0 0 auto;
}
.v3-send-cluster .v3-sphere-voice-btn {
  margin-right: 0;
}
