/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
}

body {
  background: #0a0812;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(88, 28, 135, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(157, 23, 77, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(154, 52, 18, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ─── Gradient Text ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Surfaces (dark-based, no white wash) ─────── */
.glass-card {
  background: rgba(14, 12, 22, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card-subtle {
  background: rgba(14, 12, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
}

.glass-nav {
  background: rgba(10, 8, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-sidebar {
  background: rgba(10, 8, 18, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* ─── Nav Links ───────────────────────────────────────── */
.nav-link {
  color: rgba(255, 255, 255, 0.35);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}
.nav-link.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.10));
  color: #f472b6;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.06);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #db2777, #9333ea);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.25);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 6px 24px rgba(219, 39, 119, 0.35);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.btn-warning {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 9999px;
  font-weight: 700;
  color: #fbbf24;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-warning:hover {
  background: rgba(234, 179, 8, 0.18);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #f87171;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
}

/* ─── Form Inputs ─────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}
.form-input:focus {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.08);
}

select.form-input {
  cursor: pointer;
  text-transform: capitalize;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
select.form-input option {
  background: #14121f;
  color: #e5e7eb;
}

textarea.form-input {
  resize: vertical;
  min-height: 4rem;
}

/* ─── Personality Sliders ─────────────────────────────── */
.personality-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0;
}

input[type="range"].personality-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  cursor: pointer;
}

input[type="range"].personality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--slider-color, #ec4899);
  cursor: pointer;
  border: 3px solid #0a0812;
  box-shadow: 0 0 8px var(--slider-glow, rgba(236, 72, 153, 0.4));
  transition: box-shadow 0.2s;
}
input[type="range"].personality-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px var(--slider-glow, rgba(236, 72, 153, 0.6));
}

input[type="range"].personality-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--slider-color, #ec4899);
  cursor: pointer;
  border: 3px solid #0a0812;
  box-shadow: 0 0 8px var(--slider-glow, rgba(236, 72, 153, 0.4));
}

/* ─── Companion Cards (list view) ─────────────────────── */
.companion-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(14, 12, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.companion-card:hover {
  border-color: rgba(236, 72, 153, 0.15);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.06);
  transform: translateY(-2px);
}
.companion-card .card-img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  display: block;
}
.companion-card .card-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.2), rgba(157, 23, 77, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.companion-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(10,8,18,0.95) 0%, rgba(10,8,18,0.6) 50%, transparent 100%);
}

/* ─── Chips ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}
.chip-pink    { background: rgba(236,72,153,0.1);  color: #f472b6; border-color: rgba(236,72,153,0.15); }
.chip-purple  { background: rgba(168,85,247,0.1);  color: #c084fc; border-color: rgba(168,85,247,0.15); }
.chip-yellow  { background: rgba(234,179,8,0.1);   color: #fbbf24; border-color: rgba(234,179,8,0.15);  }
.chip-blue    { background: rgba(59,130,246,0.1);   color: #60a5fa; border-color: rgba(59,130,246,0.15);  }
.chip-orange  { background: rgba(249,115,22,0.1);   color: #fb923c; border-color: rgba(249,115,22,0.15);  }
.chip-green   { background: rgba(34,197,94,0.1);    color: #4ade80; border-color: rgba(34,197,94,0.15);   }
.chip-gray    { background: rgba(156,163,175,0.08); color: #9ca3af; border-color: rgba(156,163,175,0.12); }
.chip-indigo  { background: rgba(99,102,241,0.1);   color: #818cf8; border-color: rgba(99,102,241,0.15);  }

/* ─── Image Upload ────────────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.15);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.03);
}

.img-thumb {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: all 0.2s;
}
.img-thumb:hover {
  border-color: rgba(236, 72, 153, 0.25);
}
.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-thumb .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.4);
}
.img-thumb:hover .remove-btn {
  opacity: 1;
}
.img-thumb:first-child::after {
  content: 'Primary';
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #db2777, #9333ea);
  color: white;
}

/* ─── Toast ───────────────────────────────────────────── */
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: toast-in 0.3s ease-out;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.toast-success { background: rgba(10, 30, 15, 0.9); border: 1px solid rgba(34, 197, 94, 0.25); color: #4ade80; }
.toast-error   { background: rgba(30, 10, 10, 0.9); border: 1px solid rgba(239, 68, 68, 0.25); color: #f87171; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Section Divider ─────────────────────────────────── */
.section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.75rem;
}

/* ─── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ─── Delete Modal ────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fade-in 0.2s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Stories ─────────────────────────────────────────── */
.story-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.story-checkbox:checked {
  background: linear-gradient(135deg, #db2777, #9333ea);
  border-color: transparent;
}
.story-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.companion-select-card {
  transition: all 0.2s;
  border: 1px solid transparent;
}
.companion-select-card.ring-2 {
  border-color: #ec4899 !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}

.select-check-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.ring-2 .select-check-indicator {
  background: linear-gradient(135deg, #db2777, #9333ea);
  border-color: transparent;
}
.ring-2 .select-check-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.story-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s;
}
.story-preview-card:hover {
  border-color: rgba(236, 72, 153, 0.15);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.06);
}

.story-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.85);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.story-preview-card:hover .story-delete-btn {
  opacity: 1;
}

.story-progress-row {
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ─── Video Reordering ────────────────────────────────────── */
.vid-toolbar-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.75rem;
  transition: border-color 0.2s;
}
.vid-toolbar-select:focus { border-color: rgba(236,72,153,0.4); }
.vid-toolbar-select option { background: #14121f; color: #e5e7eb; }

.vid-view-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}
.vid-view-btn {
  padding: 0.375rem 0.625rem;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  display: flex;
  align-items: center;
}
.vid-view-btn:hover { color: rgba(255,255,255,0.6); }
.vid-view-btn.active {
  background: rgba(236,72,153,0.15);
  color: #f472b6;
}

.vid-pos-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 900;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.vid-pos-badge:hover {
  background: rgba(236,72,153,0.6);
  transform: scale(1.15);
}

.vid-pos-input {
  width: 2.5rem;
  background: rgba(0,0,0,0.8);
  border: 1px solid #ec4899;
  border-radius: 0.375rem;
  color: white;
  font-size: 0.625rem;
  font-weight: 900;
  text-align: center;
  padding: 0.125rem;
  outline: none;
  -moz-appearance: textfield;
}
.vid-pos-input::-webkit-inner-spin-button,
.vid-pos-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vid-card-btn {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.vid-card-btn:hover:not(:disabled) {
  background: rgba(236,72,153,0.5);
  color: white;
}
.vid-card-btn:disabled { opacity: 0.3; cursor: default; }

/* ─── List view ───────────────────────────────────────────── */
.vid-list-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vid-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s, border-color 0.15s, opacity 0.3s, transform 0.3s;
  cursor: grab;
}
.vid-list-row:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(236,72,153,0.15);
}
.vid-list-drag-handle {
  color: rgba(255,255,255,0.15);
  font-size: 1rem;
  cursor: grab;
  user-select: none;
  letter-spacing: -2px;
  flex-shrink: 0;
}
.vid-list-row:hover .vid-list-drag-handle { color: rgba(255,255,255,0.4); }

.vid-list-thumb {
  width: 3rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #000;
  flex-shrink: 0;
  pointer-events: none;
}
.vid-list-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.vid-list-avatar-placeholder {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(168,85,247,0.2);
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.vid-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.vid-list-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vid-list-caption {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vid-list-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.vid-card-btn-sm {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.vid-card-btn-sm:hover:not(:disabled) {
  background: rgba(236,72,153,0.3);
  color: white;
}
.vid-card-btn-sm:disabled { opacity: 0.2; cursor: default; }

.vid-list-delete {
  position: static !important;
  opacity: 0.5 !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  font-size: 0.75rem !important;
  border: 1px solid rgba(220,38,38,0.3) !important;
}
.vid-list-row:hover .vid-list-delete { opacity: 1 !important; }

/* ─── Drag & drop indicator ───────────────────────────────── */
.vid-drop-indicator {
  background: linear-gradient(90deg, transparent, #ec4899, transparent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  flex-shrink: 0;
}
.vid-list-container > .vid-drop-indicator {
  height: 2px;
  margin: -1px 0;
}

.vid-drop-target {
  border-color: #ec4899 !important;
  box-shadow: 0 0 20px rgba(236,72,153,0.3) !important;
}

.vid-dragging {
  opacity: 0.3 !important;
  transform: scale(0.97);
}

/* ─── Move highlight ──────────────────────────────────────── */
.vid-just-moved {
  animation: vid-highlight 0.6s ease-out;
}
@keyframes vid-highlight {
  0% { box-shadow: 0 0 0 3px rgba(236,72,153,0.5); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}

/* ─── Delete animation ────────────────────────────────────── */
.vid-deleting {
  opacity: 0 !important;
  transform: scale(0.85) !important;
  transition: all 0.3s ease-out !important;
}

/* ─── Users + UserDetail ──────────────────────────────────── */
.user-row td:first-child { border-left: 2px solid transparent; }
.user-row:hover td:first-child { border-left-color: rgba(236, 72, 153, 0.7); }
.user-row { transition: background-color 0.12s ease; }

.chat-row { transition: background-color 0.12s ease; }
.chat-row:hover { background: rgba(255, 255, 255, 0.06); }
.comp-row { transition: background-color 0.12s ease; }

#cv-messages { scroll-behavior: smooth; }
#cv-messages::-webkit-scrollbar { width: 8px; }
#cv-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
#cv-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
