/* ═══════════════════════════════════════
   REVIEW DETAIL PANEL
═══════════════════════════════════════ */
.detail-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: flex-end;
}
.detail-overlay.open { display: flex; }
.detail-panel {
  width: 520px; height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--line);
  overflow-y: auto; animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.dp-head {
  position: sticky; top: 0; z-index: 1;
  padding: 16px 20px; background: var(--bg2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.dp-close {
  margin-left: auto; width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; color: var(--txt2);
  display: flex; align-items: center; justify-content: center;
}
.dp-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.dp-body { padding: 20px; }

.dp-review-text {
  font-size: 15px; line-height: 1.75; color: var(--txt);
  padding: 16px; background: var(--bg3);
  border-radius: var(--radius); border-left: 3px solid var(--accent);
  margin-bottom: 20px;
}

.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.signal-card {
  background: var(--bg3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.signal-name { font-size: 10px; font-family: var(--mono); color: var(--txt3); letter-spacing: 0.08em; margin-bottom: 8px; }
.signal-val { font-size: 32px; font-weight: 700; letter-spacing: -0.05em; margin-bottom: 4px; }
.signal-bar { height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.signal-bar-fill { height: 100%; border-radius: 2px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.signal-desc { font-size: 11px; color: var(--txt3); }

.dp-section { margin-bottom: 20px; }
.dp-section-title { font-size: 11px; font-family: var(--mono); color: var(--txt3); letter-spacing: 0.08em; margin-bottom: 10px; text-transform: uppercase; }

.ai-insight {
  padding: 14px; background: rgba(61,108,255,0.08);
  border: 1px solid rgba(61,108,255,0.2);
  border-radius: var(--radius); font-size: 13px;
  color: var(--txt2); line-height: 1.7;
}

.reply-editor {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; color: var(--txt); font-size: 13px;
  line-height: 1.7; resize: none; min-height: 100px;
  font-family: var(--sans); transition: border-color 0.15s;
}
.reply-editor:focus { outline: none; border-color: var(--accent); }

/* ═══════════════════════════════════════
   REALTIME FEED
═══════════════════════════════════════ */
.feed-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  animation: feedIn 0.4s ease;
}
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.feed-item:last-child { border-bottom: none; }
.feed-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.feed-content { flex: 1; min-width: 0; }
.feed-text { font-size: 12px; color: var(--txt); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.feed-meta { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.feed-platform { font-size: 10px; color: var(--txt3); font-family: var(--mono); }
.feed-time { font-size: 10px; color: var(--txt3); margin-left: auto; }
.feed-score { font-size: 11px; font-weight: 600; font-family: var(--mono); }

/* ═══════════════════════════════════════
   NOTIFICATIONS / TOAST
═══════════════════════════════════════ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; color: var(--txt);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); min-width: 260px;
  animation: toastIn 0.25s ease; transition: opacity 0.3s;
}
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
.toast.warning { border-left: 3px solid var(--amber); }
.toast-icon { font-size: 15px; }

/* ═══════════════════════════════════════
   BATCH ANALYSIS PROGRESS
═══════════════════════════════════════ */
.batch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.batch-row:last-child { border-bottom: none; }
.batch-text { flex: 1; font-size: 13px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bg4); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.batch-check { width: 18px; height: 18px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.batch-check svg { width: 10px; height: 10px; fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; }
